Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 62620 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.61 for python 3.0. |
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 | # |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 25 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 31 | |
| 32 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 34 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 83 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 84 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 226 | do |
| 227 | IFS=$as_save_IFS |
| 228 | test -z "$as_dir" && as_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 229 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | /*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 331 | as_lineno_1=$LINENO |
| 332 | as_lineno_2=$LINENO |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 454 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 566 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 567 | ac_config_libobj_dir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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' |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 578 | PACKAGE_VERSION='3.0' |
| 579 | PACKAGE_STRING='python 3.0' |
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> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 611 | #endif |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 |
| 660 | PYTHONFRAMEWORK |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 661 | PYTHONFRAMEWORKIDENTIFIER |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 662 | PYTHONFRAMEWORKDIR |
| 663 | PYTHONFRAMEWORKPREFIX |
| 664 | PYTHONFRAMEWORKINSTALLDIR |
| 665 | FRAMEWORKINSTALLFIRST |
| 666 | FRAMEWORKINSTALLLAST |
| 667 | FRAMEWORKALTINSTALLFIRST |
| 668 | FRAMEWORKALTINSTALLLAST |
| 669 | FRAMEWORKUNIXTOOLSPREFIX |
| 670 | MACHDEP |
| 671 | SGI_ABI |
| 672 | EXTRAPLATDIR |
| 673 | EXTRAMACHDEPPATH |
| 674 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 675 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 676 | CC |
| 677 | CFLAGS |
| 678 | LDFLAGS |
| 679 | CPPFLAGS |
| 680 | ac_ct_CC |
| 681 | EXEEXT |
| 682 | OBJEXT |
| 683 | CXX |
| 684 | MAINCC |
| 685 | CPP |
| 686 | GREP |
| 687 | EGREP |
| 688 | BUILDEXEEXT |
| 689 | LIBRARY |
| 690 | LDLIBRARY |
| 691 | DLLLIBRARY |
| 692 | BLDLIBRARY |
| 693 | LDLIBRARYDIR |
| 694 | INSTSONAME |
| 695 | RUNSHARED |
| 696 | LINKCC |
| 697 | RANLIB |
| 698 | AR |
| 699 | SVNVERSION |
| 700 | INSTALL_PROGRAM |
| 701 | INSTALL_SCRIPT |
| 702 | INSTALL_DATA |
| 703 | LN |
| 704 | OPT |
| 705 | BASECFLAGS |
| 706 | OTHER_LIBTOOL_OPT |
| 707 | LIBTOOL_CRUFT |
| 708 | SO |
| 709 | LDSHARED |
| 710 | BLDSHARED |
| 711 | CCSHARED |
| 712 | LINKFORSHARED |
| 713 | CFLAGSFORSHARED |
| 714 | SHLIBS |
| 715 | USE_SIGNAL_MODULE |
| 716 | SIGNAL_OBJS |
| 717 | USE_THREAD_MODULE |
| 718 | LDLAST |
| 719 | THREADOBJ |
| 720 | DLINCLDIR |
| 721 | DYNLOADFILE |
| 722 | MACHDEP_OBJS |
| 723 | TRUE |
| 724 | LIBOBJS |
| 725 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 726 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 727 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 728 | HAVE_GETHOSTBYNAME_R |
| 729 | HAVE_GETHOSTBYNAME |
| 730 | LIBM |
| 731 | LIBC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 732 | THREADHEADERS |
| 733 | SRCDIRS |
| 734 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 735 | ac_subst_files='' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 736 | ac_precious_vars='build_alias |
| 737 | host_alias |
| 738 | target_alias |
| 739 | CC |
| 740 | CFLAGS |
| 741 | LDFLAGS |
| 742 | LIBS |
| 743 | CPPFLAGS |
| 744 | CPP' |
| 745 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 746 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 747 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 748 | ac_init_help= |
| 749 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 750 | # The variables have the same names as the options, with |
| 751 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 752 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 753 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 754 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 755 | no_recursion= |
| 756 | prefix=NONE |
| 757 | program_prefix=NONE |
| 758 | program_suffix=NONE |
| 759 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 760 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 761 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 762 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 763 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 764 | x_includes=NONE |
| 765 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 766 | |
| 767 | # Installation directory options. |
| 768 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 769 | # and all the variables that are supposed to be based on exec_prefix |
| 770 | # by default will actually change. |
| 771 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 772 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 773 | bindir='${exec_prefix}/bin' |
| 774 | sbindir='${exec_prefix}/sbin' |
| 775 | libexecdir='${exec_prefix}/libexec' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 776 | datarootdir='${prefix}/share' |
| 777 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 778 | sysconfdir='${prefix}/etc' |
| 779 | sharedstatedir='${prefix}/com' |
| 780 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 781 | includedir='${prefix}/include' |
| 782 | oldincludedir='/usr/include' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 783 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 784 | infodir='${datarootdir}/info' |
| 785 | htmldir='${docdir}' |
| 786 | dvidir='${docdir}' |
| 787 | pdfdir='${docdir}' |
| 788 | psdir='${docdir}' |
| 789 | libdir='${exec_prefix}/lib' |
| 790 | localedir='${datarootdir}/locale' |
| 791 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 792 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 793 | ac_prev= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 794 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 795 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 796 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 797 | # If the previous option needs an argument, assign it. |
| 798 | if test -n "$ac_prev"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 799 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 800 | ac_prev= |
| 801 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 802 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 803 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 804 | case $ac_option in |
| 805 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 806 | *) ac_optarg=yes ;; |
| 807 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 808 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 809 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 810 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 811 | case $ac_dashdash$ac_option in |
| 812 | --) |
| 813 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 814 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 815 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 816 | ac_prev=bindir ;; |
| 817 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 818 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 819 | |
| 820 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 821 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 822 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 823 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 824 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 825 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 826 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 827 | ac_prev=cache_file ;; |
| 828 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 829 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 830 | cache_file=$ac_optarg ;; |
| 831 | |
| 832 | --config-cache | -C) |
| 833 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 834 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 835 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 836 | ac_prev=datadir ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 837 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 838 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 839 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 840 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 841 | | --dataroo | --dataro | --datar) |
| 842 | ac_prev=datarootdir ;; |
| 843 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 844 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 845 | datarootdir=$ac_optarg ;; |
| 846 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 847 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 848 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 849 | # Reject names that are not valid shell variable names. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 850 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 851 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 852 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 853 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 854 | eval enable_$ac_feature=no ;; |
| 855 | |
| 856 | -docdir | --docdir | --docdi | --doc | --do) |
| 857 | ac_prev=docdir ;; |
| 858 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 859 | docdir=$ac_optarg ;; |
| 860 | |
| 861 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 862 | ac_prev=dvidir ;; |
| 863 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 864 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 865 | |
| 866 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 867 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 868 | # Reject names that are not valid shell variable names. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 869 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 870 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 871 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 872 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 873 | eval enable_$ac_feature=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 874 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 875 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 876 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 877 | | --exec | --exe | --ex) |
| 878 | ac_prev=exec_prefix ;; |
| 879 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 880 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 881 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 882 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 883 | |
| 884 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 885 | # Obsolete; use --with-gas. |
| 886 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 888 | -help | --help | --hel | --he | -h) |
| 889 | ac_init_help=long ;; |
| 890 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 891 | ac_init_help=recursive ;; |
| 892 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 893 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 894 | |
| 895 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 896 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 897 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 898 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 899 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 900 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 901 | ac_prev=htmldir ;; |
| 902 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 903 | | --ht=*) |
| 904 | htmldir=$ac_optarg ;; |
| 905 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 906 | -includedir | --includedir | --includedi | --included | --include \ |
| 907 | | --includ | --inclu | --incl | --inc) |
| 908 | ac_prev=includedir ;; |
| 909 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 910 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 911 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 912 | |
| 913 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 914 | ac_prev=infodir ;; |
| 915 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 916 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 917 | |
| 918 | -libdir | --libdir | --libdi | --libd) |
| 919 | ac_prev=libdir ;; |
| 920 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 921 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 922 | |
| 923 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 924 | | --libexe | --libex | --libe) |
| 925 | ac_prev=libexecdir ;; |
| 926 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 927 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 928 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 929 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 930 | -localedir | --localedir | --localedi | --localed | --locale) |
| 931 | ac_prev=localedir ;; |
| 932 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 933 | localedir=$ac_optarg ;; |
| 934 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 935 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 936 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 937 | ac_prev=localstatedir ;; |
| 938 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 939 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 940 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 941 | |
| 942 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 943 | ac_prev=mandir ;; |
| 944 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 945 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 946 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 947 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 948 | # Obsolete; use --without-fp. |
| 949 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 950 | |
| 951 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 952 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 953 | no_create=yes ;; |
| 954 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 955 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 956 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 957 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 958 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 959 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 960 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 961 | | --oldin | --oldi | --old | --ol | --o) |
| 962 | ac_prev=oldincludedir ;; |
| 963 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 964 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 965 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 966 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 967 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 968 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 969 | ac_prev=prefix ;; |
| 970 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 971 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 972 | |
| 973 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 974 | | --program-pre | --program-pr | --program-p) |
| 975 | ac_prev=program_prefix ;; |
| 976 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 977 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 978 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 979 | |
| 980 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 981 | | --program-suf | --program-su | --program-s) |
| 982 | ac_prev=program_suffix ;; |
| 983 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 984 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 985 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 986 | |
| 987 | -program-transform-name | --program-transform-name \ |
| 988 | | --program-transform-nam | --program-transform-na \ |
| 989 | | --program-transform-n | --program-transform- \ |
| 990 | | --program-transform | --program-transfor \ |
| 991 | | --program-transfo | --program-transf \ |
| 992 | | --program-trans | --program-tran \ |
| 993 | | --progr-tra | --program-tr | --program-t) |
| 994 | ac_prev=program_transform_name ;; |
| 995 | -program-transform-name=* | --program-transform-name=* \ |
| 996 | | --program-transform-nam=* | --program-transform-na=* \ |
| 997 | | --program-transform-n=* | --program-transform-=* \ |
| 998 | | --program-transform=* | --program-transfor=* \ |
| 999 | | --program-transfo=* | --program-transf=* \ |
| 1000 | | --program-trans=* | --program-tran=* \ |
| 1001 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1002 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1003 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1004 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1005 | ac_prev=pdfdir ;; |
| 1006 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1007 | pdfdir=$ac_optarg ;; |
| 1008 | |
| 1009 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1010 | ac_prev=psdir ;; |
| 1011 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1012 | psdir=$ac_optarg ;; |
| 1013 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1014 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1015 | | -silent | --silent | --silen | --sile | --sil) |
| 1016 | silent=yes ;; |
| 1017 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1018 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1019 | ac_prev=sbindir ;; |
| 1020 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1021 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1022 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1023 | |
| 1024 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1025 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1026 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1027 | | --sha | --sh) |
| 1028 | ac_prev=sharedstatedir ;; |
| 1029 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1030 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1031 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1032 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1033 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1034 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1035 | -site | --site | --sit) |
| 1036 | ac_prev=site ;; |
| 1037 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1038 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1039 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1040 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1041 | ac_prev=srcdir ;; |
| 1042 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1043 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1044 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1045 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1046 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1047 | ac_prev=sysconfdir ;; |
| 1048 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1049 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1050 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1051 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1052 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1053 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1054 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1055 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1056 | |
| 1057 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1058 | verbose=yes ;; |
| 1059 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1060 | -version | --version | --versio | --versi | --vers | -V) |
| 1061 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1062 | |
| 1063 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1064 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1065 | # Reject names that are not valid shell variable names. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1066 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1067 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1068 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1069 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1070 | eval with_$ac_package=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1071 | |
| 1072 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1074 | # Reject names that are not valid shell variable names. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1075 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1076 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1077 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1078 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1079 | eval with_$ac_package=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1080 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1081 | --x) |
| 1082 | # Obsolete; use --with-x. |
| 1083 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1084 | |
| 1085 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1086 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1087 | ac_prev=x_includes ;; |
| 1088 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1089 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1090 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1091 | |
| 1092 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1093 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1094 | ac_prev=x_libraries ;; |
| 1095 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1096 | | --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] | 1097 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1099 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1100 | Try \`$0 --help' for more information." >&2 |
| 1101 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1102 | ;; |
| 1103 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1104 | *=*) |
| 1105 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1106 | # Reject names that are not valid shell variable names. |
| 1107 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1108 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1109 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1110 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1111 | export $ac_envvar ;; |
| 1112 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1113 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1114 | # FIXME: should be removed in autoconf 3.0. |
| 1115 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1116 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1117 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1118 | : ${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] | 1119 | ;; |
| 1120 | |
| 1121 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1122 | done |
| 1123 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1124 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1125 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1126 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1127 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1128 | fi |
| 1129 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1130 | # Be sure to have absolute directory names. |
| 1131 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1132 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1133 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1134 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1135 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1136 | eval ac_val=\$$ac_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1137 | case $ac_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1138 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1139 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1140 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1141 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1142 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1143 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1144 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1145 | # There might be people who depend on the old broken behavior: `$host' |
| 1146 | # used to hold the argument of --host etc. |
| 1147 | # FIXME: To remove some day. |
| 1148 | build=$build_alias |
| 1149 | host=$host_alias |
| 1150 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1152 | # FIXME: To remove some day. |
| 1153 | if test "x$host_alias" != x; then |
| 1154 | if test "x$build_alias" = x; then |
| 1155 | cross_compiling=maybe |
| 1156 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1157 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1158 | elif test "x$build_alias" != "x$host_alias"; then |
| 1159 | cross_compiling=yes |
| 1160 | fi |
| 1161 | fi |
| 1162 | |
| 1163 | ac_tool_prefix= |
| 1164 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1165 | |
| 1166 | test "$silent" = yes && exec 6>/dev/null |
| 1167 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1168 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1169 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1170 | ac_ls_di=`ls -di .` && |
| 1171 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1172 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1173 | { (exit 1); exit 1; }; } |
| 1174 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1175 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1176 | { (exit 1); exit 1; }; } |
| 1177 | |
| 1178 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1179 | # Find the source files, if location was not specified. |
| 1180 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1181 | ac_srcdir_defaulted=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1182 | # Try the directory containing this script, then the parent directory. |
| 1183 | ac_confdir=`$as_dirname -- "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1184 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1185 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1186 | X"$0" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1187 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1188 | echo X"$0" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1189 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1190 | s//\1/ |
| 1191 | q |
| 1192 | } |
| 1193 | /^X\(\/\/\)[^/].*/{ |
| 1194 | s//\1/ |
| 1195 | q |
| 1196 | } |
| 1197 | /^X\(\/\/\)$/{ |
| 1198 | s//\1/ |
| 1199 | q |
| 1200 | } |
| 1201 | /^X\(\/\).*/{ |
| 1202 | s//\1/ |
| 1203 | q |
| 1204 | } |
| 1205 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1206 | srcdir=$ac_confdir |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1207 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1208 | srcdir=.. |
| 1209 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1210 | else |
| 1211 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1212 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1213 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1214 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1215 | { 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] | 1216 | { (exit 1); exit 1; }; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1217 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1218 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1219 | ac_abs_confdir=`( |
| 1220 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1221 | { (exit 1); exit 1; }; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1222 | pwd)` |
| 1223 | # When building in place, set srcdir=. |
| 1224 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1225 | srcdir=. |
| 1226 | fi |
| 1227 | # Remove unnecessary trailing slashes from srcdir. |
| 1228 | # Double slashes in file names in object file debugging info |
| 1229 | # mess up M-x gdb in Emacs. |
| 1230 | case $srcdir in |
| 1231 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1232 | esac |
| 1233 | for ac_var in $ac_precious_vars; do |
| 1234 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1235 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1236 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1237 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1238 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1240 | # |
| 1241 | # Report the --help message. |
| 1242 | # |
| 1243 | if test "$ac_init_help" = "long"; then |
| 1244 | # Omit some internal or obsolete options to make the list less imposing. |
| 1245 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1246 | cat <<_ACEOF |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 1247 | \`configure' configures python 3.0 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1248 | |
| 1249 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1250 | |
| 1251 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1252 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1253 | |
| 1254 | Defaults for the options are specified in brackets. |
| 1255 | |
| 1256 | Configuration: |
| 1257 | -h, --help display this help and exit |
| 1258 | --help=short display options specific to this package |
| 1259 | --help=recursive display the short help of all the included packages |
| 1260 | -V, --version display version information and exit |
| 1261 | -q, --quiet, --silent do not print \`checking...' messages |
| 1262 | --cache-file=FILE cache test results in FILE [disabled] |
| 1263 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1264 | -n, --no-create do not create output files |
| 1265 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1267 | Installation directories: |
| 1268 | --prefix=PREFIX install architecture-independent files in PREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1269 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1270 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1271 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1272 | |
| 1273 | By default, \`make install' will install all the files in |
| 1274 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1275 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1276 | for instance \`--prefix=\$HOME'. |
| 1277 | |
| 1278 | For better control, use the options below. |
| 1279 | |
| 1280 | Fine tuning of the installation directories: |
| 1281 | --bindir=DIR user executables [EPREFIX/bin] |
| 1282 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1283 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1284 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1285 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1286 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1287 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1288 | --includedir=DIR C header files [PREFIX/include] |
| 1289 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1290 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1291 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1292 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1293 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1294 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1295 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1296 | --htmldir=DIR html documentation [DOCDIR] |
| 1297 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1298 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1299 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1300 | _ACEOF |
| 1301 | |
| 1302 | cat <<\_ACEOF |
| 1303 | _ACEOF |
| 1304 | fi |
| 1305 | |
| 1306 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1307 | case $ac_init_help in |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 1308 | short | recursive ) echo "Configuration of python 3.0:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1309 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1310 | cat <<\_ACEOF |
| 1311 | |
| 1312 | Optional Features: |
| 1313 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1314 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Christian Heimes | 68f5fbe | 2008-02-14 08:27:37 +0000 | [diff] [blame] | 1315 | --enable-universalsdk[=SDKDIR] |
Christian Heimes | 292d351 | 2008-02-03 16:51:08 +0000 | [diff] [blame] | 1316 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1317 | --enable-framework[=INSTALLDIR] |
| 1318 | Build (MacOSX|Darwin) framework |
| 1319 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1320 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1321 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1322 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1323 | --disable-ipv6 Disable ipv6 support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1324 | |
| 1325 | Optional Packages: |
| 1326 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1327 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1328 | --with-framework-name=FRAMEWORK |
| 1329 | specify an alternate name of the framework built |
| 1330 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1331 | --without-gcc never use gcc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1332 | --with-cxx-main=<compiler> |
| 1333 | compile main() and link python executable with C++ |
| 1334 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1335 | --with-suffix=.exe set executable suffix |
| 1336 | --with-pydebug build with Py_DEBUG defined |
| 1337 | --with-libs='lib1 ...' link against additional libs |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1338 | --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] | 1339 | --with-signal-module disable/enable signal module |
| 1340 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1341 | --with(out)-threads[=DIRECTORY] |
| 1342 | disable/enable thread support |
| 1343 | --with(out)-thread[=DIRECTORY] |
| 1344 | deprecated; use --with(out)-threads |
| 1345 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1346 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1347 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1348 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1349 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1350 | --with-fpectl enable SIGFPE catching |
| 1351 | --with-libm=STRING math library |
| 1352 | --with-libc=STRING C library |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 1353 | --with-wide-unicode Use 4-byte Unicode characters (default is 2 bytes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1354 | |
| 1355 | Some influential environment variables: |
| 1356 | CC C compiler command |
| 1357 | CFLAGS C compiler flags |
| 1358 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1359 | nonstandard directory <lib dir> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1360 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1361 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1362 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1363 | CPP C preprocessor |
| 1364 | |
| 1365 | Use these variables to override the choices made by `configure' or to help |
| 1366 | it to find libraries and programs with nonstandard names/locations. |
| 1367 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 1368 | Report bugs to <http://www.python.org/python-bugs>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1369 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1370 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1371 | fi |
| 1372 | |
| 1373 | if test "$ac_init_help" = "recursive"; then |
| 1374 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1375 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1376 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1377 | ac_builddir=. |
| 1378 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1379 | case "$ac_dir" in |
| 1380 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1381 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1382 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1383 | # A ".." for each directory in $ac_dir_suffix. |
| 1384 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1385 | case $ac_top_builddir_sub in |
| 1386 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1387 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1388 | esac ;; |
| 1389 | esac |
| 1390 | ac_abs_top_builddir=$ac_pwd |
| 1391 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1392 | # for backward compatibility: |
| 1393 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1394 | |
| 1395 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1396 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1397 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1398 | ac_top_srcdir=$ac_top_builddir_sub |
| 1399 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1400 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1401 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1402 | ac_top_srcdir=$srcdir |
| 1403 | ac_abs_top_srcdir=$srcdir ;; |
| 1404 | *) # Relative name. |
| 1405 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1406 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1407 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1408 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1409 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1410 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1411 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1412 | # Check for guested configure. |
| 1413 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1414 | echo && |
| 1415 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1416 | elif test -f "$ac_srcdir/configure"; then |
| 1417 | echo && |
| 1418 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1419 | else |
| 1420 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1421 | fi || ac_status=$? |
| 1422 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 | done |
| 1424 | fi |
| 1425 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1426 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1427 | if $ac_init_version; then |
| 1428 | cat <<\_ACEOF |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 1429 | python configure 3.0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1430 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1431 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1432 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1433 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1434 | This configure script is free software; the Free Software Foundation |
| 1435 | gives unlimited permission to copy, distribute and modify it. |
| 1436 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1437 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1438 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1439 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | This file contains any messages produced by compilers while |
| 1441 | running configure, to aid debugging if configure makes a mistake. |
| 1442 | |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 1443 | It was created by python $as_me 3.0, which was |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1444 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1445 | |
| 1446 | $ $0 $@ |
| 1447 | |
| 1448 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1449 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1450 | { |
| 1451 | cat <<_ASUNAME |
| 1452 | ## --------- ## |
| 1453 | ## Platform. ## |
| 1454 | ## --------- ## |
| 1455 | |
| 1456 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1457 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1458 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1459 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1460 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1461 | |
| 1462 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1463 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1464 | |
| 1465 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1466 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1467 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1468 | /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] | 1469 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1470 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1471 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1472 | |
| 1473 | _ASUNAME |
| 1474 | |
| 1475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1476 | for as_dir in $PATH |
| 1477 | do |
| 1478 | IFS=$as_save_IFS |
| 1479 | test -z "$as_dir" && as_dir=. |
| 1480 | echo "PATH: $as_dir" |
| 1481 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1482 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1483 | |
| 1484 | } >&5 |
| 1485 | |
| 1486 | cat >&5 <<_ACEOF |
| 1487 | |
| 1488 | |
| 1489 | ## ----------- ## |
| 1490 | ## Core tests. ## |
| 1491 | ## ----------- ## |
| 1492 | |
| 1493 | _ACEOF |
| 1494 | |
| 1495 | |
| 1496 | # Keep a trace of the command line. |
| 1497 | # 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] | 1498 | # 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] | 1499 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1500 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1501 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1502 | ac_configure_args0= |
| 1503 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1504 | ac_must_keep_next=false |
| 1505 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1506 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1507 | for ac_arg |
| 1508 | do |
| 1509 | case $ac_arg in |
| 1510 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1511 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1512 | | -silent | --silent | --silen | --sile | --sil) |
| 1513 | continue ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1514 | *\'*) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1515 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1516 | esac |
| 1517 | case $ac_pass in |
| 1518 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1519 | 2) |
| 1520 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1521 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1522 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1523 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1524 | case $ac_arg in |
| 1525 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1526 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1527 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1528 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1529 | case "$ac_configure_args0 " in |
| 1530 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1531 | esac |
| 1532 | ;; |
| 1533 | -* ) ac_must_keep_next=true ;; |
| 1534 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1535 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1536 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1537 | ;; |
| 1538 | esac |
| 1539 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1540 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1541 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1542 | $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] | 1543 | |
| 1544 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1545 | # config.log. We remove comments because anyway the quotes in there |
| 1546 | # would cause problems or look ugly. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1547 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1548 | # 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] | 1549 | trap 'exit_status=$? |
| 1550 | # Save into config.log some information that might help in debugging. |
| 1551 | { |
| 1552 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1554 | cat <<\_ASBOX |
| 1555 | ## ---------------- ## |
| 1556 | ## Cache variables. ## |
| 1557 | ## ---------------- ## |
| 1558 | _ASBOX |
| 1559 | echo |
| 1560 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1561 | ( |
| 1562 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1563 | eval ac_val=\$$ac_var |
| 1564 | case $ac_val in #( |
| 1565 | *${as_nl}*) |
| 1566 | case $ac_var in #( |
| 1567 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1568 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1569 | esac |
| 1570 | case $ac_var in #( |
| 1571 | _ | IFS | as_nl) ;; #( |
| 1572 | *) $as_unset $ac_var ;; |
| 1573 | esac ;; |
| 1574 | esac |
| 1575 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1576 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1577 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1578 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1579 | sed -n \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1580 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1581 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1582 | ;; #( |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1583 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1584 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 1585 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1586 | esac | |
| 1587 | sort |
| 1588 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1589 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1590 | |
| 1591 | cat <<\_ASBOX |
| 1592 | ## ----------------- ## |
| 1593 | ## Output variables. ## |
| 1594 | ## ----------------- ## |
| 1595 | _ASBOX |
| 1596 | echo |
| 1597 | for ac_var in $ac_subst_vars |
| 1598 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1599 | eval ac_val=\$$ac_var |
| 1600 | case $ac_val in |
| 1601 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1602 | esac |
| 1603 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1604 | done | sort |
| 1605 | echo |
| 1606 | |
| 1607 | if test -n "$ac_subst_files"; then |
| 1608 | cat <<\_ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1609 | ## ------------------- ## |
| 1610 | ## File substitutions. ## |
| 1611 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1612 | _ASBOX |
| 1613 | echo |
| 1614 | for ac_var in $ac_subst_files |
| 1615 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1616 | eval ac_val=\$$ac_var |
| 1617 | case $ac_val in |
| 1618 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1619 | esac |
| 1620 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1621 | done | sort |
| 1622 | echo |
| 1623 | fi |
| 1624 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1625 | if test -s confdefs.h; then |
| 1626 | cat <<\_ASBOX |
| 1627 | ## ----------- ## |
| 1628 | ## confdefs.h. ## |
| 1629 | ## ----------- ## |
| 1630 | _ASBOX |
| 1631 | echo |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1632 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1633 | echo |
| 1634 | fi |
| 1635 | test "$ac_signal" != 0 && |
| 1636 | echo "$as_me: caught signal $ac_signal" |
| 1637 | echo "$as_me: exit $exit_status" |
| 1638 | } >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1639 | rm -f core *.core core.conftest.* && |
| 1640 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1641 | exit $exit_status |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1642 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1643 | for ac_signal in 1 2 13 15; do |
| 1644 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1645 | done |
| 1646 | ac_signal=0 |
| 1647 | |
| 1648 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1649 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1650 | |
| 1651 | # Predefined preprocessor variables. |
| 1652 | |
| 1653 | cat >>confdefs.h <<_ACEOF |
| 1654 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1655 | _ACEOF |
| 1656 | |
| 1657 | |
| 1658 | cat >>confdefs.h <<_ACEOF |
| 1659 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1660 | _ACEOF |
| 1661 | |
| 1662 | |
| 1663 | cat >>confdefs.h <<_ACEOF |
| 1664 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1665 | _ACEOF |
| 1666 | |
| 1667 | |
| 1668 | cat >>confdefs.h <<_ACEOF |
| 1669 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1670 | _ACEOF |
| 1671 | |
| 1672 | |
| 1673 | cat >>confdefs.h <<_ACEOF |
| 1674 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1675 | _ACEOF |
| 1676 | |
| 1677 | |
| 1678 | # 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] | 1679 | # Prefer explicitly selected file to automatically selected ones. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1680 | if test -n "$CONFIG_SITE"; then |
| 1681 | set x "$CONFIG_SITE" |
| 1682 | elif test "x$prefix" != xNONE; then |
| 1683 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1684 | else |
| 1685 | set x "$ac_default_prefix/share/config.site" \ |
| 1686 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1687 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1688 | shift |
| 1689 | for ac_site_file |
| 1690 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1691 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1692 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1693 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1694 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1695 | . "$ac_site_file" |
| 1696 | fi |
| 1697 | done |
| 1698 | |
| 1699 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1700 | # Some versions of bash will fail to source /dev/null (special |
| 1701 | # files actually), so we avoid doing that. |
| 1702 | if test -f "$cache_file"; then |
| 1703 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1704 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1705 | case $cache_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1706 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1707 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1708 | esac |
| 1709 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1710 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1711 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1712 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1713 | >$cache_file |
| 1714 | fi |
| 1715 | |
| 1716 | # Check that the precious variables saved in the cache have kept the same |
| 1717 | # value. |
| 1718 | ac_cache_corrupted=false |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1719 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1720 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1721 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1722 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1723 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1724 | case $ac_old_set,$ac_new_set in |
| 1725 | set,) |
| 1726 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1727 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1728 | ac_cache_corrupted=: ;; |
| 1729 | ,set) |
| 1730 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1731 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1732 | ac_cache_corrupted=: ;; |
| 1733 | ,);; |
| 1734 | *) |
| 1735 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1736 | { 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] | 1737 | 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] | 1738 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1739 | echo "$as_me: former value: $ac_old_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1740 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1741 | echo "$as_me: current value: $ac_new_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1742 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1743 | fi;; |
| 1744 | esac |
| 1745 | # Pass precious variables to config.status. |
| 1746 | if test "$ac_new_set" = set; then |
| 1747 | case $ac_new_val in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1748 | *\'*) 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] | 1749 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1750 | esac |
| 1751 | case " $ac_configure_args " in |
| 1752 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1753 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1754 | esac |
| 1755 | fi |
| 1756 | done |
| 1757 | if $ac_cache_corrupted; then |
| 1758 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1759 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1760 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1761 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1762 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1763 | fi |
| 1764 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1765 | |
| 1766 | |
| 1767 | |
| 1768 | |
| 1769 | |
| 1770 | |
| 1771 | |
| 1772 | |
| 1773 | |
| 1774 | |
| 1775 | |
| 1776 | |
| 1777 | |
| 1778 | |
| 1779 | |
| 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1789 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1790 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1791 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1792 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1793 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1794 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1795 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1796 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1797 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1798 | |
| 1799 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1800 | |
| 1801 | |
| 1802 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1803 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1804 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1805 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1806 | # with other autoconf-based packages that include Python.h |
| 1807 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1808 | rm confdefs.h |
| 1809 | mv confdefs.h.new confdefs.h |
| 1810 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1811 | |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 1812 | VERSION=3.0 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1813 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1814 | |
| 1815 | SOVERSION=1.0 |
| 1816 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1817 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1818 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1819 | |
| 1820 | cat >>confdefs.h <<\_ACEOF |
| 1821 | #define _GNU_SOURCE 1 |
| 1822 | _ACEOF |
| 1823 | |
| 1824 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1825 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1826 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1827 | # them. |
| 1828 | |
| 1829 | cat >>confdefs.h <<\_ACEOF |
| 1830 | #define _NETBSD_SOURCE 1 |
| 1831 | _ACEOF |
| 1832 | |
| 1833 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1834 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1835 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1836 | # them. |
| 1837 | |
| 1838 | cat >>confdefs.h <<\_ACEOF |
| 1839 | #define __BSD_VISIBLE 1 |
| 1840 | _ACEOF |
| 1841 | |
| 1842 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1843 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1844 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1845 | |
| 1846 | cat >>confdefs.h <<\_ACEOF |
| 1847 | #define _BSD_TYPES 1 |
| 1848 | _ACEOF |
| 1849 | |
| 1850 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1851 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1852 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1853 | # Arguments passed to configure. |
| 1854 | |
| 1855 | CONFIG_ARGS="$ac_configure_args" |
| 1856 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1857 | # Check whether --enable-universalsdk was given. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1858 | if test "${enable_universalsdk+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1859 | enableval=$enable_universalsdk; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1860 | case $enableval in |
| 1861 | yes) |
| 1862 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1863 | ;; |
| 1864 | esac |
| 1865 | case $enableval in |
| 1866 | no) |
| 1867 | UNIVERSALSDK= |
| 1868 | enable_universalsdk= |
| 1869 | ;; |
| 1870 | *) |
| 1871 | UNIVERSALSDK=$enableval |
| 1872 | ;; |
| 1873 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1874 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1875 | else |
| 1876 | |
| 1877 | UNIVERSALSDK= |
| 1878 | enable_universalsdk= |
| 1879 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1880 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1881 | |
| 1882 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1883 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1884 | |
| 1885 | # Check whether --with-framework-name was given. |
| 1886 | if test "${with_framework_name+set}" = set; then |
| 1887 | withval=$with_framework_name; |
| 1888 | PYTHONFRAMEWORK=${withval} |
| 1889 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 1890 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 1891 | |
| 1892 | else |
| 1893 | |
| 1894 | PYTHONFRAMEWORK=Python |
| 1895 | PYTHONFRAMEWORKDIR=Python.framework |
| 1896 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 1897 | |
| 1898 | fi |
| 1899 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1900 | # Check whether --enable-framework was given. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1901 | if test "${enable_framework+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1902 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1903 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1904 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1905 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1906 | esac |
| 1907 | case $enableval in |
| 1908 | no) |
| 1909 | PYTHONFRAMEWORK= |
| 1910 | PYTHONFRAMEWORKDIR=no-framework |
| 1911 | PYTHONFRAMEWORKPREFIX= |
| 1912 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1913 | FRAMEWORKINSTALLFIRST= |
| 1914 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1915 | FRAMEWORKALTINSTALLFIRST= |
| 1916 | FRAMEWORKALTINSTALLLAST= |
| 1917 | if test "x${prefix}" = "xNONE"; then |
| 1918 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1919 | else |
| 1920 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1921 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1922 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1923 | ;; |
| 1924 | *) |
| 1925 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1926 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1927 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
| 1928 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1929 | FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall" |
| 1930 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
| 1931 | if test "x${prefix}" = "xNONE" ; then |
| 1932 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1933 | else |
| 1934 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1935 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1936 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1937 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1938 | # Add files for Mac specific code to the list of output |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1939 | # files: |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1940 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1941 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1942 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1943 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1944 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1945 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1946 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 1947 | |
| 1948 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 1949 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1950 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1951 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1953 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1954 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1955 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1956 | PYTHONFRAMEWORKPREFIX= |
| 1957 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1958 | FRAMEWORKINSTALLFIRST= |
| 1959 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1960 | FRAMEWORKALTINSTALLFIRST= |
| 1961 | FRAMEWORKALTINSTALLLAST= |
| 1962 | if test "x${prefix}" = "xNONE" ; then |
| 1963 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1964 | else |
| 1965 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1966 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1967 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1968 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1969 | fi |
| 1970 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1971 | |
| 1972 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1973 | |
| 1974 | |
| 1975 | |
| 1976 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1977 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1978 | |
| 1979 | |
| 1980 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 1981 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1982 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1983 | ## AC_HELP_STRING(--with-dyld, |
| 1984 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1985 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1986 | # Set name for machine-dependent library files |
| 1987 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 1988 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1989 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1990 | if test -z "$MACHDEP" |
| 1991 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1992 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1993 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1994 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1995 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1996 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1997 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1998 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1999 | ac_md_system=`echo $ac_sys_system | |
| 2000 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2001 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2002 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2003 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2004 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2005 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2006 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2007 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2008 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2009 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2010 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2011 | esac |
| 2012 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2013 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2014 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2015 | # disable features if it is defined, without any means to access these |
| 2016 | # features as extensions. For these systems, we skip the definition of |
| 2017 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2018 | # some feature, make sure there is no alternative way to access this |
| 2019 | # feature. Also, when using wildcards, make sure you have verified the |
| 2020 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2021 | # wildcard, and that the wildcard does not include future systems |
| 2022 | # (which may remove their limitations). |
| 2023 | case $ac_sys_system/$ac_sys_release in |
| 2024 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2025 | # 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] | 2026 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2027 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0]) |
Christian Heimes | 5b5e81c | 2007-12-31 16:14:33 +0000 | [diff] [blame] | 2028 | define_xopen_source=no |
| 2029 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2030 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2031 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2032 | |
| 2033 | cat >>confdefs.h <<\_ACEOF |
| 2034 | #define _BSD_SOURCE 1 |
| 2035 | _ACEOF |
| 2036 | |
| 2037 | ;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2038 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2039 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2040 | # Marc Recht |
| 2041 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2042 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2043 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2044 | # of union __?sigval. Reported by Stuart Bishop. |
| 2045 | SunOS/5.6) |
| 2046 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2047 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2048 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2049 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2050 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2051 | define_xopen_source=no;; |
| 2052 | # 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] | 2053 | # 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] | 2054 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2055 | define_xopen_source=no;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2056 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 2057 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 2058 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 2059 | # This should hopefully be fixed in FreeBSD 4.9 |
| 2060 | FreeBSD/4.8* | Darwin/6* ) |
| 2061 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2062 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2063 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2064 | # 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] | 2065 | AIX/4) |
| 2066 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2067 | AIX/5) |
| 2068 | if test `uname -r` -eq 1; then |
| 2069 | define_xopen_source=no |
| 2070 | fi |
| 2071 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2072 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2073 | # disables platform specific features beyond repair. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 2074 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 2075 | # has no effect, don't bother defining them |
| 2076 | Darwin/[789].*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2077 | define_xopen_source=no |
| 2078 | ;; |
| 2079 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2080 | esac |
| 2081 | |
| 2082 | if test $define_xopen_source = yes |
| 2083 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2084 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2085 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2086 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2087 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2088 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2089 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2090 | |
| 2091 | cat >>confdefs.h <<\_ACEOF |
| 2092 | #define _XOPEN_SOURCE 500 |
| 2093 | _ACEOF |
| 2094 | |
| 2095 | ;; |
| 2096 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2097 | |
| 2098 | cat >>confdefs.h <<\_ACEOF |
| 2099 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2100 | _ACEOF |
| 2101 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2102 | ;; |
| 2103 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2104 | |
| 2105 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2106 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2107 | # several APIs are not declared. Since this is also needed in some |
| 2108 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2109 | # except for Solaris 10, where it must not be defined, |
| 2110 | # as it implies XPG4.2 |
| 2111 | case $ac_sys_system/$ac_sys_release in |
| 2112 | SunOS/5.10) |
| 2113 | ;; |
| 2114 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2115 | |
| 2116 | cat >>confdefs.h <<\_ACEOF |
| 2117 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2118 | _ACEOF |
| 2119 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2120 | ;; |
| 2121 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2122 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2123 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2124 | cat >>confdefs.h <<\_ACEOF |
| 2125 | #define _POSIX_C_SOURCE 200112L |
| 2126 | _ACEOF |
| 2127 | |
| 2128 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2129 | fi |
| 2130 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2131 | # |
| 2132 | # SGI compilers allow the specification of the both the ABI and the |
| 2133 | # ISA on the command line. Depending on the values of these switches, |
| 2134 | # different and often incompatable code will be generated. |
| 2135 | # |
| 2136 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2137 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2138 | # variable is also adjusted. |
| 2139 | # |
| 2140 | |
| 2141 | if test ! -z "$SGI_ABI" |
| 2142 | then |
| 2143 | CC="cc $SGI_ABI" |
| 2144 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2145 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2146 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2147 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2148 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2149 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2150 | # And add extra plat-mac for darwin |
| 2151 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2152 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2153 | { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2154 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2155 | if test -z "$EXTRAPLATDIR" |
| 2156 | then |
| 2157 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2158 | darwin) |
| 2159 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2160 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2161 | ;; |
| 2162 | *) |
| 2163 | EXTRAPLATDIR="" |
| 2164 | EXTRAMACHDEPPATH="" |
| 2165 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2166 | esac |
| 2167 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2168 | { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2169 | echo "${ECHO_T}$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2170 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2171 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2172 | # it may influence the way we can build extensions, so distutils |
| 2173 | # needs to check it |
| 2174 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2175 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2176 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2177 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2178 | |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 2179 | { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2180 | echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; } |
| 2181 | ac_sys_machine=`uname -m` |
| 2182 | { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2183 | echo "${ECHO_T}$ac_sys_machine" >&6; } |
| 2184 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2185 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2186 | |
| 2187 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2188 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2189 | # just to get things to compile and link. Users are free to override OPT |
| 2190 | # when running configure or make. The build should not break if they do. |
| 2191 | # BASECFLAGS should generally not be messed with, however. |
| 2192 | |
| 2193 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2194 | # on that fiddles with OPT and BASECFLAGS? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2195 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2196 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2197 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2198 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2199 | if test "${with_gcc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2200 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2201 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2202 | no) CC=cc |
| 2203 | without_gcc=yes;; |
| 2204 | yes) CC=gcc |
| 2205 | without_gcc=no;; |
| 2206 | *) CC=$withval |
| 2207 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2208 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2209 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2210 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2211 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2212 | AIX*) CC=cc_r |
| 2213 | without_gcc=;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2214 | Monterey*) |
| 2215 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2216 | without_gcc=;; |
| 2217 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2218 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2219 | fi |
| 2220 | |
| 2221 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2222 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2223 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2224 | # If the user switches compilers, we can't believe the cache |
| 2225 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2226 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2227 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 2228 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 2229 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 2230 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2231 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2232 | fi |
| 2233 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2234 | ac_ext=c |
| 2235 | ac_cpp='$CPP $CPPFLAGS' |
| 2236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2239 | if test -n "$ac_tool_prefix"; then |
| 2240 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2241 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2242 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2243 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2244 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2246 | else |
| 2247 | if test -n "$CC"; then |
| 2248 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2249 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2251 | for as_dir in $PATH |
| 2252 | do |
| 2253 | IFS=$as_save_IFS |
| 2254 | test -z "$as_dir" && as_dir=. |
| 2255 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2256 | 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] | 2257 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2258 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2259 | break 2 |
| 2260 | fi |
| 2261 | done |
| 2262 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2263 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2264 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2265 | fi |
| 2266 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2267 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2268 | if test -n "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2269 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2270 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2271 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2272 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2273 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2274 | fi |
| 2275 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2277 | fi |
| 2278 | if test -z "$ac_cv_prog_CC"; then |
| 2279 | ac_ct_CC=$CC |
| 2280 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2281 | set dummy gcc; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2282 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2284 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2286 | else |
| 2287 | if test -n "$ac_ct_CC"; then |
| 2288 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2289 | else |
| 2290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2291 | for as_dir in $PATH |
| 2292 | do |
| 2293 | IFS=$as_save_IFS |
| 2294 | test -z "$as_dir" && as_dir=. |
| 2295 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2296 | 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] | 2297 | ac_cv_prog_ac_ct_CC="gcc" |
| 2298 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2299 | break 2 |
| 2300 | fi |
| 2301 | done |
| 2302 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2303 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2304 | |
| 2305 | fi |
| 2306 | fi |
| 2307 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2308 | if test -n "$ac_ct_CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2309 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2310 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2311 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2312 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2313 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2314 | fi |
| 2315 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2316 | if test "x$ac_ct_CC" = x; then |
| 2317 | CC="" |
| 2318 | else |
| 2319 | case $cross_compiling:$ac_tool_warned in |
| 2320 | yes:) |
| 2321 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2322 | whose name does not start with the host triplet. If you think this |
| 2323 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2324 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2325 | whose name does not start with the host triplet. If you think this |
| 2326 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2327 | ac_tool_warned=yes ;; |
| 2328 | esac |
| 2329 | CC=$ac_ct_CC |
| 2330 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2331 | else |
| 2332 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2333 | fi |
| 2334 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2335 | if test -z "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2336 | if test -n "$ac_tool_prefix"; then |
| 2337 | # 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] | 2338 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2339 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2341 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2343 | else |
| 2344 | if test -n "$CC"; then |
| 2345 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2346 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2348 | for as_dir in $PATH |
| 2349 | do |
| 2350 | IFS=$as_save_IFS |
| 2351 | test -z "$as_dir" && as_dir=. |
| 2352 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2353 | 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] | 2354 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2356 | break 2 |
| 2357 | fi |
| 2358 | done |
| 2359 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2360 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2361 | |
| 2362 | fi |
| 2363 | fi |
| 2364 | CC=$ac_cv_prog_CC |
| 2365 | if test -n "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2366 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2367 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2368 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2369 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2370 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2371 | fi |
| 2372 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2373 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2374 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2375 | fi |
| 2376 | if test -z "$CC"; then |
| 2377 | # Extract the first word of "cc", so it can be a program name with args. |
| 2378 | set dummy cc; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2379 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2381 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2383 | else |
| 2384 | if test -n "$CC"; then |
| 2385 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2386 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2387 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2389 | for as_dir in $PATH |
| 2390 | do |
| 2391 | IFS=$as_save_IFS |
| 2392 | test -z "$as_dir" && as_dir=. |
| 2393 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2394 | 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] | 2395 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2396 | ac_prog_rejected=yes |
| 2397 | continue |
| 2398 | fi |
| 2399 | ac_cv_prog_CC="cc" |
| 2400 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2401 | break 2 |
| 2402 | fi |
| 2403 | done |
| 2404 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2405 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2406 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2407 | if test $ac_prog_rejected = yes; then |
| 2408 | # We found a bogon in the path, so make sure we never use it. |
| 2409 | set dummy $ac_cv_prog_CC |
| 2410 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2411 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2412 | # We chose a different compiler from the bogus one. |
| 2413 | # However, it has the same basename, so the bogon will be chosen |
| 2414 | # first if we set CC to just the basename; use the full file name. |
| 2415 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2416 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2417 | fi |
| 2418 | fi |
| 2419 | fi |
| 2420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2421 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2422 | if test -n "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2423 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2424 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2425 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2426 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2427 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2428 | fi |
| 2429 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2431 | fi |
| 2432 | if test -z "$CC"; then |
| 2433 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2434 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2435 | do |
| 2436 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2437 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2438 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2440 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2442 | else |
| 2443 | if test -n "$CC"; then |
| 2444 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2445 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2447 | for as_dir in $PATH |
| 2448 | do |
| 2449 | IFS=$as_save_IFS |
| 2450 | test -z "$as_dir" && as_dir=. |
| 2451 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2452 | 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] | 2453 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2454 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2455 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2456 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2457 | done |
| 2458 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2459 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2460 | |
| 2461 | fi |
| 2462 | fi |
| 2463 | CC=$ac_cv_prog_CC |
| 2464 | if test -n "$CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2465 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2466 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2467 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2468 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2469 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2470 | fi |
| 2471 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2473 | test -n "$CC" && break |
| 2474 | done |
| 2475 | fi |
| 2476 | if test -z "$CC"; then |
| 2477 | ac_ct_CC=$CC |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2478 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2479 | do |
| 2480 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2481 | set dummy $ac_prog; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2482 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2483 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2484 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2486 | else |
| 2487 | if test -n "$ac_ct_CC"; then |
| 2488 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2489 | else |
| 2490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2491 | for as_dir in $PATH |
| 2492 | do |
| 2493 | IFS=$as_save_IFS |
| 2494 | test -z "$as_dir" && as_dir=. |
| 2495 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2496 | 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] | 2497 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2498 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2499 | break 2 |
| 2500 | fi |
| 2501 | done |
| 2502 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2503 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2504 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2505 | fi |
| 2506 | fi |
| 2507 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2508 | if test -n "$ac_ct_CC"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2509 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2510 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2511 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2512 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2513 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2514 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2515 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2516 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2517 | test -n "$ac_ct_CC" && break |
| 2518 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2519 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2520 | if test "x$ac_ct_CC" = x; then |
| 2521 | CC="" |
| 2522 | else |
| 2523 | case $cross_compiling:$ac_tool_warned in |
| 2524 | yes:) |
| 2525 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2526 | whose name does not start with the host triplet. If you think this |
| 2527 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2528 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2529 | whose name does not start with the host triplet. If you think this |
| 2530 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2531 | ac_tool_warned=yes ;; |
| 2532 | esac |
| 2533 | CC=$ac_ct_CC |
| 2534 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | fi |
| 2536 | |
| 2537 | fi |
| 2538 | |
| 2539 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2540 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2541 | See \`config.log' for more details." >&5 |
| 2542 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2543 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2544 | { (exit 1); exit 1; }; } |
| 2545 | |
| 2546 | # Provide some information about the compiler. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2547 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2548 | ac_compiler=`set X $ac_compile; echo $2` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2549 | { (ac_try="$ac_compiler --version >&5" |
| 2550 | case "(($ac_try" in |
| 2551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2552 | *) ac_try_echo=$ac_try;; |
| 2553 | esac |
| 2554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2555 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2556 | ac_status=$? |
| 2557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2558 | (exit $ac_status); } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2559 | { (ac_try="$ac_compiler -v >&5" |
| 2560 | case "(($ac_try" in |
| 2561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2562 | *) ac_try_echo=$ac_try;; |
| 2563 | esac |
| 2564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2565 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2566 | ac_status=$? |
| 2567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2568 | (exit $ac_status); } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2569 | { (ac_try="$ac_compiler -V >&5" |
| 2570 | case "(($ac_try" in |
| 2571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2572 | *) ac_try_echo=$ac_try;; |
| 2573 | esac |
| 2574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2575 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2576 | ac_status=$? |
| 2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2578 | (exit $ac_status); } |
| 2579 | |
| 2580 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2581 | /* confdefs.h. */ |
| 2582 | _ACEOF |
| 2583 | cat confdefs.h >>conftest.$ac_ext |
| 2584 | cat >>conftest.$ac_ext <<_ACEOF |
| 2585 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2587 | int |
| 2588 | main () |
| 2589 | { |
| 2590 | |
| 2591 | ; |
| 2592 | return 0; |
| 2593 | } |
| 2594 | _ACEOF |
| 2595 | ac_clean_files_save=$ac_clean_files |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2596 | 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] | 2597 | # Try to create an executable without -o first, disregard a.out. |
| 2598 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2599 | # of exeext. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2600 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2601 | 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] | 2602 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2603 | # |
| 2604 | # List of possible output files, starting from the most likely. |
| 2605 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2606 | # only as a last resort. b.out is created by i960 compilers. |
| 2607 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2608 | # |
| 2609 | # The IRIX 6 linker writes into existing files which may not be |
| 2610 | # executable, retaining their permissions. Remove them first so a |
| 2611 | # subsequent execution test works. |
| 2612 | ac_rmfiles= |
| 2613 | for ac_file in $ac_files |
| 2614 | do |
| 2615 | case $ac_file in |
| 2616 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2617 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2618 | esac |
| 2619 | done |
| 2620 | rm -f $ac_rmfiles |
| 2621 | |
| 2622 | if { (ac_try="$ac_link_default" |
| 2623 | case "(($ac_try" in |
| 2624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2625 | *) ac_try_echo=$ac_try;; |
| 2626 | esac |
| 2627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2628 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2629 | ac_status=$? |
| 2630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2631 | (exit $ac_status); }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2632 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2633 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2634 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2635 | # so that the user can short-circuit this test for compilers unknown to |
| 2636 | # Autoconf. |
| 2637 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2638 | do |
| 2639 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2640 | case $ac_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2641 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2642 | ;; |
| 2643 | [ab].out ) |
| 2644 | # We found the default executable, but exeext='' is most |
| 2645 | # certainly right. |
| 2646 | break;; |
| 2647 | *.* ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2648 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2649 | then :; else |
| 2650 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2651 | fi |
| 2652 | # We set ac_cv_exeext here because the later test for it is not |
| 2653 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2654 | # argument, so we may need to know it at that point already. |
| 2655 | # Even if this section looks crufty: it has the advantage of |
| 2656 | # actually working. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2657 | break;; |
| 2658 | * ) |
| 2659 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2660 | esac |
| 2661 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2662 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2663 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2664 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2665 | ac_file='' |
| 2666 | fi |
| 2667 | |
| 2668 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2669 | echo "${ECHO_T}$ac_file" >&6; } |
| 2670 | if test -z "$ac_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2671 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2673 | |
| 2674 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2675 | See \`config.log' for more details." >&5 |
| 2676 | echo "$as_me: error: C compiler cannot create executables |
| 2677 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2678 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2679 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2680 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2681 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2682 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2683 | # 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] | 2684 | # the compiler is broken, or we cross compile. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2685 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2686 | 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] | 2687 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2688 | # If not cross compiling, check that we can run a simple program. |
| 2689 | if test "$cross_compiling" != yes; then |
| 2690 | if { ac_try='./$ac_file' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2691 | { (case "(($ac_try" in |
| 2692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2693 | *) ac_try_echo=$ac_try;; |
| 2694 | esac |
| 2695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2696 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2697 | ac_status=$? |
| 2698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2699 | (exit $ac_status); }; }; then |
| 2700 | cross_compiling=no |
| 2701 | else |
| 2702 | if test "$cross_compiling" = maybe; then |
| 2703 | cross_compiling=yes |
| 2704 | else |
| 2705 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2706 | If you meant to cross compile, use \`--host'. |
| 2707 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2708 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2709 | If you meant to cross compile, use \`--host'. |
| 2710 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2711 | { (exit 1); exit 1; }; } |
| 2712 | fi |
| 2713 | fi |
| 2714 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2715 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2716 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2717 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2718 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2719 | ac_clean_files=$ac_clean_files_save |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2720 | # Check that the compiler produces executables we can run. If not, either |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2721 | # the compiler is broken, or we cross compile. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2722 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2723 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2724 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2725 | echo "${ECHO_T}$cross_compiling" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2726 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2727 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2728 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2729 | if { (ac_try="$ac_link" |
| 2730 | case "(($ac_try" in |
| 2731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2732 | *) ac_try_echo=$ac_try;; |
| 2733 | esac |
| 2734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2735 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2736 | ac_status=$? |
| 2737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2738 | (exit $ac_status); }; then |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2739 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2740 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2741 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2742 | # `rm'. |
| 2743 | for ac_file in conftest.exe conftest conftest.*; do |
| 2744 | test -f "$ac_file" || continue |
| 2745 | case $ac_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2746 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2747 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2748 | break;; |
| 2749 | * ) break;; |
| 2750 | esac |
| 2751 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2752 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2753 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2754 | See \`config.log' for more details." >&5 |
| 2755 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2756 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2757 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2758 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2759 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2760 | rm -f conftest$ac_cv_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2761 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2762 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2763 | |
| 2764 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2765 | EXEEXT=$ac_cv_exeext |
| 2766 | ac_exeext=$EXEEXT |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2767 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2768 | 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] | 2769 | if test "${ac_cv_objext+set}" = set; then |
| 2770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2771 | else |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2772 | cat >conftest.$ac_ext <<_ACEOF |
| 2773 | /* confdefs.h. */ |
| 2774 | _ACEOF |
| 2775 | cat confdefs.h >>conftest.$ac_ext |
| 2776 | cat >>conftest.$ac_ext <<_ACEOF |
| 2777 | /* end confdefs.h. */ |
| 2778 | |
| 2779 | int |
| 2780 | main () |
| 2781 | { |
| 2782 | |
| 2783 | ; |
| 2784 | return 0; |
| 2785 | } |
| 2786 | _ACEOF |
| 2787 | rm -f conftest.o conftest.obj |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2788 | if { (ac_try="$ac_compile" |
| 2789 | case "(($ac_try" in |
| 2790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2791 | *) ac_try_echo=$ac_try;; |
| 2792 | esac |
| 2793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2794 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2795 | ac_status=$? |
| 2796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2797 | (exit $ac_status); }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2798 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2799 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2800 | case $ac_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2801 | *.$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] | 2802 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2803 | break;; |
| 2804 | esac |
| 2805 | done |
| 2806 | else |
| 2807 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2809 | |
| 2810 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2811 | See \`config.log' for more details." >&5 |
| 2812 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2813 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2814 | { (exit 1); exit 1; }; } |
| 2815 | fi |
| 2816 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2817 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2818 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2819 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2820 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2821 | OBJEXT=$ac_cv_objext |
| 2822 | ac_objext=$OBJEXT |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2823 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2824 | 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] | 2825 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2827 | else |
| 2828 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2829 | /* confdefs.h. */ |
| 2830 | _ACEOF |
| 2831 | cat confdefs.h >>conftest.$ac_ext |
| 2832 | cat >>conftest.$ac_ext <<_ACEOF |
| 2833 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2835 | int |
| 2836 | main () |
| 2837 | { |
| 2838 | #ifndef __GNUC__ |
| 2839 | choke me |
| 2840 | #endif |
| 2841 | |
| 2842 | ; |
| 2843 | return 0; |
| 2844 | } |
| 2845 | _ACEOF |
| 2846 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2847 | if { (ac_try="$ac_compile" |
| 2848 | case "(($ac_try" in |
| 2849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2850 | *) ac_try_echo=$ac_try;; |
| 2851 | esac |
| 2852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2853 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2854 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2856 | rm -f conftest.er1 |
| 2857 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2859 | (exit $ac_status); } && { |
| 2860 | test -z "$ac_c_werror_flag" || |
| 2861 | test ! -s conftest.err |
| 2862 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2863 | ac_compiler_gnu=yes |
| 2864 | else |
| 2865 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2867 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2868 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2869 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2870 | |
| 2871 | 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] | 2872 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2873 | |
| 2874 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2875 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2876 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2877 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2878 | ac_test_CFLAGS=${CFLAGS+set} |
| 2879 | ac_save_CFLAGS=$CFLAGS |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2880 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2881 | 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] | 2882 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2884 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2885 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2886 | ac_c_werror_flag=yes |
| 2887 | ac_cv_prog_cc_g=no |
| 2888 | CFLAGS="-g" |
| 2889 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2890 | /* confdefs.h. */ |
| 2891 | _ACEOF |
| 2892 | cat confdefs.h >>conftest.$ac_ext |
| 2893 | cat >>conftest.$ac_ext <<_ACEOF |
| 2894 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2896 | int |
| 2897 | main () |
| 2898 | { |
| 2899 | |
| 2900 | ; |
| 2901 | return 0; |
| 2902 | } |
| 2903 | _ACEOF |
| 2904 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2905 | if { (ac_try="$ac_compile" |
| 2906 | case "(($ac_try" in |
| 2907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2908 | *) ac_try_echo=$ac_try;; |
| 2909 | esac |
| 2910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2911 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2912 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2914 | rm -f conftest.er1 |
| 2915 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2917 | (exit $ac_status); } && { |
| 2918 | test -z "$ac_c_werror_flag" || |
| 2919 | test ! -s conftest.err |
| 2920 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2921 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2922 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2923 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2925 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 2926 | CFLAGS="" |
| 2927 | cat >conftest.$ac_ext <<_ACEOF |
| 2928 | /* confdefs.h. */ |
| 2929 | _ACEOF |
| 2930 | cat confdefs.h >>conftest.$ac_ext |
| 2931 | cat >>conftest.$ac_ext <<_ACEOF |
| 2932 | /* end confdefs.h. */ |
| 2933 | |
| 2934 | int |
| 2935 | main () |
| 2936 | { |
| 2937 | |
| 2938 | ; |
| 2939 | return 0; |
| 2940 | } |
| 2941 | _ACEOF |
| 2942 | rm -f conftest.$ac_objext |
| 2943 | if { (ac_try="$ac_compile" |
| 2944 | case "(($ac_try" in |
| 2945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2946 | *) ac_try_echo=$ac_try;; |
| 2947 | esac |
| 2948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2949 | (eval "$ac_compile") 2>conftest.er1 |
| 2950 | ac_status=$? |
| 2951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2952 | rm -f conftest.er1 |
| 2953 | cat conftest.err >&5 |
| 2954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2955 | (exit $ac_status); } && { |
| 2956 | test -z "$ac_c_werror_flag" || |
| 2957 | test ! -s conftest.err |
| 2958 | } && test -s conftest.$ac_objext; then |
| 2959 | : |
| 2960 | else |
| 2961 | echo "$as_me: failed program was:" >&5 |
| 2962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2963 | |
| 2964 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2965 | CFLAGS="-g" |
| 2966 | cat >conftest.$ac_ext <<_ACEOF |
| 2967 | /* confdefs.h. */ |
| 2968 | _ACEOF |
| 2969 | cat confdefs.h >>conftest.$ac_ext |
| 2970 | cat >>conftest.$ac_ext <<_ACEOF |
| 2971 | /* end confdefs.h. */ |
| 2972 | |
| 2973 | int |
| 2974 | main () |
| 2975 | { |
| 2976 | |
| 2977 | ; |
| 2978 | return 0; |
| 2979 | } |
| 2980 | _ACEOF |
| 2981 | rm -f conftest.$ac_objext |
| 2982 | if { (ac_try="$ac_compile" |
| 2983 | case "(($ac_try" in |
| 2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2985 | *) ac_try_echo=$ac_try;; |
| 2986 | esac |
| 2987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2988 | (eval "$ac_compile") 2>conftest.er1 |
| 2989 | ac_status=$? |
| 2990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2991 | rm -f conftest.er1 |
| 2992 | cat conftest.err >&5 |
| 2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2994 | (exit $ac_status); } && { |
| 2995 | test -z "$ac_c_werror_flag" || |
| 2996 | test ! -s conftest.err |
| 2997 | } && test -s conftest.$ac_objext; then |
| 2998 | ac_cv_prog_cc_g=yes |
| 2999 | else |
| 3000 | echo "$as_me: failed program was:" >&5 |
| 3001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3002 | |
| 3003 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3004 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3005 | |
| 3006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3007 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3008 | |
| 3009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3010 | fi |
| 3011 | |
| 3012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3013 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3014 | fi |
| 3015 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3016 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3017 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3018 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3019 | elif test $ac_cv_prog_cc_g = yes; then |
| 3020 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3021 | CFLAGS="-g -O2" |
| 3022 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3023 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3024 | fi |
| 3025 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3026 | if test "$GCC" = yes; then |
| 3027 | CFLAGS="-O2" |
| 3028 | else |
| 3029 | CFLAGS= |
| 3030 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3031 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3032 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3033 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3034 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3036 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3037 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3038 | ac_save_CC=$CC |
| 3039 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3040 | /* confdefs.h. */ |
| 3041 | _ACEOF |
| 3042 | cat confdefs.h >>conftest.$ac_ext |
| 3043 | cat >>conftest.$ac_ext <<_ACEOF |
| 3044 | /* end confdefs.h. */ |
| 3045 | #include <stdarg.h> |
| 3046 | #include <stdio.h> |
| 3047 | #include <sys/types.h> |
| 3048 | #include <sys/stat.h> |
| 3049 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3050 | struct buf { int x; }; |
| 3051 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3052 | static char *e (p, i) |
| 3053 | char **p; |
| 3054 | int i; |
| 3055 | { |
| 3056 | return p[i]; |
| 3057 | } |
| 3058 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3059 | { |
| 3060 | char *s; |
| 3061 | va_list v; |
| 3062 | va_start (v,p); |
| 3063 | s = g (p, va_arg (v,int)); |
| 3064 | va_end (v); |
| 3065 | return s; |
| 3066 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3067 | |
| 3068 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3069 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3070 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3071 | 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] | 3072 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3073 | array size at least. It's necessary to write '\x00'==0 to get something |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3074 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3075 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3076 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3077 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3078 | inside strings and character constants. */ |
| 3079 | #define FOO(x) 'x' |
| 3080 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3081 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3082 | int test (int i, double x); |
| 3083 | struct s1 {int (*f) (int a);}; |
| 3084 | struct s2 {int (*f) (double a);}; |
| 3085 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3086 | int argc; |
| 3087 | char **argv; |
| 3088 | int |
| 3089 | main () |
| 3090 | { |
| 3091 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3092 | ; |
| 3093 | return 0; |
| 3094 | } |
| 3095 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3096 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3097 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3098 | do |
| 3099 | CC="$ac_save_CC $ac_arg" |
| 3100 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3101 | if { (ac_try="$ac_compile" |
| 3102 | case "(($ac_try" in |
| 3103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3104 | *) ac_try_echo=$ac_try;; |
| 3105 | esac |
| 3106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3107 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3108 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3110 | rm -f conftest.er1 |
| 3111 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3113 | (exit $ac_status); } && { |
| 3114 | test -z "$ac_c_werror_flag" || |
| 3115 | test ! -s conftest.err |
| 3116 | } && test -s conftest.$ac_objext; then |
| 3117 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3118 | else |
| 3119 | echo "$as_me: failed program was:" >&5 |
| 3120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3121 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3122 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3123 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3124 | |
| 3125 | rm -f core conftest.err conftest.$ac_objext |
| 3126 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3127 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3128 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3129 | CC=$ac_save_CC |
| 3130 | |
| 3131 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3132 | # AC_CACHE_VAL |
| 3133 | case "x$ac_cv_prog_cc_c89" in |
| 3134 | x) |
| 3135 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3136 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3137 | xno) |
| 3138 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3139 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3140 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3141 | CC="$CC $ac_cv_prog_cc_c89" |
| 3142 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3143 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3144 | esac |
| 3145 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3147 | ac_ext=c |
| 3148 | ac_cpp='$CPP $CPPFLAGS' |
| 3149 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3150 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3151 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3152 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3153 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3154 | |
| 3155 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3156 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3157 | echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3158 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3159 | # Check whether --with-cxx_main was given. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3160 | if test "${with_cxx_main+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3161 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3162 | |
| 3163 | case $withval in |
| 3164 | no) with_cxx_main=no |
| 3165 | MAINCC='$(CC)';; |
| 3166 | yes) with_cxx_main=yes |
| 3167 | MAINCC='$(CXX)';; |
| 3168 | *) with_cxx_main=yes |
| 3169 | MAINCC=$withval |
| 3170 | if test -z "$CXX" |
| 3171 | then |
| 3172 | CXX=$withval |
| 3173 | fi;; |
| 3174 | esac |
| 3175 | else |
| 3176 | |
| 3177 | with_cxx_main=no |
| 3178 | MAINCC='$(CC)' |
| 3179 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3180 | fi |
| 3181 | |
| 3182 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3183 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3184 | |
| 3185 | preset_cxx="$CXX" |
| 3186 | if test -z "$CXX" |
| 3187 | then |
| 3188 | case "$CC" in |
| 3189 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3190 | set dummy g++; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3191 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3193 | if test "${ac_cv_path_CXX+set}" = set; then |
| 3194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3195 | else |
| 3196 | case $CXX in |
| 3197 | [\\/]* | ?:[\\/]*) |
| 3198 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3199 | ;; |
| 3200 | *) |
| 3201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3202 | for as_dir in notfound |
| 3203 | do |
| 3204 | IFS=$as_save_IFS |
| 3205 | test -z "$as_dir" && as_dir=. |
| 3206 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3207 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3208 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 3209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3210 | break 2 |
| 3211 | fi |
| 3212 | done |
| 3213 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3214 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3215 | |
| 3216 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3217 | ;; |
| 3218 | esac |
| 3219 | fi |
| 3220 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3221 | if test -n "$CXX"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3222 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3223 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3224 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3225 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3226 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3227 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3228 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3229 | ;; |
| 3230 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3231 | set dummy c++; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3232 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3233 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3234 | if test "${ac_cv_path_CXX+set}" = set; then |
| 3235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3236 | else |
| 3237 | case $CXX in |
| 3238 | [\\/]* | ?:[\\/]*) |
| 3239 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3240 | ;; |
| 3241 | *) |
| 3242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3243 | for as_dir in notfound |
| 3244 | do |
| 3245 | IFS=$as_save_IFS |
| 3246 | test -z "$as_dir" && as_dir=. |
| 3247 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3248 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3249 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 3250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3251 | break 2 |
| 3252 | fi |
| 3253 | done |
| 3254 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3255 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3256 | |
| 3257 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3258 | ;; |
| 3259 | esac |
| 3260 | fi |
| 3261 | CXX=$ac_cv_path_CXX |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3262 | if test -n "$CXX"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3263 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3264 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3265 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3266 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3267 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 3268 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3269 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3270 | ;; |
| 3271 | esac |
| 3272 | if test "$CXX" = "notfound" |
| 3273 | then |
| 3274 | CXX="" |
| 3275 | fi |
| 3276 | fi |
| 3277 | if test -z "$CXX" |
| 3278 | then |
| 3279 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3280 | do |
| 3281 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3282 | set dummy $ac_prog; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3283 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3285 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3287 | else |
| 3288 | if test -n "$CXX"; then |
| 3289 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3290 | else |
| 3291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3292 | for as_dir in $PATH |
| 3293 | do |
| 3294 | IFS=$as_save_IFS |
| 3295 | test -z "$as_dir" && as_dir=. |
| 3296 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3297 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3298 | ac_cv_prog_CXX="$ac_prog" |
| 3299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3300 | break 2 |
| 3301 | fi |
| 3302 | done |
| 3303 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3304 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3305 | |
| 3306 | fi |
| 3307 | fi |
| 3308 | CXX=$ac_cv_prog_CXX |
| 3309 | if test -n "$CXX"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3310 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3311 | echo "${ECHO_T}$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3312 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3313 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3314 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3315 | fi |
| 3316 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3317 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3318 | test -n "$CXX" && break |
| 3319 | done |
| 3320 | test -n "$CXX" || CXX="notfound" |
| 3321 | |
| 3322 | if test "$CXX" = "notfound" |
| 3323 | then |
| 3324 | CXX="" |
| 3325 | fi |
| 3326 | fi |
| 3327 | if test "$preset_cxx" != "$CXX" |
| 3328 | then |
| 3329 | { echo "$as_me:$LINENO: WARNING: |
| 3330 | |
| 3331 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3332 | If this is not intended, then set CXX on the configure command line. |
| 3333 | " >&5 |
| 3334 | echo "$as_me: WARNING: |
| 3335 | |
| 3336 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3337 | If this is not intended, then set CXX on the configure command line. |
| 3338 | " >&2;} |
| 3339 | fi |
| 3340 | |
| 3341 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3342 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3343 | |
| 3344 | ac_ext=c |
| 3345 | ac_cpp='$CPP $CPPFLAGS' |
| 3346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3349 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3350 | 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] | 3351 | # On Suns, sometimes $CPP names a directory. |
| 3352 | if test -n "$CPP" && test -d "$CPP"; then |
| 3353 | CPP= |
| 3354 | fi |
| 3355 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3356 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3358 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3359 | # Double quotes because CPP needs to be expanded |
| 3360 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3361 | do |
| 3362 | ac_preproc_ok=false |
| 3363 | for ac_c_preproc_warn_flag in '' yes |
| 3364 | do |
| 3365 | # Use a header file that comes with gcc, so configuring glibc |
| 3366 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3367 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3368 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3369 | # 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] | 3370 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3371 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3372 | /* confdefs.h. */ |
| 3373 | _ACEOF |
| 3374 | cat confdefs.h >>conftest.$ac_ext |
| 3375 | cat >>conftest.$ac_ext <<_ACEOF |
| 3376 | /* end confdefs.h. */ |
| 3377 | #ifdef __STDC__ |
| 3378 | # include <limits.h> |
| 3379 | #else |
| 3380 | # include <assert.h> |
| 3381 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3382 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3383 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3384 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3385 | case "(($ac_try" in |
| 3386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3387 | *) ac_try_echo=$ac_try;; |
| 3388 | esac |
| 3389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3390 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3391 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3392 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3393 | rm -f conftest.er1 |
| 3394 | cat conftest.err >&5 |
| 3395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3396 | (exit $ac_status); } >/dev/null && { |
| 3397 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3398 | test ! -s conftest.err |
| 3399 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3400 | : |
| 3401 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3402 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3404 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3405 | # Broken: fails on valid input. |
| 3406 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3407 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3409 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3410 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3411 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3412 | # can be detected and how. |
| 3413 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3414 | /* confdefs.h. */ |
| 3415 | _ACEOF |
| 3416 | cat confdefs.h >>conftest.$ac_ext |
| 3417 | cat >>conftest.$ac_ext <<_ACEOF |
| 3418 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3419 | #include <ac_nonexistent.h> |
| 3420 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3421 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3422 | case "(($ac_try" in |
| 3423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3424 | *) ac_try_echo=$ac_try;; |
| 3425 | esac |
| 3426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3427 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3428 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3429 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3430 | rm -f conftest.er1 |
| 3431 | cat conftest.err >&5 |
| 3432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3433 | (exit $ac_status); } >/dev/null && { |
| 3434 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3435 | test ! -s conftest.err |
| 3436 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3437 | # Broken: success on invalid input. |
| 3438 | continue |
| 3439 | else |
| 3440 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3443 | # Passes both tests. |
| 3444 | ac_preproc_ok=: |
| 3445 | break |
| 3446 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3447 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3448 | rm -f conftest.err conftest.$ac_ext |
| 3449 | |
| 3450 | done |
| 3451 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3452 | rm -f conftest.err conftest.$ac_ext |
| 3453 | if $ac_preproc_ok; then |
| 3454 | break |
| 3455 | fi |
| 3456 | |
| 3457 | done |
| 3458 | ac_cv_prog_CPP=$CPP |
| 3459 | |
| 3460 | fi |
| 3461 | CPP=$ac_cv_prog_CPP |
| 3462 | else |
| 3463 | ac_cv_prog_CPP=$CPP |
| 3464 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3465 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3466 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3467 | ac_preproc_ok=false |
| 3468 | for ac_c_preproc_warn_flag in '' yes |
| 3469 | do |
| 3470 | # Use a header file that comes with gcc, so configuring glibc |
| 3471 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3472 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3473 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3474 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3475 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3477 | /* confdefs.h. */ |
| 3478 | _ACEOF |
| 3479 | cat confdefs.h >>conftest.$ac_ext |
| 3480 | cat >>conftest.$ac_ext <<_ACEOF |
| 3481 | /* end confdefs.h. */ |
| 3482 | #ifdef __STDC__ |
| 3483 | # include <limits.h> |
| 3484 | #else |
| 3485 | # include <assert.h> |
| 3486 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3487 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3488 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3489 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3490 | case "(($ac_try" in |
| 3491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3492 | *) ac_try_echo=$ac_try;; |
| 3493 | esac |
| 3494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3495 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3496 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3497 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3498 | rm -f conftest.er1 |
| 3499 | cat conftest.err >&5 |
| 3500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3501 | (exit $ac_status); } >/dev/null && { |
| 3502 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3503 | test ! -s conftest.err |
| 3504 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3505 | : |
| 3506 | else |
| 3507 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3510 | # Broken: fails on valid input. |
| 3511 | continue |
| 3512 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3514 | rm -f conftest.err conftest.$ac_ext |
| 3515 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3516 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3517 | # can be detected and how. |
| 3518 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3519 | /* confdefs.h. */ |
| 3520 | _ACEOF |
| 3521 | cat confdefs.h >>conftest.$ac_ext |
| 3522 | cat >>conftest.$ac_ext <<_ACEOF |
| 3523 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3524 | #include <ac_nonexistent.h> |
| 3525 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3526 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3527 | case "(($ac_try" in |
| 3528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3529 | *) ac_try_echo=$ac_try;; |
| 3530 | esac |
| 3531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3532 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3533 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3534 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3535 | rm -f conftest.er1 |
| 3536 | cat conftest.err >&5 |
| 3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3538 | (exit $ac_status); } >/dev/null && { |
| 3539 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3540 | test ! -s conftest.err |
| 3541 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3542 | # Broken: success on invalid input. |
| 3543 | continue |
| 3544 | else |
| 3545 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3548 | # Passes both tests. |
| 3549 | ac_preproc_ok=: |
| 3550 | break |
| 3551 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3553 | rm -f conftest.err conftest.$ac_ext |
| 3554 | |
| 3555 | done |
| 3556 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3557 | rm -f conftest.err conftest.$ac_ext |
| 3558 | if $ac_preproc_ok; then |
| 3559 | : |
| 3560 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3561 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3562 | See \`config.log' for more details." >&5 |
| 3563 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3564 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3565 | { (exit 1); exit 1; }; } |
| 3566 | fi |
| 3567 | |
| 3568 | ac_ext=c |
| 3569 | ac_cpp='$CPP $CPPFLAGS' |
| 3570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3573 | |
| 3574 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3575 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3576 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3577 | if test "${ac_cv_path_GREP+set}" = set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3579 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3580 | # Extract the first word of "grep ggrep" to use in msg output |
| 3581 | if test -z "$GREP"; then |
| 3582 | set dummy grep ggrep; ac_prog_name=$2 |
| 3583 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3585 | else |
| 3586 | ac_path_GREP_found=false |
| 3587 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3589 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3590 | do |
| 3591 | IFS=$as_save_IFS |
| 3592 | test -z "$as_dir" && as_dir=. |
| 3593 | for ac_prog in grep ggrep; do |
| 3594 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3595 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3596 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3597 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3598 | # Check for GNU $ac_path_GREP |
| 3599 | case `"$ac_path_GREP" --version 2>&1` in |
| 3600 | *GNU*) |
| 3601 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3602 | *) |
| 3603 | ac_count=0 |
| 3604 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3605 | while : |
| 3606 | do |
| 3607 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3608 | mv "conftest.tmp" "conftest.in" |
| 3609 | cp "conftest.in" "conftest.nl" |
| 3610 | echo 'GREP' >> "conftest.nl" |
| 3611 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3612 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3613 | ac_count=`expr $ac_count + 1` |
| 3614 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3615 | # Best one so far, save it but keep looking for a better one |
| 3616 | ac_cv_path_GREP="$ac_path_GREP" |
| 3617 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3618 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3619 | # 10*(2^10) chars as input seems more than enough |
| 3620 | test $ac_count -gt 10 && break |
| 3621 | done |
| 3622 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3623 | esac |
| 3624 | |
| 3625 | |
| 3626 | $ac_path_GREP_found && break 3 |
| 3627 | done |
| 3628 | done |
| 3629 | |
| 3630 | done |
| 3631 | IFS=$as_save_IFS |
| 3632 | |
| 3633 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3634 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3635 | |
| 3636 | GREP="$ac_cv_path_GREP" |
| 3637 | if test -z "$GREP"; then |
| 3638 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3639 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3640 | { (exit 1); exit 1; }; } |
| 3641 | fi |
| 3642 | |
| 3643 | else |
| 3644 | ac_cv_path_GREP=$GREP |
| 3645 | fi |
| 3646 | |
| 3647 | |
| 3648 | fi |
| 3649 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3650 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3651 | GREP="$ac_cv_path_GREP" |
| 3652 | |
| 3653 | |
| 3654 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3655 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3656 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3658 | else |
| 3659 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3660 | then ac_cv_path_EGREP="$GREP -E" |
| 3661 | else |
| 3662 | # Extract the first word of "egrep" to use in msg output |
| 3663 | if test -z "$EGREP"; then |
| 3664 | set dummy egrep; ac_prog_name=$2 |
| 3665 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3667 | else |
| 3668 | ac_path_EGREP_found=false |
| 3669 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3671 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3672 | do |
| 3673 | IFS=$as_save_IFS |
| 3674 | test -z "$as_dir" && as_dir=. |
| 3675 | for ac_prog in egrep; do |
| 3676 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3677 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3678 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3679 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3680 | # Check for GNU $ac_path_EGREP |
| 3681 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3682 | *GNU*) |
| 3683 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3684 | *) |
| 3685 | ac_count=0 |
| 3686 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3687 | while : |
| 3688 | do |
| 3689 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3690 | mv "conftest.tmp" "conftest.in" |
| 3691 | cp "conftest.in" "conftest.nl" |
| 3692 | echo 'EGREP' >> "conftest.nl" |
| 3693 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3694 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3695 | ac_count=`expr $ac_count + 1` |
| 3696 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3697 | # Best one so far, save it but keep looking for a better one |
| 3698 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3699 | ac_path_EGREP_max=$ac_count |
| 3700 | fi |
| 3701 | # 10*(2^10) chars as input seems more than enough |
| 3702 | test $ac_count -gt 10 && break |
| 3703 | done |
| 3704 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3705 | esac |
| 3706 | |
| 3707 | |
| 3708 | $ac_path_EGREP_found && break 3 |
| 3709 | done |
| 3710 | done |
| 3711 | |
| 3712 | done |
| 3713 | IFS=$as_save_IFS |
| 3714 | |
| 3715 | |
| 3716 | fi |
| 3717 | |
| 3718 | EGREP="$ac_cv_path_EGREP" |
| 3719 | if test -z "$EGREP"; then |
| 3720 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3721 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3722 | { (exit 1); exit 1; }; } |
| 3723 | fi |
| 3724 | |
| 3725 | else |
| 3726 | ac_cv_path_EGREP=$EGREP |
| 3727 | fi |
| 3728 | |
| 3729 | |
| 3730 | fi |
| 3731 | fi |
| 3732 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3733 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3734 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3735 | |
| 3736 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3737 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3738 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3739 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3740 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3741 | /* confdefs.h. */ |
| 3742 | _ACEOF |
| 3743 | cat confdefs.h >>conftest.$ac_ext |
| 3744 | cat >>conftest.$ac_ext <<_ACEOF |
| 3745 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3746 | #ifdef _AIX |
| 3747 | yes |
| 3748 | #endif |
| 3749 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3750 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3751 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3752 | $EGREP "yes" >/dev/null 2>&1; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3753 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3754 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3755 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3756 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3757 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3758 | |
| 3759 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3760 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3761 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3762 | fi |
| 3763 | rm -f conftest* |
| 3764 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3765 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3766 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3767 | # Check for unsupported systems |
| 3768 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 3769 | atheos*|Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3770 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3771 | echo See README for details. |
| 3772 | exit 1;; |
| 3773 | esac |
| 3774 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3775 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3776 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3777 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3778 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3779 | # Check whether --with-suffix was given. |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3780 | if test "${with_suffix+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3781 | withval=$with_suffix; |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3782 | case $withval in |
| 3783 | no) EXEEXT=;; |
| 3784 | yes) EXEEXT=.exe;; |
| 3785 | *) EXEEXT=$withval;; |
| 3786 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3787 | fi |
| 3788 | |
| 3789 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3790 | echo "${ECHO_T}$EXEEXT" >&6; } |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3791 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3792 | # Test whether we're running on a non-case-sensitive system, in which |
| 3793 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3794 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3795 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3796 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3797 | if test ! -d CaseSensitiveTestDir; then |
| 3798 | mkdir CaseSensitiveTestDir |
| 3799 | fi |
| 3800 | |
| 3801 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3802 | then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3803 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3804 | echo "${ECHO_T}yes" >&6; } |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3805 | BUILDEXEEXT=.exe |
| 3806 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3807 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3808 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3809 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3810 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3811 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3812 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3813 | case $MACHDEP in |
| 3814 | bsdos*) |
| 3815 | case $CC in |
| 3816 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3817 | esac;; |
| 3818 | esac |
| 3819 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3820 | case $ac_sys_system in |
| 3821 | hp*|HP*) |
| 3822 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3823 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3824 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3825 | Monterey*) |
| 3826 | case $CC in |
| 3827 | cc) CC="$CC -Wl,-Bexport";; |
| 3828 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3829 | SunOS*) |
| 3830 | # 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] | 3831 | |
| 3832 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3833 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3834 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3835 | |
| 3836 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3837 | esac |
| 3838 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3839 | |
| 3840 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3841 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3842 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3843 | if test -z "$LIBRARY" |
| 3844 | then |
| 3845 | LIBRARY='libpython$(VERSION).a' |
| 3846 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3847 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3848 | echo "${ECHO_T}$LIBRARY" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3849 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3850 | # 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] | 3851 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3852 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3853 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3854 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3855 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3856 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3857 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3858 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3859 | # RUNSHARED is used to run shared python without installed libraries |
| 3860 | # |
| 3861 | # INSTSONAME is the name of the shared library that will be use to install |
| 3862 | # on the system - some systems like version suffix, others don't |
| 3863 | |
| 3864 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3865 | |
| 3866 | |
| 3867 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3868 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3869 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3870 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3871 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3872 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3873 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3874 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3875 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3876 | # 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] | 3877 | # If CXX is set, and if it is needed to link a main function that was |
| 3878 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3879 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3880 | # 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] | 3881 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3882 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3883 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3884 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3885 | if test -z "$LINKCC" |
| 3886 | then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3887 | LINKCC='$(PURIFY) $(MAINCC)' |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3888 | case $ac_sys_system in |
| 3889 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3890 | exp_extra="\"\"" |
| 3891 | if test $ac_sys_release -ge 5 -o \ |
| 3892 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3893 | exp_extra="." |
| 3894 | fi |
| 3895 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3896 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3897 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3898 | esac |
| 3899 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3900 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3901 | echo "${ECHO_T}$LINKCC" >&6; } |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3902 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3903 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3904 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
| 3905 | # Check whether --enable-shared was given. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3906 | if test "${enable_shared+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3907 | enableval=$enable_shared; |
| 3908 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3909 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3910 | |
| 3911 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3912 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3913 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3914 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3915 | enable_shared="yes";; |
| 3916 | *) |
| 3917 | enable_shared="no";; |
| 3918 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3919 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3920 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3921 | echo "${ECHO_T}$enable_shared" >&6; } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3922 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3923 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3924 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
| 3925 | # Check whether --enable-profiling was given. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3926 | if test "${enable_profiling+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3927 | enableval=$enable_profiling; ac_save_cc="$CC" |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3928 | CC="$CC -pg" |
| 3929 | if test "$cross_compiling" = yes; then |
| 3930 | ac_enable_profiling="no" |
| 3931 | else |
| 3932 | cat >conftest.$ac_ext <<_ACEOF |
| 3933 | /* confdefs.h. */ |
| 3934 | _ACEOF |
| 3935 | cat confdefs.h >>conftest.$ac_ext |
| 3936 | cat >>conftest.$ac_ext <<_ACEOF |
| 3937 | /* end confdefs.h. */ |
| 3938 | int main() { return 0; } |
| 3939 | _ACEOF |
| 3940 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3941 | if { (ac_try="$ac_link" |
| 3942 | case "(($ac_try" in |
| 3943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3944 | *) ac_try_echo=$ac_try;; |
| 3945 | esac |
| 3946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3947 | (eval "$ac_link") 2>&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3948 | ac_status=$? |
| 3949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3950 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3951 | { (case "(($ac_try" in |
| 3952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3953 | *) ac_try_echo=$ac_try;; |
| 3954 | esac |
| 3955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3956 | (eval "$ac_try") 2>&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3957 | ac_status=$? |
| 3958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3959 | (exit $ac_status); }; }; then |
| 3960 | ac_enable_profiling="yes" |
| 3961 | else |
| 3962 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3963 | echo "$as_me: failed program was:" >&5 |
| 3964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3965 | |
| 3966 | ( exit $ac_status ) |
| 3967 | ac_enable_profiling="no" |
| 3968 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3969 | 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] | 3970 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3971 | |
| 3972 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3973 | CC="$ac_save_cc" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3974 | fi |
| 3975 | |
| 3976 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 3977 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3978 | |
| 3979 | case "$ac_enable_profiling" in |
| 3980 | "yes") |
| 3981 | BASECFLAGS="-pg $BASECFLAGS" |
| 3982 | LDFLAGS="-pg $LDFLAGS" |
| 3983 | ;; |
| 3984 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3985 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 3986 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3987 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3988 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3989 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3990 | # library that we build, but we do not want to link against it (we |
| 3991 | # will find it with a -framework option). For this reason there is an |
| 3992 | # extra variable BLDLIBRARY against which Python and the extension |
| 3993 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3994 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3995 | if test "$enable_framework" |
| 3996 | then |
| 3997 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3998 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3999 | BLDLIBRARY='' |
| 4000 | else |
| 4001 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4002 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 4003 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4004 | # Other platforms follow |
| 4005 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 4006 | |
| 4007 | cat >>confdefs.h <<\_ACEOF |
| 4008 | #define Py_ENABLE_SHARED 1 |
| 4009 | _ACEOF |
| 4010 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4011 | case $ac_sys_system in |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4012 | CYGWIN*) |
| 4013 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4014 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4015 | ;; |
| 4016 | SunOS*) |
| 4017 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 4018 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4019 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 4020 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4021 | ;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 4022 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4023 | LDLIBRARY='libpython$(VERSION).so' |
| 4024 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4025 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 4026 | case $ac_sys_system in |
| 4027 | FreeBSD*) |
| 4028 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4029 | ;; |
| 4030 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4031 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4032 | ;; |
| 4033 | hp*|HP*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4034 | case `uname -m` in |
| 4035 | ia64) |
| 4036 | LDLIBRARY='libpython$(VERSION).so' |
| 4037 | ;; |
| 4038 | *) |
| 4039 | LDLIBRARY='libpython$(VERSION).sl' |
| 4040 | ;; |
| 4041 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4042 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4043 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4044 | ;; |
| 4045 | OSF*) |
| 4046 | LDLIBRARY='libpython$(VERSION).so' |
Neal Norwitz | 671b9e3 | 2006-01-09 07:07:12 +0000 | [diff] [blame] | 4047 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4048 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4049 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 4050 | atheos*) |
| 4051 | LDLIBRARY='libpython$(VERSION).so' |
| 4052 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4053 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4054 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4055 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 4056 | else # shared is disabled |
| 4057 | case $ac_sys_system in |
| 4058 | CYGWIN*) |
| 4059 | BLDLIBRARY='$(LIBRARY)' |
| 4060 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4061 | ;; |
| 4062 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4063 | fi |
| 4064 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4065 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4066 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 4067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4068 | if test -n "$ac_tool_prefix"; then |
| 4069 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4070 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4071 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4072 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4073 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4075 | else |
| 4076 | if test -n "$RANLIB"; then |
| 4077 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4078 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4080 | for as_dir in $PATH |
| 4081 | do |
| 4082 | IFS=$as_save_IFS |
| 4083 | test -z "$as_dir" && as_dir=. |
| 4084 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4085 | 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] | 4086 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4087 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4088 | break 2 |
| 4089 | fi |
| 4090 | done |
| 4091 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4092 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4093 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4094 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4095 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4096 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4097 | if test -n "$RANLIB"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4098 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4099 | echo "${ECHO_T}$RANLIB" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4100 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4101 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4102 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4103 | fi |
| 4104 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4106 | fi |
| 4107 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4108 | ac_ct_RANLIB=$RANLIB |
| 4109 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4110 | set dummy ranlib; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4111 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4112 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4113 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4115 | else |
| 4116 | if test -n "$ac_ct_RANLIB"; then |
| 4117 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4118 | else |
| 4119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4120 | for as_dir in $PATH |
| 4121 | do |
| 4122 | IFS=$as_save_IFS |
| 4123 | test -z "$as_dir" && as_dir=. |
| 4124 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4125 | 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] | 4126 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4127 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4128 | break 2 |
| 4129 | fi |
| 4130 | done |
| 4131 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4132 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4133 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4134 | fi |
| 4135 | fi |
| 4136 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4137 | if test -n "$ac_ct_RANLIB"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4138 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4139 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4140 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4141 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4142 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4143 | fi |
| 4144 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4145 | if test "x$ac_ct_RANLIB" = x; then |
| 4146 | RANLIB=":" |
| 4147 | else |
| 4148 | case $cross_compiling:$ac_tool_warned in |
| 4149 | yes:) |
| 4150 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4151 | whose name does not start with the host triplet. If you think this |
| 4152 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4153 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4154 | whose name does not start with the host triplet. If you think this |
| 4155 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4156 | ac_tool_warned=yes ;; |
| 4157 | esac |
| 4158 | RANLIB=$ac_ct_RANLIB |
| 4159 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4160 | else |
| 4161 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4162 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4163 | |
| 4164 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4165 | for ac_prog in ar aal |
| 4166 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4167 | # 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] | 4168 | set dummy $ac_prog; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4169 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4171 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4173 | else |
| 4174 | if test -n "$AR"; then |
| 4175 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4178 | for as_dir in $PATH |
| 4179 | do |
| 4180 | IFS=$as_save_IFS |
| 4181 | test -z "$as_dir" && as_dir=. |
| 4182 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4183 | 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] | 4184 | ac_cv_prog_AR="$ac_prog" |
| 4185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4186 | break 2 |
| 4187 | fi |
| 4188 | done |
| 4189 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4190 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4191 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4192 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4193 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4194 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4195 | if test -n "$AR"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4196 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4197 | echo "${ECHO_T}$AR" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4198 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4199 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4200 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4201 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4202 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4203 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4204 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4205 | done |
| 4206 | test -n "$AR" || AR="ar" |
| 4207 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4208 | |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4209 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 4210 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4211 | set dummy svnversion; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4212 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4213 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4214 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
| 4215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4216 | else |
| 4217 | if test -n "$SVNVERSION"; then |
| 4218 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4219 | else |
| 4220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4221 | for as_dir in $PATH |
| 4222 | do |
| 4223 | IFS=$as_save_IFS |
| 4224 | test -z "$as_dir" && as_dir=. |
| 4225 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4226 | 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] | 4227 | ac_cv_prog_SVNVERSION="found" |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4229 | break 2 |
| 4230 | fi |
| 4231 | done |
| 4232 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4233 | IFS=$as_save_IFS |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4234 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4235 | 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] | 4236 | fi |
| 4237 | fi |
| 4238 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4239 | if test -n "$SVNVERSION"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4240 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4241 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4242 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4243 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4244 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4245 | fi |
| 4246 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4247 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 4248 | if test $SVNVERSION = found |
| 4249 | then |
| 4250 | SVNVERSION="svnversion \$(srcdir)" |
| 4251 | else |
| 4252 | SVNVERSION="echo exported" |
| 4253 | fi |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4254 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 4255 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 4256 | bsdos*|hp*|HP*) |
| 4257 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 4258 | if test -z "$INSTALL" |
| 4259 | then |
| 4260 | INSTALL="${srcdir}/install-sh -c" |
| 4261 | fi |
| 4262 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4263 | ac_aux_dir= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4264 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4265 | if test -f "$ac_dir/install-sh"; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4266 | ac_aux_dir=$ac_dir |
| 4267 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4268 | break |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4269 | elif test -f "$ac_dir/install.sh"; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4270 | ac_aux_dir=$ac_dir |
| 4271 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4272 | break |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4273 | elif test -f "$ac_dir/shtool"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4274 | ac_aux_dir=$ac_dir |
| 4275 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4276 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4277 | fi |
| 4278 | done |
| 4279 | if test -z "$ac_aux_dir"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4280 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4281 | 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] | 4282 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4283 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4284 | |
| 4285 | # These three variables are undocumented and unsupported, |
| 4286 | # and are intended to be withdrawn in a future Autoconf release. |
| 4287 | # They can cause serious problems if a builder's source tree is in a directory |
| 4288 | # whose full name contains unusual characters. |
| 4289 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4290 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4291 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4292 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4293 | |
| 4294 | # Find a good install program. We prefer a C program (faster), |
| 4295 | # so one script is as good as another. But avoid the broken or |
| 4296 | # incompatible versions: |
| 4297 | # SysV /etc/install, /usr/sbin/install |
| 4298 | # SunOS /usr/etc/install |
| 4299 | # IRIX /sbin/install |
| 4300 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4301 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4302 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4303 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4304 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4305 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4306 | # ./install, which can be erroneously created by make from ./install.sh. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4307 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4308 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4309 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4310 | if test "${ac_cv_path_install+set}" = set; then |
| 4311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4312 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4314 | for as_dir in $PATH |
| 4315 | do |
| 4316 | IFS=$as_save_IFS |
| 4317 | test -z "$as_dir" && as_dir=. |
| 4318 | # Account for people who put trailing slashes in PATH elements. |
| 4319 | case $as_dir/ in |
| 4320 | ./ | .// | /cC/* | \ |
| 4321 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4322 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4323 | /usr/ucb/* ) ;; |
| 4324 | *) |
| 4325 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4326 | # Don't use installbsd from OSF since it installs stuff as root |
| 4327 | # by default. |
| 4328 | for ac_prog in ginstall scoinst install; do |
| 4329 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4330 | 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] | 4331 | if test $ac_prog = install && |
| 4332 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4333 | # AIX install. It has an incompatible calling convention. |
| 4334 | : |
| 4335 | elif test $ac_prog = install && |
| 4336 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4337 | # program-specific install script used by HP pwplus--don't use. |
| 4338 | : |
| 4339 | else |
| 4340 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4341 | break 3 |
| 4342 | fi |
| 4343 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4344 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4345 | done |
| 4346 | ;; |
| 4347 | esac |
| 4348 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4349 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4350 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4351 | |
| 4352 | fi |
| 4353 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4354 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4355 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4356 | # As a last resort, use the slow shell script. Don't cache a |
| 4357 | # value for INSTALL within a source directory, because that will |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4358 | # break other packages using the cache if that directory is |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4359 | # removed, or if the value is a relative name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4360 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4361 | fi |
| 4362 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4363 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4364 | echo "${ECHO_T}$INSTALL" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4365 | |
| 4366 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4367 | # It thinks the first close brace ends the variable substitution. |
| 4368 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4370 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4371 | |
| 4372 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4373 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4374 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4375 | # Not every filesystem supports hard links |
| 4376 | |
| 4377 | if test -z "$LN" ; then |
| 4378 | case $ac_sys_system in |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 4379 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 4380 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4381 | *) LN=ln;; |
| 4382 | esac |
| 4383 | fi |
| 4384 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4385 | # Check for --with-pydebug |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4386 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4387 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4388 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4389 | # Check whether --with-pydebug was given. |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4390 | if test "${with_pydebug+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4391 | withval=$with_pydebug; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4392 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4393 | then |
| 4394 | |
| 4395 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4396 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4397 | _ACEOF |
| 4398 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4399 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4400 | echo "${ECHO_T}yes" >&6; }; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4401 | Py_DEBUG='true' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4402 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4403 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4404 | fi |
| 4405 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4406 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4407 | echo "${ECHO_T}no" >&6; } |
| 4408 | fi |
| 4409 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4410 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4411 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4412 | # merged with this chunk of code? |
| 4413 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4414 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4415 | # ------------------------ |
| 4416 | # (The following bit of code is complicated enough - please keep things |
| 4417 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4418 | |
| 4419 | # There are two parallel sets of case statements below, one that checks to |
| 4420 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4421 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4422 | # user set OPT. |
| 4423 | |
| 4424 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4425 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4426 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4427 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4428 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4429 | case $GCC in |
| 4430 | yes) |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4431 | if test "$CC" != 'g++' ; then |
| 4432 | STRICT_PROTO="-Wstrict-prototypes" |
| 4433 | fi |
Christian Heimes | 3805321 | 2007-12-14 01:24:44 +0000 | [diff] [blame] | 4434 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4435 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4436 | WRAP="-fwrapv" |
| 4437 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4438 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4439 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4440 | if test "$Py_DEBUG" = 'true' ; then |
| 4441 | # Optimization messes up debuggers, so turn it off for |
| 4442 | # debug builds. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4443 | OPT="-g -Wall $STRICT_PROTO" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4444 | else |
Christian Heimes | 3805321 | 2007-12-14 01:24:44 +0000 | [diff] [blame] | 4445 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4446 | fi |
| 4447 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4448 | *) |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4449 | OPT="-O3 -Wall $STRICT_PROTO" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4450 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4451 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 4452 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4453 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4454 | ;; |
| 4455 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4456 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4457 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4458 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4459 | OPT="-O" |
| 4460 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4461 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4462 | |
| 4463 | # The current (beta) Monterey compiler dies with optimizations |
| 4464 | # 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] | 4465 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4466 | Monterey*) |
| 4467 | OPT="" |
| 4468 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 4469 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4470 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4471 | fi |
| 4472 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4473 | |
| 4474 | # tweak BASECFLAGS based on compiler and platform |
| 4475 | case $GCC in |
| 4476 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4477 | # Python violates C99 rules, by casting between incompatible |
| 4478 | # pointer types. GCC may generate bad code as a result of that, |
| 4479 | # so use -fno-strict-aliasing if supported. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4480 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4481 | 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] | 4482 | ac_save_cc="$CC" |
| 4483 | CC="$CC -fno-strict-aliasing" |
| 4484 | if test "$cross_compiling" = yes; then |
| 4485 | ac_cv_no_strict_aliasing_ok=no |
| 4486 | else |
| 4487 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4488 | /* confdefs.h. */ |
| 4489 | _ACEOF |
| 4490 | cat confdefs.h >>conftest.$ac_ext |
| 4491 | cat >>conftest.$ac_ext <<_ACEOF |
| 4492 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4493 | int main() { return 0; } |
| 4494 | _ACEOF |
| 4495 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4496 | if { (ac_try="$ac_link" |
| 4497 | case "(($ac_try" in |
| 4498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4499 | *) ac_try_echo=$ac_try;; |
| 4500 | esac |
| 4501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4502 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4503 | ac_status=$? |
| 4504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4505 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4506 | { (case "(($ac_try" in |
| 4507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4508 | *) ac_try_echo=$ac_try;; |
| 4509 | esac |
| 4510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4511 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4512 | ac_status=$? |
| 4513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4514 | (exit $ac_status); }; }; then |
| 4515 | ac_cv_no_strict_aliasing_ok=yes |
| 4516 | else |
| 4517 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4518 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4520 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4521 | ( exit $ac_status ) |
| 4522 | ac_cv_no_strict_aliasing_ok=no |
| 4523 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4524 | 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] | 4525 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4526 | |
| 4527 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4528 | CC="$ac_save_cc" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4529 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4530 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4531 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4532 | then |
| 4533 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4534 | fi |
Mark Dickinson | b0e2b4c | 2008-04-26 20:48:56 +0000 | [diff] [blame] | 4535 | |
| 4536 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4537 | # support. Without this, treatment of subnormals doesn't follow |
| 4538 | # the standard. |
| 4539 | case $ac_sys_machine in |
| 4540 | alpha*) |
| 4541 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4542 | ;; |
| 4543 | esac |
| 4544 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4545 | case $ac_sys_system in |
| 4546 | SCO_SV*) |
| 4547 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4548 | ;; |
| 4549 | # is there any other compiler on Darwin besides gcc? |
| 4550 | Darwin*) |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 4551 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4552 | # used to be here, but non-Apple gcc doesn't accept them. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4553 | if test "${enable_universalsdk}"; then |
| 4554 | BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 4555 | fi |
| 4556 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4557 | ;; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4558 | OSF*) |
| 4559 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4560 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4561 | esac |
| 4562 | ;; |
| 4563 | |
| 4564 | *) |
| 4565 | case $ac_sys_system in |
| 4566 | OpenUNIX*|UnixWare*) |
| 4567 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4568 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 4569 | OSF*) |
| 4570 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4571 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4572 | SCO_SV*) |
| 4573 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4574 | ;; |
| 4575 | esac |
| 4576 | ;; |
| 4577 | esac |
| 4578 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 4579 | if test "$Py_DEBUG" = 'true'; then |
| 4580 | : |
| 4581 | else |
| 4582 | OPT="-DNDEBUG $OPT" |
| 4583 | fi |
| 4584 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4585 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4586 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4587 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4588 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4589 | |
Neal Norwitz | 020c46a | 2006-01-07 21:39:28 +0000 | [diff] [blame] | 4590 | # disable check for icc since it seems to pass, but generates a warning |
| 4591 | if test "$CC" = icc |
| 4592 | then |
| 4593 | ac_cv_opt_olimit_ok=no |
| 4594 | fi |
| 4595 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4596 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4597 | 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] | 4598 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 4599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4600 | else |
| 4601 | ac_save_cc="$CC" |
| 4602 | CC="$CC -OPT:Olimit=0" |
| 4603 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4604 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4605 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4606 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4607 | /* confdefs.h. */ |
| 4608 | _ACEOF |
| 4609 | cat confdefs.h >>conftest.$ac_ext |
| 4610 | cat >>conftest.$ac_ext <<_ACEOF |
| 4611 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4612 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4613 | _ACEOF |
| 4614 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4615 | if { (ac_try="$ac_link" |
| 4616 | case "(($ac_try" in |
| 4617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4618 | *) ac_try_echo=$ac_try;; |
| 4619 | esac |
| 4620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4621 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4622 | ac_status=$? |
| 4623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4624 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4625 | { (case "(($ac_try" in |
| 4626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4627 | *) ac_try_echo=$ac_try;; |
| 4628 | esac |
| 4629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4630 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4631 | ac_status=$? |
| 4632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4633 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4634 | ac_cv_opt_olimit_ok=yes |
| 4635 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4636 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4637 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4640 | ( exit $ac_status ) |
| 4641 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4642 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4643 | 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] | 4644 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4645 | |
| 4646 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4647 | CC="$ac_save_cc" |
| 4648 | fi |
| 4649 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4650 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4651 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 4652 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4653 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4654 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4655 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4656 | # environment? |
| 4657 | Darwin*) |
| 4658 | ;; |
| 4659 | *) |
| 4660 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4661 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4662 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4663 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4664 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4665 | 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] | 4666 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 4667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4668 | else |
| 4669 | ac_save_cc="$CC" |
| 4670 | CC="$CC -Olimit 1500" |
| 4671 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4672 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4674 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4675 | /* confdefs.h. */ |
| 4676 | _ACEOF |
| 4677 | cat confdefs.h >>conftest.$ac_ext |
| 4678 | cat >>conftest.$ac_ext <<_ACEOF |
| 4679 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4680 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4681 | _ACEOF |
| 4682 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4683 | if { (ac_try="$ac_link" |
| 4684 | case "(($ac_try" in |
| 4685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4686 | *) ac_try_echo=$ac_try;; |
| 4687 | esac |
| 4688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4689 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4690 | ac_status=$? |
| 4691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4692 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4693 | { (case "(($ac_try" in |
| 4694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4695 | *) ac_try_echo=$ac_try;; |
| 4696 | esac |
| 4697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4698 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4699 | ac_status=$? |
| 4700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4701 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4702 | ac_cv_olimit_ok=yes |
| 4703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4704 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4705 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4707 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4708 | ( exit $ac_status ) |
| 4709 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 4710 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4711 | 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] | 4712 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4713 | |
| 4714 | |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4715 | CC="$ac_save_cc" |
| 4716 | fi |
| 4717 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4718 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4719 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4720 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4721 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4722 | fi |
| 4723 | fi |
| 4724 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4725 | # Check whether GCC supports PyArg_ParseTuple format |
| 4726 | if test "$GCC" = "yes" |
| 4727 | then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4728 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4729 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4730 | save_CFLAGS=$CFLAGS |
| 4731 | CFLAGS="$CFLAGS -Werror" |
| 4732 | cat >conftest.$ac_ext <<_ACEOF |
| 4733 | /* confdefs.h. */ |
| 4734 | _ACEOF |
| 4735 | cat confdefs.h >>conftest.$ac_ext |
| 4736 | cat >>conftest.$ac_ext <<_ACEOF |
| 4737 | /* end confdefs.h. */ |
| 4738 | |
| 4739 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 4740 | |
| 4741 | int |
| 4742 | main () |
| 4743 | { |
| 4744 | |
| 4745 | ; |
| 4746 | return 0; |
| 4747 | } |
| 4748 | _ACEOF |
| 4749 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4750 | if { (ac_try="$ac_compile" |
| 4751 | case "(($ac_try" in |
| 4752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4753 | *) ac_try_echo=$ac_try;; |
| 4754 | esac |
| 4755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4756 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4757 | ac_status=$? |
| 4758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4759 | rm -f conftest.er1 |
| 4760 | cat conftest.err >&5 |
| 4761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4762 | (exit $ac_status); } && { |
| 4763 | test -z "$ac_c_werror_flag" || |
| 4764 | test ! -s conftest.err |
| 4765 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4766 | |
| 4767 | cat >>confdefs.h <<\_ACEOF |
| 4768 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 4769 | _ACEOF |
| 4770 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4771 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4772 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4773 | else |
| 4774 | echo "$as_me: failed program was:" >&5 |
| 4775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4776 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4777 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4778 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4779 | |
| 4780 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4781 | |
| 4782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4783 | CFLAGS=$save_CFLAGS |
| 4784 | fi |
| 4785 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4786 | # On some compilers, pthreads are available without further options |
| 4787 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4788 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4789 | # So we have to see first whether pthreads are available without |
| 4790 | # options before we can check whether -Kpthread improves anything. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4791 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4792 | 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] | 4793 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 4794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4795 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4796 | if test "$cross_compiling" = yes; then |
| 4797 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4799 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4800 | /* confdefs.h. */ |
| 4801 | _ACEOF |
| 4802 | cat confdefs.h >>conftest.$ac_ext |
| 4803 | cat >>conftest.$ac_ext <<_ACEOF |
| 4804 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4805 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4806 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4807 | |
| 4808 | void* routine(void* p){return NULL;} |
| 4809 | |
| 4810 | int main(){ |
| 4811 | pthread_t p; |
| 4812 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4813 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4814 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4815 | return 0; |
| 4816 | } |
| 4817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4818 | _ACEOF |
| 4819 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4820 | if { (ac_try="$ac_link" |
| 4821 | case "(($ac_try" in |
| 4822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4823 | *) ac_try_echo=$ac_try;; |
| 4824 | esac |
| 4825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4826 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4827 | ac_status=$? |
| 4828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4829 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4830 | { (case "(($ac_try" in |
| 4831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4832 | *) ac_try_echo=$ac_try;; |
| 4833 | esac |
| 4834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4835 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4836 | ac_status=$? |
| 4837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4838 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4839 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4840 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4841 | ac_cv_kthread=no |
| 4842 | ac_cv_pthread=no |
| 4843 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4844 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4845 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4846 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4849 | ( exit $ac_status ) |
| 4850 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4851 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4852 | 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] | 4853 | fi |
| 4854 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4855 | |
| 4856 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4857 | fi |
| 4858 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4859 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4860 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4861 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4863 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4864 | then |
| 4865 | ac_cv_kpthread=no |
| 4866 | else |
| 4867 | # -Kpthread, if available, provides the right #defines |
| 4868 | # and linker options to make pthread_create available |
| 4869 | # Some compilers won't report that they do not support -Kpthread, |
| 4870 | # so we need to run a program to see whether it really made the |
| 4871 | # function available. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4872 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4873 | 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] | 4874 | if test "${ac_cv_kpthread+set}" = set; then |
| 4875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4876 | else |
| 4877 | ac_save_cc="$CC" |
| 4878 | CC="$CC -Kpthread" |
| 4879 | if test "$cross_compiling" = yes; then |
| 4880 | ac_cv_kpthread=no |
| 4881 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4882 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4883 | /* confdefs.h. */ |
| 4884 | _ACEOF |
| 4885 | cat confdefs.h >>conftest.$ac_ext |
| 4886 | cat >>conftest.$ac_ext <<_ACEOF |
| 4887 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4888 | |
| 4889 | #include <pthread.h> |
| 4890 | |
| 4891 | void* routine(void* p){return NULL;} |
| 4892 | |
| 4893 | int main(){ |
| 4894 | pthread_t p; |
| 4895 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4896 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4897 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4898 | return 0; |
| 4899 | } |
| 4900 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4901 | _ACEOF |
| 4902 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4903 | if { (ac_try="$ac_link" |
| 4904 | case "(($ac_try" in |
| 4905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4906 | *) ac_try_echo=$ac_try;; |
| 4907 | esac |
| 4908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4909 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4910 | ac_status=$? |
| 4911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4912 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4913 | { (case "(($ac_try" in |
| 4914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4915 | *) ac_try_echo=$ac_try;; |
| 4916 | esac |
| 4917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4918 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4919 | ac_status=$? |
| 4920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4921 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4922 | ac_cv_kpthread=yes |
| 4923 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4924 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4925 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4927 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4928 | ( exit $ac_status ) |
| 4929 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4930 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4931 | 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] | 4932 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4933 | |
| 4934 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4935 | CC="$ac_save_cc" |
| 4936 | fi |
| 4937 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4938 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4939 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4940 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4941 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4942 | 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] | 4943 | then |
| 4944 | # -Kthread, if available, provides the right #defines |
| 4945 | # and linker options to make pthread_create available |
| 4946 | # Some compilers won't report that they do not support -Kthread, |
| 4947 | # so we need to run a program to see whether it really made the |
| 4948 | # function available. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4949 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4950 | 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] | 4951 | if test "${ac_cv_kthread+set}" = set; then |
| 4952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4953 | else |
| 4954 | ac_save_cc="$CC" |
| 4955 | CC="$CC -Kthread" |
| 4956 | if test "$cross_compiling" = yes; then |
| 4957 | ac_cv_kthread=no |
| 4958 | else |
| 4959 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4960 | /* confdefs.h. */ |
| 4961 | _ACEOF |
| 4962 | cat confdefs.h >>conftest.$ac_ext |
| 4963 | cat >>conftest.$ac_ext <<_ACEOF |
| 4964 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4965 | |
| 4966 | #include <pthread.h> |
| 4967 | |
| 4968 | void* routine(void* p){return NULL;} |
| 4969 | |
| 4970 | int main(){ |
| 4971 | pthread_t p; |
| 4972 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4973 | return 1; |
| 4974 | (void)pthread_detach(p); |
| 4975 | return 0; |
| 4976 | } |
| 4977 | |
| 4978 | _ACEOF |
| 4979 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4980 | if { (ac_try="$ac_link" |
| 4981 | case "(($ac_try" in |
| 4982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4983 | *) ac_try_echo=$ac_try;; |
| 4984 | esac |
| 4985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4986 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4987 | ac_status=$? |
| 4988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4989 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 4990 | { (case "(($ac_try" in |
| 4991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4992 | *) ac_try_echo=$ac_try;; |
| 4993 | esac |
| 4994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4995 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4996 | ac_status=$? |
| 4997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4998 | (exit $ac_status); }; }; then |
| 4999 | ac_cv_kthread=yes |
| 5000 | else |
| 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 | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 5005 | ( exit $ac_status ) |
| 5006 | ac_cv_kthread=no |
| 5007 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +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 | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 5009 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5010 | |
| 5011 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 5012 | CC="$ac_save_cc" |
| 5013 | fi |
| 5014 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5015 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5016 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 5017 | fi |
| 5018 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 5019 | 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] | 5020 | then |
| 5021 | # -pthread, if available, provides the right #defines |
| 5022 | # and linker options to make pthread_create available |
| 5023 | # Some compilers won't report that they do not support -pthread, |
| 5024 | # so we need to run a program to see whether it really made the |
| 5025 | # function available. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5026 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5027 | 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] | 5028 | if test "${ac_cv_thread+set}" = set; then |
| 5029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5030 | else |
| 5031 | ac_save_cc="$CC" |
| 5032 | CC="$CC -pthread" |
| 5033 | if test "$cross_compiling" = yes; then |
| 5034 | ac_cv_pthread=no |
| 5035 | else |
| 5036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5037 | /* confdefs.h. */ |
| 5038 | _ACEOF |
| 5039 | cat confdefs.h >>conftest.$ac_ext |
| 5040 | cat >>conftest.$ac_ext <<_ACEOF |
| 5041 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5042 | |
| 5043 | #include <pthread.h> |
| 5044 | |
| 5045 | void* routine(void* p){return NULL;} |
| 5046 | |
| 5047 | int main(){ |
| 5048 | pthread_t p; |
| 5049 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5050 | return 1; |
| 5051 | (void)pthread_detach(p); |
| 5052 | return 0; |
| 5053 | } |
| 5054 | |
| 5055 | _ACEOF |
| 5056 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5057 | if { (ac_try="$ac_link" |
| 5058 | case "(($ac_try" in |
| 5059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5060 | *) ac_try_echo=$ac_try;; |
| 5061 | esac |
| 5062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5063 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5064 | ac_status=$? |
| 5065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5066 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5067 | { (case "(($ac_try" in |
| 5068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5069 | *) ac_try_echo=$ac_try;; |
| 5070 | esac |
| 5071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5072 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5073 | ac_status=$? |
| 5074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5075 | (exit $ac_status); }; }; then |
| 5076 | ac_cv_pthread=yes |
| 5077 | else |
| 5078 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5079 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5081 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5082 | ( exit $ac_status ) |
| 5083 | ac_cv_pthread=no |
| 5084 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5085 | 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] | 5086 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5087 | |
| 5088 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5089 | CC="$ac_save_cc" |
| 5090 | fi |
| 5091 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5092 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5093 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5094 | fi |
| 5095 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5096 | # If we have set a CC compiler flag for thread support then |
| 5097 | # check if it works for CXX, too. |
| 5098 | ac_cv_cxx_thread=no |
| 5099 | if test ! -z "$CXX" |
| 5100 | then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5101 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5102 | 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] | 5103 | ac_save_cxx="$CXX" |
| 5104 | |
| 5105 | if test "$ac_cv_kpthread" = "yes" |
| 5106 | then |
| 5107 | CXX="$CXX -Kpthread" |
| 5108 | ac_cv_cxx_thread=yes |
| 5109 | elif test "$ac_cv_kthread" = "yes" |
| 5110 | then |
| 5111 | CXX="$CXX -Kthread" |
| 5112 | ac_cv_cxx_thread=yes |
| 5113 | elif test "$ac_cv_pthread" = "yes" |
| 5114 | then |
| 5115 | CXX="$CXX -pthread" |
| 5116 | ac_cv_cxx_thread=yes |
| 5117 | fi |
| 5118 | |
| 5119 | if test $ac_cv_cxx_thread = yes |
| 5120 | then |
| 5121 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5122 | $CXX -c conftest.$ac_ext 2>&5 |
| 5123 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5124 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5125 | then |
| 5126 | ac_cv_cxx_thread=yes |
| 5127 | else |
| 5128 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5129 | fi |
| 5130 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5131 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5132 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5133 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Brett Cannon | c601e0f | 2004-11-07 01:24:12 +0000 | [diff] [blame] | 5134 | fi |
| 5135 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5136 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5137 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5138 | # checks for header files |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5139 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5140 | 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] | 5141 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5144 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5145 | /* confdefs.h. */ |
| 5146 | _ACEOF |
| 5147 | cat confdefs.h >>conftest.$ac_ext |
| 5148 | cat >>conftest.$ac_ext <<_ACEOF |
| 5149 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5150 | #include <stdlib.h> |
| 5151 | #include <stdarg.h> |
| 5152 | #include <string.h> |
| 5153 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5154 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5155 | int |
| 5156 | main () |
| 5157 | { |
| 5158 | |
| 5159 | ; |
| 5160 | return 0; |
| 5161 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5162 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5163 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5164 | if { (ac_try="$ac_compile" |
| 5165 | case "(($ac_try" in |
| 5166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5167 | *) ac_try_echo=$ac_try;; |
| 5168 | esac |
| 5169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5170 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5171 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5173 | rm -f conftest.er1 |
| 5174 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5176 | (exit $ac_status); } && { |
| 5177 | test -z "$ac_c_werror_flag" || |
| 5178 | test ! -s conftest.err |
| 5179 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5180 | ac_cv_header_stdc=yes |
| 5181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5184 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5185 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5186 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5187 | |
| 5188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5189 | |
| 5190 | if test $ac_cv_header_stdc = yes; then |
| 5191 | # 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] | 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. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5198 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5199 | |
| 5200 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5201 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5202 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5203 | : |
| 5204 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5205 | ac_cv_header_stdc=no |
| 5206 | fi |
| 5207 | rm -f conftest* |
| 5208 | |
| 5209 | fi |
| 5210 | |
| 5211 | if test $ac_cv_header_stdc = yes; then |
| 5212 | # 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] | 5213 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5214 | /* confdefs.h. */ |
| 5215 | _ACEOF |
| 5216 | cat confdefs.h >>conftest.$ac_ext |
| 5217 | cat >>conftest.$ac_ext <<_ACEOF |
| 5218 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5219 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5220 | |
| 5221 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5222 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5223 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5224 | : |
| 5225 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5226 | ac_cv_header_stdc=no |
| 5227 | fi |
| 5228 | rm -f conftest* |
| 5229 | |
| 5230 | fi |
| 5231 | |
| 5232 | if test $ac_cv_header_stdc = yes; then |
| 5233 | # /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] | 5234 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5235 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5237 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5238 | /* confdefs.h. */ |
| 5239 | _ACEOF |
| 5240 | cat confdefs.h >>conftest.$ac_ext |
| 5241 | cat >>conftest.$ac_ext <<_ACEOF |
| 5242 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5243 | #include <ctype.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5244 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5245 | #if ((' ' & 0x0FF) == 0x020) |
| 5246 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5247 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5248 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5249 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5250 | (('a' <= (c) && (c) <= 'i') \ |
| 5251 | || ('j' <= (c) && (c) <= 'r') \ |
| 5252 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5253 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5254 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5256 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5257 | int |
| 5258 | main () |
| 5259 | { |
| 5260 | int i; |
| 5261 | for (i = 0; i < 256; i++) |
| 5262 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5263 | || toupper (i) != TOUPPER (i)) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5264 | return 2; |
| 5265 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5266 | } |
| 5267 | _ACEOF |
| 5268 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5269 | if { (ac_try="$ac_link" |
| 5270 | case "(($ac_try" in |
| 5271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5272 | *) ac_try_echo=$ac_try;; |
| 5273 | esac |
| 5274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5275 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5276 | ac_status=$? |
| 5277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5278 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5279 | { (case "(($ac_try" in |
| 5280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5281 | *) ac_try_echo=$ac_try;; |
| 5282 | esac |
| 5283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5284 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5285 | ac_status=$? |
| 5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5287 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5288 | : |
| 5289 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5290 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5291 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5293 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5294 | ( exit $ac_status ) |
| 5295 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5296 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5297 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5298 | fi |
| 5299 | |
| 5300 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5301 | fi |
| 5302 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5303 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5304 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5305 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5306 | |
| 5307 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5308 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5309 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5310 | |
| 5311 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5312 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5313 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5314 | |
| 5315 | |
| 5316 | |
| 5317 | |
| 5318 | |
| 5319 | |
| 5320 | |
| 5321 | |
| 5322 | |
| 5323 | 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] | 5324 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5325 | do |
| 5326 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5327 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5328 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5329 | 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] | 5330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5331 | else |
| 5332 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5333 | /* confdefs.h. */ |
| 5334 | _ACEOF |
| 5335 | cat confdefs.h >>conftest.$ac_ext |
| 5336 | cat >>conftest.$ac_ext <<_ACEOF |
| 5337 | /* end confdefs.h. */ |
| 5338 | $ac_includes_default |
| 5339 | |
| 5340 | #include <$ac_header> |
| 5341 | _ACEOF |
| 5342 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5343 | if { (ac_try="$ac_compile" |
| 5344 | case "(($ac_try" in |
| 5345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5346 | *) ac_try_echo=$ac_try;; |
| 5347 | esac |
| 5348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5349 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5350 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5352 | rm -f conftest.er1 |
| 5353 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5355 | (exit $ac_status); } && { |
| 5356 | test -z "$ac_c_werror_flag" || |
| 5357 | test ! -s conftest.err |
| 5358 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5359 | eval "$as_ac_Header=yes" |
| 5360 | else |
| 5361 | echo "$as_me: failed program was:" >&5 |
| 5362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5363 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5364 | eval "$as_ac_Header=no" |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5365 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5366 | |
| 5367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5368 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5369 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5370 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5371 | echo "${ECHO_T}$ac_res" >&6; } |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5372 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5373 | cat >>confdefs.h <<_ACEOF |
| 5374 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5375 | _ACEOF |
| 5376 | |
| 5377 | fi |
| 5378 | |
| 5379 | done |
| 5380 | |
| 5381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5382 | |
| 5383 | |
| 5384 | |
| 5385 | |
| 5386 | |
| 5387 | |
| 5388 | |
| 5389 | |
| 5390 | |
| 5391 | |
| 5392 | |
| 5393 | |
| 5394 | |
| 5395 | |
| 5396 | |
| 5397 | |
| 5398 | |
| 5399 | |
| 5400 | |
| 5401 | |
| 5402 | |
| 5403 | |
| 5404 | |
| 5405 | |
| 5406 | |
| 5407 | |
| 5408 | |
| 5409 | |
| 5410 | |
| 5411 | |
| 5412 | |
| 5413 | |
| 5414 | |
| 5415 | |
| 5416 | |
| 5417 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5418 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5419 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5420 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5421 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5422 | |
| 5423 | |
| 5424 | |
| 5425 | |
| 5426 | |
| 5427 | |
| 5428 | |
| 5429 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5430 | |
Christian Heimes | 043d6f6 | 2008-01-07 17:19:16 +0000 | [diff] [blame] | 5431 | |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 5432 | |
| 5433 | |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 5434 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5435 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5436 | fcntl.h grp.h \ |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 5437 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5438 | 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] | 5439 | unistd.h utime.h \ |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 5440 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5441 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5442 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
| 5443 | sys/time.h \ |
| 5444 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 5445 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | 043d6f6 | 2008-01-07 17:19:16 +0000 | [diff] [blame] | 5446 | bluetooth/bluetooth.h linux/tipc.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5447 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5448 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5449 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5450 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5451 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5452 | 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] | 5453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5454 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5455 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5456 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5457 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5458 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5459 | # Is the header compilable? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5460 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5461 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5462 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5463 | /* confdefs.h. */ |
| 5464 | _ACEOF |
| 5465 | cat confdefs.h >>conftest.$ac_ext |
| 5466 | cat >>conftest.$ac_ext <<_ACEOF |
| 5467 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5468 | $ac_includes_default |
| 5469 | #include <$ac_header> |
| 5470 | _ACEOF |
| 5471 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5472 | if { (ac_try="$ac_compile" |
| 5473 | case "(($ac_try" in |
| 5474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5475 | *) ac_try_echo=$ac_try;; |
| 5476 | esac |
| 5477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5478 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5479 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5481 | rm -f conftest.er1 |
| 5482 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5484 | (exit $ac_status); } && { |
| 5485 | test -z "$ac_c_werror_flag" || |
| 5486 | test ! -s conftest.err |
| 5487 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5488 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5489 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5490 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5492 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5493 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5494 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5495 | |
| 5496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5497 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5498 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5499 | |
| 5500 | # Is the header present? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5501 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5502 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5503 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5504 | /* confdefs.h. */ |
| 5505 | _ACEOF |
| 5506 | cat confdefs.h >>conftest.$ac_ext |
| 5507 | cat >>conftest.$ac_ext <<_ACEOF |
| 5508 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5509 | #include <$ac_header> |
| 5510 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5511 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5512 | case "(($ac_try" in |
| 5513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5514 | *) ac_try_echo=$ac_try;; |
| 5515 | esac |
| 5516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5517 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5518 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5519 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5520 | rm -f conftest.er1 |
| 5521 | cat conftest.err >&5 |
| 5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5523 | (exit $ac_status); } >/dev/null && { |
| 5524 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5525 | test ! -s conftest.err |
| 5526 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5527 | ac_header_preproc=yes |
| 5528 | else |
| 5529 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5532 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5533 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5534 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5535 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5536 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5537 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5538 | |
| 5539 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5540 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5541 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5542 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5543 | 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] | 5544 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5545 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5546 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5547 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5548 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5549 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5550 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5551 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5552 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5553 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5554 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5555 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5556 | 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] | 5557 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5558 | 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] | 5559 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5560 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5561 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5562 | ## ------------------------------------------------ ## |
| 5563 | ## Report this to http://www.python.org/python-bugs ## |
| 5564 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5565 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5566 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5567 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5568 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5569 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5570 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5571 | 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] | 5572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5573 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5574 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5575 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5576 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5577 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5578 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5579 | |
| 5580 | fi |
| 5581 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5582 | cat >>confdefs.h <<_ACEOF |
| 5583 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5584 | _ACEOF |
| 5585 | |
| 5586 | fi |
| 5587 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5588 | done |
| 5589 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5590 | |
| 5591 | |
| 5592 | |
| 5593 | |
| 5594 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5595 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5596 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 5597 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5598 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5599 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 5600 | 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] | 5601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5602 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5603 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5604 | /* confdefs.h. */ |
| 5605 | _ACEOF |
| 5606 | cat confdefs.h >>conftest.$ac_ext |
| 5607 | cat >>conftest.$ac_ext <<_ACEOF |
| 5608 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5609 | #include <sys/types.h> |
| 5610 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5612 | int |
| 5613 | main () |
| 5614 | { |
| 5615 | if ((DIR *) 0) |
| 5616 | return 0; |
| 5617 | ; |
| 5618 | return 0; |
| 5619 | } |
| 5620 | _ACEOF |
| 5621 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5622 | if { (ac_try="$ac_compile" |
| 5623 | case "(($ac_try" in |
| 5624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5625 | *) ac_try_echo=$ac_try;; |
| 5626 | esac |
| 5627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5628 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5629 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5631 | rm -f conftest.er1 |
| 5632 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5634 | (exit $ac_status); } && { |
| 5635 | test -z "$ac_c_werror_flag" || |
| 5636 | test ! -s conftest.err |
| 5637 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5638 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5640 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5642 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5643 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5644 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5645 | |
| 5646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5647 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5648 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5649 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5650 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5651 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5652 | cat >>confdefs.h <<_ACEOF |
| 5653 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 5654 | _ACEOF |
| 5655 | |
| 5656 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5657 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5658 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5659 | done |
| 5660 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5661 | if test $ac_header_dirent = dirent.h; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5662 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5663 | 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] | 5664 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5666 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5667 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5668 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5669 | /* confdefs.h. */ |
| 5670 | _ACEOF |
| 5671 | cat confdefs.h >>conftest.$ac_ext |
| 5672 | cat >>conftest.$ac_ext <<_ACEOF |
| 5673 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5674 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5675 | /* Override any GCC internal prototype to avoid an error. |
| 5676 | Use char because int might match the return type of a GCC |
| 5677 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5678 | #ifdef __cplusplus |
| 5679 | extern "C" |
| 5680 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5681 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5682 | int |
| 5683 | main () |
| 5684 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5685 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5686 | ; |
| 5687 | return 0; |
| 5688 | } |
| 5689 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5690 | for ac_lib in '' dir; do |
| 5691 | if test -z "$ac_lib"; then |
| 5692 | ac_res="none required" |
| 5693 | else |
| 5694 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5695 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5696 | fi |
| 5697 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5698 | if { (ac_try="$ac_link" |
| 5699 | case "(($ac_try" in |
| 5700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5701 | *) ac_try_echo=$ac_try;; |
| 5702 | esac |
| 5703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5704 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5705 | ac_status=$? |
| 5706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5707 | rm -f conftest.er1 |
| 5708 | cat conftest.err >&5 |
| 5709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5710 | (exit $ac_status); } && { |
| 5711 | test -z "$ac_c_werror_flag" || |
| 5712 | test ! -s conftest.err |
| 5713 | } && test -s conftest$ac_exeext && |
| 5714 | $as_test_x conftest$ac_exeext; then |
| 5715 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5716 | else |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5717 | echo "$as_me: failed program was:" >&5 |
| 5718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5719 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5720 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5721 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5722 | |
| 5723 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5724 | conftest$ac_exeext |
| 5725 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5726 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5727 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5728 | done |
| 5729 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5730 | : |
| 5731 | else |
| 5732 | ac_cv_search_opendir=no |
| 5733 | fi |
| 5734 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5735 | LIBS=$ac_func_search_save_LIBS |
| 5736 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5737 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5738 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 5739 | ac_res=$ac_cv_search_opendir |
| 5740 | if test "$ac_res" != no; then |
| 5741 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5742 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5743 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5744 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5745 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5746 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5747 | 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] | 5748 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5750 | else |
| 5751 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5752 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5753 | /* confdefs.h. */ |
| 5754 | _ACEOF |
| 5755 | cat confdefs.h >>conftest.$ac_ext |
| 5756 | cat >>conftest.$ac_ext <<_ACEOF |
| 5757 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5758 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5759 | /* Override any GCC internal prototype to avoid an error. |
| 5760 | Use char because int might match the return type of a GCC |
| 5761 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5762 | #ifdef __cplusplus |
| 5763 | extern "C" |
| 5764 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5765 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5766 | int |
| 5767 | main () |
| 5768 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5769 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5770 | ; |
| 5771 | return 0; |
| 5772 | } |
| 5773 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5774 | for ac_lib in '' x; do |
| 5775 | if test -z "$ac_lib"; then |
| 5776 | ac_res="none required" |
| 5777 | else |
| 5778 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5779 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5780 | fi |
| 5781 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5782 | if { (ac_try="$ac_link" |
| 5783 | case "(($ac_try" in |
| 5784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5785 | *) ac_try_echo=$ac_try;; |
| 5786 | esac |
| 5787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5788 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5789 | ac_status=$? |
| 5790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5791 | rm -f conftest.er1 |
| 5792 | cat conftest.err >&5 |
| 5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5794 | (exit $ac_status); } && { |
| 5795 | test -z "$ac_c_werror_flag" || |
| 5796 | test ! -s conftest.err |
| 5797 | } && test -s conftest$ac_exeext && |
| 5798 | $as_test_x conftest$ac_exeext; then |
| 5799 | ac_cv_search_opendir=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5800 | else |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5801 | echo "$as_me: failed program was:" >&5 |
| 5802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5803 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5804 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5805 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5806 | |
| 5807 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5808 | conftest$ac_exeext |
| 5809 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5810 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 5811 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5812 | done |
| 5813 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5814 | : |
| 5815 | else |
| 5816 | ac_cv_search_opendir=no |
| 5817 | fi |
| 5818 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5819 | LIBS=$ac_func_search_save_LIBS |
| 5820 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5821 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5822 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 5823 | ac_res=$ac_cv_search_opendir |
| 5824 | if test "$ac_res" != no; then |
| 5825 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5826 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5827 | fi |
| 5828 | |
| 5829 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5830 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5831 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5832 | 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] | 5833 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5835 | else |
| 5836 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5837 | /* confdefs.h. */ |
| 5838 | _ACEOF |
| 5839 | cat confdefs.h >>conftest.$ac_ext |
| 5840 | cat >>conftest.$ac_ext <<_ACEOF |
| 5841 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5842 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5843 | int |
| 5844 | main () |
| 5845 | { |
| 5846 | return makedev(0, 0); |
| 5847 | ; |
| 5848 | return 0; |
| 5849 | } |
| 5850 | _ACEOF |
| 5851 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5852 | if { (ac_try="$ac_link" |
| 5853 | case "(($ac_try" in |
| 5854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5855 | *) ac_try_echo=$ac_try;; |
| 5856 | esac |
| 5857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5858 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5859 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5861 | rm -f conftest.er1 |
| 5862 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5864 | (exit $ac_status); } && { |
| 5865 | test -z "$ac_c_werror_flag" || |
| 5866 | test ! -s conftest.err |
| 5867 | } && test -s conftest$ac_exeext && |
| 5868 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5869 | ac_cv_header_sys_types_h_makedev=yes |
| 5870 | else |
| 5871 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5873 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5874 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5875 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5876 | |
| 5877 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5878 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5879 | |
| 5880 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5881 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5882 | 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] | 5883 | |
| 5884 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5885 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5886 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5887 | 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] | 5888 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5890 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5891 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5892 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5893 | else |
| 5894 | # Is the header compilable? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5895 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5896 | 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] | 5897 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5898 | /* confdefs.h. */ |
| 5899 | _ACEOF |
| 5900 | cat confdefs.h >>conftest.$ac_ext |
| 5901 | cat >>conftest.$ac_ext <<_ACEOF |
| 5902 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5903 | $ac_includes_default |
| 5904 | #include <sys/mkdev.h> |
| 5905 | _ACEOF |
| 5906 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5907 | if { (ac_try="$ac_compile" |
| 5908 | case "(($ac_try" in |
| 5909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5910 | *) ac_try_echo=$ac_try;; |
| 5911 | esac |
| 5912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5913 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5914 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5916 | rm -f conftest.er1 |
| 5917 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5919 | (exit $ac_status); } && { |
| 5920 | test -z "$ac_c_werror_flag" || |
| 5921 | test ! -s conftest.err |
| 5922 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5923 | ac_header_compiler=yes |
| 5924 | else |
| 5925 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5927 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5928 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5929 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5930 | |
| 5931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5932 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5933 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5934 | |
| 5935 | # Is the header present? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5936 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5937 | 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] | 5938 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5939 | /* confdefs.h. */ |
| 5940 | _ACEOF |
| 5941 | cat confdefs.h >>conftest.$ac_ext |
| 5942 | cat >>conftest.$ac_ext <<_ACEOF |
| 5943 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5944 | #include <sys/mkdev.h> |
| 5945 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5946 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5947 | case "(($ac_try" in |
| 5948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5949 | *) ac_try_echo=$ac_try;; |
| 5950 | esac |
| 5951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5952 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5953 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5954 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5955 | rm -f conftest.er1 |
| 5956 | cat conftest.err >&5 |
| 5957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5958 | (exit $ac_status); } >/dev/null && { |
| 5959 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5960 | test ! -s conftest.err |
| 5961 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5962 | ac_header_preproc=yes |
| 5963 | else |
| 5964 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5966 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5967 | ac_header_preproc=no |
| 5968 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5969 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5970 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5971 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5972 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5973 | |
| 5974 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5975 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5976 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5977 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5978 | 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] | 5979 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 5980 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 5981 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5982 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5983 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5984 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5985 | 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] | 5986 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5987 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5988 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 5989 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 5990 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5991 | 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] | 5992 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 5993 | 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] | 5994 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 5995 | echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 5996 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5997 | ## ------------------------------------------------ ## |
| 5998 | ## Report this to http://www.python.org/python-bugs ## |
| 5999 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6000 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6001 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6002 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6003 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6004 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6005 | 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] | 6006 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 6007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6008 | else |
| 6009 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6010 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6011 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6012 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6013 | |
| 6014 | fi |
| 6015 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 6016 | |
| 6017 | cat >>confdefs.h <<\_ACEOF |
| 6018 | #define MAJOR_IN_MKDEV 1 |
| 6019 | _ACEOF |
| 6020 | |
| 6021 | fi |
| 6022 | |
| 6023 | |
| 6024 | |
| 6025 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6026 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6027 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6028 | 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] | 6029 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 6030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6031 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6032 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6033 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6034 | else |
| 6035 | # Is the header compilable? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6036 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6037 | 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] | 6038 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6039 | /* confdefs.h. */ |
| 6040 | _ACEOF |
| 6041 | cat confdefs.h >>conftest.$ac_ext |
| 6042 | cat >>conftest.$ac_ext <<_ACEOF |
| 6043 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6044 | $ac_includes_default |
| 6045 | #include <sys/sysmacros.h> |
| 6046 | _ACEOF |
| 6047 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6048 | if { (ac_try="$ac_compile" |
| 6049 | case "(($ac_try" in |
| 6050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6051 | *) ac_try_echo=$ac_try;; |
| 6052 | esac |
| 6053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6054 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6055 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6057 | rm -f conftest.er1 |
| 6058 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6060 | (exit $ac_status); } && { |
| 6061 | test -z "$ac_c_werror_flag" || |
| 6062 | test ! -s conftest.err |
| 6063 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6064 | ac_header_compiler=yes |
| 6065 | else |
| 6066 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6068 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6069 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6070 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6071 | |
| 6072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6073 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6074 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6075 | |
| 6076 | # Is the header present? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6077 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6078 | 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] | 6079 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6080 | /* confdefs.h. */ |
| 6081 | _ACEOF |
| 6082 | cat confdefs.h >>conftest.$ac_ext |
| 6083 | cat >>conftest.$ac_ext <<_ACEOF |
| 6084 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6085 | #include <sys/sysmacros.h> |
| 6086 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6087 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6088 | case "(($ac_try" in |
| 6089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6090 | *) ac_try_echo=$ac_try;; |
| 6091 | esac |
| 6092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6093 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6094 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6095 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6096 | rm -f conftest.er1 |
| 6097 | cat conftest.err >&5 |
| 6098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6099 | (exit $ac_status); } >/dev/null && { |
| 6100 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6101 | test ! -s conftest.err |
| 6102 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6103 | ac_header_preproc=yes |
| 6104 | else |
| 6105 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6107 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6108 | ac_header_preproc=no |
| 6109 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6110 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6111 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6112 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6113 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6114 | |
| 6115 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6116 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6117 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6118 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6119 | 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] | 6120 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6121 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 6122 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6123 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6124 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6125 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6126 | 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] | 6127 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6128 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6129 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6130 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6131 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6132 | 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] | 6133 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6134 | 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] | 6135 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6136 | echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6137 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6138 | ## ------------------------------------------------ ## |
| 6139 | ## Report this to http://www.python.org/python-bugs ## |
| 6140 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6141 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6142 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6143 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6144 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6145 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6146 | 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] | 6147 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 6148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6149 | else |
| 6150 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6151 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6152 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6153 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6154 | |
| 6155 | fi |
| 6156 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 6157 | |
| 6158 | cat >>confdefs.h <<\_ACEOF |
| 6159 | #define MAJOR_IN_SYSMACROS 1 |
| 6160 | _ACEOF |
| 6161 | |
| 6162 | fi |
| 6163 | |
| 6164 | |
| 6165 | fi |
| 6166 | fi |
| 6167 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6168 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6169 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6170 | |
| 6171 | for ac_header in term.h |
| 6172 | do |
| 6173 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6174 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6176 | 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] | 6177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6178 | else |
| 6179 | cat >conftest.$ac_ext <<_ACEOF |
| 6180 | /* confdefs.h. */ |
| 6181 | _ACEOF |
| 6182 | cat confdefs.h >>conftest.$ac_ext |
| 6183 | cat >>conftest.$ac_ext <<_ACEOF |
| 6184 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6185 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6186 | #ifdef HAVE_CURSES_H |
| 6187 | #include <curses.h> |
| 6188 | #endif |
| 6189 | |
| 6190 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6191 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6192 | _ACEOF |
| 6193 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6194 | if { (ac_try="$ac_compile" |
| 6195 | case "(($ac_try" in |
| 6196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6197 | *) ac_try_echo=$ac_try;; |
| 6198 | esac |
| 6199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6200 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6201 | ac_status=$? |
| 6202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6203 | rm -f conftest.er1 |
| 6204 | cat conftest.err >&5 |
| 6205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6206 | (exit $ac_status); } && { |
| 6207 | test -z "$ac_c_werror_flag" || |
| 6208 | test ! -s conftest.err |
| 6209 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6210 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6211 | else |
| 6212 | echo "$as_me: failed program was:" >&5 |
| 6213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6214 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6215 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6216 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6217 | |
| 6218 | 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] | 6219 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6220 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6221 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6222 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6223 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6224 | cat >>confdefs.h <<_ACEOF |
| 6225 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6226 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6227 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6228 | fi |
| 6229 | |
| 6230 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6231 | |
| 6232 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6233 | # On Linux, netlink.h requires asm/types.h |
| 6234 | |
| 6235 | for ac_header in linux/netlink.h |
| 6236 | do |
| 6237 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6238 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6239 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6240 | 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] | 6241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6242 | else |
| 6243 | cat >conftest.$ac_ext <<_ACEOF |
| 6244 | /* confdefs.h. */ |
| 6245 | _ACEOF |
| 6246 | cat confdefs.h >>conftest.$ac_ext |
| 6247 | cat >>conftest.$ac_ext <<_ACEOF |
| 6248 | /* end confdefs.h. */ |
| 6249 | |
| 6250 | #ifdef HAVE_ASM_TYPES_H |
| 6251 | #include <asm/types.h> |
| 6252 | #endif |
| 6253 | #ifdef HAVE_SYS_SOCKET_H |
| 6254 | #include <sys/socket.h> |
| 6255 | #endif |
| 6256 | |
| 6257 | |
| 6258 | #include <$ac_header> |
| 6259 | _ACEOF |
| 6260 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6261 | if { (ac_try="$ac_compile" |
| 6262 | case "(($ac_try" in |
| 6263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6264 | *) ac_try_echo=$ac_try;; |
| 6265 | esac |
| 6266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6267 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6268 | ac_status=$? |
| 6269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6270 | rm -f conftest.er1 |
| 6271 | cat conftest.err >&5 |
| 6272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6273 | (exit $ac_status); } && { |
| 6274 | test -z "$ac_c_werror_flag" || |
| 6275 | test ! -s conftest.err |
| 6276 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6277 | eval "$as_ac_Header=yes" |
| 6278 | else |
| 6279 | echo "$as_me: failed program was:" >&5 |
| 6280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6281 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6282 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6283 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6284 | |
| 6285 | 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] | 6286 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6287 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6288 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6289 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6290 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6291 | cat >>confdefs.h <<_ACEOF |
| 6292 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6293 | _ACEOF |
| 6294 | |
| 6295 | fi |
| 6296 | |
| 6297 | done |
| 6298 | |
| 6299 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6300 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6301 | was_it_defined=no |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6302 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6303 | 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] | 6304 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6305 | /* confdefs.h. */ |
| 6306 | _ACEOF |
| 6307 | cat confdefs.h >>conftest.$ac_ext |
| 6308 | cat >>conftest.$ac_ext <<_ACEOF |
| 6309 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6310 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6311 | |
| 6312 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6313 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6314 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6315 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6316 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6317 | |
| 6318 | |
| 6319 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6320 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6321 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6322 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6323 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6324 | fi |
| 6325 | rm -f conftest* |
| 6326 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6327 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6328 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6329 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6330 | # Check whether using makedev requires defining _OSF_SOURCE |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6331 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6332 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6333 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6334 | /* confdefs.h. */ |
| 6335 | _ACEOF |
| 6336 | cat confdefs.h >>conftest.$ac_ext |
| 6337 | cat >>conftest.$ac_ext <<_ACEOF |
| 6338 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6339 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6340 | int |
| 6341 | main () |
| 6342 | { |
| 6343 | makedev(0, 0) |
| 6344 | ; |
| 6345 | return 0; |
| 6346 | } |
| 6347 | _ACEOF |
| 6348 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6349 | if { (ac_try="$ac_link" |
| 6350 | case "(($ac_try" in |
| 6351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6352 | *) ac_try_echo=$ac_try;; |
| 6353 | esac |
| 6354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6355 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6356 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6358 | rm -f conftest.er1 |
| 6359 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6361 | (exit $ac_status); } && { |
| 6362 | test -z "$ac_c_werror_flag" || |
| 6363 | test ! -s conftest.err |
| 6364 | } && test -s conftest$ac_exeext && |
| 6365 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6366 | ac_cv_has_makedev=yes |
| 6367 | else |
| 6368 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6370 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6371 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6372 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6373 | |
| 6374 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6375 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6376 | if test "$ac_cv_has_makedev" = "no"; then |
| 6377 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6378 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6379 | /* confdefs.h. */ |
| 6380 | _ACEOF |
| 6381 | cat confdefs.h >>conftest.$ac_ext |
| 6382 | cat >>conftest.$ac_ext <<_ACEOF |
| 6383 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6384 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6385 | #define _OSF_SOURCE 1 |
| 6386 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6387 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6388 | int |
| 6389 | main () |
| 6390 | { |
| 6391 | makedev(0, 0) |
| 6392 | ; |
| 6393 | return 0; |
| 6394 | } |
| 6395 | _ACEOF |
| 6396 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6397 | if { (ac_try="$ac_link" |
| 6398 | case "(($ac_try" in |
| 6399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6400 | *) ac_try_echo=$ac_try;; |
| 6401 | esac |
| 6402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6403 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6404 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6406 | rm -f conftest.er1 |
| 6407 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6409 | (exit $ac_status); } && { |
| 6410 | test -z "$ac_c_werror_flag" || |
| 6411 | test ! -s conftest.err |
| 6412 | } && test -s conftest$ac_exeext && |
| 6413 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6414 | ac_cv_has_makedev=yes |
| 6415 | else |
| 6416 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6418 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6419 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6420 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6421 | |
| 6422 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6423 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6424 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6425 | |
| 6426 | cat >>confdefs.h <<\_ACEOF |
| 6427 | #define _OSF_SOURCE 1 |
| 6428 | _ACEOF |
| 6429 | |
| 6430 | fi |
| 6431 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6432 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6433 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6434 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6435 | |
| 6436 | cat >>confdefs.h <<\_ACEOF |
| 6437 | #define HAVE_MAKEDEV 1 |
| 6438 | _ACEOF |
| 6439 | |
| 6440 | fi |
| 6441 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6442 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6443 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6444 | # defined, but the compiler does not support pragma redefine_extname, |
| 6445 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6446 | # structures (such as rlimit64) without declaring them. As a |
| 6447 | # work-around, disable LFS on such configurations |
| 6448 | |
| 6449 | use_lfs=yes |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6450 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6451 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6452 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6453 | /* confdefs.h. */ |
| 6454 | _ACEOF |
| 6455 | cat confdefs.h >>conftest.$ac_ext |
| 6456 | cat >>conftest.$ac_ext <<_ACEOF |
| 6457 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6458 | |
| 6459 | #define _LARGEFILE_SOURCE 1 |
| 6460 | #define _FILE_OFFSET_BITS 64 |
| 6461 | #include <sys/resource.h> |
| 6462 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6463 | int |
| 6464 | main () |
| 6465 | { |
| 6466 | struct rlimit foo; |
| 6467 | ; |
| 6468 | return 0; |
| 6469 | } |
| 6470 | _ACEOF |
| 6471 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6472 | if { (ac_try="$ac_compile" |
| 6473 | case "(($ac_try" in |
| 6474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6475 | *) ac_try_echo=$ac_try;; |
| 6476 | esac |
| 6477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6478 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6479 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6481 | rm -f conftest.er1 |
| 6482 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6484 | (exit $ac_status); } && { |
| 6485 | test -z "$ac_c_werror_flag" || |
| 6486 | test ! -s conftest.err |
| 6487 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6488 | sol_lfs_bug=no |
| 6489 | else |
| 6490 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6492 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6493 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6494 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6495 | |
| 6496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6497 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6498 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6499 | if test "$sol_lfs_bug" = "yes"; then |
| 6500 | use_lfs=no |
| 6501 | fi |
| 6502 | |
| 6503 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6504 | # Two defines needed to enable largefile support on various platforms |
| 6505 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6507 | cat >>confdefs.h <<\_ACEOF |
| 6508 | #define _LARGEFILE_SOURCE 1 |
| 6509 | _ACEOF |
| 6510 | |
| 6511 | |
| 6512 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6513 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6514 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6515 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6516 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6517 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6518 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6519 | cat >> confdefs.h <<\EOF |
| 6520 | #if defined(SCO_DS) |
| 6521 | #undef _OFF_T |
| 6522 | #endif |
| 6523 | EOF |
| 6524 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6525 | # Type availability checks |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6526 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6527 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6528 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 6529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6530 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6531 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6532 | /* confdefs.h. */ |
| 6533 | _ACEOF |
| 6534 | cat confdefs.h >>conftest.$ac_ext |
| 6535 | cat >>conftest.$ac_ext <<_ACEOF |
| 6536 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6537 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6538 | typedef mode_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6539 | int |
| 6540 | main () |
| 6541 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6542 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6543 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6544 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6545 | return 0; |
| 6546 | ; |
| 6547 | return 0; |
| 6548 | } |
| 6549 | _ACEOF |
| 6550 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6551 | if { (ac_try="$ac_compile" |
| 6552 | case "(($ac_try" in |
| 6553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6554 | *) ac_try_echo=$ac_try;; |
| 6555 | esac |
| 6556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6557 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6558 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6560 | rm -f conftest.er1 |
| 6561 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6563 | (exit $ac_status); } && { |
| 6564 | test -z "$ac_c_werror_flag" || |
| 6565 | test ! -s conftest.err |
| 6566 | } && test -s conftest.$ac_objext; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6567 | ac_cv_type_mode_t=yes |
| 6568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6569 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6571 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6572 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6573 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6574 | |
| 6575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6576 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6577 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6578 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6579 | if test $ac_cv_type_mode_t = yes; then |
| 6580 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6581 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6582 | |
| 6583 | cat >>confdefs.h <<_ACEOF |
| 6584 | #define mode_t int |
| 6585 | _ACEOF |
| 6586 | |
| 6587 | fi |
| 6588 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6589 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6590 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6591 | if test "${ac_cv_type_off_t+set}" = set; then |
| 6592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6593 | else |
| 6594 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6595 | /* confdefs.h. */ |
| 6596 | _ACEOF |
| 6597 | cat confdefs.h >>conftest.$ac_ext |
| 6598 | cat >>conftest.$ac_ext <<_ACEOF |
| 6599 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6600 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6601 | typedef off_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6602 | int |
| 6603 | main () |
| 6604 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6605 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6606 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6607 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6608 | return 0; |
| 6609 | ; |
| 6610 | return 0; |
| 6611 | } |
| 6612 | _ACEOF |
| 6613 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6614 | if { (ac_try="$ac_compile" |
| 6615 | case "(($ac_try" in |
| 6616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6617 | *) ac_try_echo=$ac_try;; |
| 6618 | esac |
| 6619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6620 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6621 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6623 | rm -f conftest.er1 |
| 6624 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6626 | (exit $ac_status); } && { |
| 6627 | test -z "$ac_c_werror_flag" || |
| 6628 | test ! -s conftest.err |
| 6629 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6630 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6631 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6632 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6634 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6635 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6636 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6637 | |
| 6638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6639 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6640 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6641 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6642 | if test $ac_cv_type_off_t = yes; then |
| 6643 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6644 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6645 | |
| 6646 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6647 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6648 | _ACEOF |
| 6649 | |
| 6650 | fi |
| 6651 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6652 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6653 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6654 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 6655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6656 | else |
| 6657 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6658 | /* confdefs.h. */ |
| 6659 | _ACEOF |
| 6660 | cat confdefs.h >>conftest.$ac_ext |
| 6661 | cat >>conftest.$ac_ext <<_ACEOF |
| 6662 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6663 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6664 | typedef pid_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6665 | int |
| 6666 | main () |
| 6667 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6668 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6669 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6670 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6671 | return 0; |
| 6672 | ; |
| 6673 | return 0; |
| 6674 | } |
| 6675 | _ACEOF |
| 6676 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6677 | if { (ac_try="$ac_compile" |
| 6678 | case "(($ac_try" in |
| 6679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6680 | *) ac_try_echo=$ac_try;; |
| 6681 | esac |
| 6682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6683 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6684 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6686 | rm -f conftest.er1 |
| 6687 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6689 | (exit $ac_status); } && { |
| 6690 | test -z "$ac_c_werror_flag" || |
| 6691 | test ! -s conftest.err |
| 6692 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6693 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6694 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6695 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6697 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6698 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6699 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6700 | |
| 6701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6702 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6703 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6704 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6705 | if test $ac_cv_type_pid_t = yes; then |
| 6706 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6708 | |
| 6709 | cat >>confdefs.h <<_ACEOF |
| 6710 | #define pid_t int |
| 6711 | _ACEOF |
| 6712 | |
| 6713 | fi |
| 6714 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6715 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6716 | 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] | 6717 | if test "${ac_cv_type_signal+set}" = set; then |
| 6718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6719 | else |
| 6720 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6721 | /* confdefs.h. */ |
| 6722 | _ACEOF |
| 6723 | cat confdefs.h >>conftest.$ac_ext |
| 6724 | cat >>conftest.$ac_ext <<_ACEOF |
| 6725 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6726 | #include <sys/types.h> |
| 6727 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6729 | int |
| 6730 | main () |
| 6731 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6732 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6733 | ; |
| 6734 | return 0; |
| 6735 | } |
| 6736 | _ACEOF |
| 6737 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6738 | if { (ac_try="$ac_compile" |
| 6739 | case "(($ac_try" in |
| 6740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6741 | *) ac_try_echo=$ac_try;; |
| 6742 | esac |
| 6743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6744 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6745 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6747 | rm -f conftest.er1 |
| 6748 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6750 | (exit $ac_status); } && { |
| 6751 | test -z "$ac_c_werror_flag" || |
| 6752 | test ! -s conftest.err |
| 6753 | } && test -s conftest.$ac_objext; then |
| 6754 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6756 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6758 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6759 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6760 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6761 | |
| 6762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6763 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6764 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6765 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6767 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6768 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6769 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6770 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6771 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6772 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6773 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6774 | if test "${ac_cv_type_size_t+set}" = set; then |
| 6775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6776 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6777 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6778 | /* confdefs.h. */ |
| 6779 | _ACEOF |
| 6780 | cat confdefs.h >>conftest.$ac_ext |
| 6781 | cat >>conftest.$ac_ext <<_ACEOF |
| 6782 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6783 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6784 | typedef size_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6785 | int |
| 6786 | main () |
| 6787 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6788 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6789 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6790 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6791 | return 0; |
| 6792 | ; |
| 6793 | return 0; |
| 6794 | } |
| 6795 | _ACEOF |
| 6796 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6797 | if { (ac_try="$ac_compile" |
| 6798 | case "(($ac_try" in |
| 6799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6800 | *) ac_try_echo=$ac_try;; |
| 6801 | esac |
| 6802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6803 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6804 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6806 | rm -f conftest.er1 |
| 6807 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6809 | (exit $ac_status); } && { |
| 6810 | test -z "$ac_c_werror_flag" || |
| 6811 | test ! -s conftest.err |
| 6812 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6813 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6814 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6815 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6817 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6818 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6819 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6820 | |
| 6821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6822 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6823 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6824 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6825 | if test $ac_cv_type_size_t = yes; then |
| 6826 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6827 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6828 | |
| 6829 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6830 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6831 | _ACEOF |
| 6832 | |
| 6833 | fi |
| 6834 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6835 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6836 | 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] | 6837 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 6838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6839 | else |
| 6840 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6841 | /* confdefs.h. */ |
| 6842 | _ACEOF |
| 6843 | cat confdefs.h >>conftest.$ac_ext |
| 6844 | cat >>conftest.$ac_ext <<_ACEOF |
| 6845 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6846 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6847 | |
| 6848 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6849 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6850 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6851 | ac_cv_type_uid_t=yes |
| 6852 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6853 | ac_cv_type_uid_t=no |
| 6854 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6855 | rm -f conftest* |
| 6856 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6857 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6858 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 6859 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6860 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6861 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6862 | cat >>confdefs.h <<\_ACEOF |
| 6863 | #define uid_t int |
| 6864 | _ACEOF |
| 6865 | |
| 6866 | |
| 6867 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6868 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6869 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6870 | |
| 6871 | fi |
| 6872 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6873 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 6874 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6875 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 6876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6877 | else |
| 6878 | cat >conftest.$ac_ext <<_ACEOF |
| 6879 | /* confdefs.h. */ |
| 6880 | _ACEOF |
| 6881 | cat confdefs.h >>conftest.$ac_ext |
| 6882 | cat >>conftest.$ac_ext <<_ACEOF |
| 6883 | /* end confdefs.h. */ |
| 6884 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6885 | typedef ssize_t ac__type_new_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6886 | int |
| 6887 | main () |
| 6888 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6889 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6890 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6891 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6892 | return 0; |
| 6893 | ; |
| 6894 | return 0; |
| 6895 | } |
| 6896 | _ACEOF |
| 6897 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6898 | if { (ac_try="$ac_compile" |
| 6899 | case "(($ac_try" in |
| 6900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6901 | *) ac_try_echo=$ac_try;; |
| 6902 | esac |
| 6903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6904 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6905 | ac_status=$? |
| 6906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6907 | rm -f conftest.er1 |
| 6908 | cat conftest.err >&5 |
| 6909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6910 | (exit $ac_status); } && { |
| 6911 | test -z "$ac_c_werror_flag" || |
| 6912 | test ! -s conftest.err |
| 6913 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6914 | ac_cv_type_ssize_t=yes |
| 6915 | else |
| 6916 | echo "$as_me: failed program was:" >&5 |
| 6917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6918 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6919 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6920 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6921 | |
| 6922 | 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] | 6923 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6924 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 6925 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6926 | if test $ac_cv_type_ssize_t = yes; then |
| 6927 | |
| 6928 | cat >>confdefs.h <<\_ACEOF |
| 6929 | #define HAVE_SSIZE_T 1 |
| 6930 | _ACEOF |
| 6931 | |
| 6932 | fi |
| 6933 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6934 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6935 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6936 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6937 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 6938 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6939 | if test "${ac_cv_type_int+set}" = set; then |
| 6940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6941 | else |
| 6942 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6943 | /* confdefs.h. */ |
| 6944 | _ACEOF |
| 6945 | cat confdefs.h >>conftest.$ac_ext |
| 6946 | cat >>conftest.$ac_ext <<_ACEOF |
| 6947 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6948 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6949 | typedef int ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6950 | int |
| 6951 | main () |
| 6952 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6953 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6954 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6955 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6956 | return 0; |
| 6957 | ; |
| 6958 | return 0; |
| 6959 | } |
| 6960 | _ACEOF |
| 6961 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6962 | if { (ac_try="$ac_compile" |
| 6963 | case "(($ac_try" in |
| 6964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6965 | *) ac_try_echo=$ac_try;; |
| 6966 | esac |
| 6967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6968 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6969 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6971 | rm -f conftest.er1 |
| 6972 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6974 | (exit $ac_status); } && { |
| 6975 | test -z "$ac_c_werror_flag" || |
| 6976 | test ! -s conftest.err |
| 6977 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6978 | ac_cv_type_int=yes |
| 6979 | else |
| 6980 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6982 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6983 | ac_cv_type_int=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6984 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6985 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 6986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6987 | fi |
| 6988 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6989 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 6990 | |
| 6991 | # The cast to long int works around a bug in the HP C Compiler |
| 6992 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6993 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6994 | # This bug is HP SR number 8606223364. |
| 6995 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 6996 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6997 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6999 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7000 | if test "$cross_compiling" = yes; then |
| 7001 | # Depending upon the size, compute the lo and hi bounds. |
| 7002 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7003 | /* confdefs.h. */ |
| 7004 | _ACEOF |
| 7005 | cat confdefs.h >>conftest.$ac_ext |
| 7006 | cat >>conftest.$ac_ext <<_ACEOF |
| 7007 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7008 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7009 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7010 | int |
| 7011 | main () |
| 7012 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7013 | 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] | 7014 | test_array [0] = 0 |
| 7015 | |
| 7016 | ; |
| 7017 | return 0; |
| 7018 | } |
| 7019 | _ACEOF |
| 7020 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7021 | if { (ac_try="$ac_compile" |
| 7022 | case "(($ac_try" in |
| 7023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7024 | *) ac_try_echo=$ac_try;; |
| 7025 | esac |
| 7026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7027 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7028 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7030 | rm -f conftest.er1 |
| 7031 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7033 | (exit $ac_status); } && { |
| 7034 | test -z "$ac_c_werror_flag" || |
| 7035 | test ! -s conftest.err |
| 7036 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7037 | ac_lo=0 ac_mid=0 |
| 7038 | while :; do |
| 7039 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7040 | /* confdefs.h. */ |
| 7041 | _ACEOF |
| 7042 | cat confdefs.h >>conftest.$ac_ext |
| 7043 | cat >>conftest.$ac_ext <<_ACEOF |
| 7044 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7045 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7046 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7047 | int |
| 7048 | main () |
| 7049 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7050 | 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] | 7051 | test_array [0] = 0 |
| 7052 | |
| 7053 | ; |
| 7054 | return 0; |
| 7055 | } |
| 7056 | _ACEOF |
| 7057 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7058 | if { (ac_try="$ac_compile" |
| 7059 | case "(($ac_try" in |
| 7060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7061 | *) ac_try_echo=$ac_try;; |
| 7062 | esac |
| 7063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7064 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7065 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7066 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7067 | rm -f conftest.er1 |
| 7068 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7070 | (exit $ac_status); } && { |
| 7071 | test -z "$ac_c_werror_flag" || |
| 7072 | test ! -s conftest.err |
| 7073 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7074 | ac_hi=$ac_mid; break |
| 7075 | else |
| 7076 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7078 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7079 | ac_lo=`expr $ac_mid + 1` |
| 7080 | if test $ac_lo -le $ac_mid; then |
| 7081 | ac_lo= ac_hi= |
| 7082 | break |
| 7083 | fi |
| 7084 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7085 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7086 | |
| 7087 | 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] | 7088 | done |
| 7089 | else |
| 7090 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7092 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7093 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7094 | /* confdefs.h. */ |
| 7095 | _ACEOF |
| 7096 | cat confdefs.h >>conftest.$ac_ext |
| 7097 | cat >>conftest.$ac_ext <<_ACEOF |
| 7098 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7099 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7100 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7101 | int |
| 7102 | main () |
| 7103 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7104 | 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] | 7105 | test_array [0] = 0 |
| 7106 | |
| 7107 | ; |
| 7108 | return 0; |
| 7109 | } |
| 7110 | _ACEOF |
| 7111 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7112 | if { (ac_try="$ac_compile" |
| 7113 | case "(($ac_try" in |
| 7114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7115 | *) ac_try_echo=$ac_try;; |
| 7116 | esac |
| 7117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7118 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7119 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7121 | rm -f conftest.er1 |
| 7122 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7124 | (exit $ac_status); } && { |
| 7125 | test -z "$ac_c_werror_flag" || |
| 7126 | test ! -s conftest.err |
| 7127 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7128 | ac_hi=-1 ac_mid=-1 |
| 7129 | while :; do |
| 7130 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7131 | /* confdefs.h. */ |
| 7132 | _ACEOF |
| 7133 | cat confdefs.h >>conftest.$ac_ext |
| 7134 | cat >>conftest.$ac_ext <<_ACEOF |
| 7135 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7136 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7137 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7138 | int |
| 7139 | main () |
| 7140 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7141 | 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] | 7142 | test_array [0] = 0 |
| 7143 | |
| 7144 | ; |
| 7145 | return 0; |
| 7146 | } |
| 7147 | _ACEOF |
| 7148 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7149 | if { (ac_try="$ac_compile" |
| 7150 | case "(($ac_try" in |
| 7151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7152 | *) ac_try_echo=$ac_try;; |
| 7153 | esac |
| 7154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7155 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7156 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7158 | rm -f conftest.er1 |
| 7159 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7161 | (exit $ac_status); } && { |
| 7162 | test -z "$ac_c_werror_flag" || |
| 7163 | test ! -s conftest.err |
| 7164 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7165 | ac_lo=$ac_mid; break |
| 7166 | else |
| 7167 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7169 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7170 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7171 | if test $ac_mid -le $ac_hi; then |
| 7172 | ac_lo= ac_hi= |
| 7173 | break |
| 7174 | fi |
| 7175 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7176 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7177 | |
| 7178 | 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] | 7179 | done |
| 7180 | else |
| 7181 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7183 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7184 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7185 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7186 | |
| 7187 | 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] | 7188 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7189 | |
| 7190 | 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] | 7191 | # Binary search between lo and hi bounds. |
| 7192 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7193 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7194 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7195 | /* confdefs.h. */ |
| 7196 | _ACEOF |
| 7197 | cat confdefs.h >>conftest.$ac_ext |
| 7198 | cat >>conftest.$ac_ext <<_ACEOF |
| 7199 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7200 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7201 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7202 | int |
| 7203 | main () |
| 7204 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7205 | 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] | 7206 | test_array [0] = 0 |
| 7207 | |
| 7208 | ; |
| 7209 | return 0; |
| 7210 | } |
| 7211 | _ACEOF |
| 7212 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7213 | if { (ac_try="$ac_compile" |
| 7214 | case "(($ac_try" in |
| 7215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7216 | *) ac_try_echo=$ac_try;; |
| 7217 | esac |
| 7218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7219 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7220 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7222 | rm -f conftest.er1 |
| 7223 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7225 | (exit $ac_status); } && { |
| 7226 | test -z "$ac_c_werror_flag" || |
| 7227 | test ! -s conftest.err |
| 7228 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7229 | ac_hi=$ac_mid |
| 7230 | else |
| 7231 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7233 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7234 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7235 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7236 | |
| 7237 | 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] | 7238 | done |
| 7239 | case $ac_lo in |
| 7240 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7241 | '') if test "$ac_cv_type_int" = yes; then |
| 7242 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7243 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7244 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7245 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7246 | { (exit 77); exit 77; }; } |
| 7247 | else |
| 7248 | ac_cv_sizeof_int=0 |
| 7249 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7250 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7251 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7252 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7253 | /* confdefs.h. */ |
| 7254 | _ACEOF |
| 7255 | cat confdefs.h >>conftest.$ac_ext |
| 7256 | cat >>conftest.$ac_ext <<_ACEOF |
| 7257 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7258 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7259 | typedef int ac__type_sizeof_; |
| 7260 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7261 | 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] | 7262 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7263 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7264 | int |
| 7265 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7266 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7267 | |
| 7268 | FILE *f = fopen ("conftest.val", "w"); |
| 7269 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7270 | return 1; |
| 7271 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7272 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7273 | long int i = longval (); |
| 7274 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7275 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7276 | fprintf (f, "%ld\n", i); |
| 7277 | } |
| 7278 | else |
| 7279 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7280 | unsigned long int i = ulongval (); |
| 7281 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7282 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7283 | fprintf (f, "%lu\n", i); |
| 7284 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7285 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7286 | |
| 7287 | ; |
| 7288 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7289 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7290 | _ACEOF |
| 7291 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7292 | if { (ac_try="$ac_link" |
| 7293 | case "(($ac_try" in |
| 7294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7295 | *) ac_try_echo=$ac_try;; |
| 7296 | esac |
| 7297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7298 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7299 | ac_status=$? |
| 7300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7301 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7302 | { (case "(($ac_try" in |
| 7303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7304 | *) ac_try_echo=$ac_try;; |
| 7305 | esac |
| 7306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7307 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7308 | ac_status=$? |
| 7309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7310 | (exit $ac_status); }; }; then |
| 7311 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7312 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7313 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7314 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7317 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7318 | if test "$ac_cv_type_int" = yes; then |
| 7319 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7320 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7321 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7322 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7323 | { (exit 77); exit 77; }; } |
| 7324 | else |
| 7325 | ac_cv_sizeof_int=0 |
| 7326 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7327 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7328 | 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] | 7329 | fi |
| 7330 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7331 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7332 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 7333 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
| 7334 | |
| 7335 | |
| 7336 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7337 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7338 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7339 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7340 | |
| 7341 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7342 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 7343 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7344 | if test "${ac_cv_type_long+set}" = set; then |
| 7345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7346 | else |
| 7347 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7348 | /* confdefs.h. */ |
| 7349 | _ACEOF |
| 7350 | cat confdefs.h >>conftest.$ac_ext |
| 7351 | cat >>conftest.$ac_ext <<_ACEOF |
| 7352 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7353 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7354 | typedef long ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7355 | int |
| 7356 | main () |
| 7357 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7358 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7359 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7360 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7361 | return 0; |
| 7362 | ; |
| 7363 | return 0; |
| 7364 | } |
| 7365 | _ACEOF |
| 7366 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7367 | if { (ac_try="$ac_compile" |
| 7368 | case "(($ac_try" in |
| 7369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7370 | *) ac_try_echo=$ac_try;; |
| 7371 | esac |
| 7372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7373 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7374 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7376 | rm -f conftest.er1 |
| 7377 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7379 | (exit $ac_status); } && { |
| 7380 | test -z "$ac_c_werror_flag" || |
| 7381 | test ! -s conftest.err |
| 7382 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7383 | ac_cv_type_long=yes |
| 7384 | else |
| 7385 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7387 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7388 | ac_cv_type_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7389 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7390 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7392 | fi |
| 7393 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 7394 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 7395 | |
| 7396 | # The cast to long int works around a bug in the HP C Compiler |
| 7397 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7398 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7399 | # This bug is HP SR number 8606223364. |
| 7400 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 7401 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7402 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 7403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7405 | if test "$cross_compiling" = yes; then |
| 7406 | # Depending upon the size, compute the lo and hi bounds. |
| 7407 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7408 | /* confdefs.h. */ |
| 7409 | _ACEOF |
| 7410 | cat confdefs.h >>conftest.$ac_ext |
| 7411 | cat >>conftest.$ac_ext <<_ACEOF |
| 7412 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7413 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7414 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7415 | int |
| 7416 | main () |
| 7417 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7418 | 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] | 7419 | test_array [0] = 0 |
| 7420 | |
| 7421 | ; |
| 7422 | return 0; |
| 7423 | } |
| 7424 | _ACEOF |
| 7425 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7426 | if { (ac_try="$ac_compile" |
| 7427 | case "(($ac_try" in |
| 7428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7429 | *) ac_try_echo=$ac_try;; |
| 7430 | esac |
| 7431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7432 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7433 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7435 | rm -f conftest.er1 |
| 7436 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7438 | (exit $ac_status); } && { |
| 7439 | test -z "$ac_c_werror_flag" || |
| 7440 | test ! -s conftest.err |
| 7441 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7442 | ac_lo=0 ac_mid=0 |
| 7443 | while :; do |
| 7444 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7445 | /* confdefs.h. */ |
| 7446 | _ACEOF |
| 7447 | cat confdefs.h >>conftest.$ac_ext |
| 7448 | cat >>conftest.$ac_ext <<_ACEOF |
| 7449 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7450 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7451 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7452 | int |
| 7453 | main () |
| 7454 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7455 | 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] | 7456 | test_array [0] = 0 |
| 7457 | |
| 7458 | ; |
| 7459 | return 0; |
| 7460 | } |
| 7461 | _ACEOF |
| 7462 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7463 | if { (ac_try="$ac_compile" |
| 7464 | case "(($ac_try" in |
| 7465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7466 | *) ac_try_echo=$ac_try;; |
| 7467 | esac |
| 7468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7469 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7470 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7472 | rm -f conftest.er1 |
| 7473 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7475 | (exit $ac_status); } && { |
| 7476 | test -z "$ac_c_werror_flag" || |
| 7477 | test ! -s conftest.err |
| 7478 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7479 | ac_hi=$ac_mid; break |
| 7480 | else |
| 7481 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7483 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7484 | ac_lo=`expr $ac_mid + 1` |
| 7485 | if test $ac_lo -le $ac_mid; then |
| 7486 | ac_lo= ac_hi= |
| 7487 | break |
| 7488 | fi |
| 7489 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7490 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7491 | |
| 7492 | 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] | 7493 | done |
| 7494 | else |
| 7495 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7497 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7498 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7499 | /* confdefs.h. */ |
| 7500 | _ACEOF |
| 7501 | cat confdefs.h >>conftest.$ac_ext |
| 7502 | cat >>conftest.$ac_ext <<_ACEOF |
| 7503 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7504 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7505 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7506 | int |
| 7507 | main () |
| 7508 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7509 | 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] | 7510 | test_array [0] = 0 |
| 7511 | |
| 7512 | ; |
| 7513 | return 0; |
| 7514 | } |
| 7515 | _ACEOF |
| 7516 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7517 | if { (ac_try="$ac_compile" |
| 7518 | case "(($ac_try" in |
| 7519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7520 | *) ac_try_echo=$ac_try;; |
| 7521 | esac |
| 7522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7523 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7524 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7526 | rm -f conftest.er1 |
| 7527 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7529 | (exit $ac_status); } && { |
| 7530 | test -z "$ac_c_werror_flag" || |
| 7531 | test ! -s conftest.err |
| 7532 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7533 | ac_hi=-1 ac_mid=-1 |
| 7534 | while :; do |
| 7535 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7536 | /* confdefs.h. */ |
| 7537 | _ACEOF |
| 7538 | cat confdefs.h >>conftest.$ac_ext |
| 7539 | cat >>conftest.$ac_ext <<_ACEOF |
| 7540 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7541 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7542 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7543 | int |
| 7544 | main () |
| 7545 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7546 | 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] | 7547 | test_array [0] = 0 |
| 7548 | |
| 7549 | ; |
| 7550 | return 0; |
| 7551 | } |
| 7552 | _ACEOF |
| 7553 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7554 | if { (ac_try="$ac_compile" |
| 7555 | case "(($ac_try" in |
| 7556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7557 | *) ac_try_echo=$ac_try;; |
| 7558 | esac |
| 7559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7560 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7561 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7563 | rm -f conftest.er1 |
| 7564 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7566 | (exit $ac_status); } && { |
| 7567 | test -z "$ac_c_werror_flag" || |
| 7568 | test ! -s conftest.err |
| 7569 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7570 | ac_lo=$ac_mid; break |
| 7571 | else |
| 7572 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7574 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7575 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7576 | if test $ac_mid -le $ac_hi; then |
| 7577 | ac_lo= ac_hi= |
| 7578 | break |
| 7579 | fi |
| 7580 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7581 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7582 | |
| 7583 | 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] | 7584 | done |
| 7585 | else |
| 7586 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7588 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7589 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7590 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7591 | |
| 7592 | 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] | 7593 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7594 | |
| 7595 | 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] | 7596 | # Binary search between lo and hi bounds. |
| 7597 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7598 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7599 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7600 | /* confdefs.h. */ |
| 7601 | _ACEOF |
| 7602 | cat confdefs.h >>conftest.$ac_ext |
| 7603 | cat >>conftest.$ac_ext <<_ACEOF |
| 7604 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7605 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7606 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7607 | int |
| 7608 | main () |
| 7609 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7610 | 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] | 7611 | test_array [0] = 0 |
| 7612 | |
| 7613 | ; |
| 7614 | return 0; |
| 7615 | } |
| 7616 | _ACEOF |
| 7617 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7618 | if { (ac_try="$ac_compile" |
| 7619 | case "(($ac_try" in |
| 7620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7621 | *) ac_try_echo=$ac_try;; |
| 7622 | esac |
| 7623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7624 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7625 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7627 | rm -f conftest.er1 |
| 7628 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7630 | (exit $ac_status); } && { |
| 7631 | test -z "$ac_c_werror_flag" || |
| 7632 | test ! -s conftest.err |
| 7633 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7634 | ac_hi=$ac_mid |
| 7635 | else |
| 7636 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7638 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7639 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7640 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7641 | |
| 7642 | 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] | 7643 | done |
| 7644 | case $ac_lo in |
| 7645 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7646 | '') if test "$ac_cv_type_long" = yes; then |
| 7647 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7648 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7649 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7650 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7651 | { (exit 77); exit 77; }; } |
| 7652 | else |
| 7653 | ac_cv_sizeof_long=0 |
| 7654 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7655 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7657 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7658 | /* confdefs.h. */ |
| 7659 | _ACEOF |
| 7660 | cat confdefs.h >>conftest.$ac_ext |
| 7661 | cat >>conftest.$ac_ext <<_ACEOF |
| 7662 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7663 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7664 | typedef long ac__type_sizeof_; |
| 7665 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7666 | 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] | 7667 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7668 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7669 | int |
| 7670 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7671 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7672 | |
| 7673 | FILE *f = fopen ("conftest.val", "w"); |
| 7674 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7675 | return 1; |
| 7676 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7677 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7678 | long int i = longval (); |
| 7679 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7680 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7681 | fprintf (f, "%ld\n", i); |
| 7682 | } |
| 7683 | else |
| 7684 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7685 | unsigned long int i = ulongval (); |
| 7686 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7687 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7688 | fprintf (f, "%lu\n", i); |
| 7689 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7690 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7691 | |
| 7692 | ; |
| 7693 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7694 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7695 | _ACEOF |
| 7696 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7697 | if { (ac_try="$ac_link" |
| 7698 | case "(($ac_try" in |
| 7699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7700 | *) ac_try_echo=$ac_try;; |
| 7701 | esac |
| 7702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7703 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7704 | ac_status=$? |
| 7705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7706 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7707 | { (case "(($ac_try" in |
| 7708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7709 | *) ac_try_echo=$ac_try;; |
| 7710 | esac |
| 7711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7712 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7713 | ac_status=$? |
| 7714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7715 | (exit $ac_status); }; }; then |
| 7716 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7717 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7718 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7719 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7722 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7723 | if test "$ac_cv_type_long" = yes; then |
| 7724 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7725 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7726 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7727 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7728 | { (exit 77); exit 77; }; } |
| 7729 | else |
| 7730 | ac_cv_sizeof_long=0 |
| 7731 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7732 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7733 | 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] | 7734 | fi |
| 7735 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7736 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7737 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 7738 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
| 7739 | |
| 7740 | |
| 7741 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7742 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7743 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7744 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7745 | |
| 7746 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7747 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 7748 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7749 | if test "${ac_cv_type_void_p+set}" = set; then |
| 7750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7751 | else |
| 7752 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7753 | /* confdefs.h. */ |
| 7754 | _ACEOF |
| 7755 | cat confdefs.h >>conftest.$ac_ext |
| 7756 | cat >>conftest.$ac_ext <<_ACEOF |
| 7757 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7758 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7759 | typedef void * ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7760 | int |
| 7761 | main () |
| 7762 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7763 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7764 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7765 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7766 | return 0; |
| 7767 | ; |
| 7768 | return 0; |
| 7769 | } |
| 7770 | _ACEOF |
| 7771 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7772 | if { (ac_try="$ac_compile" |
| 7773 | case "(($ac_try" in |
| 7774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7775 | *) ac_try_echo=$ac_try;; |
| 7776 | esac |
| 7777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7778 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7779 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7781 | rm -f conftest.er1 |
| 7782 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7784 | (exit $ac_status); } && { |
| 7785 | test -z "$ac_c_werror_flag" || |
| 7786 | test ! -s conftest.err |
| 7787 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7788 | ac_cv_type_void_p=yes |
| 7789 | else |
| 7790 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7792 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7793 | ac_cv_type_void_p=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7794 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7795 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7797 | fi |
| 7798 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 7799 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 7800 | |
| 7801 | # The cast to long int works around a bug in the HP C Compiler |
| 7802 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7803 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7804 | # This bug is HP SR number 8606223364. |
| 7805 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 7806 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7807 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 7808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7809 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7810 | if test "$cross_compiling" = yes; then |
| 7811 | # Depending upon the size, compute the lo and hi bounds. |
| 7812 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7813 | /* confdefs.h. */ |
| 7814 | _ACEOF |
| 7815 | cat confdefs.h >>conftest.$ac_ext |
| 7816 | cat >>conftest.$ac_ext <<_ACEOF |
| 7817 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7819 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7820 | int |
| 7821 | main () |
| 7822 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7823 | 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] | 7824 | test_array [0] = 0 |
| 7825 | |
| 7826 | ; |
| 7827 | return 0; |
| 7828 | } |
| 7829 | _ACEOF |
| 7830 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7831 | if { (ac_try="$ac_compile" |
| 7832 | case "(($ac_try" in |
| 7833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7834 | *) ac_try_echo=$ac_try;; |
| 7835 | esac |
| 7836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7837 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7838 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7840 | rm -f conftest.er1 |
| 7841 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7843 | (exit $ac_status); } && { |
| 7844 | test -z "$ac_c_werror_flag" || |
| 7845 | test ! -s conftest.err |
| 7846 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7847 | ac_lo=0 ac_mid=0 |
| 7848 | while :; do |
| 7849 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7850 | /* confdefs.h. */ |
| 7851 | _ACEOF |
| 7852 | cat confdefs.h >>conftest.$ac_ext |
| 7853 | cat >>conftest.$ac_ext <<_ACEOF |
| 7854 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7855 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7856 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7857 | int |
| 7858 | main () |
| 7859 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7860 | 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] | 7861 | test_array [0] = 0 |
| 7862 | |
| 7863 | ; |
| 7864 | return 0; |
| 7865 | } |
| 7866 | _ACEOF |
| 7867 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7868 | if { (ac_try="$ac_compile" |
| 7869 | case "(($ac_try" in |
| 7870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7871 | *) ac_try_echo=$ac_try;; |
| 7872 | esac |
| 7873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7874 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7875 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7877 | rm -f conftest.er1 |
| 7878 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7880 | (exit $ac_status); } && { |
| 7881 | test -z "$ac_c_werror_flag" || |
| 7882 | test ! -s conftest.err |
| 7883 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7884 | ac_hi=$ac_mid; break |
| 7885 | else |
| 7886 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7888 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7889 | ac_lo=`expr $ac_mid + 1` |
| 7890 | if test $ac_lo -le $ac_mid; then |
| 7891 | ac_lo= ac_hi= |
| 7892 | break |
| 7893 | fi |
| 7894 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7895 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7896 | |
| 7897 | 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] | 7898 | done |
| 7899 | else |
| 7900 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7902 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7903 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7904 | /* confdefs.h. */ |
| 7905 | _ACEOF |
| 7906 | cat confdefs.h >>conftest.$ac_ext |
| 7907 | cat >>conftest.$ac_ext <<_ACEOF |
| 7908 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7909 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7910 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7911 | int |
| 7912 | main () |
| 7913 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7914 | 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] | 7915 | test_array [0] = 0 |
| 7916 | |
| 7917 | ; |
| 7918 | return 0; |
| 7919 | } |
| 7920 | _ACEOF |
| 7921 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7922 | if { (ac_try="$ac_compile" |
| 7923 | case "(($ac_try" in |
| 7924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7925 | *) ac_try_echo=$ac_try;; |
| 7926 | esac |
| 7927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7928 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7929 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7931 | rm -f conftest.er1 |
| 7932 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7934 | (exit $ac_status); } && { |
| 7935 | test -z "$ac_c_werror_flag" || |
| 7936 | test ! -s conftest.err |
| 7937 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7938 | ac_hi=-1 ac_mid=-1 |
| 7939 | while :; do |
| 7940 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7941 | /* confdefs.h. */ |
| 7942 | _ACEOF |
| 7943 | cat confdefs.h >>conftest.$ac_ext |
| 7944 | cat >>conftest.$ac_ext <<_ACEOF |
| 7945 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7946 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7947 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7948 | int |
| 7949 | main () |
| 7950 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7951 | 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] | 7952 | test_array [0] = 0 |
| 7953 | |
| 7954 | ; |
| 7955 | return 0; |
| 7956 | } |
| 7957 | _ACEOF |
| 7958 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7959 | if { (ac_try="$ac_compile" |
| 7960 | case "(($ac_try" in |
| 7961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7962 | *) ac_try_echo=$ac_try;; |
| 7963 | esac |
| 7964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7965 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7966 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7968 | rm -f conftest.er1 |
| 7969 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7971 | (exit $ac_status); } && { |
| 7972 | test -z "$ac_c_werror_flag" || |
| 7973 | test ! -s conftest.err |
| 7974 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7975 | ac_lo=$ac_mid; break |
| 7976 | else |
| 7977 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7979 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7980 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7981 | if test $ac_mid -le $ac_hi; then |
| 7982 | ac_lo= ac_hi= |
| 7983 | break |
| 7984 | fi |
| 7985 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7986 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7987 | |
| 7988 | 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] | 7989 | done |
| 7990 | else |
| 7991 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7993 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7994 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7995 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7996 | |
| 7997 | 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] | 7998 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 7999 | |
| 8000 | 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] | 8001 | # Binary search between lo and hi bounds. |
| 8002 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8003 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8004 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8005 | /* confdefs.h. */ |
| 8006 | _ACEOF |
| 8007 | cat confdefs.h >>conftest.$ac_ext |
| 8008 | cat >>conftest.$ac_ext <<_ACEOF |
| 8009 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8010 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8011 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8012 | int |
| 8013 | main () |
| 8014 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8015 | 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] | 8016 | test_array [0] = 0 |
| 8017 | |
| 8018 | ; |
| 8019 | return 0; |
| 8020 | } |
| 8021 | _ACEOF |
| 8022 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8023 | if { (ac_try="$ac_compile" |
| 8024 | case "(($ac_try" in |
| 8025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8026 | *) ac_try_echo=$ac_try;; |
| 8027 | esac |
| 8028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8029 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8030 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8032 | rm -f conftest.er1 |
| 8033 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8035 | (exit $ac_status); } && { |
| 8036 | test -z "$ac_c_werror_flag" || |
| 8037 | test ! -s conftest.err |
| 8038 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8039 | ac_hi=$ac_mid |
| 8040 | else |
| 8041 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8043 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8044 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8045 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8046 | |
| 8047 | 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] | 8048 | done |
| 8049 | case $ac_lo in |
| 8050 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8051 | '') if test "$ac_cv_type_void_p" = yes; then |
| 8052 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8053 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8054 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8055 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8056 | { (exit 77); exit 77; }; } |
| 8057 | else |
| 8058 | ac_cv_sizeof_void_p=0 |
| 8059 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8060 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8061 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8062 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8063 | /* confdefs.h. */ |
| 8064 | _ACEOF |
| 8065 | cat confdefs.h >>conftest.$ac_ext |
| 8066 | cat >>conftest.$ac_ext <<_ACEOF |
| 8067 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8068 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8069 | typedef void * ac__type_sizeof_; |
| 8070 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8071 | 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] | 8072 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8073 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8074 | int |
| 8075 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8076 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8077 | |
| 8078 | FILE *f = fopen ("conftest.val", "w"); |
| 8079 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8080 | return 1; |
| 8081 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8082 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8083 | long int i = longval (); |
| 8084 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8085 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8086 | fprintf (f, "%ld\n", i); |
| 8087 | } |
| 8088 | else |
| 8089 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8090 | unsigned long int i = ulongval (); |
| 8091 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8092 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8093 | fprintf (f, "%lu\n", i); |
| 8094 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8095 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8096 | |
| 8097 | ; |
| 8098 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8099 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8100 | _ACEOF |
| 8101 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8102 | if { (ac_try="$ac_link" |
| 8103 | case "(($ac_try" in |
| 8104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8105 | *) ac_try_echo=$ac_try;; |
| 8106 | esac |
| 8107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8108 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8109 | ac_status=$? |
| 8110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8111 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8112 | { (case "(($ac_try" in |
| 8113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8114 | *) ac_try_echo=$ac_try;; |
| 8115 | esac |
| 8116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8117 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8118 | ac_status=$? |
| 8119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8120 | (exit $ac_status); }; }; then |
| 8121 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8122 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8123 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8124 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8127 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8128 | if test "$ac_cv_type_void_p" = yes; then |
| 8129 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8130 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8131 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8132 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8133 | { (exit 77); exit 77; }; } |
| 8134 | else |
| 8135 | ac_cv_sizeof_void_p=0 |
| 8136 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8137 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8138 | 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] | 8139 | fi |
| 8140 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8141 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8142 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8143 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
| 8144 | |
| 8145 | |
| 8146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8147 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8148 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8149 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8150 | |
| 8151 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8152 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8153 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8154 | if test "${ac_cv_type_short+set}" = set; then |
| 8155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8156 | else |
| 8157 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8158 | /* confdefs.h. */ |
| 8159 | _ACEOF |
| 8160 | cat confdefs.h >>conftest.$ac_ext |
| 8161 | cat >>conftest.$ac_ext <<_ACEOF |
| 8162 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8163 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8164 | typedef short ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8165 | int |
| 8166 | main () |
| 8167 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8168 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8169 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8170 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8171 | return 0; |
| 8172 | ; |
| 8173 | return 0; |
| 8174 | } |
| 8175 | _ACEOF |
| 8176 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8177 | if { (ac_try="$ac_compile" |
| 8178 | case "(($ac_try" in |
| 8179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8180 | *) ac_try_echo=$ac_try;; |
| 8181 | esac |
| 8182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8183 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8184 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8186 | rm -f conftest.er1 |
| 8187 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8189 | (exit $ac_status); } && { |
| 8190 | test -z "$ac_c_werror_flag" || |
| 8191 | test ! -s conftest.err |
| 8192 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8193 | ac_cv_type_short=yes |
| 8194 | else |
| 8195 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8197 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8198 | ac_cv_type_short=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8199 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8200 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8202 | fi |
| 8203 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8204 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8205 | |
| 8206 | # The cast to long int works around a bug in the HP C Compiler |
| 8207 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8208 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8209 | # This bug is HP SR number 8606223364. |
| 8210 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8211 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8212 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 8213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8214 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8215 | if test "$cross_compiling" = yes; then |
| 8216 | # Depending upon the size, compute the lo and hi bounds. |
| 8217 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8218 | /* confdefs.h. */ |
| 8219 | _ACEOF |
| 8220 | cat confdefs.h >>conftest.$ac_ext |
| 8221 | cat >>conftest.$ac_ext <<_ACEOF |
| 8222 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8223 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8224 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8225 | int |
| 8226 | main () |
| 8227 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8228 | 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] | 8229 | test_array [0] = 0 |
| 8230 | |
| 8231 | ; |
| 8232 | return 0; |
| 8233 | } |
| 8234 | _ACEOF |
| 8235 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8236 | if { (ac_try="$ac_compile" |
| 8237 | case "(($ac_try" in |
| 8238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8239 | *) ac_try_echo=$ac_try;; |
| 8240 | esac |
| 8241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8242 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8243 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8245 | rm -f conftest.er1 |
| 8246 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8248 | (exit $ac_status); } && { |
| 8249 | test -z "$ac_c_werror_flag" || |
| 8250 | test ! -s conftest.err |
| 8251 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8252 | ac_lo=0 ac_mid=0 |
| 8253 | while :; do |
| 8254 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8255 | /* confdefs.h. */ |
| 8256 | _ACEOF |
| 8257 | cat confdefs.h >>conftest.$ac_ext |
| 8258 | cat >>conftest.$ac_ext <<_ACEOF |
| 8259 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8260 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8261 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8262 | int |
| 8263 | main () |
| 8264 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8265 | 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] | 8266 | test_array [0] = 0 |
| 8267 | |
| 8268 | ; |
| 8269 | return 0; |
| 8270 | } |
| 8271 | _ACEOF |
| 8272 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8273 | if { (ac_try="$ac_compile" |
| 8274 | case "(($ac_try" in |
| 8275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8276 | *) ac_try_echo=$ac_try;; |
| 8277 | esac |
| 8278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8279 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8280 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8282 | rm -f conftest.er1 |
| 8283 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8285 | (exit $ac_status); } && { |
| 8286 | test -z "$ac_c_werror_flag" || |
| 8287 | test ! -s conftest.err |
| 8288 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8289 | ac_hi=$ac_mid; break |
| 8290 | else |
| 8291 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8293 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8294 | ac_lo=`expr $ac_mid + 1` |
| 8295 | if test $ac_lo -le $ac_mid; then |
| 8296 | ac_lo= ac_hi= |
| 8297 | break |
| 8298 | fi |
| 8299 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8300 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8301 | |
| 8302 | 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] | 8303 | done |
| 8304 | else |
| 8305 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8307 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8308 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8309 | /* confdefs.h. */ |
| 8310 | _ACEOF |
| 8311 | cat confdefs.h >>conftest.$ac_ext |
| 8312 | cat >>conftest.$ac_ext <<_ACEOF |
| 8313 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8314 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8315 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8316 | int |
| 8317 | main () |
| 8318 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8319 | 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] | 8320 | test_array [0] = 0 |
| 8321 | |
| 8322 | ; |
| 8323 | return 0; |
| 8324 | } |
| 8325 | _ACEOF |
| 8326 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8327 | if { (ac_try="$ac_compile" |
| 8328 | case "(($ac_try" in |
| 8329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8330 | *) ac_try_echo=$ac_try;; |
| 8331 | esac |
| 8332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8333 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8334 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8336 | rm -f conftest.er1 |
| 8337 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8339 | (exit $ac_status); } && { |
| 8340 | test -z "$ac_c_werror_flag" || |
| 8341 | test ! -s conftest.err |
| 8342 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8343 | ac_hi=-1 ac_mid=-1 |
| 8344 | while :; do |
| 8345 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8346 | /* confdefs.h. */ |
| 8347 | _ACEOF |
| 8348 | cat confdefs.h >>conftest.$ac_ext |
| 8349 | cat >>conftest.$ac_ext <<_ACEOF |
| 8350 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8351 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8352 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8353 | int |
| 8354 | main () |
| 8355 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8356 | 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] | 8357 | test_array [0] = 0 |
| 8358 | |
| 8359 | ; |
| 8360 | return 0; |
| 8361 | } |
| 8362 | _ACEOF |
| 8363 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8364 | if { (ac_try="$ac_compile" |
| 8365 | case "(($ac_try" in |
| 8366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8367 | *) ac_try_echo=$ac_try;; |
| 8368 | esac |
| 8369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8370 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8371 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8373 | rm -f conftest.er1 |
| 8374 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8376 | (exit $ac_status); } && { |
| 8377 | test -z "$ac_c_werror_flag" || |
| 8378 | test ! -s conftest.err |
| 8379 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8380 | ac_lo=$ac_mid; break |
| 8381 | else |
| 8382 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8384 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8385 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8386 | if test $ac_mid -le $ac_hi; then |
| 8387 | ac_lo= ac_hi= |
| 8388 | break |
| 8389 | fi |
| 8390 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8391 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8392 | |
| 8393 | 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] | 8394 | done |
| 8395 | else |
| 8396 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8398 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8399 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8400 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8401 | |
| 8402 | 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] | 8403 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8404 | |
| 8405 | 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] | 8406 | # Binary search between lo and hi bounds. |
| 8407 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8408 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8409 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8410 | /* confdefs.h. */ |
| 8411 | _ACEOF |
| 8412 | cat confdefs.h >>conftest.$ac_ext |
| 8413 | cat >>conftest.$ac_ext <<_ACEOF |
| 8414 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8415 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8416 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8417 | int |
| 8418 | main () |
| 8419 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8420 | 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] | 8421 | test_array [0] = 0 |
| 8422 | |
| 8423 | ; |
| 8424 | return 0; |
| 8425 | } |
| 8426 | _ACEOF |
| 8427 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8428 | if { (ac_try="$ac_compile" |
| 8429 | case "(($ac_try" in |
| 8430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8431 | *) ac_try_echo=$ac_try;; |
| 8432 | esac |
| 8433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8434 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8435 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8437 | rm -f conftest.er1 |
| 8438 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8440 | (exit $ac_status); } && { |
| 8441 | test -z "$ac_c_werror_flag" || |
| 8442 | test ! -s conftest.err |
| 8443 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8444 | ac_hi=$ac_mid |
| 8445 | else |
| 8446 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8448 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8449 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8450 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8451 | |
| 8452 | 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] | 8453 | done |
| 8454 | case $ac_lo in |
| 8455 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8456 | '') if test "$ac_cv_type_short" = yes; then |
| 8457 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8458 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8459 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8460 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8461 | { (exit 77); exit 77; }; } |
| 8462 | else |
| 8463 | ac_cv_sizeof_short=0 |
| 8464 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8465 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8466 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8467 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8468 | /* confdefs.h. */ |
| 8469 | _ACEOF |
| 8470 | cat confdefs.h >>conftest.$ac_ext |
| 8471 | cat >>conftest.$ac_ext <<_ACEOF |
| 8472 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8473 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8474 | typedef short ac__type_sizeof_; |
| 8475 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8476 | 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] | 8477 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8478 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8479 | int |
| 8480 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8481 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8482 | |
| 8483 | FILE *f = fopen ("conftest.val", "w"); |
| 8484 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8485 | return 1; |
| 8486 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8487 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8488 | long int i = longval (); |
| 8489 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8490 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8491 | fprintf (f, "%ld\n", i); |
| 8492 | } |
| 8493 | else |
| 8494 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8495 | unsigned long int i = ulongval (); |
| 8496 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8497 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8498 | fprintf (f, "%lu\n", i); |
| 8499 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8500 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8501 | |
| 8502 | ; |
| 8503 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8504 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8505 | _ACEOF |
| 8506 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8507 | if { (ac_try="$ac_link" |
| 8508 | case "(($ac_try" in |
| 8509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8510 | *) ac_try_echo=$ac_try;; |
| 8511 | esac |
| 8512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8513 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8514 | ac_status=$? |
| 8515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8516 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8517 | { (case "(($ac_try" in |
| 8518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8519 | *) ac_try_echo=$ac_try;; |
| 8520 | esac |
| 8521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8522 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8523 | ac_status=$? |
| 8524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8525 | (exit $ac_status); }; }; then |
| 8526 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8527 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8528 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8529 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8532 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8533 | if test "$ac_cv_type_short" = yes; then |
| 8534 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8535 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8536 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8537 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8538 | { (exit 77); exit 77; }; } |
| 8539 | else |
| 8540 | ac_cv_sizeof_short=0 |
| 8541 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8542 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8543 | 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] | 8544 | fi |
| 8545 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8546 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8547 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 8548 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
| 8549 | |
| 8550 | |
| 8551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8552 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8553 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8555 | |
| 8556 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8557 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 8558 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8559 | if test "${ac_cv_type_float+set}" = set; then |
| 8560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8561 | else |
| 8562 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8563 | /* confdefs.h. */ |
| 8564 | _ACEOF |
| 8565 | cat confdefs.h >>conftest.$ac_ext |
| 8566 | cat >>conftest.$ac_ext <<_ACEOF |
| 8567 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8568 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8569 | typedef float ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | int |
| 8571 | main () |
| 8572 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8573 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8574 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8575 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8576 | return 0; |
| 8577 | ; |
| 8578 | return 0; |
| 8579 | } |
| 8580 | _ACEOF |
| 8581 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8582 | if { (ac_try="$ac_compile" |
| 8583 | case "(($ac_try" in |
| 8584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8585 | *) ac_try_echo=$ac_try;; |
| 8586 | esac |
| 8587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8588 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8589 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8591 | rm -f conftest.er1 |
| 8592 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8594 | (exit $ac_status); } && { |
| 8595 | test -z "$ac_c_werror_flag" || |
| 8596 | test ! -s conftest.err |
| 8597 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8598 | ac_cv_type_float=yes |
| 8599 | else |
| 8600 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8602 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8603 | ac_cv_type_float=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8604 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8607 | fi |
| 8608 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 8609 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 8610 | |
| 8611 | # The cast to long int works around a bug in the HP C Compiler |
| 8612 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8613 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8614 | # This bug is HP SR number 8606223364. |
| 8615 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 8616 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8617 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 8618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8619 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 | if test "$cross_compiling" = yes; then |
| 8621 | # Depending upon the size, compute the lo and hi bounds. |
| 8622 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8623 | /* confdefs.h. */ |
| 8624 | _ACEOF |
| 8625 | cat confdefs.h >>conftest.$ac_ext |
| 8626 | cat >>conftest.$ac_ext <<_ACEOF |
| 8627 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8628 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8629 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8630 | int |
| 8631 | main () |
| 8632 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8633 | 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] | 8634 | test_array [0] = 0 |
| 8635 | |
| 8636 | ; |
| 8637 | return 0; |
| 8638 | } |
| 8639 | _ACEOF |
| 8640 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8641 | if { (ac_try="$ac_compile" |
| 8642 | case "(($ac_try" in |
| 8643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8644 | *) ac_try_echo=$ac_try;; |
| 8645 | esac |
| 8646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8647 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8648 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8650 | rm -f conftest.er1 |
| 8651 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8653 | (exit $ac_status); } && { |
| 8654 | test -z "$ac_c_werror_flag" || |
| 8655 | test ! -s conftest.err |
| 8656 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8657 | ac_lo=0 ac_mid=0 |
| 8658 | while :; do |
| 8659 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8660 | /* confdefs.h. */ |
| 8661 | _ACEOF |
| 8662 | cat confdefs.h >>conftest.$ac_ext |
| 8663 | cat >>conftest.$ac_ext <<_ACEOF |
| 8664 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8665 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8666 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | int |
| 8668 | main () |
| 8669 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8670 | 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] | 8671 | test_array [0] = 0 |
| 8672 | |
| 8673 | ; |
| 8674 | return 0; |
| 8675 | } |
| 8676 | _ACEOF |
| 8677 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8678 | if { (ac_try="$ac_compile" |
| 8679 | case "(($ac_try" in |
| 8680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8681 | *) ac_try_echo=$ac_try;; |
| 8682 | esac |
| 8683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8684 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8685 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8687 | rm -f conftest.er1 |
| 8688 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8690 | (exit $ac_status); } && { |
| 8691 | test -z "$ac_c_werror_flag" || |
| 8692 | test ! -s conftest.err |
| 8693 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8694 | ac_hi=$ac_mid; break |
| 8695 | else |
| 8696 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8698 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8699 | ac_lo=`expr $ac_mid + 1` |
| 8700 | if test $ac_lo -le $ac_mid; then |
| 8701 | ac_lo= ac_hi= |
| 8702 | break |
| 8703 | fi |
| 8704 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8706 | |
| 8707 | 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] | 8708 | done |
| 8709 | else |
| 8710 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8712 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8714 | /* confdefs.h. */ |
| 8715 | _ACEOF |
| 8716 | cat confdefs.h >>conftest.$ac_ext |
| 8717 | cat >>conftest.$ac_ext <<_ACEOF |
| 8718 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8719 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8720 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8721 | int |
| 8722 | main () |
| 8723 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8724 | 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] | 8725 | test_array [0] = 0 |
| 8726 | |
| 8727 | ; |
| 8728 | return 0; |
| 8729 | } |
| 8730 | _ACEOF |
| 8731 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8732 | if { (ac_try="$ac_compile" |
| 8733 | case "(($ac_try" in |
| 8734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8735 | *) ac_try_echo=$ac_try;; |
| 8736 | esac |
| 8737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8738 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8739 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8741 | rm -f conftest.er1 |
| 8742 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8744 | (exit $ac_status); } && { |
| 8745 | test -z "$ac_c_werror_flag" || |
| 8746 | test ! -s conftest.err |
| 8747 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8748 | ac_hi=-1 ac_mid=-1 |
| 8749 | while :; do |
| 8750 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8751 | /* confdefs.h. */ |
| 8752 | _ACEOF |
| 8753 | cat confdefs.h >>conftest.$ac_ext |
| 8754 | cat >>conftest.$ac_ext <<_ACEOF |
| 8755 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8756 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8757 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8758 | int |
| 8759 | main () |
| 8760 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8761 | 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] | 8762 | test_array [0] = 0 |
| 8763 | |
| 8764 | ; |
| 8765 | return 0; |
| 8766 | } |
| 8767 | _ACEOF |
| 8768 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8769 | if { (ac_try="$ac_compile" |
| 8770 | case "(($ac_try" in |
| 8771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8772 | *) ac_try_echo=$ac_try;; |
| 8773 | esac |
| 8774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8775 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8776 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8778 | rm -f conftest.er1 |
| 8779 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8781 | (exit $ac_status); } && { |
| 8782 | test -z "$ac_c_werror_flag" || |
| 8783 | test ! -s conftest.err |
| 8784 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8785 | ac_lo=$ac_mid; break |
| 8786 | else |
| 8787 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8789 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8790 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8791 | if test $ac_mid -le $ac_hi; then |
| 8792 | ac_lo= ac_hi= |
| 8793 | break |
| 8794 | fi |
| 8795 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8796 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8797 | |
| 8798 | 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] | 8799 | done |
| 8800 | else |
| 8801 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8803 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8804 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8805 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8806 | |
| 8807 | 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] | 8808 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8809 | |
| 8810 | 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] | 8811 | # Binary search between lo and hi bounds. |
| 8812 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8813 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8814 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8815 | /* confdefs.h. */ |
| 8816 | _ACEOF |
| 8817 | cat confdefs.h >>conftest.$ac_ext |
| 8818 | cat >>conftest.$ac_ext <<_ACEOF |
| 8819 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8820 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8821 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8822 | int |
| 8823 | main () |
| 8824 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8825 | 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] | 8826 | test_array [0] = 0 |
| 8827 | |
| 8828 | ; |
| 8829 | return 0; |
| 8830 | } |
| 8831 | _ACEOF |
| 8832 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8833 | if { (ac_try="$ac_compile" |
| 8834 | case "(($ac_try" in |
| 8835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8836 | *) ac_try_echo=$ac_try;; |
| 8837 | esac |
| 8838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8839 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8840 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8842 | rm -f conftest.er1 |
| 8843 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8845 | (exit $ac_status); } && { |
| 8846 | test -z "$ac_c_werror_flag" || |
| 8847 | test ! -s conftest.err |
| 8848 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8849 | ac_hi=$ac_mid |
| 8850 | else |
| 8851 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8853 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8854 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8855 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8856 | |
| 8857 | 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] | 8858 | done |
| 8859 | case $ac_lo in |
| 8860 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8861 | '') if test "$ac_cv_type_float" = yes; then |
| 8862 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8863 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8864 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8865 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8866 | { (exit 77); exit 77; }; } |
| 8867 | else |
| 8868 | ac_cv_sizeof_float=0 |
| 8869 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8870 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8871 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8872 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8873 | /* confdefs.h. */ |
| 8874 | _ACEOF |
| 8875 | cat confdefs.h >>conftest.$ac_ext |
| 8876 | cat >>conftest.$ac_ext <<_ACEOF |
| 8877 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8878 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8879 | typedef float ac__type_sizeof_; |
| 8880 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8881 | 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] | 8882 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8883 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8884 | int |
| 8885 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8886 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8887 | |
| 8888 | FILE *f = fopen ("conftest.val", "w"); |
| 8889 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8890 | return 1; |
| 8891 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8893 | long int i = longval (); |
| 8894 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8895 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8896 | fprintf (f, "%ld\n", i); |
| 8897 | } |
| 8898 | else |
| 8899 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8900 | unsigned long int i = ulongval (); |
| 8901 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8902 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8903 | fprintf (f, "%lu\n", i); |
| 8904 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8905 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8906 | |
| 8907 | ; |
| 8908 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8909 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8910 | _ACEOF |
| 8911 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8912 | if { (ac_try="$ac_link" |
| 8913 | case "(($ac_try" in |
| 8914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8915 | *) ac_try_echo=$ac_try;; |
| 8916 | esac |
| 8917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8918 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8919 | ac_status=$? |
| 8920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8921 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8922 | { (case "(($ac_try" in |
| 8923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8924 | *) ac_try_echo=$ac_try;; |
| 8925 | esac |
| 8926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8927 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8928 | ac_status=$? |
| 8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8930 | (exit $ac_status); }; }; then |
| 8931 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8933 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8934 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8937 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8938 | if test "$ac_cv_type_float" = yes; then |
| 8939 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8940 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8941 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8942 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8943 | { (exit 77); exit 77; }; } |
| 8944 | else |
| 8945 | ac_cv_sizeof_float=0 |
| 8946 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8947 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8948 | 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] | 8949 | fi |
| 8950 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8951 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8952 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8953 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
| 8954 | |
| 8955 | |
| 8956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8957 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8958 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8959 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8960 | |
| 8961 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8962 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 8963 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8964 | if test "${ac_cv_type_double+set}" = set; then |
| 8965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8966 | else |
| 8967 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8968 | /* confdefs.h. */ |
| 8969 | _ACEOF |
| 8970 | cat confdefs.h >>conftest.$ac_ext |
| 8971 | cat >>conftest.$ac_ext <<_ACEOF |
| 8972 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8973 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8974 | typedef double ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8975 | int |
| 8976 | main () |
| 8977 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8978 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8979 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8980 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8981 | return 0; |
| 8982 | ; |
| 8983 | return 0; |
| 8984 | } |
| 8985 | _ACEOF |
| 8986 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8987 | if { (ac_try="$ac_compile" |
| 8988 | case "(($ac_try" in |
| 8989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8990 | *) ac_try_echo=$ac_try;; |
| 8991 | esac |
| 8992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8993 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8994 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8996 | rm -f conftest.er1 |
| 8997 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 8999 | (exit $ac_status); } && { |
| 9000 | test -z "$ac_c_werror_flag" || |
| 9001 | test ! -s conftest.err |
| 9002 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9003 | ac_cv_type_double=yes |
| 9004 | else |
| 9005 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9007 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9008 | ac_cv_type_double=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9009 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9010 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9012 | fi |
| 9013 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9014 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9015 | |
| 9016 | # The cast to long int works around a bug in the HP C Compiler |
| 9017 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9018 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9019 | # This bug is HP SR number 8606223364. |
| 9020 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9021 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9022 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 9023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9025 | if test "$cross_compiling" = yes; then |
| 9026 | # Depending upon the size, compute the lo and hi bounds. |
| 9027 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9028 | /* confdefs.h. */ |
| 9029 | _ACEOF |
| 9030 | cat confdefs.h >>conftest.$ac_ext |
| 9031 | cat >>conftest.$ac_ext <<_ACEOF |
| 9032 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9033 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9034 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9035 | int |
| 9036 | main () |
| 9037 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9038 | 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] | 9039 | test_array [0] = 0 |
| 9040 | |
| 9041 | ; |
| 9042 | return 0; |
| 9043 | } |
| 9044 | _ACEOF |
| 9045 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9046 | if { (ac_try="$ac_compile" |
| 9047 | case "(($ac_try" in |
| 9048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9049 | *) ac_try_echo=$ac_try;; |
| 9050 | esac |
| 9051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9052 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9053 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9055 | rm -f conftest.er1 |
| 9056 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9058 | (exit $ac_status); } && { |
| 9059 | test -z "$ac_c_werror_flag" || |
| 9060 | test ! -s conftest.err |
| 9061 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9062 | ac_lo=0 ac_mid=0 |
| 9063 | while :; do |
| 9064 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9065 | /* confdefs.h. */ |
| 9066 | _ACEOF |
| 9067 | cat confdefs.h >>conftest.$ac_ext |
| 9068 | cat >>conftest.$ac_ext <<_ACEOF |
| 9069 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9070 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9071 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9072 | int |
| 9073 | main () |
| 9074 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9075 | 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] | 9076 | test_array [0] = 0 |
| 9077 | |
| 9078 | ; |
| 9079 | return 0; |
| 9080 | } |
| 9081 | _ACEOF |
| 9082 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9083 | if { (ac_try="$ac_compile" |
| 9084 | case "(($ac_try" in |
| 9085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9086 | *) ac_try_echo=$ac_try;; |
| 9087 | esac |
| 9088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9089 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9090 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9092 | rm -f conftest.er1 |
| 9093 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9095 | (exit $ac_status); } && { |
| 9096 | test -z "$ac_c_werror_flag" || |
| 9097 | test ! -s conftest.err |
| 9098 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9099 | ac_hi=$ac_mid; break |
| 9100 | else |
| 9101 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9103 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9104 | ac_lo=`expr $ac_mid + 1` |
| 9105 | if test $ac_lo -le $ac_mid; then |
| 9106 | ac_lo= ac_hi= |
| 9107 | break |
| 9108 | fi |
| 9109 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9110 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9111 | |
| 9112 | 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] | 9113 | done |
| 9114 | else |
| 9115 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9117 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9118 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9119 | /* confdefs.h. */ |
| 9120 | _ACEOF |
| 9121 | cat confdefs.h >>conftest.$ac_ext |
| 9122 | cat >>conftest.$ac_ext <<_ACEOF |
| 9123 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9124 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9125 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9126 | int |
| 9127 | main () |
| 9128 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9129 | 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] | 9130 | test_array [0] = 0 |
| 9131 | |
| 9132 | ; |
| 9133 | return 0; |
| 9134 | } |
| 9135 | _ACEOF |
| 9136 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9137 | if { (ac_try="$ac_compile" |
| 9138 | case "(($ac_try" in |
| 9139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9140 | *) ac_try_echo=$ac_try;; |
| 9141 | esac |
| 9142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9143 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9144 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9146 | rm -f conftest.er1 |
| 9147 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9149 | (exit $ac_status); } && { |
| 9150 | test -z "$ac_c_werror_flag" || |
| 9151 | test ! -s conftest.err |
| 9152 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9153 | ac_hi=-1 ac_mid=-1 |
| 9154 | while :; do |
| 9155 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9156 | /* confdefs.h. */ |
| 9157 | _ACEOF |
| 9158 | cat confdefs.h >>conftest.$ac_ext |
| 9159 | cat >>conftest.$ac_ext <<_ACEOF |
| 9160 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9161 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9162 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9163 | int |
| 9164 | main () |
| 9165 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9166 | 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] | 9167 | test_array [0] = 0 |
| 9168 | |
| 9169 | ; |
| 9170 | return 0; |
| 9171 | } |
| 9172 | _ACEOF |
| 9173 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9174 | if { (ac_try="$ac_compile" |
| 9175 | case "(($ac_try" in |
| 9176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9177 | *) ac_try_echo=$ac_try;; |
| 9178 | esac |
| 9179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9180 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9181 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9183 | rm -f conftest.er1 |
| 9184 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9186 | (exit $ac_status); } && { |
| 9187 | test -z "$ac_c_werror_flag" || |
| 9188 | test ! -s conftest.err |
| 9189 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | ac_lo=$ac_mid; break |
| 9191 | else |
| 9192 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9194 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9195 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9196 | if test $ac_mid -le $ac_hi; then |
| 9197 | ac_lo= ac_hi= |
| 9198 | break |
| 9199 | fi |
| 9200 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9201 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9202 | |
| 9203 | 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] | 9204 | done |
| 9205 | else |
| 9206 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9208 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9209 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9210 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9211 | |
| 9212 | 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] | 9213 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9214 | |
| 9215 | 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] | 9216 | # Binary search between lo and hi bounds. |
| 9217 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9218 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9219 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9220 | /* confdefs.h. */ |
| 9221 | _ACEOF |
| 9222 | cat confdefs.h >>conftest.$ac_ext |
| 9223 | cat >>conftest.$ac_ext <<_ACEOF |
| 9224 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9225 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9226 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9227 | int |
| 9228 | main () |
| 9229 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9230 | 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] | 9231 | test_array [0] = 0 |
| 9232 | |
| 9233 | ; |
| 9234 | return 0; |
| 9235 | } |
| 9236 | _ACEOF |
| 9237 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9238 | if { (ac_try="$ac_compile" |
| 9239 | case "(($ac_try" in |
| 9240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9241 | *) ac_try_echo=$ac_try;; |
| 9242 | esac |
| 9243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9244 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9245 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9247 | rm -f conftest.er1 |
| 9248 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9250 | (exit $ac_status); } && { |
| 9251 | test -z "$ac_c_werror_flag" || |
| 9252 | test ! -s conftest.err |
| 9253 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9254 | ac_hi=$ac_mid |
| 9255 | else |
| 9256 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9258 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9259 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9260 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9261 | |
| 9262 | 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] | 9263 | done |
| 9264 | case $ac_lo in |
| 9265 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9266 | '') if test "$ac_cv_type_double" = yes; then |
| 9267 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9268 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9269 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9270 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9271 | { (exit 77); exit 77; }; } |
| 9272 | else |
| 9273 | ac_cv_sizeof_double=0 |
| 9274 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9275 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9276 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9277 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9278 | /* confdefs.h. */ |
| 9279 | _ACEOF |
| 9280 | cat confdefs.h >>conftest.$ac_ext |
| 9281 | cat >>conftest.$ac_ext <<_ACEOF |
| 9282 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9283 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9284 | typedef double ac__type_sizeof_; |
| 9285 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9286 | 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] | 9287 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9288 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9289 | int |
| 9290 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9291 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9292 | |
| 9293 | FILE *f = fopen ("conftest.val", "w"); |
| 9294 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9295 | return 1; |
| 9296 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9297 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9298 | long int i = longval (); |
| 9299 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9300 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9301 | fprintf (f, "%ld\n", i); |
| 9302 | } |
| 9303 | else |
| 9304 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9305 | unsigned long int i = ulongval (); |
| 9306 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9307 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9308 | fprintf (f, "%lu\n", i); |
| 9309 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9310 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9311 | |
| 9312 | ; |
| 9313 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9314 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9315 | _ACEOF |
| 9316 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9317 | if { (ac_try="$ac_link" |
| 9318 | case "(($ac_try" in |
| 9319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9320 | *) ac_try_echo=$ac_try;; |
| 9321 | esac |
| 9322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9323 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9324 | ac_status=$? |
| 9325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9326 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9327 | { (case "(($ac_try" in |
| 9328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9329 | *) ac_try_echo=$ac_try;; |
| 9330 | esac |
| 9331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9332 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9333 | ac_status=$? |
| 9334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9335 | (exit $ac_status); }; }; then |
| 9336 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9337 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9338 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9339 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9342 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9343 | if test "$ac_cv_type_double" = yes; then |
| 9344 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9345 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9346 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9347 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9348 | { (exit 77); exit 77; }; } |
| 9349 | else |
| 9350 | ac_cv_sizeof_double=0 |
| 9351 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9352 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9353 | 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] | 9354 | fi |
| 9355 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9356 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9357 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 9358 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
| 9359 | |
| 9360 | |
| 9361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9362 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9363 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9364 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9365 | |
| 9366 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9367 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 9368 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9369 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 9370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9371 | else |
| 9372 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9373 | /* confdefs.h. */ |
| 9374 | _ACEOF |
| 9375 | cat confdefs.h >>conftest.$ac_ext |
| 9376 | cat >>conftest.$ac_ext <<_ACEOF |
| 9377 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9378 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9379 | typedef fpos_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9380 | int |
| 9381 | main () |
| 9382 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9383 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9384 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9385 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9386 | return 0; |
| 9387 | ; |
| 9388 | return 0; |
| 9389 | } |
| 9390 | _ACEOF |
| 9391 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9392 | if { (ac_try="$ac_compile" |
| 9393 | case "(($ac_try" in |
| 9394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9395 | *) ac_try_echo=$ac_try;; |
| 9396 | esac |
| 9397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9398 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9399 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9401 | rm -f conftest.er1 |
| 9402 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9404 | (exit $ac_status); } && { |
| 9405 | test -z "$ac_c_werror_flag" || |
| 9406 | test ! -s conftest.err |
| 9407 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9408 | ac_cv_type_fpos_t=yes |
| 9409 | else |
| 9410 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9412 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9413 | ac_cv_type_fpos_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9414 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9415 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9417 | fi |
| 9418 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 9419 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 9420 | |
| 9421 | # The cast to long int works around a bug in the HP C Compiler |
| 9422 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9423 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9424 | # This bug is HP SR number 8606223364. |
| 9425 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 9426 | 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] | 9427 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 9428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9429 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9430 | if test "$cross_compiling" = yes; then |
| 9431 | # Depending upon the size, compute the lo and hi bounds. |
| 9432 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9433 | /* confdefs.h. */ |
| 9434 | _ACEOF |
| 9435 | cat confdefs.h >>conftest.$ac_ext |
| 9436 | cat >>conftest.$ac_ext <<_ACEOF |
| 9437 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9438 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9439 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9440 | int |
| 9441 | main () |
| 9442 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9443 | 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] | 9444 | test_array [0] = 0 |
| 9445 | |
| 9446 | ; |
| 9447 | return 0; |
| 9448 | } |
| 9449 | _ACEOF |
| 9450 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9451 | if { (ac_try="$ac_compile" |
| 9452 | case "(($ac_try" in |
| 9453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9454 | *) ac_try_echo=$ac_try;; |
| 9455 | esac |
| 9456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9457 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9458 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9460 | rm -f conftest.er1 |
| 9461 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9463 | (exit $ac_status); } && { |
| 9464 | test -z "$ac_c_werror_flag" || |
| 9465 | test ! -s conftest.err |
| 9466 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9467 | ac_lo=0 ac_mid=0 |
| 9468 | while :; do |
| 9469 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9470 | /* confdefs.h. */ |
| 9471 | _ACEOF |
| 9472 | cat confdefs.h >>conftest.$ac_ext |
| 9473 | cat >>conftest.$ac_ext <<_ACEOF |
| 9474 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9475 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9476 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9477 | int |
| 9478 | main () |
| 9479 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9480 | 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] | 9481 | test_array [0] = 0 |
| 9482 | |
| 9483 | ; |
| 9484 | return 0; |
| 9485 | } |
| 9486 | _ACEOF |
| 9487 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9488 | if { (ac_try="$ac_compile" |
| 9489 | case "(($ac_try" in |
| 9490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9491 | *) ac_try_echo=$ac_try;; |
| 9492 | esac |
| 9493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9494 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9497 | rm -f conftest.er1 |
| 9498 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9500 | (exit $ac_status); } && { |
| 9501 | test -z "$ac_c_werror_flag" || |
| 9502 | test ! -s conftest.err |
| 9503 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9504 | ac_hi=$ac_mid; break |
| 9505 | else |
| 9506 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9508 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9509 | ac_lo=`expr $ac_mid + 1` |
| 9510 | if test $ac_lo -le $ac_mid; then |
| 9511 | ac_lo= ac_hi= |
| 9512 | break |
| 9513 | fi |
| 9514 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9515 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9516 | |
| 9517 | 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] | 9518 | done |
| 9519 | else |
| 9520 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9522 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9523 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9524 | /* confdefs.h. */ |
| 9525 | _ACEOF |
| 9526 | cat confdefs.h >>conftest.$ac_ext |
| 9527 | cat >>conftest.$ac_ext <<_ACEOF |
| 9528 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9529 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9530 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9531 | int |
| 9532 | main () |
| 9533 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9534 | 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] | 9535 | test_array [0] = 0 |
| 9536 | |
| 9537 | ; |
| 9538 | return 0; |
| 9539 | } |
| 9540 | _ACEOF |
| 9541 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9542 | if { (ac_try="$ac_compile" |
| 9543 | case "(($ac_try" in |
| 9544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9545 | *) ac_try_echo=$ac_try;; |
| 9546 | esac |
| 9547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9548 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9549 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9551 | rm -f conftest.er1 |
| 9552 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9554 | (exit $ac_status); } && { |
| 9555 | test -z "$ac_c_werror_flag" || |
| 9556 | test ! -s conftest.err |
| 9557 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9558 | ac_hi=-1 ac_mid=-1 |
| 9559 | while :; do |
| 9560 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9561 | /* confdefs.h. */ |
| 9562 | _ACEOF |
| 9563 | cat confdefs.h >>conftest.$ac_ext |
| 9564 | cat >>conftest.$ac_ext <<_ACEOF |
| 9565 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9566 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9567 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9568 | int |
| 9569 | main () |
| 9570 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9571 | 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] | 9572 | test_array [0] = 0 |
| 9573 | |
| 9574 | ; |
| 9575 | return 0; |
| 9576 | } |
| 9577 | _ACEOF |
| 9578 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9579 | if { (ac_try="$ac_compile" |
| 9580 | case "(($ac_try" in |
| 9581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9582 | *) ac_try_echo=$ac_try;; |
| 9583 | esac |
| 9584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9585 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9586 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9588 | rm -f conftest.er1 |
| 9589 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9591 | (exit $ac_status); } && { |
| 9592 | test -z "$ac_c_werror_flag" || |
| 9593 | test ! -s conftest.err |
| 9594 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9595 | ac_lo=$ac_mid; break |
| 9596 | else |
| 9597 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9599 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9600 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9601 | if test $ac_mid -le $ac_hi; then |
| 9602 | ac_lo= ac_hi= |
| 9603 | break |
| 9604 | fi |
| 9605 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9606 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9607 | |
| 9608 | 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] | 9609 | done |
| 9610 | else |
| 9611 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9613 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9614 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9615 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9616 | |
| 9617 | 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] | 9618 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9619 | |
| 9620 | 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] | 9621 | # Binary search between lo and hi bounds. |
| 9622 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9623 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9624 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9625 | /* confdefs.h. */ |
| 9626 | _ACEOF |
| 9627 | cat confdefs.h >>conftest.$ac_ext |
| 9628 | cat >>conftest.$ac_ext <<_ACEOF |
| 9629 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9630 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9631 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9632 | int |
| 9633 | main () |
| 9634 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9635 | 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] | 9636 | test_array [0] = 0 |
| 9637 | |
| 9638 | ; |
| 9639 | return 0; |
| 9640 | } |
| 9641 | _ACEOF |
| 9642 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9643 | if { (ac_try="$ac_compile" |
| 9644 | case "(($ac_try" in |
| 9645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9646 | *) ac_try_echo=$ac_try;; |
| 9647 | esac |
| 9648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9649 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9650 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9652 | rm -f conftest.er1 |
| 9653 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9655 | (exit $ac_status); } && { |
| 9656 | test -z "$ac_c_werror_flag" || |
| 9657 | test ! -s conftest.err |
| 9658 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9659 | ac_hi=$ac_mid |
| 9660 | else |
| 9661 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9663 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9664 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9665 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9666 | |
| 9667 | 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] | 9668 | done |
| 9669 | case $ac_lo in |
| 9670 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9671 | '') if test "$ac_cv_type_fpos_t" = yes; then |
| 9672 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9673 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9674 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9675 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9676 | { (exit 77); exit 77; }; } |
| 9677 | else |
| 9678 | ac_cv_sizeof_fpos_t=0 |
| 9679 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9680 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9681 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9682 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9683 | /* confdefs.h. */ |
| 9684 | _ACEOF |
| 9685 | cat confdefs.h >>conftest.$ac_ext |
| 9686 | cat >>conftest.$ac_ext <<_ACEOF |
| 9687 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9688 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9689 | typedef fpos_t ac__type_sizeof_; |
| 9690 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9691 | 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] | 9692 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9693 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9694 | int |
| 9695 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9696 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9697 | |
| 9698 | FILE *f = fopen ("conftest.val", "w"); |
| 9699 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9700 | return 1; |
| 9701 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9702 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9703 | long int i = longval (); |
| 9704 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9705 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9706 | fprintf (f, "%ld\n", i); |
| 9707 | } |
| 9708 | else |
| 9709 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9710 | unsigned long int i = ulongval (); |
| 9711 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9712 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9713 | fprintf (f, "%lu\n", i); |
| 9714 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9715 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9716 | |
| 9717 | ; |
| 9718 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9719 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9720 | _ACEOF |
| 9721 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9722 | if { (ac_try="$ac_link" |
| 9723 | case "(($ac_try" in |
| 9724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9725 | *) ac_try_echo=$ac_try;; |
| 9726 | esac |
| 9727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9728 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9729 | ac_status=$? |
| 9730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9731 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9732 | { (case "(($ac_try" in |
| 9733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9734 | *) ac_try_echo=$ac_try;; |
| 9735 | esac |
| 9736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9737 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9738 | ac_status=$? |
| 9739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9740 | (exit $ac_status); }; }; then |
| 9741 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9742 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9743 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9744 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9747 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9748 | if test "$ac_cv_type_fpos_t" = yes; then |
| 9749 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9750 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9751 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9752 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9753 | { (exit 77); exit 77; }; } |
| 9754 | else |
| 9755 | ac_cv_sizeof_fpos_t=0 |
| 9756 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9757 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9758 | 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] | 9759 | fi |
| 9760 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9761 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9762 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 9763 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
| 9764 | |
| 9765 | |
| 9766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9767 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9768 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9769 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9770 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9771 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9772 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 9773 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9774 | if test "${ac_cv_type_size_t+set}" = set; then |
| 9775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9776 | else |
| 9777 | cat >conftest.$ac_ext <<_ACEOF |
| 9778 | /* confdefs.h. */ |
| 9779 | _ACEOF |
| 9780 | cat confdefs.h >>conftest.$ac_ext |
| 9781 | cat >>conftest.$ac_ext <<_ACEOF |
| 9782 | /* end confdefs.h. */ |
| 9783 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9784 | typedef size_t ac__type_new_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9785 | int |
| 9786 | main () |
| 9787 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9788 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9789 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9790 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9791 | return 0; |
| 9792 | ; |
| 9793 | return 0; |
| 9794 | } |
| 9795 | _ACEOF |
| 9796 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9797 | if { (ac_try="$ac_compile" |
| 9798 | case "(($ac_try" in |
| 9799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9800 | *) ac_try_echo=$ac_try;; |
| 9801 | esac |
| 9802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9803 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9804 | ac_status=$? |
| 9805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9806 | rm -f conftest.er1 |
| 9807 | cat conftest.err >&5 |
| 9808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9809 | (exit $ac_status); } && { |
| 9810 | test -z "$ac_c_werror_flag" || |
| 9811 | test ! -s conftest.err |
| 9812 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9813 | ac_cv_type_size_t=yes |
| 9814 | else |
| 9815 | echo "$as_me: failed program was:" >&5 |
| 9816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9817 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9818 | ac_cv_type_size_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9819 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9820 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9822 | fi |
| 9823 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 9824 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 9825 | |
| 9826 | # The cast to long int works around a bug in the HP C Compiler |
| 9827 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9828 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9829 | # This bug is HP SR number 8606223364. |
| 9830 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 9831 | 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] | 9832 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
| 9833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9834 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9835 | if test "$cross_compiling" = yes; then |
| 9836 | # Depending upon the size, compute the lo and hi bounds. |
| 9837 | cat >conftest.$ac_ext <<_ACEOF |
| 9838 | /* confdefs.h. */ |
| 9839 | _ACEOF |
| 9840 | cat confdefs.h >>conftest.$ac_ext |
| 9841 | cat >>conftest.$ac_ext <<_ACEOF |
| 9842 | /* end confdefs.h. */ |
| 9843 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9844 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9845 | int |
| 9846 | main () |
| 9847 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9848 | 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] | 9849 | test_array [0] = 0 |
| 9850 | |
| 9851 | ; |
| 9852 | return 0; |
| 9853 | } |
| 9854 | _ACEOF |
| 9855 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9856 | if { (ac_try="$ac_compile" |
| 9857 | case "(($ac_try" in |
| 9858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9859 | *) ac_try_echo=$ac_try;; |
| 9860 | esac |
| 9861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9862 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9863 | ac_status=$? |
| 9864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9865 | rm -f conftest.er1 |
| 9866 | cat conftest.err >&5 |
| 9867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9868 | (exit $ac_status); } && { |
| 9869 | test -z "$ac_c_werror_flag" || |
| 9870 | test ! -s conftest.err |
| 9871 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9872 | ac_lo=0 ac_mid=0 |
| 9873 | while :; do |
| 9874 | cat >conftest.$ac_ext <<_ACEOF |
| 9875 | /* confdefs.h. */ |
| 9876 | _ACEOF |
| 9877 | cat confdefs.h >>conftest.$ac_ext |
| 9878 | cat >>conftest.$ac_ext <<_ACEOF |
| 9879 | /* end confdefs.h. */ |
| 9880 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9881 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9882 | int |
| 9883 | main () |
| 9884 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9885 | 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] | 9886 | test_array [0] = 0 |
| 9887 | |
| 9888 | ; |
| 9889 | return 0; |
| 9890 | } |
| 9891 | _ACEOF |
| 9892 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9893 | if { (ac_try="$ac_compile" |
| 9894 | case "(($ac_try" in |
| 9895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9896 | *) ac_try_echo=$ac_try;; |
| 9897 | esac |
| 9898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9899 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9900 | ac_status=$? |
| 9901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9902 | rm -f conftest.er1 |
| 9903 | cat conftest.err >&5 |
| 9904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9905 | (exit $ac_status); } && { |
| 9906 | test -z "$ac_c_werror_flag" || |
| 9907 | test ! -s conftest.err |
| 9908 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9909 | ac_hi=$ac_mid; break |
| 9910 | else |
| 9911 | echo "$as_me: failed program was:" >&5 |
| 9912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9913 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9914 | ac_lo=`expr $ac_mid + 1` |
| 9915 | if test $ac_lo -le $ac_mid; then |
| 9916 | ac_lo= ac_hi= |
| 9917 | break |
| 9918 | fi |
| 9919 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9920 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9921 | |
| 9922 | 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] | 9923 | done |
| 9924 | else |
| 9925 | echo "$as_me: failed program was:" >&5 |
| 9926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9927 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9928 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9929 | /* confdefs.h. */ |
| 9930 | _ACEOF |
| 9931 | cat confdefs.h >>conftest.$ac_ext |
| 9932 | cat >>conftest.$ac_ext <<_ACEOF |
| 9933 | /* end confdefs.h. */ |
| 9934 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9935 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9936 | int |
| 9937 | main () |
| 9938 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9939 | 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] | 9940 | test_array [0] = 0 |
| 9941 | |
| 9942 | ; |
| 9943 | return 0; |
| 9944 | } |
| 9945 | _ACEOF |
| 9946 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9947 | if { (ac_try="$ac_compile" |
| 9948 | case "(($ac_try" in |
| 9949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9950 | *) ac_try_echo=$ac_try;; |
| 9951 | esac |
| 9952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9953 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9954 | ac_status=$? |
| 9955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9956 | rm -f conftest.er1 |
| 9957 | cat conftest.err >&5 |
| 9958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9959 | (exit $ac_status); } && { |
| 9960 | test -z "$ac_c_werror_flag" || |
| 9961 | test ! -s conftest.err |
| 9962 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9963 | ac_hi=-1 ac_mid=-1 |
| 9964 | while :; do |
| 9965 | cat >conftest.$ac_ext <<_ACEOF |
| 9966 | /* confdefs.h. */ |
| 9967 | _ACEOF |
| 9968 | cat confdefs.h >>conftest.$ac_ext |
| 9969 | cat >>conftest.$ac_ext <<_ACEOF |
| 9970 | /* end confdefs.h. */ |
| 9971 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9972 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9973 | int |
| 9974 | main () |
| 9975 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9976 | 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] | 9977 | test_array [0] = 0 |
| 9978 | |
| 9979 | ; |
| 9980 | return 0; |
| 9981 | } |
| 9982 | _ACEOF |
| 9983 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9984 | if { (ac_try="$ac_compile" |
| 9985 | case "(($ac_try" in |
| 9986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9987 | *) ac_try_echo=$ac_try;; |
| 9988 | esac |
| 9989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9990 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9991 | ac_status=$? |
| 9992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9993 | rm -f conftest.er1 |
| 9994 | cat conftest.err >&5 |
| 9995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 9996 | (exit $ac_status); } && { |
| 9997 | test -z "$ac_c_werror_flag" || |
| 9998 | test ! -s conftest.err |
| 9999 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10000 | ac_lo=$ac_mid; break |
| 10001 | else |
| 10002 | echo "$as_me: failed program was:" >&5 |
| 10003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10004 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10005 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10006 | if test $ac_mid -le $ac_hi; then |
| 10007 | ac_lo= ac_hi= |
| 10008 | break |
| 10009 | fi |
| 10010 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10011 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10012 | |
| 10013 | 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] | 10014 | done |
| 10015 | else |
| 10016 | echo "$as_me: failed program was:" >&5 |
| 10017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10018 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10019 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10020 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10021 | |
| 10022 | 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] | 10023 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10024 | |
| 10025 | 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] | 10026 | # Binary search between lo and hi bounds. |
| 10027 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10028 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10029 | cat >conftest.$ac_ext <<_ACEOF |
| 10030 | /* confdefs.h. */ |
| 10031 | _ACEOF |
| 10032 | cat confdefs.h >>conftest.$ac_ext |
| 10033 | cat >>conftest.$ac_ext <<_ACEOF |
| 10034 | /* end confdefs.h. */ |
| 10035 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10036 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10037 | int |
| 10038 | main () |
| 10039 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10040 | 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] | 10041 | test_array [0] = 0 |
| 10042 | |
| 10043 | ; |
| 10044 | return 0; |
| 10045 | } |
| 10046 | _ACEOF |
| 10047 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10048 | if { (ac_try="$ac_compile" |
| 10049 | case "(($ac_try" in |
| 10050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10051 | *) ac_try_echo=$ac_try;; |
| 10052 | esac |
| 10053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10054 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10055 | ac_status=$? |
| 10056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10057 | rm -f conftest.er1 |
| 10058 | cat conftest.err >&5 |
| 10059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10060 | (exit $ac_status); } && { |
| 10061 | test -z "$ac_c_werror_flag" || |
| 10062 | test ! -s conftest.err |
| 10063 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10064 | ac_hi=$ac_mid |
| 10065 | else |
| 10066 | echo "$as_me: failed program was:" >&5 |
| 10067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10068 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10069 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10070 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10071 | |
| 10072 | 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] | 10073 | done |
| 10074 | case $ac_lo in |
| 10075 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10076 | '') if test "$ac_cv_type_size_t" = yes; then |
| 10077 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10078 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10079 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10080 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10081 | { (exit 77); exit 77; }; } |
| 10082 | else |
| 10083 | ac_cv_sizeof_size_t=0 |
| 10084 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10085 | esac |
| 10086 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10087 | cat >conftest.$ac_ext <<_ACEOF |
| 10088 | /* confdefs.h. */ |
| 10089 | _ACEOF |
| 10090 | cat confdefs.h >>conftest.$ac_ext |
| 10091 | cat >>conftest.$ac_ext <<_ACEOF |
| 10092 | /* end confdefs.h. */ |
| 10093 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10094 | typedef size_t ac__type_sizeof_; |
| 10095 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10096 | 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] | 10097 | #include <stdio.h> |
| 10098 | #include <stdlib.h> |
| 10099 | int |
| 10100 | main () |
| 10101 | { |
| 10102 | |
| 10103 | FILE *f = fopen ("conftest.val", "w"); |
| 10104 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10105 | return 1; |
| 10106 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10107 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10108 | long int i = longval (); |
| 10109 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10110 | return 1; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10111 | fprintf (f, "%ld\n", i); |
| 10112 | } |
| 10113 | else |
| 10114 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10115 | unsigned long int i = ulongval (); |
| 10116 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10117 | return 1; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10118 | fprintf (f, "%lu\n", i); |
| 10119 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10120 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10121 | |
| 10122 | ; |
| 10123 | return 0; |
| 10124 | } |
| 10125 | _ACEOF |
| 10126 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10127 | if { (ac_try="$ac_link" |
| 10128 | case "(($ac_try" in |
| 10129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10130 | *) ac_try_echo=$ac_try;; |
| 10131 | esac |
| 10132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10133 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10134 | ac_status=$? |
| 10135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10136 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10137 | { (case "(($ac_try" in |
| 10138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10139 | *) ac_try_echo=$ac_try;; |
| 10140 | esac |
| 10141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10142 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10143 | ac_status=$? |
| 10144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10145 | (exit $ac_status); }; }; then |
| 10146 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10147 | else |
| 10148 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10149 | echo "$as_me: failed program was:" >&5 |
| 10150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10151 | |
| 10152 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10153 | if test "$ac_cv_type_size_t" = yes; then |
| 10154 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10155 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10156 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10157 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10158 | { (exit 77); exit 77; }; } |
| 10159 | else |
| 10160 | ac_cv_sizeof_size_t=0 |
| 10161 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10162 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10163 | 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] | 10164 | fi |
| 10165 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10166 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10167 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10168 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
| 10169 | |
| 10170 | |
| 10171 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10172 | cat >>confdefs.h <<_ACEOF |
| 10173 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10174 | _ACEOF |
| 10175 | |
| 10176 | |
Christian Heimes | 400adb0 | 2008-02-01 08:12:03 +0000 | [diff] [blame] | 10177 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10178 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10179 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10181 | else |
| 10182 | cat >conftest.$ac_ext <<_ACEOF |
| 10183 | /* confdefs.h. */ |
| 10184 | _ACEOF |
| 10185 | cat confdefs.h >>conftest.$ac_ext |
| 10186 | cat >>conftest.$ac_ext <<_ACEOF |
| 10187 | /* end confdefs.h. */ |
| 10188 | $ac_includes_default |
| 10189 | typedef pid_t ac__type_new_; |
| 10190 | int |
| 10191 | main () |
| 10192 | { |
| 10193 | if ((ac__type_new_ *) 0) |
| 10194 | return 0; |
| 10195 | if (sizeof (ac__type_new_)) |
| 10196 | return 0; |
| 10197 | ; |
| 10198 | return 0; |
| 10199 | } |
| 10200 | _ACEOF |
| 10201 | rm -f conftest.$ac_objext |
| 10202 | if { (ac_try="$ac_compile" |
| 10203 | case "(($ac_try" in |
| 10204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10205 | *) ac_try_echo=$ac_try;; |
| 10206 | esac |
| 10207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10208 | (eval "$ac_compile") 2>conftest.er1 |
| 10209 | ac_status=$? |
| 10210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10211 | rm -f conftest.er1 |
| 10212 | cat conftest.err >&5 |
| 10213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10214 | (exit $ac_status); } && { |
| 10215 | test -z "$ac_c_werror_flag" || |
| 10216 | test ! -s conftest.err |
| 10217 | } && test -s conftest.$ac_objext; then |
| 10218 | ac_cv_type_pid_t=yes |
| 10219 | else |
| 10220 | echo "$as_me: failed program was:" >&5 |
| 10221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10222 | |
| 10223 | ac_cv_type_pid_t=no |
| 10224 | fi |
| 10225 | |
| 10226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10227 | fi |
| 10228 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10229 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10230 | |
| 10231 | # The cast to long int works around a bug in the HP C Compiler |
| 10232 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10233 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10234 | # This bug is HP SR number 8606223364. |
| 10235 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10236 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
| 10237 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
| 10238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10239 | else |
| 10240 | if test "$cross_compiling" = yes; then |
| 10241 | # Depending upon the size, compute the lo and hi bounds. |
| 10242 | cat >conftest.$ac_ext <<_ACEOF |
| 10243 | /* confdefs.h. */ |
| 10244 | _ACEOF |
| 10245 | cat confdefs.h >>conftest.$ac_ext |
| 10246 | cat >>conftest.$ac_ext <<_ACEOF |
| 10247 | /* end confdefs.h. */ |
| 10248 | $ac_includes_default |
| 10249 | typedef pid_t ac__type_sizeof_; |
| 10250 | int |
| 10251 | main () |
| 10252 | { |
| 10253 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 10254 | test_array [0] = 0 |
| 10255 | |
| 10256 | ; |
| 10257 | return 0; |
| 10258 | } |
| 10259 | _ACEOF |
| 10260 | rm -f conftest.$ac_objext |
| 10261 | if { (ac_try="$ac_compile" |
| 10262 | case "(($ac_try" in |
| 10263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10264 | *) ac_try_echo=$ac_try;; |
| 10265 | esac |
| 10266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10267 | (eval "$ac_compile") 2>conftest.er1 |
| 10268 | ac_status=$? |
| 10269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10270 | rm -f conftest.er1 |
| 10271 | cat conftest.err >&5 |
| 10272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10273 | (exit $ac_status); } && { |
| 10274 | test -z "$ac_c_werror_flag" || |
| 10275 | test ! -s conftest.err |
| 10276 | } && test -s conftest.$ac_objext; then |
| 10277 | ac_lo=0 ac_mid=0 |
| 10278 | while :; do |
| 10279 | cat >conftest.$ac_ext <<_ACEOF |
| 10280 | /* confdefs.h. */ |
| 10281 | _ACEOF |
| 10282 | cat confdefs.h >>conftest.$ac_ext |
| 10283 | cat >>conftest.$ac_ext <<_ACEOF |
| 10284 | /* end confdefs.h. */ |
| 10285 | $ac_includes_default |
| 10286 | typedef pid_t ac__type_sizeof_; |
| 10287 | int |
| 10288 | main () |
| 10289 | { |
| 10290 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 10291 | test_array [0] = 0 |
| 10292 | |
| 10293 | ; |
| 10294 | return 0; |
| 10295 | } |
| 10296 | _ACEOF |
| 10297 | rm -f conftest.$ac_objext |
| 10298 | if { (ac_try="$ac_compile" |
| 10299 | case "(($ac_try" in |
| 10300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10301 | *) ac_try_echo=$ac_try;; |
| 10302 | esac |
| 10303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10304 | (eval "$ac_compile") 2>conftest.er1 |
| 10305 | ac_status=$? |
| 10306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10307 | rm -f conftest.er1 |
| 10308 | cat conftest.err >&5 |
| 10309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10310 | (exit $ac_status); } && { |
| 10311 | test -z "$ac_c_werror_flag" || |
| 10312 | test ! -s conftest.err |
| 10313 | } && test -s conftest.$ac_objext; then |
| 10314 | ac_hi=$ac_mid; break |
| 10315 | else |
| 10316 | echo "$as_me: failed program was:" >&5 |
| 10317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10318 | |
| 10319 | ac_lo=`expr $ac_mid + 1` |
| 10320 | if test $ac_lo -le $ac_mid; then |
| 10321 | ac_lo= ac_hi= |
| 10322 | break |
| 10323 | fi |
| 10324 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10325 | fi |
| 10326 | |
| 10327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10328 | done |
| 10329 | else |
| 10330 | echo "$as_me: failed program was:" >&5 |
| 10331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10332 | |
| 10333 | cat >conftest.$ac_ext <<_ACEOF |
| 10334 | /* confdefs.h. */ |
| 10335 | _ACEOF |
| 10336 | cat confdefs.h >>conftest.$ac_ext |
| 10337 | cat >>conftest.$ac_ext <<_ACEOF |
| 10338 | /* end confdefs.h. */ |
| 10339 | $ac_includes_default |
| 10340 | typedef pid_t ac__type_sizeof_; |
| 10341 | int |
| 10342 | main () |
| 10343 | { |
| 10344 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 10345 | test_array [0] = 0 |
| 10346 | |
| 10347 | ; |
| 10348 | return 0; |
| 10349 | } |
| 10350 | _ACEOF |
| 10351 | rm -f conftest.$ac_objext |
| 10352 | if { (ac_try="$ac_compile" |
| 10353 | case "(($ac_try" in |
| 10354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10355 | *) ac_try_echo=$ac_try;; |
| 10356 | esac |
| 10357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10358 | (eval "$ac_compile") 2>conftest.er1 |
| 10359 | ac_status=$? |
| 10360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10361 | rm -f conftest.er1 |
| 10362 | cat conftest.err >&5 |
| 10363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10364 | (exit $ac_status); } && { |
| 10365 | test -z "$ac_c_werror_flag" || |
| 10366 | test ! -s conftest.err |
| 10367 | } && test -s conftest.$ac_objext; then |
| 10368 | ac_hi=-1 ac_mid=-1 |
| 10369 | while :; do |
| 10370 | cat >conftest.$ac_ext <<_ACEOF |
| 10371 | /* confdefs.h. */ |
| 10372 | _ACEOF |
| 10373 | cat confdefs.h >>conftest.$ac_ext |
| 10374 | cat >>conftest.$ac_ext <<_ACEOF |
| 10375 | /* end confdefs.h. */ |
| 10376 | $ac_includes_default |
| 10377 | typedef pid_t ac__type_sizeof_; |
| 10378 | int |
| 10379 | main () |
| 10380 | { |
| 10381 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 10382 | test_array [0] = 0 |
| 10383 | |
| 10384 | ; |
| 10385 | return 0; |
| 10386 | } |
| 10387 | _ACEOF |
| 10388 | rm -f conftest.$ac_objext |
| 10389 | if { (ac_try="$ac_compile" |
| 10390 | case "(($ac_try" in |
| 10391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10392 | *) ac_try_echo=$ac_try;; |
| 10393 | esac |
| 10394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10395 | (eval "$ac_compile") 2>conftest.er1 |
| 10396 | ac_status=$? |
| 10397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10398 | rm -f conftest.er1 |
| 10399 | cat conftest.err >&5 |
| 10400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10401 | (exit $ac_status); } && { |
| 10402 | test -z "$ac_c_werror_flag" || |
| 10403 | test ! -s conftest.err |
| 10404 | } && test -s conftest.$ac_objext; then |
| 10405 | ac_lo=$ac_mid; break |
| 10406 | else |
| 10407 | echo "$as_me: failed program was:" >&5 |
| 10408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10409 | |
| 10410 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10411 | if test $ac_mid -le $ac_hi; then |
| 10412 | ac_lo= ac_hi= |
| 10413 | break |
| 10414 | fi |
| 10415 | ac_mid=`expr 2 '*' $ac_mid` |
| 10416 | fi |
| 10417 | |
| 10418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10419 | done |
| 10420 | else |
| 10421 | echo "$as_me: failed program was:" >&5 |
| 10422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10423 | |
| 10424 | ac_lo= ac_hi= |
| 10425 | fi |
| 10426 | |
| 10427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10428 | fi |
| 10429 | |
| 10430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10431 | # Binary search between lo and hi bounds. |
| 10432 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10433 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10434 | cat >conftest.$ac_ext <<_ACEOF |
| 10435 | /* confdefs.h. */ |
| 10436 | _ACEOF |
| 10437 | cat confdefs.h >>conftest.$ac_ext |
| 10438 | cat >>conftest.$ac_ext <<_ACEOF |
| 10439 | /* end confdefs.h. */ |
| 10440 | $ac_includes_default |
| 10441 | typedef pid_t ac__type_sizeof_; |
| 10442 | int |
| 10443 | main () |
| 10444 | { |
| 10445 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 10446 | test_array [0] = 0 |
| 10447 | |
| 10448 | ; |
| 10449 | return 0; |
| 10450 | } |
| 10451 | _ACEOF |
| 10452 | rm -f conftest.$ac_objext |
| 10453 | if { (ac_try="$ac_compile" |
| 10454 | case "(($ac_try" in |
| 10455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10456 | *) ac_try_echo=$ac_try;; |
| 10457 | esac |
| 10458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10459 | (eval "$ac_compile") 2>conftest.er1 |
| 10460 | ac_status=$? |
| 10461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10462 | rm -f conftest.er1 |
| 10463 | cat conftest.err >&5 |
| 10464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10465 | (exit $ac_status); } && { |
| 10466 | test -z "$ac_c_werror_flag" || |
| 10467 | test ! -s conftest.err |
| 10468 | } && test -s conftest.$ac_objext; then |
| 10469 | ac_hi=$ac_mid |
| 10470 | else |
| 10471 | echo "$as_me: failed program was:" >&5 |
| 10472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10473 | |
| 10474 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 10475 | fi |
| 10476 | |
| 10477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10478 | done |
| 10479 | case $ac_lo in |
| 10480 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 10481 | '') if test "$ac_cv_type_pid_t" = yes; then |
| 10482 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
| 10483 | See \`config.log' for more details." >&5 |
| 10484 | echo "$as_me: error: cannot compute sizeof (pid_t) |
| 10485 | See \`config.log' for more details." >&2;} |
| 10486 | { (exit 77); exit 77; }; } |
| 10487 | else |
| 10488 | ac_cv_sizeof_pid_t=0 |
| 10489 | fi ;; |
| 10490 | esac |
| 10491 | else |
| 10492 | cat >conftest.$ac_ext <<_ACEOF |
| 10493 | /* confdefs.h. */ |
| 10494 | _ACEOF |
| 10495 | cat confdefs.h >>conftest.$ac_ext |
| 10496 | cat >>conftest.$ac_ext <<_ACEOF |
| 10497 | /* end confdefs.h. */ |
| 10498 | $ac_includes_default |
| 10499 | typedef pid_t ac__type_sizeof_; |
| 10500 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10501 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10502 | #include <stdio.h> |
| 10503 | #include <stdlib.h> |
| 10504 | int |
| 10505 | main () |
| 10506 | { |
| 10507 | |
| 10508 | FILE *f = fopen ("conftest.val", "w"); |
| 10509 | if (! f) |
| 10510 | return 1; |
| 10511 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 10512 | { |
| 10513 | long int i = longval (); |
| 10514 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10515 | return 1; |
| 10516 | fprintf (f, "%ld\n", i); |
| 10517 | } |
| 10518 | else |
| 10519 | { |
| 10520 | unsigned long int i = ulongval (); |
| 10521 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10522 | return 1; |
| 10523 | fprintf (f, "%lu\n", i); |
| 10524 | } |
| 10525 | return ferror (f) || fclose (f) != 0; |
| 10526 | |
| 10527 | ; |
| 10528 | return 0; |
| 10529 | } |
| 10530 | _ACEOF |
| 10531 | rm -f conftest$ac_exeext |
| 10532 | if { (ac_try="$ac_link" |
| 10533 | case "(($ac_try" in |
| 10534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10535 | *) ac_try_echo=$ac_try;; |
| 10536 | esac |
| 10537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10538 | (eval "$ac_link") 2>&5 |
| 10539 | ac_status=$? |
| 10540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10541 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10542 | { (case "(($ac_try" in |
| 10543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10544 | *) ac_try_echo=$ac_try;; |
| 10545 | esac |
| 10546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10547 | (eval "$ac_try") 2>&5 |
| 10548 | ac_status=$? |
| 10549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10550 | (exit $ac_status); }; }; then |
| 10551 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 10552 | else |
| 10553 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10554 | echo "$as_me: failed program was:" >&5 |
| 10555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10556 | |
| 10557 | ( exit $ac_status ) |
| 10558 | if test "$ac_cv_type_pid_t" = yes; then |
| 10559 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
| 10560 | See \`config.log' for more details." >&5 |
| 10561 | echo "$as_me: error: cannot compute sizeof (pid_t) |
| 10562 | See \`config.log' for more details." >&2;} |
| 10563 | { (exit 77); exit 77; }; } |
| 10564 | else |
| 10565 | ac_cv_sizeof_pid_t=0 |
| 10566 | fi |
| 10567 | fi |
| 10568 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 10569 | fi |
| 10570 | rm -f conftest.val |
| 10571 | fi |
| 10572 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 10573 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
| 10574 | |
| 10575 | |
| 10576 | |
| 10577 | cat >>confdefs.h <<_ACEOF |
| 10578 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 10579 | _ACEOF |
| 10580 | |
| 10581 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10582 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10583 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 10584 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10585 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10586 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10587 | /* confdefs.h. */ |
| 10588 | _ACEOF |
| 10589 | cat confdefs.h >>conftest.$ac_ext |
| 10590 | cat >>conftest.$ac_ext <<_ACEOF |
| 10591 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10593 | int |
| 10594 | main () |
| 10595 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10596 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10597 | ; |
| 10598 | return 0; |
| 10599 | } |
| 10600 | _ACEOF |
| 10601 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10602 | if { (ac_try="$ac_compile" |
| 10603 | case "(($ac_try" in |
| 10604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10605 | *) ac_try_echo=$ac_try;; |
| 10606 | esac |
| 10607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10608 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10609 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10610 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10611 | rm -f conftest.er1 |
| 10612 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10614 | (exit $ac_status); } && { |
| 10615 | test -z "$ac_c_werror_flag" || |
| 10616 | test ! -s conftest.err |
| 10617 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10618 | |
| 10619 | |
| 10620 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10621 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10622 | _ACEOF |
| 10623 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10624 | have_long_long=yes |
| 10625 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10626 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10627 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10629 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10630 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10631 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10632 | |
| 10633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10634 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 10635 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 10636 | if test "$have_long_long" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10637 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 10638 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10639 | if test "${ac_cv_type_long_long+set}" = set; then |
| 10640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10641 | else |
| 10642 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10643 | /* confdefs.h. */ |
| 10644 | _ACEOF |
| 10645 | cat confdefs.h >>conftest.$ac_ext |
| 10646 | cat >>conftest.$ac_ext <<_ACEOF |
| 10647 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10648 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10649 | typedef long long ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10650 | int |
| 10651 | main () |
| 10652 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10653 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10654 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10655 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10656 | return 0; |
| 10657 | ; |
| 10658 | return 0; |
| 10659 | } |
| 10660 | _ACEOF |
| 10661 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10662 | if { (ac_try="$ac_compile" |
| 10663 | case "(($ac_try" in |
| 10664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10665 | *) ac_try_echo=$ac_try;; |
| 10666 | esac |
| 10667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10668 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10669 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10671 | rm -f conftest.er1 |
| 10672 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10674 | (exit $ac_status); } && { |
| 10675 | test -z "$ac_c_werror_flag" || |
| 10676 | test ! -s conftest.err |
| 10677 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10678 | ac_cv_type_long_long=yes |
| 10679 | else |
| 10680 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10682 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10683 | ac_cv_type_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10684 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10685 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10687 | fi |
| 10688 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 10689 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 10690 | |
| 10691 | # The cast to long int works around a bug in the HP C Compiler |
| 10692 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10693 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10694 | # This bug is HP SR number 8606223364. |
| 10695 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 10696 | 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] | 10697 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 10698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10699 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10700 | if test "$cross_compiling" = yes; then |
| 10701 | # Depending upon the size, compute the lo and hi bounds. |
| 10702 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10703 | /* confdefs.h. */ |
| 10704 | _ACEOF |
| 10705 | cat confdefs.h >>conftest.$ac_ext |
| 10706 | cat >>conftest.$ac_ext <<_ACEOF |
| 10707 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10708 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10709 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10710 | int |
| 10711 | main () |
| 10712 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10713 | 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] | 10714 | test_array [0] = 0 |
| 10715 | |
| 10716 | ; |
| 10717 | return 0; |
| 10718 | } |
| 10719 | _ACEOF |
| 10720 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10721 | if { (ac_try="$ac_compile" |
| 10722 | case "(($ac_try" in |
| 10723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10724 | *) ac_try_echo=$ac_try;; |
| 10725 | esac |
| 10726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10727 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10728 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10730 | rm -f conftest.er1 |
| 10731 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10733 | (exit $ac_status); } && { |
| 10734 | test -z "$ac_c_werror_flag" || |
| 10735 | test ! -s conftest.err |
| 10736 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10737 | ac_lo=0 ac_mid=0 |
| 10738 | while :; do |
| 10739 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10740 | /* confdefs.h. */ |
| 10741 | _ACEOF |
| 10742 | cat confdefs.h >>conftest.$ac_ext |
| 10743 | cat >>conftest.$ac_ext <<_ACEOF |
| 10744 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10745 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10746 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10747 | int |
| 10748 | main () |
| 10749 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10750 | 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] | 10751 | test_array [0] = 0 |
| 10752 | |
| 10753 | ; |
| 10754 | return 0; |
| 10755 | } |
| 10756 | _ACEOF |
| 10757 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10758 | if { (ac_try="$ac_compile" |
| 10759 | case "(($ac_try" in |
| 10760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10761 | *) ac_try_echo=$ac_try;; |
| 10762 | esac |
| 10763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10764 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10765 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10767 | rm -f conftest.er1 |
| 10768 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10770 | (exit $ac_status); } && { |
| 10771 | test -z "$ac_c_werror_flag" || |
| 10772 | test ! -s conftest.err |
| 10773 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10774 | ac_hi=$ac_mid; break |
| 10775 | else |
| 10776 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10778 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10779 | ac_lo=`expr $ac_mid + 1` |
| 10780 | if test $ac_lo -le $ac_mid; then |
| 10781 | ac_lo= ac_hi= |
| 10782 | break |
| 10783 | fi |
| 10784 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10785 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10786 | |
| 10787 | 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] | 10788 | done |
| 10789 | else |
| 10790 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10792 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10793 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10794 | /* confdefs.h. */ |
| 10795 | _ACEOF |
| 10796 | cat confdefs.h >>conftest.$ac_ext |
| 10797 | cat >>conftest.$ac_ext <<_ACEOF |
| 10798 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10799 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10800 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10801 | int |
| 10802 | main () |
| 10803 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10804 | 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] | 10805 | test_array [0] = 0 |
| 10806 | |
| 10807 | ; |
| 10808 | return 0; |
| 10809 | } |
| 10810 | _ACEOF |
| 10811 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10812 | if { (ac_try="$ac_compile" |
| 10813 | case "(($ac_try" in |
| 10814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10815 | *) ac_try_echo=$ac_try;; |
| 10816 | esac |
| 10817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10818 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10819 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10821 | rm -f conftest.er1 |
| 10822 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10824 | (exit $ac_status); } && { |
| 10825 | test -z "$ac_c_werror_flag" || |
| 10826 | test ! -s conftest.err |
| 10827 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10828 | ac_hi=-1 ac_mid=-1 |
| 10829 | while :; do |
| 10830 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10831 | /* confdefs.h. */ |
| 10832 | _ACEOF |
| 10833 | cat confdefs.h >>conftest.$ac_ext |
| 10834 | cat >>conftest.$ac_ext <<_ACEOF |
| 10835 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10836 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10837 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10838 | int |
| 10839 | main () |
| 10840 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10841 | 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] | 10842 | test_array [0] = 0 |
| 10843 | |
| 10844 | ; |
| 10845 | return 0; |
| 10846 | } |
| 10847 | _ACEOF |
| 10848 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10849 | if { (ac_try="$ac_compile" |
| 10850 | case "(($ac_try" in |
| 10851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10852 | *) ac_try_echo=$ac_try;; |
| 10853 | esac |
| 10854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10855 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10856 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10858 | rm -f conftest.er1 |
| 10859 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10861 | (exit $ac_status); } && { |
| 10862 | test -z "$ac_c_werror_flag" || |
| 10863 | test ! -s conftest.err |
| 10864 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10865 | ac_lo=$ac_mid; break |
| 10866 | else |
| 10867 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10869 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10870 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10871 | if test $ac_mid -le $ac_hi; then |
| 10872 | ac_lo= ac_hi= |
| 10873 | break |
| 10874 | fi |
| 10875 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10876 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10877 | |
| 10878 | 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] | 10879 | done |
| 10880 | else |
| 10881 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10883 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10884 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10885 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10886 | |
| 10887 | 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] | 10888 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10889 | |
| 10890 | 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] | 10891 | # Binary search between lo and hi bounds. |
| 10892 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10893 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10894 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10895 | /* confdefs.h. */ |
| 10896 | _ACEOF |
| 10897 | cat confdefs.h >>conftest.$ac_ext |
| 10898 | cat >>conftest.$ac_ext <<_ACEOF |
| 10899 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10900 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10901 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10902 | int |
| 10903 | main () |
| 10904 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10905 | 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] | 10906 | test_array [0] = 0 |
| 10907 | |
| 10908 | ; |
| 10909 | return 0; |
| 10910 | } |
| 10911 | _ACEOF |
| 10912 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10913 | if { (ac_try="$ac_compile" |
| 10914 | case "(($ac_try" in |
| 10915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10916 | *) ac_try_echo=$ac_try;; |
| 10917 | esac |
| 10918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10919 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10920 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10922 | rm -f conftest.er1 |
| 10923 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10925 | (exit $ac_status); } && { |
| 10926 | test -z "$ac_c_werror_flag" || |
| 10927 | test ! -s conftest.err |
| 10928 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10929 | ac_hi=$ac_mid |
| 10930 | else |
| 10931 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10933 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10934 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10935 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10936 | |
| 10937 | 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] | 10938 | done |
| 10939 | case $ac_lo in |
| 10940 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10941 | '') if test "$ac_cv_type_long_long" = yes; then |
| 10942 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10943 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10944 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10945 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10946 | { (exit 77); exit 77; }; } |
| 10947 | else |
| 10948 | ac_cv_sizeof_long_long=0 |
| 10949 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10950 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10951 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10952 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10953 | /* confdefs.h. */ |
| 10954 | _ACEOF |
| 10955 | cat confdefs.h >>conftest.$ac_ext |
| 10956 | cat >>conftest.$ac_ext <<_ACEOF |
| 10957 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10958 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10959 | typedef long long ac__type_sizeof_; |
| 10960 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10961 | 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] | 10962 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10963 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10964 | int |
| 10965 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10966 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10967 | |
| 10968 | FILE *f = fopen ("conftest.val", "w"); |
| 10969 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10970 | return 1; |
| 10971 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10972 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10973 | long int i = longval (); |
| 10974 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10975 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | fprintf (f, "%ld\n", i); |
| 10977 | } |
| 10978 | else |
| 10979 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10980 | unsigned long int i = ulongval (); |
| 10981 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10982 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10983 | fprintf (f, "%lu\n", i); |
| 10984 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10985 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10986 | |
| 10987 | ; |
| 10988 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10989 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10990 | _ACEOF |
| 10991 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 10992 | if { (ac_try="$ac_link" |
| 10993 | case "(($ac_try" in |
| 10994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10995 | *) ac_try_echo=$ac_try;; |
| 10996 | esac |
| 10997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10998 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10999 | ac_status=$? |
| 11000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11001 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11002 | { (case "(($ac_try" in |
| 11003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11004 | *) ac_try_echo=$ac_try;; |
| 11005 | esac |
| 11006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11007 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11008 | ac_status=$? |
| 11009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11010 | (exit $ac_status); }; }; then |
| 11011 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11012 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11013 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11014 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11017 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11018 | if test "$ac_cv_type_long_long" = yes; then |
| 11019 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11020 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11021 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11022 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11023 | { (exit 77); exit 77; }; } |
| 11024 | else |
| 11025 | ac_cv_sizeof_long_long=0 |
| 11026 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11027 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11028 | 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] | 11029 | fi |
| 11030 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11031 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11032 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11033 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
| 11034 | |
| 11035 | |
| 11036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11037 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11038 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11039 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11040 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11041 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11042 | fi |
| 11043 | |
Travis E. Oliphant | 9b30784 | 2007-10-12 22:06:37 +0000 | [diff] [blame] | 11044 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11045 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
| 11046 | have_long_double=no |
| 11047 | cat >conftest.$ac_ext <<_ACEOF |
| 11048 | /* confdefs.h. */ |
| 11049 | _ACEOF |
| 11050 | cat confdefs.h >>conftest.$ac_ext |
| 11051 | cat >>conftest.$ac_ext <<_ACEOF |
| 11052 | /* end confdefs.h. */ |
| 11053 | |
| 11054 | int |
| 11055 | main () |
| 11056 | { |
| 11057 | long double x; x = (long double)0; |
| 11058 | ; |
| 11059 | return 0; |
| 11060 | } |
| 11061 | _ACEOF |
| 11062 | rm -f conftest.$ac_objext |
| 11063 | if { (ac_try="$ac_compile" |
| 11064 | case "(($ac_try" in |
| 11065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11066 | *) ac_try_echo=$ac_try;; |
| 11067 | esac |
| 11068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11069 | (eval "$ac_compile") 2>conftest.er1 |
| 11070 | ac_status=$? |
| 11071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11072 | rm -f conftest.er1 |
| 11073 | cat conftest.err >&5 |
| 11074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11075 | (exit $ac_status); } && { |
| 11076 | test -z "$ac_c_werror_flag" || |
| 11077 | test ! -s conftest.err |
| 11078 | } && test -s conftest.$ac_objext; then |
| 11079 | |
| 11080 | |
| 11081 | cat >>confdefs.h <<\_ACEOF |
| 11082 | #define HAVE_LONG_DOUBLE 1 |
| 11083 | _ACEOF |
| 11084 | |
| 11085 | have_long_double=yes |
| 11086 | |
| 11087 | else |
| 11088 | echo "$as_me: failed program was:" >&5 |
| 11089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11090 | |
| 11091 | |
| 11092 | fi |
| 11093 | |
| 11094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11095 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11096 | echo "${ECHO_T}$have_long_double" >&6; } |
| 11097 | if test "$have_long_double" = yes ; then |
| 11098 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11099 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11100 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11102 | else |
| 11103 | cat >conftest.$ac_ext <<_ACEOF |
| 11104 | /* confdefs.h. */ |
| 11105 | _ACEOF |
| 11106 | cat confdefs.h >>conftest.$ac_ext |
| 11107 | cat >>conftest.$ac_ext <<_ACEOF |
| 11108 | /* end confdefs.h. */ |
| 11109 | $ac_includes_default |
| 11110 | typedef long double ac__type_new_; |
| 11111 | int |
| 11112 | main () |
| 11113 | { |
| 11114 | if ((ac__type_new_ *) 0) |
| 11115 | return 0; |
| 11116 | if (sizeof (ac__type_new_)) |
| 11117 | return 0; |
| 11118 | ; |
| 11119 | return 0; |
| 11120 | } |
| 11121 | _ACEOF |
| 11122 | rm -f conftest.$ac_objext |
| 11123 | if { (ac_try="$ac_compile" |
| 11124 | case "(($ac_try" in |
| 11125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11126 | *) ac_try_echo=$ac_try;; |
| 11127 | esac |
| 11128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11129 | (eval "$ac_compile") 2>conftest.er1 |
| 11130 | ac_status=$? |
| 11131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11132 | rm -f conftest.er1 |
| 11133 | cat conftest.err >&5 |
| 11134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11135 | (exit $ac_status); } && { |
| 11136 | test -z "$ac_c_werror_flag" || |
| 11137 | test ! -s conftest.err |
| 11138 | } && test -s conftest.$ac_objext; then |
| 11139 | ac_cv_type_long_double=yes |
| 11140 | else |
| 11141 | echo "$as_me: failed program was:" >&5 |
| 11142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11143 | |
| 11144 | ac_cv_type_long_double=no |
| 11145 | fi |
| 11146 | |
| 11147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11148 | fi |
| 11149 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11150 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11151 | |
| 11152 | # The cast to long int works around a bug in the HP C Compiler |
| 11153 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11154 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11155 | # This bug is HP SR number 8606223364. |
| 11156 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11157 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
| 11158 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
| 11159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11160 | else |
| 11161 | if test "$cross_compiling" = yes; then |
| 11162 | # Depending upon the size, compute the lo and hi bounds. |
| 11163 | cat >conftest.$ac_ext <<_ACEOF |
| 11164 | /* confdefs.h. */ |
| 11165 | _ACEOF |
| 11166 | cat confdefs.h >>conftest.$ac_ext |
| 11167 | cat >>conftest.$ac_ext <<_ACEOF |
| 11168 | /* end confdefs.h. */ |
| 11169 | $ac_includes_default |
| 11170 | typedef long double ac__type_sizeof_; |
| 11171 | int |
| 11172 | main () |
| 11173 | { |
| 11174 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 11175 | test_array [0] = 0 |
| 11176 | |
| 11177 | ; |
| 11178 | return 0; |
| 11179 | } |
| 11180 | _ACEOF |
| 11181 | rm -f conftest.$ac_objext |
| 11182 | if { (ac_try="$ac_compile" |
| 11183 | case "(($ac_try" in |
| 11184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11185 | *) ac_try_echo=$ac_try;; |
| 11186 | esac |
| 11187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11188 | (eval "$ac_compile") 2>conftest.er1 |
| 11189 | ac_status=$? |
| 11190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11191 | rm -f conftest.er1 |
| 11192 | cat conftest.err >&5 |
| 11193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11194 | (exit $ac_status); } && { |
| 11195 | test -z "$ac_c_werror_flag" || |
| 11196 | test ! -s conftest.err |
| 11197 | } && test -s conftest.$ac_objext; then |
| 11198 | ac_lo=0 ac_mid=0 |
| 11199 | while :; do |
| 11200 | cat >conftest.$ac_ext <<_ACEOF |
| 11201 | /* confdefs.h. */ |
| 11202 | _ACEOF |
| 11203 | cat confdefs.h >>conftest.$ac_ext |
| 11204 | cat >>conftest.$ac_ext <<_ACEOF |
| 11205 | /* end confdefs.h. */ |
| 11206 | $ac_includes_default |
| 11207 | typedef long double ac__type_sizeof_; |
| 11208 | int |
| 11209 | main () |
| 11210 | { |
| 11211 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 11212 | test_array [0] = 0 |
| 11213 | |
| 11214 | ; |
| 11215 | return 0; |
| 11216 | } |
| 11217 | _ACEOF |
| 11218 | rm -f conftest.$ac_objext |
| 11219 | if { (ac_try="$ac_compile" |
| 11220 | case "(($ac_try" in |
| 11221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11222 | *) ac_try_echo=$ac_try;; |
| 11223 | esac |
| 11224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11225 | (eval "$ac_compile") 2>conftest.er1 |
| 11226 | ac_status=$? |
| 11227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11228 | rm -f conftest.er1 |
| 11229 | cat conftest.err >&5 |
| 11230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11231 | (exit $ac_status); } && { |
| 11232 | test -z "$ac_c_werror_flag" || |
| 11233 | test ! -s conftest.err |
| 11234 | } && test -s conftest.$ac_objext; then |
| 11235 | ac_hi=$ac_mid; break |
| 11236 | else |
| 11237 | echo "$as_me: failed program was:" >&5 |
| 11238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11239 | |
| 11240 | ac_lo=`expr $ac_mid + 1` |
| 11241 | if test $ac_lo -le $ac_mid; then |
| 11242 | ac_lo= ac_hi= |
| 11243 | break |
| 11244 | fi |
| 11245 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11246 | fi |
| 11247 | |
| 11248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11249 | done |
| 11250 | else |
| 11251 | echo "$as_me: failed program was:" >&5 |
| 11252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11253 | |
| 11254 | cat >conftest.$ac_ext <<_ACEOF |
| 11255 | /* confdefs.h. */ |
| 11256 | _ACEOF |
| 11257 | cat confdefs.h >>conftest.$ac_ext |
| 11258 | cat >>conftest.$ac_ext <<_ACEOF |
| 11259 | /* end confdefs.h. */ |
| 11260 | $ac_includes_default |
| 11261 | typedef long double ac__type_sizeof_; |
| 11262 | int |
| 11263 | main () |
| 11264 | { |
| 11265 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 11266 | test_array [0] = 0 |
| 11267 | |
| 11268 | ; |
| 11269 | return 0; |
| 11270 | } |
| 11271 | _ACEOF |
| 11272 | rm -f conftest.$ac_objext |
| 11273 | if { (ac_try="$ac_compile" |
| 11274 | case "(($ac_try" in |
| 11275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11276 | *) ac_try_echo=$ac_try;; |
| 11277 | esac |
| 11278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11279 | (eval "$ac_compile") 2>conftest.er1 |
| 11280 | ac_status=$? |
| 11281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11282 | rm -f conftest.er1 |
| 11283 | cat conftest.err >&5 |
| 11284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11285 | (exit $ac_status); } && { |
| 11286 | test -z "$ac_c_werror_flag" || |
| 11287 | test ! -s conftest.err |
| 11288 | } && test -s conftest.$ac_objext; then |
| 11289 | ac_hi=-1 ac_mid=-1 |
| 11290 | while :; do |
| 11291 | cat >conftest.$ac_ext <<_ACEOF |
| 11292 | /* confdefs.h. */ |
| 11293 | _ACEOF |
| 11294 | cat confdefs.h >>conftest.$ac_ext |
| 11295 | cat >>conftest.$ac_ext <<_ACEOF |
| 11296 | /* end confdefs.h. */ |
| 11297 | $ac_includes_default |
| 11298 | typedef long double ac__type_sizeof_; |
| 11299 | int |
| 11300 | main () |
| 11301 | { |
| 11302 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 11303 | test_array [0] = 0 |
| 11304 | |
| 11305 | ; |
| 11306 | return 0; |
| 11307 | } |
| 11308 | _ACEOF |
| 11309 | rm -f conftest.$ac_objext |
| 11310 | if { (ac_try="$ac_compile" |
| 11311 | case "(($ac_try" in |
| 11312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11313 | *) ac_try_echo=$ac_try;; |
| 11314 | esac |
| 11315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11316 | (eval "$ac_compile") 2>conftest.er1 |
| 11317 | ac_status=$? |
| 11318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11319 | rm -f conftest.er1 |
| 11320 | cat conftest.err >&5 |
| 11321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11322 | (exit $ac_status); } && { |
| 11323 | test -z "$ac_c_werror_flag" || |
| 11324 | test ! -s conftest.err |
| 11325 | } && test -s conftest.$ac_objext; then |
| 11326 | ac_lo=$ac_mid; break |
| 11327 | else |
| 11328 | echo "$as_me: failed program was:" >&5 |
| 11329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11330 | |
| 11331 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11332 | if test $ac_mid -le $ac_hi; then |
| 11333 | ac_lo= ac_hi= |
| 11334 | break |
| 11335 | fi |
| 11336 | ac_mid=`expr 2 '*' $ac_mid` |
| 11337 | fi |
| 11338 | |
| 11339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11340 | done |
| 11341 | else |
| 11342 | echo "$as_me: failed program was:" >&5 |
| 11343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11344 | |
| 11345 | ac_lo= ac_hi= |
| 11346 | fi |
| 11347 | |
| 11348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11349 | fi |
| 11350 | |
| 11351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11352 | # Binary search between lo and hi bounds. |
| 11353 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11354 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11355 | cat >conftest.$ac_ext <<_ACEOF |
| 11356 | /* confdefs.h. */ |
| 11357 | _ACEOF |
| 11358 | cat confdefs.h >>conftest.$ac_ext |
| 11359 | cat >>conftest.$ac_ext <<_ACEOF |
| 11360 | /* end confdefs.h. */ |
| 11361 | $ac_includes_default |
| 11362 | typedef long double ac__type_sizeof_; |
| 11363 | int |
| 11364 | main () |
| 11365 | { |
| 11366 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 11367 | test_array [0] = 0 |
| 11368 | |
| 11369 | ; |
| 11370 | return 0; |
| 11371 | } |
| 11372 | _ACEOF |
| 11373 | rm -f conftest.$ac_objext |
| 11374 | if { (ac_try="$ac_compile" |
| 11375 | case "(($ac_try" in |
| 11376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11377 | *) ac_try_echo=$ac_try;; |
| 11378 | esac |
| 11379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11380 | (eval "$ac_compile") 2>conftest.er1 |
| 11381 | ac_status=$? |
| 11382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11383 | rm -f conftest.er1 |
| 11384 | cat conftest.err >&5 |
| 11385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11386 | (exit $ac_status); } && { |
| 11387 | test -z "$ac_c_werror_flag" || |
| 11388 | test ! -s conftest.err |
| 11389 | } && test -s conftest.$ac_objext; then |
| 11390 | ac_hi=$ac_mid |
| 11391 | else |
| 11392 | echo "$as_me: failed program was:" >&5 |
| 11393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11394 | |
| 11395 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11396 | fi |
| 11397 | |
| 11398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11399 | done |
| 11400 | case $ac_lo in |
| 11401 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 11402 | '') if test "$ac_cv_type_long_double" = yes; then |
| 11403 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
| 11404 | See \`config.log' for more details." >&5 |
| 11405 | echo "$as_me: error: cannot compute sizeof (long double) |
| 11406 | See \`config.log' for more details." >&2;} |
| 11407 | { (exit 77); exit 77; }; } |
| 11408 | else |
| 11409 | ac_cv_sizeof_long_double=0 |
| 11410 | fi ;; |
| 11411 | esac |
| 11412 | else |
| 11413 | cat >conftest.$ac_ext <<_ACEOF |
| 11414 | /* confdefs.h. */ |
| 11415 | _ACEOF |
| 11416 | cat confdefs.h >>conftest.$ac_ext |
| 11417 | cat >>conftest.$ac_ext <<_ACEOF |
| 11418 | /* end confdefs.h. */ |
| 11419 | $ac_includes_default |
| 11420 | typedef long double ac__type_sizeof_; |
| 11421 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11422 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11423 | #include <stdio.h> |
| 11424 | #include <stdlib.h> |
| 11425 | int |
| 11426 | main () |
| 11427 | { |
| 11428 | |
| 11429 | FILE *f = fopen ("conftest.val", "w"); |
| 11430 | if (! f) |
| 11431 | return 1; |
| 11432 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 11433 | { |
| 11434 | long int i = longval (); |
| 11435 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11436 | return 1; |
| 11437 | fprintf (f, "%ld\n", i); |
| 11438 | } |
| 11439 | else |
| 11440 | { |
| 11441 | unsigned long int i = ulongval (); |
| 11442 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11443 | return 1; |
| 11444 | fprintf (f, "%lu\n", i); |
| 11445 | } |
| 11446 | return ferror (f) || fclose (f) != 0; |
| 11447 | |
| 11448 | ; |
| 11449 | return 0; |
| 11450 | } |
| 11451 | _ACEOF |
| 11452 | rm -f conftest$ac_exeext |
| 11453 | if { (ac_try="$ac_link" |
| 11454 | case "(($ac_try" in |
| 11455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11456 | *) ac_try_echo=$ac_try;; |
| 11457 | esac |
| 11458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11459 | (eval "$ac_link") 2>&5 |
| 11460 | ac_status=$? |
| 11461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11462 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11463 | { (case "(($ac_try" in |
| 11464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11465 | *) ac_try_echo=$ac_try;; |
| 11466 | esac |
| 11467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11468 | (eval "$ac_try") 2>&5 |
| 11469 | ac_status=$? |
| 11470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11471 | (exit $ac_status); }; }; then |
| 11472 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 11473 | else |
| 11474 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11475 | echo "$as_me: failed program was:" >&5 |
| 11476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11477 | |
| 11478 | ( exit $ac_status ) |
| 11479 | if test "$ac_cv_type_long_double" = yes; then |
| 11480 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
| 11481 | See \`config.log' for more details." >&5 |
| 11482 | echo "$as_me: error: cannot compute sizeof (long double) |
| 11483 | See \`config.log' for more details." >&2;} |
| 11484 | { (exit 77); exit 77; }; } |
| 11485 | else |
| 11486 | ac_cv_sizeof_long_double=0 |
| 11487 | fi |
| 11488 | fi |
| 11489 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11490 | fi |
| 11491 | rm -f conftest.val |
| 11492 | fi |
| 11493 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 11494 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
| 11495 | |
| 11496 | |
| 11497 | |
| 11498 | cat >>confdefs.h <<_ACEOF |
| 11499 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 11500 | _ACEOF |
| 11501 | |
| 11502 | |
| 11503 | fi |
| 11504 | |
| 11505 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11506 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 11507 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11508 | have_c99_bool=no |
| 11509 | cat >conftest.$ac_ext <<_ACEOF |
| 11510 | /* confdefs.h. */ |
| 11511 | _ACEOF |
| 11512 | cat confdefs.h >>conftest.$ac_ext |
| 11513 | cat >>conftest.$ac_ext <<_ACEOF |
| 11514 | /* end confdefs.h. */ |
| 11515 | |
| 11516 | int |
| 11517 | main () |
| 11518 | { |
| 11519 | _Bool x; x = (_Bool)0; |
| 11520 | ; |
| 11521 | return 0; |
| 11522 | } |
| 11523 | _ACEOF |
| 11524 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11525 | if { (ac_try="$ac_compile" |
| 11526 | case "(($ac_try" in |
| 11527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11528 | *) ac_try_echo=$ac_try;; |
| 11529 | esac |
| 11530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11531 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11532 | ac_status=$? |
| 11533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11534 | rm -f conftest.er1 |
| 11535 | cat conftest.err >&5 |
| 11536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11537 | (exit $ac_status); } && { |
| 11538 | test -z "$ac_c_werror_flag" || |
| 11539 | test ! -s conftest.err |
| 11540 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11541 | |
| 11542 | |
| 11543 | cat >>confdefs.h <<\_ACEOF |
| 11544 | #define HAVE_C99_BOOL 1 |
| 11545 | _ACEOF |
| 11546 | |
| 11547 | have_c99_bool=yes |
| 11548 | |
| 11549 | else |
| 11550 | echo "$as_me: failed program was:" >&5 |
| 11551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11552 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11553 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11554 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11555 | |
| 11556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11557 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 11558 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11559 | if test "$have_c99_bool" = yes ; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11560 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 11561 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11562 | if test "${ac_cv_type__Bool+set}" = set; then |
| 11563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11564 | else |
| 11565 | cat >conftest.$ac_ext <<_ACEOF |
| 11566 | /* confdefs.h. */ |
| 11567 | _ACEOF |
| 11568 | cat confdefs.h >>conftest.$ac_ext |
| 11569 | cat >>conftest.$ac_ext <<_ACEOF |
| 11570 | /* end confdefs.h. */ |
| 11571 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11572 | typedef _Bool ac__type_new_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11573 | int |
| 11574 | main () |
| 11575 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11576 | if ((ac__type_new_ *) 0) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11577 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11578 | if (sizeof (ac__type_new_)) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11579 | return 0; |
| 11580 | ; |
| 11581 | return 0; |
| 11582 | } |
| 11583 | _ACEOF |
| 11584 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11585 | if { (ac_try="$ac_compile" |
| 11586 | case "(($ac_try" in |
| 11587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11588 | *) ac_try_echo=$ac_try;; |
| 11589 | esac |
| 11590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11591 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11592 | ac_status=$? |
| 11593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11594 | rm -f conftest.er1 |
| 11595 | cat conftest.err >&5 |
| 11596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11597 | (exit $ac_status); } && { |
| 11598 | test -z "$ac_c_werror_flag" || |
| 11599 | test ! -s conftest.err |
| 11600 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11601 | ac_cv_type__Bool=yes |
| 11602 | else |
| 11603 | echo "$as_me: failed program was:" >&5 |
| 11604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11605 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11606 | ac_cv_type__Bool=no |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11607 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11608 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11610 | fi |
| 11611 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 11612 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 11613 | |
| 11614 | # The cast to long int works around a bug in the HP C Compiler |
| 11615 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11616 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11617 | # This bug is HP SR number 8606223364. |
| 11618 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 11619 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11620 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
| 11621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11622 | else |
| 11623 | if test "$cross_compiling" = yes; then |
| 11624 | # Depending upon the size, compute the lo and hi bounds. |
| 11625 | cat >conftest.$ac_ext <<_ACEOF |
| 11626 | /* confdefs.h. */ |
| 11627 | _ACEOF |
| 11628 | cat confdefs.h >>conftest.$ac_ext |
| 11629 | cat >>conftest.$ac_ext <<_ACEOF |
| 11630 | /* end confdefs.h. */ |
| 11631 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11632 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11633 | int |
| 11634 | main () |
| 11635 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11636 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11637 | test_array [0] = 0 |
| 11638 | |
| 11639 | ; |
| 11640 | return 0; |
| 11641 | } |
| 11642 | _ACEOF |
| 11643 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11644 | if { (ac_try="$ac_compile" |
| 11645 | case "(($ac_try" in |
| 11646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11647 | *) ac_try_echo=$ac_try;; |
| 11648 | esac |
| 11649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11650 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11651 | ac_status=$? |
| 11652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11653 | rm -f conftest.er1 |
| 11654 | cat conftest.err >&5 |
| 11655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11656 | (exit $ac_status); } && { |
| 11657 | test -z "$ac_c_werror_flag" || |
| 11658 | test ! -s conftest.err |
| 11659 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11660 | ac_lo=0 ac_mid=0 |
| 11661 | while :; do |
| 11662 | cat >conftest.$ac_ext <<_ACEOF |
| 11663 | /* confdefs.h. */ |
| 11664 | _ACEOF |
| 11665 | cat confdefs.h >>conftest.$ac_ext |
| 11666 | cat >>conftest.$ac_ext <<_ACEOF |
| 11667 | /* end confdefs.h. */ |
| 11668 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11669 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11670 | int |
| 11671 | main () |
| 11672 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11673 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11674 | test_array [0] = 0 |
| 11675 | |
| 11676 | ; |
| 11677 | return 0; |
| 11678 | } |
| 11679 | _ACEOF |
| 11680 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11681 | if { (ac_try="$ac_compile" |
| 11682 | case "(($ac_try" in |
| 11683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11684 | *) ac_try_echo=$ac_try;; |
| 11685 | esac |
| 11686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11687 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11688 | ac_status=$? |
| 11689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11690 | rm -f conftest.er1 |
| 11691 | cat conftest.err >&5 |
| 11692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11693 | (exit $ac_status); } && { |
| 11694 | test -z "$ac_c_werror_flag" || |
| 11695 | test ! -s conftest.err |
| 11696 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11697 | ac_hi=$ac_mid; break |
| 11698 | else |
| 11699 | echo "$as_me: failed program was:" >&5 |
| 11700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11701 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11702 | ac_lo=`expr $ac_mid + 1` |
| 11703 | if test $ac_lo -le $ac_mid; then |
| 11704 | ac_lo= ac_hi= |
| 11705 | break |
| 11706 | fi |
| 11707 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11708 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11709 | |
| 11710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11711 | done |
| 11712 | else |
| 11713 | echo "$as_me: failed program was:" >&5 |
| 11714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11715 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11716 | cat >conftest.$ac_ext <<_ACEOF |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11717 | /* confdefs.h. */ |
| 11718 | _ACEOF |
| 11719 | cat confdefs.h >>conftest.$ac_ext |
| 11720 | cat >>conftest.$ac_ext <<_ACEOF |
| 11721 | /* end confdefs.h. */ |
| 11722 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11723 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11724 | int |
| 11725 | main () |
| 11726 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11727 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11728 | test_array [0] = 0 |
| 11729 | |
| 11730 | ; |
| 11731 | return 0; |
| 11732 | } |
| 11733 | _ACEOF |
| 11734 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11735 | if { (ac_try="$ac_compile" |
| 11736 | case "(($ac_try" in |
| 11737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11738 | *) ac_try_echo=$ac_try;; |
| 11739 | esac |
| 11740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11741 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11742 | ac_status=$? |
| 11743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11744 | rm -f conftest.er1 |
| 11745 | cat conftest.err >&5 |
| 11746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11747 | (exit $ac_status); } && { |
| 11748 | test -z "$ac_c_werror_flag" || |
| 11749 | test ! -s conftest.err |
| 11750 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11751 | ac_hi=-1 ac_mid=-1 |
| 11752 | while :; do |
| 11753 | cat >conftest.$ac_ext <<_ACEOF |
| 11754 | /* confdefs.h. */ |
| 11755 | _ACEOF |
| 11756 | cat confdefs.h >>conftest.$ac_ext |
| 11757 | cat >>conftest.$ac_ext <<_ACEOF |
| 11758 | /* end confdefs.h. */ |
| 11759 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11760 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11761 | int |
| 11762 | main () |
| 11763 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11764 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11765 | test_array [0] = 0 |
| 11766 | |
| 11767 | ; |
| 11768 | return 0; |
| 11769 | } |
| 11770 | _ACEOF |
| 11771 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11772 | if { (ac_try="$ac_compile" |
| 11773 | case "(($ac_try" in |
| 11774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11775 | *) ac_try_echo=$ac_try;; |
| 11776 | esac |
| 11777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11778 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11779 | ac_status=$? |
| 11780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11781 | rm -f conftest.er1 |
| 11782 | cat conftest.err >&5 |
| 11783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11784 | (exit $ac_status); } && { |
| 11785 | test -z "$ac_c_werror_flag" || |
| 11786 | test ! -s conftest.err |
| 11787 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11788 | ac_lo=$ac_mid; break |
| 11789 | else |
| 11790 | echo "$as_me: failed program was:" >&5 |
| 11791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11792 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11793 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11794 | if test $ac_mid -le $ac_hi; then |
| 11795 | ac_lo= ac_hi= |
| 11796 | break |
| 11797 | fi |
| 11798 | ac_mid=`expr 2 '*' $ac_mid` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11799 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11800 | |
| 11801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11802 | done |
| 11803 | else |
| 11804 | echo "$as_me: failed program was:" >&5 |
| 11805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11806 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11807 | ac_lo= ac_hi= |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11808 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11809 | |
| 11810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11811 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11812 | |
| 11813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11814 | # Binary search between lo and hi bounds. |
| 11815 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11816 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11817 | cat >conftest.$ac_ext <<_ACEOF |
| 11818 | /* confdefs.h. */ |
| 11819 | _ACEOF |
| 11820 | cat confdefs.h >>conftest.$ac_ext |
| 11821 | cat >>conftest.$ac_ext <<_ACEOF |
| 11822 | /* end confdefs.h. */ |
| 11823 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11824 | typedef _Bool ac__type_sizeof_; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11825 | int |
| 11826 | main () |
| 11827 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11828 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11829 | test_array [0] = 0 |
| 11830 | |
| 11831 | ; |
| 11832 | return 0; |
| 11833 | } |
| 11834 | _ACEOF |
| 11835 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11836 | if { (ac_try="$ac_compile" |
| 11837 | case "(($ac_try" in |
| 11838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11839 | *) ac_try_echo=$ac_try;; |
| 11840 | esac |
| 11841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11842 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11843 | ac_status=$? |
| 11844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11845 | rm -f conftest.er1 |
| 11846 | cat conftest.err >&5 |
| 11847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11848 | (exit $ac_status); } && { |
| 11849 | test -z "$ac_c_werror_flag" || |
| 11850 | test ! -s conftest.err |
| 11851 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11852 | ac_hi=$ac_mid |
| 11853 | else |
| 11854 | echo "$as_me: failed program was:" >&5 |
| 11855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11856 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11857 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11858 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11859 | |
| 11860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11861 | done |
| 11862 | case $ac_lo in |
| 11863 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11864 | '') if test "$ac_cv_type__Bool" = yes; then |
| 11865 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11866 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11867 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11868 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11869 | { (exit 77); exit 77; }; } |
| 11870 | else |
| 11871 | ac_cv_sizeof__Bool=0 |
| 11872 | fi ;; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11873 | esac |
| 11874 | else |
| 11875 | cat >conftest.$ac_ext <<_ACEOF |
| 11876 | /* confdefs.h. */ |
| 11877 | _ACEOF |
| 11878 | cat confdefs.h >>conftest.$ac_ext |
| 11879 | cat >>conftest.$ac_ext <<_ACEOF |
| 11880 | /* end confdefs.h. */ |
| 11881 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11882 | typedef _Bool ac__type_sizeof_; |
| 11883 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11884 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11885 | #include <stdio.h> |
| 11886 | #include <stdlib.h> |
| 11887 | int |
| 11888 | main () |
| 11889 | { |
| 11890 | |
| 11891 | FILE *f = fopen ("conftest.val", "w"); |
| 11892 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11893 | return 1; |
| 11894 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11895 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11896 | long int i = longval (); |
| 11897 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11898 | return 1; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11899 | fprintf (f, "%ld\n", i); |
| 11900 | } |
| 11901 | else |
| 11902 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11903 | unsigned long int i = ulongval (); |
| 11904 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11905 | return 1; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11906 | fprintf (f, "%lu\n", i); |
| 11907 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11908 | return ferror (f) || fclose (f) != 0; |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11909 | |
| 11910 | ; |
| 11911 | return 0; |
| 11912 | } |
| 11913 | _ACEOF |
| 11914 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11915 | if { (ac_try="$ac_link" |
| 11916 | case "(($ac_try" in |
| 11917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11918 | *) ac_try_echo=$ac_try;; |
| 11919 | esac |
| 11920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11921 | (eval "$ac_link") 2>&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11922 | ac_status=$? |
| 11923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11924 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11925 | { (case "(($ac_try" in |
| 11926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11927 | *) ac_try_echo=$ac_try;; |
| 11928 | esac |
| 11929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11930 | (eval "$ac_try") 2>&5 |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11931 | ac_status=$? |
| 11932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11933 | (exit $ac_status); }; }; then |
| 11934 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 11935 | else |
| 11936 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11937 | echo "$as_me: failed program was:" >&5 |
| 11938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11939 | |
| 11940 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11941 | if test "$ac_cv_type__Bool" = yes; then |
| 11942 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11943 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11944 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11945 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11946 | { (exit 77); exit 77; }; } |
| 11947 | else |
| 11948 | ac_cv_sizeof__Bool=0 |
| 11949 | fi |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11950 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11951 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11952 | fi |
| 11953 | rm -f conftest.val |
| 11954 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11955 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 11956 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
| 11957 | |
| 11958 | |
| 11959 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 11960 | cat >>confdefs.h <<_ACEOF |
| 11961 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 11962 | _ACEOF |
| 11963 | |
| 11964 | |
| 11965 | fi |
| 11966 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11967 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 11968 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11969 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 11970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11971 | else |
| 11972 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11973 | /* confdefs.h. */ |
| 11974 | _ACEOF |
| 11975 | cat confdefs.h >>conftest.$ac_ext |
| 11976 | cat >>conftest.$ac_ext <<_ACEOF |
| 11977 | /* end confdefs.h. */ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11978 | #ifdef HAVE_STDINT_H |
| 11979 | #include <stdint.h> |
| 11980 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11981 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11982 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11983 | int |
| 11984 | main () |
| 11985 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11986 | if ((ac__type_new_ *) 0) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11987 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11988 | if (sizeof (ac__type_new_)) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11989 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11990 | ; |
| 11991 | return 0; |
| 11992 | } |
| 11993 | _ACEOF |
| 11994 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 11995 | if { (ac_try="$ac_compile" |
| 11996 | case "(($ac_try" in |
| 11997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11998 | *) ac_try_echo=$ac_try;; |
| 11999 | esac |
| 12000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12001 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12002 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12004 | rm -f conftest.er1 |
| 12005 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12007 | (exit $ac_status); } && { |
| 12008 | test -z "$ac_c_werror_flag" || |
| 12009 | test ! -s conftest.err |
| 12010 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12011 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12012 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12013 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12015 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12016 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12017 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12018 | |
| 12019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12020 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12021 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12022 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12023 | if test $ac_cv_type_uintptr_t = yes; then |
| 12024 | |
| 12025 | cat >>confdefs.h <<_ACEOF |
| 12026 | #define HAVE_UINTPTR_T 1 |
| 12027 | _ACEOF |
| 12028 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12029 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12030 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12031 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12033 | else |
| 12034 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12035 | /* confdefs.h. */ |
| 12036 | _ACEOF |
| 12037 | cat confdefs.h >>conftest.$ac_ext |
| 12038 | cat >>conftest.$ac_ext <<_ACEOF |
| 12039 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12040 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12041 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12042 | int |
| 12043 | main () |
| 12044 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12045 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12046 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12047 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12048 | return 0; |
| 12049 | ; |
| 12050 | return 0; |
| 12051 | } |
| 12052 | _ACEOF |
| 12053 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12054 | if { (ac_try="$ac_compile" |
| 12055 | case "(($ac_try" in |
| 12056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12057 | *) ac_try_echo=$ac_try;; |
| 12058 | esac |
| 12059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12060 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12061 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12063 | rm -f conftest.er1 |
| 12064 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12066 | (exit $ac_status); } && { |
| 12067 | test -z "$ac_c_werror_flag" || |
| 12068 | test ! -s conftest.err |
| 12069 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12070 | ac_cv_type_uintptr_t=yes |
| 12071 | else |
| 12072 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12074 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12075 | ac_cv_type_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12076 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12077 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12079 | fi |
| 12080 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12081 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12082 | |
| 12083 | # The cast to long int works around a bug in the HP C Compiler |
| 12084 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12085 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12086 | # This bug is HP SR number 8606223364. |
| 12087 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12088 | 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] | 12089 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 12090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12091 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12092 | if test "$cross_compiling" = yes; then |
| 12093 | # Depending upon the size, compute the lo and hi bounds. |
| 12094 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12095 | /* confdefs.h. */ |
| 12096 | _ACEOF |
| 12097 | cat confdefs.h >>conftest.$ac_ext |
| 12098 | cat >>conftest.$ac_ext <<_ACEOF |
| 12099 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12100 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12101 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12102 | int |
| 12103 | main () |
| 12104 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12105 | 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] | 12106 | test_array [0] = 0 |
| 12107 | |
| 12108 | ; |
| 12109 | return 0; |
| 12110 | } |
| 12111 | _ACEOF |
| 12112 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12113 | if { (ac_try="$ac_compile" |
| 12114 | case "(($ac_try" in |
| 12115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12116 | *) ac_try_echo=$ac_try;; |
| 12117 | esac |
| 12118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12119 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12120 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12122 | rm -f conftest.er1 |
| 12123 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12125 | (exit $ac_status); } && { |
| 12126 | test -z "$ac_c_werror_flag" || |
| 12127 | test ! -s conftest.err |
| 12128 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12129 | ac_lo=0 ac_mid=0 |
| 12130 | while :; do |
| 12131 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12132 | /* confdefs.h. */ |
| 12133 | _ACEOF |
| 12134 | cat confdefs.h >>conftest.$ac_ext |
| 12135 | cat >>conftest.$ac_ext <<_ACEOF |
| 12136 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12137 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12138 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12139 | int |
| 12140 | main () |
| 12141 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12142 | 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] | 12143 | test_array [0] = 0 |
| 12144 | |
| 12145 | ; |
| 12146 | return 0; |
| 12147 | } |
| 12148 | _ACEOF |
| 12149 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12150 | if { (ac_try="$ac_compile" |
| 12151 | case "(($ac_try" in |
| 12152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12153 | *) ac_try_echo=$ac_try;; |
| 12154 | esac |
| 12155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12156 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12157 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12159 | rm -f conftest.er1 |
| 12160 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12162 | (exit $ac_status); } && { |
| 12163 | test -z "$ac_c_werror_flag" || |
| 12164 | test ! -s conftest.err |
| 12165 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12166 | ac_hi=$ac_mid; break |
| 12167 | else |
| 12168 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12170 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12171 | ac_lo=`expr $ac_mid + 1` |
| 12172 | if test $ac_lo -le $ac_mid; then |
| 12173 | ac_lo= ac_hi= |
| 12174 | break |
| 12175 | fi |
| 12176 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12177 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12178 | |
| 12179 | 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] | 12180 | done |
| 12181 | else |
| 12182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12184 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12185 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12186 | /* confdefs.h. */ |
| 12187 | _ACEOF |
| 12188 | cat confdefs.h >>conftest.$ac_ext |
| 12189 | cat >>conftest.$ac_ext <<_ACEOF |
| 12190 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12191 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12192 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12193 | int |
| 12194 | main () |
| 12195 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12196 | 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] | 12197 | test_array [0] = 0 |
| 12198 | |
| 12199 | ; |
| 12200 | return 0; |
| 12201 | } |
| 12202 | _ACEOF |
| 12203 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12204 | if { (ac_try="$ac_compile" |
| 12205 | case "(($ac_try" in |
| 12206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12207 | *) ac_try_echo=$ac_try;; |
| 12208 | esac |
| 12209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12210 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12211 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12213 | rm -f conftest.er1 |
| 12214 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12216 | (exit $ac_status); } && { |
| 12217 | test -z "$ac_c_werror_flag" || |
| 12218 | test ! -s conftest.err |
| 12219 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12220 | ac_hi=-1 ac_mid=-1 |
| 12221 | while :; do |
| 12222 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12223 | /* confdefs.h. */ |
| 12224 | _ACEOF |
| 12225 | cat confdefs.h >>conftest.$ac_ext |
| 12226 | cat >>conftest.$ac_ext <<_ACEOF |
| 12227 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12228 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12229 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12230 | int |
| 12231 | main () |
| 12232 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12233 | 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] | 12234 | test_array [0] = 0 |
| 12235 | |
| 12236 | ; |
| 12237 | return 0; |
| 12238 | } |
| 12239 | _ACEOF |
| 12240 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12241 | if { (ac_try="$ac_compile" |
| 12242 | case "(($ac_try" in |
| 12243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12244 | *) ac_try_echo=$ac_try;; |
| 12245 | esac |
| 12246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12247 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12248 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12250 | rm -f conftest.er1 |
| 12251 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12253 | (exit $ac_status); } && { |
| 12254 | test -z "$ac_c_werror_flag" || |
| 12255 | test ! -s conftest.err |
| 12256 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12257 | ac_lo=$ac_mid; break |
| 12258 | else |
| 12259 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12261 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12262 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12263 | if test $ac_mid -le $ac_hi; then |
| 12264 | ac_lo= ac_hi= |
| 12265 | break |
| 12266 | fi |
| 12267 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12268 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12269 | |
| 12270 | 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] | 12271 | done |
| 12272 | else |
| 12273 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12275 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12276 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12277 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12278 | |
| 12279 | 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] | 12280 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12281 | |
| 12282 | 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] | 12283 | # Binary search between lo and hi bounds. |
| 12284 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12285 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12286 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12287 | /* confdefs.h. */ |
| 12288 | _ACEOF |
| 12289 | cat confdefs.h >>conftest.$ac_ext |
| 12290 | cat >>conftest.$ac_ext <<_ACEOF |
| 12291 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12292 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12293 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12294 | int |
| 12295 | main () |
| 12296 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12297 | 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] | 12298 | test_array [0] = 0 |
| 12299 | |
| 12300 | ; |
| 12301 | return 0; |
| 12302 | } |
| 12303 | _ACEOF |
| 12304 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12305 | if { (ac_try="$ac_compile" |
| 12306 | case "(($ac_try" in |
| 12307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12308 | *) ac_try_echo=$ac_try;; |
| 12309 | esac |
| 12310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12311 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12312 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12314 | rm -f conftest.er1 |
| 12315 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12317 | (exit $ac_status); } && { |
| 12318 | test -z "$ac_c_werror_flag" || |
| 12319 | test ! -s conftest.err |
| 12320 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12321 | ac_hi=$ac_mid |
| 12322 | else |
| 12323 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12325 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12326 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12327 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12328 | |
| 12329 | 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] | 12330 | done |
| 12331 | case $ac_lo in |
| 12332 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12333 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
| 12334 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12335 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12336 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12337 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12338 | { (exit 77); exit 77; }; } |
| 12339 | else |
| 12340 | ac_cv_sizeof_uintptr_t=0 |
| 12341 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12342 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12343 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12344 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12345 | /* confdefs.h. */ |
| 12346 | _ACEOF |
| 12347 | cat confdefs.h >>conftest.$ac_ext |
| 12348 | cat >>conftest.$ac_ext <<_ACEOF |
| 12349 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12350 | $ac_includes_default |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12351 | typedef uintptr_t ac__type_sizeof_; |
| 12352 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12353 | 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] | 12354 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12355 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12356 | int |
| 12357 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12358 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12359 | |
| 12360 | FILE *f = fopen ("conftest.val", "w"); |
| 12361 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12362 | return 1; |
| 12363 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12364 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12365 | long int i = longval (); |
| 12366 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12367 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12368 | fprintf (f, "%ld\n", i); |
| 12369 | } |
| 12370 | else |
| 12371 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12372 | unsigned long int i = ulongval (); |
| 12373 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12374 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12375 | fprintf (f, "%lu\n", i); |
| 12376 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12377 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12378 | |
| 12379 | ; |
| 12380 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12381 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12382 | _ACEOF |
| 12383 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12384 | if { (ac_try="$ac_link" |
| 12385 | case "(($ac_try" in |
| 12386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12387 | *) ac_try_echo=$ac_try;; |
| 12388 | esac |
| 12389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12390 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12391 | ac_status=$? |
| 12392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12393 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12394 | { (case "(($ac_try" in |
| 12395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12396 | *) ac_try_echo=$ac_try;; |
| 12397 | esac |
| 12398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12399 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12400 | ac_status=$? |
| 12401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12402 | (exit $ac_status); }; }; then |
| 12403 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12405 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12406 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12409 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12410 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 12411 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12412 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12413 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12414 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12415 | { (exit 77); exit 77; }; } |
| 12416 | else |
| 12417 | ac_cv_sizeof_uintptr_t=0 |
| 12418 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12419 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12420 | 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] | 12421 | fi |
| 12422 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12423 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12424 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 12425 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
| 12426 | |
| 12427 | |
| 12428 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12429 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12430 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12431 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12432 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12433 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12434 | fi |
| 12435 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12436 | |
| 12437 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12438 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12439 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 12440 | 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] | 12441 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 12442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12443 | else |
| 12444 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12445 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12446 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12447 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12448 | /* confdefs.h. */ |
| 12449 | _ACEOF |
| 12450 | cat confdefs.h >>conftest.$ac_ext |
| 12451 | cat >>conftest.$ac_ext <<_ACEOF |
| 12452 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12453 | #include <stdio.h> |
| 12454 | #include <sys/types.h> |
| 12455 | main() |
| 12456 | { |
| 12457 | FILE *f=fopen("conftestval", "w"); |
| 12458 | if (!f) exit(1); |
| 12459 | fprintf(f, "%d\n", sizeof(off_t)); |
| 12460 | exit(0); |
| 12461 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12462 | _ACEOF |
| 12463 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12464 | if { (ac_try="$ac_link" |
| 12465 | case "(($ac_try" in |
| 12466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12467 | *) ac_try_echo=$ac_try;; |
| 12468 | esac |
| 12469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12470 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12471 | ac_status=$? |
| 12472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12473 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12474 | { (case "(($ac_try" in |
| 12475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12476 | *) ac_try_echo=$ac_try;; |
| 12477 | esac |
| 12478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12479 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12480 | ac_status=$? |
| 12481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12482 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12483 | ac_cv_sizeof_off_t=`cat conftestval` |
| 12484 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12485 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12486 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12489 | ( exit $ac_status ) |
| 12490 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12491 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12492 | 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] | 12493 | fi |
| 12494 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12495 | |
| 12496 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12497 | fi |
| 12498 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12499 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 12500 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12501 | |
| 12502 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12503 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12504 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12505 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12506 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12507 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 12508 | 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] | 12509 | if test "$have_long_long" = yes -a \ |
| 12510 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 12511 | "$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] | 12512 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12513 | cat >>confdefs.h <<\_ACEOF |
| 12514 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 12515 | _ACEOF |
| 12516 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12517 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12518 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12519 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12520 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12521 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12522 | fi |
| 12523 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12524 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12525 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 12526 | 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] | 12527 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 12528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12529 | else |
| 12530 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12531 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12532 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12533 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12534 | /* confdefs.h. */ |
| 12535 | _ACEOF |
| 12536 | cat confdefs.h >>conftest.$ac_ext |
| 12537 | cat >>conftest.$ac_ext <<_ACEOF |
| 12538 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12539 | #include <stdio.h> |
| 12540 | #include <time.h> |
| 12541 | main() |
| 12542 | { |
| 12543 | FILE *f=fopen("conftestval", "w"); |
| 12544 | if (!f) exit(1); |
| 12545 | fprintf(f, "%d\n", sizeof(time_t)); |
| 12546 | exit(0); |
| 12547 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12548 | _ACEOF |
| 12549 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12550 | if { (ac_try="$ac_link" |
| 12551 | case "(($ac_try" in |
| 12552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12553 | *) ac_try_echo=$ac_try;; |
| 12554 | esac |
| 12555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12556 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12557 | ac_status=$? |
| 12558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12559 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12560 | { (case "(($ac_try" in |
| 12561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12562 | *) ac_try_echo=$ac_try;; |
| 12563 | esac |
| 12564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12565 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12566 | ac_status=$? |
| 12567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12568 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12569 | ac_cv_sizeof_time_t=`cat conftestval` |
| 12570 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12571 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12572 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12575 | ( exit $ac_status ) |
| 12576 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12577 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12578 | 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] | 12579 | fi |
| 12580 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12581 | |
| 12582 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12583 | fi |
| 12584 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12585 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 12586 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12587 | |
| 12588 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12589 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12590 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 12591 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12592 | |
| 12593 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12594 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 12595 | ac_save_cc="$CC" |
| 12596 | if test "$ac_cv_kpthread" = "yes" |
| 12597 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 12598 | elif test "$ac_cv_kthread" = "yes" |
| 12599 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12600 | elif test "$ac_cv_pthread" = "yes" |
| 12601 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 12602 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12603 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 12604 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12605 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12606 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12607 | /* confdefs.h. */ |
| 12608 | _ACEOF |
| 12609 | cat confdefs.h >>conftest.$ac_ext |
| 12610 | cat >>conftest.$ac_ext <<_ACEOF |
| 12611 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12612 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12613 | int |
| 12614 | main () |
| 12615 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 12616 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12617 | ; |
| 12618 | return 0; |
| 12619 | } |
| 12620 | _ACEOF |
| 12621 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12622 | if { (ac_try="$ac_compile" |
| 12623 | case "(($ac_try" in |
| 12624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12625 | *) ac_try_echo=$ac_try;; |
| 12626 | esac |
| 12627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12628 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12629 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12631 | rm -f conftest.er1 |
| 12632 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12634 | (exit $ac_status); } && { |
| 12635 | test -z "$ac_c_werror_flag" || |
| 12636 | test ! -s conftest.err |
| 12637 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12638 | have_pthread_t=yes |
| 12639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12640 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12642 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12643 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12644 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12645 | |
| 12646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12647 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 12648 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12649 | if test "$have_pthread_t" = yes ; then |
| 12650 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12651 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 12652 | 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] | 12653 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 12654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12655 | else |
| 12656 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 12657 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12658 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12659 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12660 | /* confdefs.h. */ |
| 12661 | _ACEOF |
| 12662 | cat confdefs.h >>conftest.$ac_ext |
| 12663 | cat >>conftest.$ac_ext <<_ACEOF |
| 12664 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12665 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12666 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12667 | main() |
| 12668 | { |
| 12669 | FILE *f=fopen("conftestval", "w"); |
| 12670 | if (!f) exit(1); |
| 12671 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 12672 | exit(0); |
| 12673 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12674 | _ACEOF |
| 12675 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12676 | if { (ac_try="$ac_link" |
| 12677 | case "(($ac_try" in |
| 12678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12679 | *) ac_try_echo=$ac_try;; |
| 12680 | esac |
| 12681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12682 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12683 | ac_status=$? |
| 12684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12685 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12686 | { (case "(($ac_try" in |
| 12687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12688 | *) ac_try_echo=$ac_try;; |
| 12689 | esac |
| 12690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12691 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12692 | ac_status=$? |
| 12693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12694 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12695 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 12696 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12697 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12698 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12701 | ( exit $ac_status ) |
| 12702 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12703 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12704 | 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] | 12705 | fi |
| 12706 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12707 | |
| 12708 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12709 | fi |
| 12710 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12711 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 12712 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12713 | |
| 12714 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12715 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12716 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12717 | |
| 12718 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 12719 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12720 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12721 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 12722 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; } |
| 12723 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12724 | if test "${enable_toolbox_glue+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12725 | enableval=$enable_toolbox_glue; |
| 12726 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12727 | |
| 12728 | |
| 12729 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12730 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12731 | case $ac_sys_system/$ac_sys_release in |
| 12732 | Darwin/*) |
| 12733 | enable_toolbox_glue="yes";; |
| 12734 | *) |
| 12735 | enable_toolbox_glue="no";; |
| 12736 | esac |
| 12737 | fi |
| 12738 | case "$enable_toolbox_glue" in |
| 12739 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12740 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 12741 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12742 | |
| 12743 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12744 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12745 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12746 | |
| 12747 | ;; |
| 12748 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12749 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 12750 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12751 | ;; |
| 12752 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12753 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 12754 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12755 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12756 | |
| 12757 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12758 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 12759 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 12760 | ;; |
| 12761 | Darwin/*) |
| 12762 | OTHER_LIBTOOL_OPT="" |
| 12763 | ;; |
| 12764 | esac |
| 12765 | |
| 12766 | |
| 12767 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12768 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12769 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 12770 | if test "${enable_universalsdk}"; then |
| 12771 | : |
| 12772 | else |
| 12773 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| 12774 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 12775 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 12776 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 12777 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 12778 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 12779 | if test ${gcc_version} '<' 4.0 |
| 12780 | then |
| 12781 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 12782 | else |
| 12783 | LIBTOOL_CRUFT="" |
| 12784 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 12785 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 12786 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12787 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12788 | esac |
| 12789 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12790 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 12791 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12792 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12793 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12794 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12795 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12796 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12798 | cat >>confdefs.h <<\_ACEOF |
| 12799 | #define WITH_NEXT_FRAMEWORK 1 |
| 12800 | _ACEOF |
| 12801 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12802 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12803 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12804 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12805 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12806 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12807 | fi |
| 12808 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12809 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 12810 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12811 | case $ac_sys_system/$ac_sys_release in |
| 12812 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12814 | cat >>confdefs.h <<\_ACEOF |
| 12815 | #define WITH_DYLD 1 |
| 12816 | _ACEOF |
| 12817 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12818 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 12819 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12820 | ;; |
| 12821 | *) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12822 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12823 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12824 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12825 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12826 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12827 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12828 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12829 | |
| 12830 | |
| 12831 | |
| 12832 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12833 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 12834 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12835 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 12836 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12837 | if test -z "$SO" |
| 12838 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12839 | case $ac_sys_system in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12840 | hp*|HP*) |
| 12841 | case `uname -m` in |
| 12842 | ia64) SO=.so;; |
| 12843 | *) SO=.sl;; |
| 12844 | esac |
| 12845 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 12846 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 12847 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12848 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 12849 | else |
| 12850 | # this might also be a termcap variable, see #610332 |
| 12851 | echo |
| 12852 | echo '=====================================================================' |
| 12853 | echo '+ +' |
| 12854 | echo '+ WARNING: You have set SO in your environment. +' |
| 12855 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 12856 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 12857 | echo '+ +' |
| 12858 | echo '=====================================================================' |
| 12859 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12860 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12861 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 12862 | echo "${ECHO_T}$SO" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12863 | |
| 12864 | cat >>confdefs.h <<_ACEOF |
| 12865 | #define SHLIB_EXT "$SO" |
| 12866 | _ACEOF |
| 12867 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12868 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 12869 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12870 | # (Shared libraries in this instance are shared modules to be loaded into |
| 12871 | # Python, as opposed to building Python itself as a shared library.) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12872 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 12873 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12874 | if test -z "$LDSHARED" |
| 12875 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12876 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 12877 | AIX*) |
| 12878 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 12879 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 12880 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 12881 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 12882 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12883 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 12884 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 12885 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 12886 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 12887 | fi ;; |
Thomas Heller | f44b9a1 | 2008-04-04 10:18:23 +0000 | [diff] [blame] | 12888 | hp*|HP*) |
| 12889 | if test "$GCC" = "yes" |
| 12890 | then LDSHARED='$(CC) -shared' |
| 12891 | else LDSHARED='ld -b'; |
| 12892 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12893 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 12894 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 12895 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 12896 | if test "$enable_framework" ; then |
| 12897 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12898 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 12899 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 12900 | else |
| 12901 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 12902 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 12903 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12904 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12905 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 12906 | if test "$enable_framework" ; then |
| 12907 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12908 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 12909 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12910 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 12911 | # No framework, use the Python app as bundle-loader |
| 12912 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 12913 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12914 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12915 | Darwin/*) |
| 12916 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 12917 | # This allows an extension to be used in any Python |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 12918 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12919 | if test ${cur_target} '>' 10.2; then |
| 12920 | cur_target=10.3 |
| 12921 | fi |
Jack Jansen | c110f86 | 2005-01-07 10:49:32 +0000 | [diff] [blame] | 12922 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 12923 | |
| 12924 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 12925 | # environment with a value that is the same as what we'll use |
| 12926 | # in the Makefile to ensure that we'll get the same compiler |
| 12927 | # environment during configure and build time. |
| 12928 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 12929 | export MACOSX_DEPLOYMENT_TARGET |
| 12930 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12931 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 12932 | if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12933 | then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12934 | if test "${enable_universalsdk}"; then |
| 12935 | LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 12936 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12937 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 12938 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12939 | else |
| 12940 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 12941 | if test "$enable_framework" ; then |
| 12942 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12943 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 12944 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12945 | else |
| 12946 | # No framework, use the Python app as bundle-loader |
| 12947 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 12948 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 12949 | fi |
| 12950 | fi |
| 12951 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 12952 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 12953 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 12954 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 12955 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 12956 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 12957 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 12958 | else |
| 12959 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 12960 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 12961 | OpenBSD*) |
| 12962 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 12963 | then |
| 12964 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 12965 | else |
| 12966 | case `uname -r` in |
| 12967 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 12968 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 12969 | ;; |
| 12970 | *) |
| 12971 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 12972 | ;; |
| 12973 | esac |
| 12974 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12975 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 12976 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 12977 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 12978 | then LDSHARED='$(CC) -shared' |
| 12979 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 12980 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 12981 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12982 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 12983 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12984 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12985 | *) LDSHARED="ld";; |
| 12986 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12987 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12988 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 12989 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 12990 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12991 | # 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] | 12992 | # library (module) -- this is only needed for a few systems |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 12993 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 12994 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12995 | if test -z "$CCSHARED" |
| 12996 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 12997 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 12998 | SunOS*) if test "$GCC" = yes; |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 12999 | then CCSHARED="-fPIC"; |
| 13000 | elif test `uname -p` = sparc; |
| 13001 | then CCSHARED="-xcode=pic32"; |
| 13002 | else CCSHARED="-Kpic"; |
| 13003 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 13004 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 13005 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 13006 | else CCSHARED="+z"; |
| 13007 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13008 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 13009 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13010 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13011 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13012 | if test "$GCC" = "yes" |
| 13013 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13014 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 13015 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 13016 | SCO_SV*) |
| 13017 | if test "$GCC" = "yes" |
| 13018 | then CCSHARED="-fPIC" |
| 13019 | else CCSHARED="-Kpic -belf" |
| 13020 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13021 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13022 | IRIX*/6*) case $CC in |
| 13023 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 13024 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13025 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13026 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13027 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13028 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13029 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 13030 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13031 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13032 | # the python executable -- this is only needed for a few systems |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13033 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 13034 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13035 | if test -z "$LINKFORSHARED" |
| 13036 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 13037 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 13038 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 13039 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13040 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 13041 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 13042 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13043 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 13044 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13045 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13046 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 13047 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13048 | # not used by the core itself but which needs to be in the core so |
| 13049 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 13050 | # -prebind is no longer used, because it actually seems to give a |
| 13051 | # slowdown in stead of a speedup, maybe due to the large number of |
| 13052 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13053 | |
| 13054 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13055 | if test "$enable_framework" |
| 13056 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 13057 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13058 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 13059 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 13060 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 13061 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 13062 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 13063 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 13064 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 13065 | then |
| 13066 | LINKFORSHARED="-Wl,--export-dynamic" |
| 13067 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13068 | SunOS/5*) case $CC in |
| 13069 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 13070 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 13071 | then |
| 13072 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 13073 | fi;; |
| 13074 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 13075 | CYGWIN*) |
| 13076 | if test $enable_shared = "no" |
| 13077 | then |
| 13078 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 13079 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13080 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13081 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13082 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 13083 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 13084 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13085 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13086 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 13087 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13088 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 13089 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 13090 | case $ac_sys_system in |
| 13091 | CYGWIN*) |
| 13092 | # Cygwin needs CCSHARED when building extension DLLs |
| 13093 | # but not when building the interpreter DLL. |
| 13094 | CFLAGSFORSHARED='';; |
| 13095 | *) |
| 13096 | CFLAGSFORSHARED='$(CCSHARED)' |
| 13097 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13098 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13099 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 13100 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 13101 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13102 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 13103 | # library (with --enable-shared). |
| 13104 | # 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] | 13105 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 13106 | # if it is not required, since it creates a dependency of the shared library |
| 13107 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 13108 | # don't need to link LIBS explicitly. The default should be only changed |
| 13109 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13110 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13111 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 13112 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13113 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13114 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 13115 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13116 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13117 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 13118 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13119 | |
| 13120 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13121 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13122 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13123 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13124 | 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] | 13125 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 13126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13128 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13129 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13130 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13131 | /* confdefs.h. */ |
| 13132 | _ACEOF |
| 13133 | cat confdefs.h >>conftest.$ac_ext |
| 13134 | cat >>conftest.$ac_ext <<_ACEOF |
| 13135 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13136 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13137 | /* Override any GCC internal prototype to avoid an error. |
| 13138 | Use char because int might match the return type of a GCC |
| 13139 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13140 | #ifdef __cplusplus |
| 13141 | extern "C" |
| 13142 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13143 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13144 | int |
| 13145 | main () |
| 13146 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13147 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13148 | ; |
| 13149 | return 0; |
| 13150 | } |
| 13151 | _ACEOF |
| 13152 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13153 | if { (ac_try="$ac_link" |
| 13154 | case "(($ac_try" in |
| 13155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13156 | *) ac_try_echo=$ac_try;; |
| 13157 | esac |
| 13158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13159 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13160 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13162 | rm -f conftest.er1 |
| 13163 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13165 | (exit $ac_status); } && { |
| 13166 | test -z "$ac_c_werror_flag" || |
| 13167 | test ! -s conftest.err |
| 13168 | } && test -s conftest$ac_exeext && |
| 13169 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13170 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13171 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13172 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13174 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13175 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13176 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13177 | |
| 13178 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13179 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13180 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13181 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13182 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13183 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13184 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 13185 | cat >>confdefs.h <<_ACEOF |
| 13186 | #define HAVE_LIBDL 1 |
| 13187 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13188 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13189 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13190 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13191 | fi |
| 13192 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13193 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13194 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 13195 | 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] | 13196 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 13197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13198 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13199 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13200 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13201 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13202 | /* confdefs.h. */ |
| 13203 | _ACEOF |
| 13204 | cat confdefs.h >>conftest.$ac_ext |
| 13205 | cat >>conftest.$ac_ext <<_ACEOF |
| 13206 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13207 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13208 | /* Override any GCC internal prototype to avoid an error. |
| 13209 | Use char because int might match the return type of a GCC |
| 13210 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13211 | #ifdef __cplusplus |
| 13212 | extern "C" |
| 13213 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13214 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13215 | int |
| 13216 | main () |
| 13217 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13218 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13219 | ; |
| 13220 | return 0; |
| 13221 | } |
| 13222 | _ACEOF |
| 13223 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13224 | if { (ac_try="$ac_link" |
| 13225 | case "(($ac_try" in |
| 13226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13227 | *) ac_try_echo=$ac_try;; |
| 13228 | esac |
| 13229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13230 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13231 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13233 | rm -f conftest.er1 |
| 13234 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13236 | (exit $ac_status); } && { |
| 13237 | test -z "$ac_c_werror_flag" || |
| 13238 | test ! -s conftest.err |
| 13239 | } && test -s conftest$ac_exeext && |
| 13240 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13241 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13242 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13243 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13245 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13246 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13247 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13248 | |
| 13249 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13250 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13251 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13252 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13253 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 13254 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13255 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 13256 | cat >>confdefs.h <<_ACEOF |
| 13257 | #define HAVE_LIBDLD 1 |
| 13258 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13259 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13260 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13261 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13262 | fi |
| 13263 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13264 | |
| 13265 | # only check for sem_ini if thread support is requested |
| 13266 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13267 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 13268 | 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] | 13269 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13271 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 13272 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13273 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13274 | /* confdefs.h. */ |
| 13275 | _ACEOF |
| 13276 | cat confdefs.h >>conftest.$ac_ext |
| 13277 | cat >>conftest.$ac_ext <<_ACEOF |
| 13278 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13279 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13280 | /* Override any GCC internal prototype to avoid an error. |
| 13281 | Use char because int might match the return type of a GCC |
| 13282 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13283 | #ifdef __cplusplus |
| 13284 | extern "C" |
| 13285 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13286 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13287 | int |
| 13288 | main () |
| 13289 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13290 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13291 | ; |
| 13292 | return 0; |
| 13293 | } |
| 13294 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13295 | for ac_lib in '' pthread rt posix4; do |
| 13296 | if test -z "$ac_lib"; then |
| 13297 | ac_res="none required" |
| 13298 | else |
| 13299 | ac_res=-l$ac_lib |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13300 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13301 | fi |
| 13302 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13303 | if { (ac_try="$ac_link" |
| 13304 | case "(($ac_try" in |
| 13305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13306 | *) ac_try_echo=$ac_try;; |
| 13307 | esac |
| 13308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13309 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13310 | ac_status=$? |
| 13311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13312 | rm -f conftest.er1 |
| 13313 | cat conftest.err >&5 |
| 13314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13315 | (exit $ac_status); } && { |
| 13316 | test -z "$ac_c_werror_flag" || |
| 13317 | test ! -s conftest.err |
| 13318 | } && test -s conftest$ac_exeext && |
| 13319 | $as_test_x conftest$ac_exeext; then |
| 13320 | ac_cv_search_sem_init=$ac_res |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13321 | else |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13322 | echo "$as_me: failed program was:" >&5 |
| 13323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13324 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13325 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13326 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13327 | |
| 13328 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13329 | conftest$ac_exeext |
| 13330 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 13331 | break |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 13332 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13333 | done |
| 13334 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 13335 | : |
| 13336 | else |
| 13337 | ac_cv_search_sem_init=no |
| 13338 | fi |
| 13339 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 13340 | LIBS=$ac_func_search_save_LIBS |
| 13341 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13342 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 13343 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
| 13344 | ac_res=$ac_cv_search_sem_init |
| 13345 | if test "$ac_res" != no; then |
| 13346 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13347 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 13348 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 13349 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13350 | # posix4 on Solaris 2.6 |
| 13351 | # pthread (first!) on Linux |
| 13352 | fi |
| 13353 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13354 | # check if we need libintl for locale functions |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13355 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 13356 | 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] | 13357 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 13358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13359 | else |
| 13360 | ac_check_lib_save_LIBS=$LIBS |
| 13361 | LIBS="-lintl $LIBS" |
| 13362 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13363 | /* confdefs.h. */ |
| 13364 | _ACEOF |
| 13365 | cat confdefs.h >>conftest.$ac_ext |
| 13366 | cat >>conftest.$ac_ext <<_ACEOF |
| 13367 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13368 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13369 | /* Override any GCC internal prototype to avoid an error. |
| 13370 | Use char because int might match the return type of a GCC |
| 13371 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13372 | #ifdef __cplusplus |
| 13373 | extern "C" |
| 13374 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13375 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13376 | int |
| 13377 | main () |
| 13378 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13379 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13380 | ; |
| 13381 | return 0; |
| 13382 | } |
| 13383 | _ACEOF |
| 13384 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13385 | if { (ac_try="$ac_link" |
| 13386 | case "(($ac_try" in |
| 13387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13388 | *) ac_try_echo=$ac_try;; |
| 13389 | esac |
| 13390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13391 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13392 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13394 | rm -f conftest.er1 |
| 13395 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13397 | (exit $ac_status); } && { |
| 13398 | test -z "$ac_c_werror_flag" || |
| 13399 | test ! -s conftest.err |
| 13400 | } && test -s conftest$ac_exeext && |
| 13401 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13402 | ac_cv_lib_intl_textdomain=yes |
| 13403 | else |
| 13404 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13406 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13407 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13408 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13409 | |
| 13410 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13411 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13412 | LIBS=$ac_check_lib_save_LIBS |
| 13413 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13414 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 13415 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 13416 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 13417 | |
| 13418 | cat >>confdefs.h <<\_ACEOF |
| 13419 | #define WITH_LIBINTL 1 |
| 13420 | _ACEOF |
| 13421 | |
| 13422 | fi |
| 13423 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13424 | |
| 13425 | # checks for system dependent C++ extensions support |
| 13426 | case "$ac_sys_system" in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13427 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 13428 | 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] | 13429 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13430 | /* confdefs.h. */ |
| 13431 | _ACEOF |
| 13432 | cat confdefs.h >>conftest.$ac_ext |
| 13433 | cat >>conftest.$ac_ext <<_ACEOF |
| 13434 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13435 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13436 | int |
| 13437 | main () |
| 13438 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13439 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13440 | ; |
| 13441 | return 0; |
| 13442 | } |
| 13443 | _ACEOF |
| 13444 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13445 | if { (ac_try="$ac_link" |
| 13446 | case "(($ac_try" in |
| 13447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13448 | *) ac_try_echo=$ac_try;; |
| 13449 | esac |
| 13450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13451 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13452 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13454 | rm -f conftest.er1 |
| 13455 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13457 | (exit $ac_status); } && { |
| 13458 | test -z "$ac_c_werror_flag" || |
| 13459 | test ! -s conftest.err |
| 13460 | } && test -s conftest$ac_exeext && |
| 13461 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13462 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13463 | cat >>confdefs.h <<\_ACEOF |
| 13464 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 13465 | _ACEOF |
| 13466 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13467 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13468 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13470 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13472 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13473 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13474 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13475 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13476 | |
| 13477 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13478 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 13479 | *) ;; |
| 13480 | esac |
| 13481 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 13482 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13483 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 13484 | 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] | 13485 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 13486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13487 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13488 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13489 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13490 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13491 | /* confdefs.h. */ |
| 13492 | _ACEOF |
| 13493 | cat confdefs.h >>conftest.$ac_ext |
| 13494 | cat >>conftest.$ac_ext <<_ACEOF |
| 13495 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13496 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13497 | /* Override any GCC internal prototype to avoid an error. |
| 13498 | Use char because int might match the return type of a GCC |
| 13499 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13500 | #ifdef __cplusplus |
| 13501 | extern "C" |
| 13502 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13503 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13504 | int |
| 13505 | main () |
| 13506 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13507 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13508 | ; |
| 13509 | return 0; |
| 13510 | } |
| 13511 | _ACEOF |
| 13512 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13513 | if { (ac_try="$ac_link" |
| 13514 | case "(($ac_try" in |
| 13515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13516 | *) ac_try_echo=$ac_try;; |
| 13517 | esac |
| 13518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13519 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13520 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13522 | rm -f conftest.er1 |
| 13523 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13525 | (exit $ac_status); } && { |
| 13526 | test -z "$ac_c_werror_flag" || |
| 13527 | test ! -s conftest.err |
| 13528 | } && test -s conftest$ac_exeext && |
| 13529 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13530 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13532 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13534 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13535 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13536 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13537 | |
| 13538 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13539 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13540 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13541 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13542 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 13543 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13544 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13545 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 13546 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 13547 | # SVR4 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13548 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 13549 | 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] | 13550 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 13551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13552 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13553 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13554 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13555 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13556 | /* confdefs.h. */ |
| 13557 | _ACEOF |
| 13558 | cat confdefs.h >>conftest.$ac_ext |
| 13559 | cat >>conftest.$ac_ext <<_ACEOF |
| 13560 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13561 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13562 | /* Override any GCC internal prototype to avoid an error. |
| 13563 | Use char because int might match the return type of a GCC |
| 13564 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13565 | #ifdef __cplusplus |
| 13566 | extern "C" |
| 13567 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13568 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13569 | int |
| 13570 | main () |
| 13571 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13572 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13573 | ; |
| 13574 | return 0; |
| 13575 | } |
| 13576 | _ACEOF |
| 13577 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13578 | if { (ac_try="$ac_link" |
| 13579 | case "(($ac_try" in |
| 13580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13581 | *) ac_try_echo=$ac_try;; |
| 13582 | esac |
| 13583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13584 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13585 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13587 | rm -f conftest.er1 |
| 13588 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13590 | (exit $ac_status); } && { |
| 13591 | test -z "$ac_c_werror_flag" || |
| 13592 | test ! -s conftest.err |
| 13593 | } && test -s conftest$ac_exeext && |
| 13594 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13595 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13596 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13597 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13599 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13600 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13601 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13602 | |
| 13603 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13604 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13605 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13606 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13607 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 13608 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13609 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13610 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13611 | fi |
| 13612 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 13613 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13614 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 13615 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13616 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13617 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 13618 | if test "${with_libs+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13619 | withval=$with_libs; |
| 13620 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 13621 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 13622 | LIBS="$withval $LIBS" |
| 13623 | |
| 13624 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13625 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13626 | echo "${ECHO_T}no" >&6; } |
| 13627 | fi |
| 13628 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13629 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13630 | # Check for use of the system libffi library |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13631 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 13632 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13633 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13634 | # Check whether --with-system_ffi was given. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13635 | if test "${with_system_ffi+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13636 | withval=$with_system_ffi; |
| 13637 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13638 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13639 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13640 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 13641 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 13642 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 13643 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13644 | |
| 13645 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13646 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 13647 | 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] | 13648 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13649 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13650 | if test "${with_signal_module+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13651 | withval=$with_signal_module; |
| 13652 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13653 | |
| 13654 | |
| 13655 | if test -z "$with_signal_module" |
| 13656 | then with_signal_module="yes" |
| 13657 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13658 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 13659 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 13660 | |
| 13661 | if test "${with_signal_module}" = "yes"; then |
| 13662 | USE_SIGNAL_MODULE="" |
| 13663 | SIGNAL_OBJS="" |
| 13664 | else |
| 13665 | USE_SIGNAL_MODULE="#" |
| 13666 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 13667 | fi |
| 13668 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 13669 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 13670 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 13671 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 13672 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13673 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 13674 | 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] | 13675 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13676 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13677 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13678 | if test "${with_dec_threads+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13679 | withval=$with_dec_threads; |
| 13680 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 13681 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13682 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13683 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13684 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13685 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13686 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13687 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13688 | echo "${ECHO_T}no" >&6; } |
| 13689 | fi |
| 13690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13691 | |
| 13692 | # Templates for things AC_DEFINEd more than once. |
| 13693 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13694 | |
| 13695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13696 | |
| 13697 | |
| 13698 | |
| 13699 | |
| 13700 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13701 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 13702 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13703 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13704 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13705 | if test "${with_threads+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13706 | withval=$with_threads; |
| 13707 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 13708 | |
| 13709 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 13710 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13711 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13712 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13713 | if test "${with_thread+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13714 | withval=$with_thread; with_threads=$with_thread |
| 13715 | fi |
| 13716 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 13717 | |
| 13718 | if test -z "$with_threads" |
| 13719 | then with_threads="yes" |
| 13720 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13721 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 13722 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 13723 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13724 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 13725 | if test "$with_threads" = "no" |
| 13726 | then |
| 13727 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13728 | elif test "$ac_cv_pthread_is_default" = yes |
| 13729 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13730 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13731 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13732 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13733 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13734 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13735 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13736 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13737 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13738 | |
| 13739 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13740 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13741 | elif test "$ac_cv_kpthread" = "yes" |
| 13742 | then |
| 13743 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13744 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 13745 | CXX="$CXX -Kpthread" |
| 13746 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13747 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 13748 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13749 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 13750 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13751 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13752 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13753 | elif test "$ac_cv_kthread" = "yes" |
| 13754 | then |
| 13755 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13756 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 13757 | CXX="$CXX -Kthread" |
| 13758 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13759 | cat >>confdefs.h <<\_ACEOF |
| 13760 | #define WITH_THREAD 1 |
| 13761 | _ACEOF |
| 13762 | |
| 13763 | posix_threads=yes |
| 13764 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13765 | elif test "$ac_cv_pthread" = "yes" |
| 13766 | then |
| 13767 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 13768 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 13769 | CXX="$CXX -pthread" |
| 13770 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13771 | cat >>confdefs.h <<\_ACEOF |
| 13772 | #define WITH_THREAD 1 |
| 13773 | _ACEOF |
| 13774 | |
| 13775 | posix_threads=yes |
| 13776 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13777 | else |
| 13778 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 13779 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 13780 | fi |
| 13781 | if test ! -z "$withval" -a -d "$withval" |
| 13782 | then LDFLAGS="$LDFLAGS -L$withval" |
| 13783 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13784 | |
| 13785 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 13786 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 13787 | # (e.g. gnu pth with pthread emulation) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13788 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 13789 | 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] | 13790 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13791 | /* confdefs.h. */ |
| 13792 | _ACEOF |
| 13793 | cat confdefs.h >>conftest.$ac_ext |
| 13794 | cat >>conftest.$ac_ext <<_ACEOF |
| 13795 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13796 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13797 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13798 | #ifdef _POSIX_THREADS |
| 13799 | yes |
| 13800 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13801 | |
| 13802 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13803 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13804 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13805 | unistd_defines_pthreads=yes |
| 13806 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13807 | unistd_defines_pthreads=no |
| 13808 | fi |
| 13809 | rm -f conftest* |
| 13810 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13811 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 13812 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13814 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 13815 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13816 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 13817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13818 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13819 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 13820 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13821 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 13822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13823 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13824 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 13825 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13826 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13827 | # Is the header compilable? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13828 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 13829 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13830 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13831 | /* confdefs.h. */ |
| 13832 | _ACEOF |
| 13833 | cat confdefs.h >>conftest.$ac_ext |
| 13834 | cat >>conftest.$ac_ext <<_ACEOF |
| 13835 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13836 | $ac_includes_default |
| 13837 | #include <cthreads.h> |
| 13838 | _ACEOF |
| 13839 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13840 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13847 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13849 | rm -f conftest.er1 |
| 13850 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13852 | (exit $ac_status); } && { |
| 13853 | test -z "$ac_c_werror_flag" || |
| 13854 | test ! -s conftest.err |
| 13855 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13856 | ac_header_compiler=yes |
| 13857 | else |
| 13858 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13860 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13861 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13862 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13863 | |
| 13864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13865 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13866 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13867 | |
| 13868 | # Is the header present? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13869 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 13870 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13871 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13872 | /* confdefs.h. */ |
| 13873 | _ACEOF |
| 13874 | cat confdefs.h >>conftest.$ac_ext |
| 13875 | cat >>conftest.$ac_ext <<_ACEOF |
| 13876 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13877 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13878 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13879 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13880 | case "(($ac_try" in |
| 13881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13882 | *) ac_try_echo=$ac_try;; |
| 13883 | esac |
| 13884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13885 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13886 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13887 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13888 | rm -f conftest.er1 |
| 13889 | cat conftest.err >&5 |
| 13890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13891 | (exit $ac_status); } >/dev/null && { |
| 13892 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 13893 | test ! -s conftest.err |
| 13894 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13895 | ac_header_preproc=yes |
| 13896 | else |
| 13897 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13900 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13901 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13902 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13903 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13904 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13905 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13906 | |
| 13907 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13908 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13909 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13910 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13911 | 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] | 13912 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 13913 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 13914 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13915 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13916 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13917 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 13918 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13919 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 13920 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 13921 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 13922 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 13923 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13924 | 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] | 13925 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 13926 | 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] | 13927 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 13928 | echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13929 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13930 | ## ------------------------------------------------ ## |
| 13931 | ## Report this to http://www.python.org/python-bugs ## |
| 13932 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13933 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13934 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13935 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13936 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13937 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 13938 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13939 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 13940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13941 | else |
| 13942 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13943 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13944 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 13945 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13946 | |
| 13947 | fi |
| 13948 | if test $ac_cv_header_cthreads_h = yes; then |
| 13949 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13950 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13951 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13953 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13954 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13955 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13957 | |
| 13958 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13959 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13960 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13961 | |
| 13962 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13963 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13964 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13966 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13967 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 13968 | 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] | 13969 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 13970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13971 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13972 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 13973 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13975 | # Is the header compilable? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13976 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 13977 | 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] | 13978 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13979 | /* confdefs.h. */ |
| 13980 | _ACEOF |
| 13981 | cat confdefs.h >>conftest.$ac_ext |
| 13982 | cat >>conftest.$ac_ext <<_ACEOF |
| 13983 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13984 | $ac_includes_default |
| 13985 | #include <mach/cthreads.h> |
| 13986 | _ACEOF |
| 13987 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 13988 | if { (ac_try="$ac_compile" |
| 13989 | case "(($ac_try" in |
| 13990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13991 | *) ac_try_echo=$ac_try;; |
| 13992 | esac |
| 13993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13994 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13995 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13997 | rm -f conftest.er1 |
| 13998 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14000 | (exit $ac_status); } && { |
| 14001 | test -z "$ac_c_werror_flag" || |
| 14002 | test ! -s conftest.err |
| 14003 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14004 | ac_header_compiler=yes |
| 14005 | else |
| 14006 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14008 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14009 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14010 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14011 | |
| 14012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14013 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14014 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14015 | |
| 14016 | # Is the header present? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14017 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 14018 | 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] | 14019 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14020 | /* confdefs.h. */ |
| 14021 | _ACEOF |
| 14022 | cat confdefs.h >>conftest.$ac_ext |
| 14023 | cat >>conftest.$ac_ext <<_ACEOF |
| 14024 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14025 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14026 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14027 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14028 | case "(($ac_try" in |
| 14029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14030 | *) ac_try_echo=$ac_try;; |
| 14031 | esac |
| 14032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14033 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14034 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14035 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14036 | rm -f conftest.er1 |
| 14037 | cat conftest.err >&5 |
| 14038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14039 | (exit $ac_status); } >/dev/null && { |
| 14040 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14041 | test ! -s conftest.err |
| 14042 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14043 | ac_header_preproc=yes |
| 14044 | else |
| 14045 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14048 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14049 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14051 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14052 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14053 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14054 | |
| 14055 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14056 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14057 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14058 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14059 | 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] | 14060 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 14061 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 14062 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14063 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14064 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14065 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 14066 | 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] | 14067 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 14068 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 14069 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 14070 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 14071 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14072 | 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] | 14073 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 14074 | 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] | 14075 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 14076 | echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14077 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14078 | ## ------------------------------------------------ ## |
| 14079 | ## Report this to http://www.python.org/python-bugs ## |
| 14080 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14081 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14082 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14083 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14084 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14085 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 14086 | 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] | 14087 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 14088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14089 | else |
| 14090 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14091 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14092 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 14093 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14094 | |
| 14095 | fi |
| 14096 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 14097 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14098 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14099 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14101 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14102 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14103 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14105 | |
| 14106 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14107 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14108 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14109 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14110 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14111 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14112 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14113 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 14114 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14115 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14116 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14117 | if test "${with_pth+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14118 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 14119 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14120 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14121 | #define WITH_THREAD 1 |
| 14122 | _ACEOF |
| 14123 | |
| 14124 | |
| 14125 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14126 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14127 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14128 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 14129 | LIBS="-lpth $LIBS" |
| 14130 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 14131 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14132 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14133 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14134 | |
| 14135 | # Just looking for pthread_create in libpthread is not enough: |
| 14136 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 14137 | # So we really have to include pthread.h, and then link. |
| 14138 | _libs=$LIBS |
| 14139 | LIBS="$LIBS -lpthread" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14140 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 14141 | 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] | 14142 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14143 | /* confdefs.h. */ |
| 14144 | _ACEOF |
| 14145 | cat confdefs.h >>conftest.$ac_ext |
| 14146 | cat >>conftest.$ac_ext <<_ACEOF |
| 14147 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14148 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14149 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14150 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14151 | int |
| 14152 | main () |
| 14153 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14154 | |
| 14155 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14156 | ; |
| 14157 | return 0; |
| 14158 | } |
| 14159 | _ACEOF |
| 14160 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14161 | if { (ac_try="$ac_link" |
| 14162 | case "(($ac_try" in |
| 14163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14164 | *) ac_try_echo=$ac_try;; |
| 14165 | esac |
| 14166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14167 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14168 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14170 | rm -f conftest.er1 |
| 14171 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14173 | (exit $ac_status); } && { |
| 14174 | test -z "$ac_c_werror_flag" || |
| 14175 | test ! -s conftest.err |
| 14176 | } && test -s conftest$ac_exeext && |
| 14177 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14178 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14179 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14180 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14181 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14182 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14183 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14184 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14185 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14186 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 14187 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14188 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14191 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 14192 | LIBS=$_libs |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14193 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 14194 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14195 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 14196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14197 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14198 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14199 | /* confdefs.h. */ |
| 14200 | _ACEOF |
| 14201 | cat confdefs.h >>conftest.$ac_ext |
| 14202 | cat >>conftest.$ac_ext <<_ACEOF |
| 14203 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14204 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 14205 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14206 | #define pthread_detach innocuous_pthread_detach |
| 14207 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14208 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14209 | which can conflict with char pthread_detach (); below. |
| 14210 | 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] | 14211 | <limits.h> exists even on freestanding compilers. */ |
| 14212 | |
| 14213 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14214 | # include <limits.h> |
| 14215 | #else |
| 14216 | # include <assert.h> |
| 14217 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14218 | |
| 14219 | #undef pthread_detach |
| 14220 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14221 | /* Override any GCC internal prototype to avoid an error. |
| 14222 | Use char because int might match the return type of a GCC |
| 14223 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14224 | #ifdef __cplusplus |
| 14225 | extern "C" |
| 14226 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14227 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14228 | /* The GNU C library defines this for functions which it implements |
| 14229 | to always fail with ENOSYS. Some functions are actually named |
| 14230 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14231 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14232 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14233 | #endif |
| 14234 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14235 | int |
| 14236 | main () |
| 14237 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14238 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14239 | ; |
| 14240 | return 0; |
| 14241 | } |
| 14242 | _ACEOF |
| 14243 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14244 | if { (ac_try="$ac_link" |
| 14245 | case "(($ac_try" in |
| 14246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14247 | *) ac_try_echo=$ac_try;; |
| 14248 | esac |
| 14249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14250 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14251 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14253 | rm -f conftest.er1 |
| 14254 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14256 | (exit $ac_status); } && { |
| 14257 | test -z "$ac_c_werror_flag" || |
| 14258 | test ! -s conftest.err |
| 14259 | } && test -s conftest$ac_exeext && |
| 14260 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14261 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14262 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14263 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14265 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14266 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14267 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14268 | |
| 14269 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14270 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14271 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14272 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 14273 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14274 | if test $ac_cv_func_pthread_detach = yes; then |
| 14275 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14276 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14277 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14278 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 14279 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14280 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14281 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 14282 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14283 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14284 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 14285 | 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] | 14286 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 14287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14288 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14289 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 14290 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14291 | else |
| 14292 | # Is the header compilable? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14293 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 14294 | 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] | 14295 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14296 | /* confdefs.h. */ |
| 14297 | _ACEOF |
| 14298 | cat confdefs.h >>conftest.$ac_ext |
| 14299 | cat >>conftest.$ac_ext <<_ACEOF |
| 14300 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14301 | $ac_includes_default |
| 14302 | #include <atheos/threads.h> |
| 14303 | _ACEOF |
| 14304 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14305 | if { (ac_try="$ac_compile" |
| 14306 | case "(($ac_try" in |
| 14307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14308 | *) ac_try_echo=$ac_try;; |
| 14309 | esac |
| 14310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14311 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14312 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14314 | rm -f conftest.er1 |
| 14315 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14317 | (exit $ac_status); } && { |
| 14318 | test -z "$ac_c_werror_flag" || |
| 14319 | test ! -s conftest.err |
| 14320 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14321 | ac_header_compiler=yes |
| 14322 | else |
| 14323 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14325 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14326 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14327 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14328 | |
| 14329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14330 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14331 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14332 | |
| 14333 | # Is the header present? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14334 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 14335 | 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] | 14336 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14337 | /* confdefs.h. */ |
| 14338 | _ACEOF |
| 14339 | cat confdefs.h >>conftest.$ac_ext |
| 14340 | cat >>conftest.$ac_ext <<_ACEOF |
| 14341 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14342 | #include <atheos/threads.h> |
| 14343 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14344 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14345 | case "(($ac_try" in |
| 14346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14347 | *) ac_try_echo=$ac_try;; |
| 14348 | esac |
| 14349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14350 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14351 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14352 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14353 | rm -f conftest.er1 |
| 14354 | cat conftest.err >&5 |
| 14355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14356 | (exit $ac_status); } >/dev/null && { |
| 14357 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14358 | test ! -s conftest.err |
| 14359 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14360 | ac_header_preproc=yes |
| 14361 | else |
| 14362 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14364 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14365 | ac_header_preproc=no |
| 14366 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14367 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14368 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14369 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14370 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14371 | |
| 14372 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14373 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14374 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14375 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14376 | 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] | 14377 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 14378 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 14379 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14380 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14381 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 14382 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 14383 | 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] | 14384 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 14385 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 14386 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 14387 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 14388 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14389 | 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] | 14390 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 14391 | 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] | 14392 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 14393 | echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14394 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 14395 | ## ------------------------------------------------ ## |
| 14396 | ## Report this to http://www.python.org/python-bugs ## |
| 14397 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14398 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14399 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14400 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14401 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14402 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 14403 | 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] | 14404 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 14405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14406 | else |
| 14407 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 14408 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14409 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 14410 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14411 | |
| 14412 | fi |
| 14413 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 14414 | cat >>confdefs.h <<\_ACEOF |
| 14415 | #define WITH_THREAD 1 |
| 14416 | _ACEOF |
| 14417 | |
| 14418 | |
| 14419 | cat >>confdefs.h <<\_ACEOF |
| 14420 | #define ATHEOS_THREADS 1 |
| 14421 | _ACEOF |
| 14422 | |
| 14423 | THREADOBJ="Python/thread.o" |
| 14424 | else |
| 14425 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14426 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 14427 | 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] | 14428 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 14429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14430 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14431 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14432 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14433 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14434 | /* confdefs.h. */ |
| 14435 | _ACEOF |
| 14436 | cat confdefs.h >>conftest.$ac_ext |
| 14437 | cat >>conftest.$ac_ext <<_ACEOF |
| 14438 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14439 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14440 | /* Override any GCC internal prototype to avoid an error. |
| 14441 | Use char because int might match the return type of a GCC |
| 14442 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | #ifdef __cplusplus |
| 14444 | extern "C" |
| 14445 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14446 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14447 | int |
| 14448 | main () |
| 14449 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14450 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14451 | ; |
| 14452 | return 0; |
| 14453 | } |
| 14454 | _ACEOF |
| 14455 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14456 | if { (ac_try="$ac_link" |
| 14457 | case "(($ac_try" in |
| 14458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14459 | *) ac_try_echo=$ac_try;; |
| 14460 | esac |
| 14461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14462 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14463 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14465 | rm -f conftest.er1 |
| 14466 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14468 | (exit $ac_status); } && { |
| 14469 | test -z "$ac_c_werror_flag" || |
| 14470 | test ! -s conftest.err |
| 14471 | } && test -s conftest$ac_exeext && |
| 14472 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14473 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14474 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14475 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14477 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14478 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14479 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14480 | |
| 14481 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14482 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14483 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14484 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14485 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 14486 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14487 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 14488 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14489 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14490 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14491 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14492 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14493 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14494 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14495 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14496 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14497 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 14498 | 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] | 14499 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 14500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14501 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14502 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 14503 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14504 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14505 | /* confdefs.h. */ |
| 14506 | _ACEOF |
| 14507 | cat confdefs.h >>conftest.$ac_ext |
| 14508 | cat >>conftest.$ac_ext <<_ACEOF |
| 14509 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14510 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14511 | /* Override any GCC internal prototype to avoid an error. |
| 14512 | Use char because int might match the return type of a GCC |
| 14513 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14514 | #ifdef __cplusplus |
| 14515 | extern "C" |
| 14516 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14517 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14518 | int |
| 14519 | main () |
| 14520 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14521 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14522 | ; |
| 14523 | return 0; |
| 14524 | } |
| 14525 | _ACEOF |
| 14526 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14527 | if { (ac_try="$ac_link" |
| 14528 | case "(($ac_try" in |
| 14529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14530 | *) ac_try_echo=$ac_try;; |
| 14531 | esac |
| 14532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14533 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14534 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14536 | rm -f conftest.er1 |
| 14537 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14539 | (exit $ac_status); } && { |
| 14540 | test -z "$ac_c_werror_flag" || |
| 14541 | test ! -s conftest.err |
| 14542 | } && test -s conftest$ac_exeext && |
| 14543 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14544 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14545 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14546 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14548 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14549 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14550 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14551 | |
| 14552 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14553 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14554 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14555 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14556 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 14557 | 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] | 14558 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 14559 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14560 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14561 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14562 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14563 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14564 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14565 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 14566 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 14567 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14568 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 14569 | 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] | 14570 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 14571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14573 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14574 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14575 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14576 | /* confdefs.h. */ |
| 14577 | _ACEOF |
| 14578 | cat confdefs.h >>conftest.$ac_ext |
| 14579 | cat >>conftest.$ac_ext <<_ACEOF |
| 14580 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14581 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14582 | /* Override any GCC internal prototype to avoid an error. |
| 14583 | Use char because int might match the return type of a GCC |
| 14584 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14585 | #ifdef __cplusplus |
| 14586 | extern "C" |
| 14587 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14588 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14589 | int |
| 14590 | main () |
| 14591 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14592 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14593 | ; |
| 14594 | return 0; |
| 14595 | } |
| 14596 | _ACEOF |
| 14597 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14598 | if { (ac_try="$ac_link" |
| 14599 | case "(($ac_try" in |
| 14600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14601 | *) ac_try_echo=$ac_try;; |
| 14602 | esac |
| 14603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14604 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14605 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14607 | rm -f conftest.er1 |
| 14608 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14610 | (exit $ac_status); } && { |
| 14611 | test -z "$ac_c_werror_flag" || |
| 14612 | test ! -s conftest.err |
| 14613 | } && test -s conftest$ac_exeext && |
| 14614 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14615 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14616 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14617 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14619 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14620 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14621 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14622 | |
| 14623 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14624 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14625 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14626 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14627 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 14628 | 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] | 14629 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 14630 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14631 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14632 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14633 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14634 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14635 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14636 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14637 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 14638 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14639 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 14640 | 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] | 14641 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 14642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14643 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14644 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14645 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14646 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14647 | /* confdefs.h. */ |
| 14648 | _ACEOF |
| 14649 | cat confdefs.h >>conftest.$ac_ext |
| 14650 | cat >>conftest.$ac_ext <<_ACEOF |
| 14651 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14652 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14653 | /* Override any GCC internal prototype to avoid an error. |
| 14654 | Use char because int might match the return type of a GCC |
| 14655 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14656 | #ifdef __cplusplus |
| 14657 | extern "C" |
| 14658 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14659 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14660 | int |
| 14661 | main () |
| 14662 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14663 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14664 | ; |
| 14665 | return 0; |
| 14666 | } |
| 14667 | _ACEOF |
| 14668 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14669 | if { (ac_try="$ac_link" |
| 14670 | case "(($ac_try" in |
| 14671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14672 | *) ac_try_echo=$ac_try;; |
| 14673 | esac |
| 14674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14675 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14676 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14678 | rm -f conftest.er1 |
| 14679 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14681 | (exit $ac_status); } && { |
| 14682 | test -z "$ac_c_werror_flag" || |
| 14683 | test ! -s conftest.err |
| 14684 | } && test -s conftest$ac_exeext && |
| 14685 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14686 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14687 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14688 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14690 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14691 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14692 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14693 | |
| 14694 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14695 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14696 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14697 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14698 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 14699 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14700 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 14701 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14702 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14703 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14704 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14705 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14706 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14707 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14708 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 14709 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14710 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 14711 | fi |
| 14712 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14713 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14714 | fi |
| 14715 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 14716 | fi |
| 14717 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14718 | fi |
| 14719 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14720 | fi |
| 14721 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 14722 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14723 | fi |
| 14724 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14725 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14726 | |
| 14727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14728 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14729 | fi |
| 14730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14731 | fi |
| 14732 | |
| 14733 | |
| 14734 | fi |
| 14735 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14736 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14737 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14738 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 14739 | 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] | 14740 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 14741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14742 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14743 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14744 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14745 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14746 | /* confdefs.h. */ |
| 14747 | _ACEOF |
| 14748 | cat confdefs.h >>conftest.$ac_ext |
| 14749 | cat >>conftest.$ac_ext <<_ACEOF |
| 14750 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14751 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14752 | /* Override any GCC internal prototype to avoid an error. |
| 14753 | Use char because int might match the return type of a GCC |
| 14754 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14755 | #ifdef __cplusplus |
| 14756 | extern "C" |
| 14757 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14758 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14759 | int |
| 14760 | main () |
| 14761 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14762 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14763 | ; |
| 14764 | return 0; |
| 14765 | } |
| 14766 | _ACEOF |
| 14767 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14768 | if { (ac_try="$ac_link" |
| 14769 | case "(($ac_try" in |
| 14770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14771 | *) ac_try_echo=$ac_try;; |
| 14772 | esac |
| 14773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14774 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14775 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14777 | rm -f conftest.er1 |
| 14778 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14780 | (exit $ac_status); } && { |
| 14781 | test -z "$ac_c_werror_flag" || |
| 14782 | test ! -s conftest.err |
| 14783 | } && test -s conftest$ac_exeext && |
| 14784 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14785 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14787 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14789 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14790 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14791 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14792 | |
| 14793 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14794 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14795 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14796 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14797 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 14798 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14799 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 14800 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14801 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14802 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14803 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14804 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14805 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14806 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14807 | fi |
| 14808 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14809 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 14810 | if test "$posix_threads" != "yes"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14811 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 14812 | 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] | 14813 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 14814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14815 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14816 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14817 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14818 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14819 | /* confdefs.h. */ |
| 14820 | _ACEOF |
| 14821 | cat confdefs.h >>conftest.$ac_ext |
| 14822 | cat >>conftest.$ac_ext <<_ACEOF |
| 14823 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14824 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14825 | /* Override any GCC internal prototype to avoid an error. |
| 14826 | Use char because int might match the return type of a GCC |
| 14827 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14828 | #ifdef __cplusplus |
| 14829 | extern "C" |
| 14830 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14831 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14832 | int |
| 14833 | main () |
| 14834 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14835 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14836 | ; |
| 14837 | return 0; |
| 14838 | } |
| 14839 | _ACEOF |
| 14840 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14841 | if { (ac_try="$ac_link" |
| 14842 | case "(($ac_try" in |
| 14843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14844 | *) ac_try_echo=$ac_try;; |
| 14845 | esac |
| 14846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14847 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14848 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14850 | rm -f conftest.er1 |
| 14851 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14853 | (exit $ac_status); } && { |
| 14854 | test -z "$ac_c_werror_flag" || |
| 14855 | test ! -s conftest.err |
| 14856 | } && test -s conftest$ac_exeext && |
| 14857 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14858 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14859 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14860 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14862 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14863 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14864 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14865 | |
| 14866 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14867 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14868 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14869 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14870 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 14871 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14872 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 14873 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14874 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14875 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14876 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14877 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14878 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14879 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14880 | fi |
| 14881 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14882 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14883 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14884 | if test "$USE_THREAD_MODULE" != "#" |
| 14885 | then |
| 14886 | # If the above checks didn't disable threads, (at least) OSF1 |
| 14887 | # needs this '-threads' argument during linking. |
| 14888 | case $ac_sys_system in |
| 14889 | OSF1) LDLAST=-threads;; |
| 14890 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 14891 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14892 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14893 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14894 | if test "$posix_threads" = "yes"; then |
| 14895 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14896 | |
| 14897 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14898 | #define _POSIX_THREADS 1 |
| 14899 | _ACEOF |
| 14900 | |
| 14901 | fi |
| 14902 | |
| 14903 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 14904 | case $ac_sys_system/$ac_sys_release in |
| 14905 | SunOS/5.6) |
| 14906 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14907 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 14908 | _ACEOF |
| 14909 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14910 | ;; |
| 14911 | SunOS/5.8) |
| 14912 | cat >>confdefs.h <<\_ACEOF |
| 14913 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 14914 | _ACEOF |
| 14915 | |
| 14916 | ;; |
Christian Heimes | 7b3ce6a | 2008-01-31 14:31:45 +0000 | [diff] [blame] | 14917 | AIX/5) |
| 14918 | cat >>confdefs.h <<\_ACEOF |
| 14919 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 14920 | _ACEOF |
| 14921 | |
| 14922 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14923 | esac |
| 14924 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14925 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 14926 | 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] | 14927 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 14928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14929 | else |
| 14930 | if test "$cross_compiling" = yes; then |
| 14931 | ac_cv_pthread_system_supported=no |
| 14932 | else |
| 14933 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14934 | /* confdefs.h. */ |
| 14935 | _ACEOF |
| 14936 | cat confdefs.h >>conftest.$ac_ext |
| 14937 | cat >>conftest.$ac_ext <<_ACEOF |
| 14938 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14939 | #include <pthread.h> |
| 14940 | void *foo(void *parm) { |
| 14941 | return NULL; |
| 14942 | } |
| 14943 | main() { |
| 14944 | pthread_attr_t attr; |
| 14945 | pthread_t id; |
| 14946 | if (pthread_attr_init(&attr)) exit(-1); |
| 14947 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 14948 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 14949 | exit(0); |
| 14950 | } |
| 14951 | _ACEOF |
| 14952 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14953 | if { (ac_try="$ac_link" |
| 14954 | case "(($ac_try" in |
| 14955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14956 | *) ac_try_echo=$ac_try;; |
| 14957 | esac |
| 14958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14959 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14960 | ac_status=$? |
| 14961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14962 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14963 | { (case "(($ac_try" in |
| 14964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14965 | *) ac_try_echo=$ac_try;; |
| 14966 | esac |
| 14967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14968 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14969 | ac_status=$? |
| 14970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14971 | (exit $ac_status); }; }; then |
| 14972 | ac_cv_pthread_system_supported=yes |
| 14973 | else |
| 14974 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14975 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14977 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14978 | ( exit $ac_status ) |
| 14979 | ac_cv_pthread_system_supported=no |
| 14980 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14981 | 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] | 14982 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14983 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14984 | |
| 14985 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14986 | fi |
| 14987 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 14988 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 14989 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14990 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 14991 | |
| 14992 | cat >>confdefs.h <<\_ACEOF |
| 14993 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 14994 | _ACEOF |
| 14995 | |
| 14996 | fi |
| 14997 | |
| 14998 | for ac_func in pthread_sigmask |
| 14999 | do |
| 15000 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15001 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15002 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 15003 | 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] | 15004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15005 | else |
| 15006 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15007 | /* confdefs.h. */ |
| 15008 | _ACEOF |
| 15009 | cat confdefs.h >>conftest.$ac_ext |
| 15010 | cat >>conftest.$ac_ext <<_ACEOF |
| 15011 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15012 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15013 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15014 | #define $ac_func innocuous_$ac_func |
| 15015 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15016 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15017 | which can conflict with char $ac_func (); below. |
| 15018 | 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] | 15019 | <limits.h> exists even on freestanding compilers. */ |
| 15020 | |
| 15021 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15022 | # include <limits.h> |
| 15023 | #else |
| 15024 | # include <assert.h> |
| 15025 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15026 | |
| 15027 | #undef $ac_func |
| 15028 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15029 | /* Override any GCC internal prototype to avoid an error. |
| 15030 | Use char because int might match the return type of a GCC |
| 15031 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15032 | #ifdef __cplusplus |
| 15033 | extern "C" |
| 15034 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15035 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15036 | /* The GNU C library defines this for functions which it implements |
| 15037 | to always fail with ENOSYS. Some functions are actually named |
| 15038 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15039 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15040 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15041 | #endif |
| 15042 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15043 | int |
| 15044 | main () |
| 15045 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15046 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15047 | ; |
| 15048 | return 0; |
| 15049 | } |
| 15050 | _ACEOF |
| 15051 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15052 | if { (ac_try="$ac_link" |
| 15053 | case "(($ac_try" in |
| 15054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15055 | *) ac_try_echo=$ac_try;; |
| 15056 | esac |
| 15057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15058 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15059 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15061 | rm -f conftest.er1 |
| 15062 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15064 | (exit $ac_status); } && { |
| 15065 | test -z "$ac_c_werror_flag" || |
| 15066 | test ! -s conftest.err |
| 15067 | } && test -s conftest$ac_exeext && |
| 15068 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15069 | eval "$as_ac_var=yes" |
| 15070 | else |
| 15071 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15073 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15074 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15075 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15076 | |
| 15077 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15078 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15079 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15080 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15081 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15082 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15083 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15084 | cat >>confdefs.h <<_ACEOF |
| 15085 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15086 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 15087 | case $ac_sys_system in |
| 15088 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15089 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 15090 | cat >>confdefs.h <<\_ACEOF |
| 15091 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 15092 | _ACEOF |
| 15093 | |
| 15094 | ;; |
| 15095 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15096 | fi |
| 15097 | done |
| 15098 | |
| 15099 | fi |
| 15100 | |
| 15101 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15102 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15103 | |
| 15104 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15105 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 15106 | echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; } |
| 15107 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15108 | if test "${enable_ipv6+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15109 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15110 | no) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15111 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15112 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15113 | ipv6=no |
| 15114 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15115 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 15116 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15117 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15118 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15119 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15120 | |
| 15121 | ipv6=yes |
| 15122 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15123 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15125 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15126 | if test "$cross_compiling" = yes; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15127 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15128 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15129 | ipv6=no |
| 15130 | |
| 15131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15132 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15133 | /* confdefs.h. */ |
| 15134 | _ACEOF |
| 15135 | cat confdefs.h >>conftest.$ac_ext |
| 15136 | cat >>conftest.$ac_ext <<_ACEOF |
| 15137 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15138 | /* AF_INET6 available check */ |
| 15139 | #include <sys/types.h> |
| 15140 | #include <sys/socket.h> |
| 15141 | main() |
| 15142 | { |
| 15143 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 15144 | exit(1); |
| 15145 | else |
| 15146 | exit(0); |
| 15147 | } |
| 15148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15149 | _ACEOF |
| 15150 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15151 | if { (ac_try="$ac_link" |
| 15152 | case "(($ac_try" in |
| 15153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15154 | *) ac_try_echo=$ac_try;; |
| 15155 | esac |
| 15156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15157 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15158 | ac_status=$? |
| 15159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15160 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15161 | { (case "(($ac_try" in |
| 15162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15163 | *) ac_try_echo=$ac_try;; |
| 15164 | esac |
| 15165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15166 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15167 | ac_status=$? |
| 15168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15169 | (exit $ac_status); }; }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15170 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15171 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15172 | ipv6=yes |
| 15173 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15174 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15178 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15179 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15180 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15181 | ipv6=no |
| 15182 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15183 | 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] | 15184 | fi |
| 15185 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15186 | |
| 15187 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15188 | if test "$ipv6" = "yes"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15189 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 15190 | 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] | 15191 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15192 | /* confdefs.h. */ |
| 15193 | _ACEOF |
| 15194 | cat confdefs.h >>conftest.$ac_ext |
| 15195 | cat >>conftest.$ac_ext <<_ACEOF |
| 15196 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15197 | #include <sys/types.h> |
| 15198 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15199 | int |
| 15200 | main () |
| 15201 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15202 | struct sockaddr_in6 x; |
| 15203 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15204 | ; |
| 15205 | return 0; |
| 15206 | } |
| 15207 | _ACEOF |
| 15208 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15209 | if { (ac_try="$ac_compile" |
| 15210 | case "(($ac_try" in |
| 15211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15212 | *) ac_try_echo=$ac_try;; |
| 15213 | esac |
| 15214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15215 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15216 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15218 | rm -f conftest.er1 |
| 15219 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15221 | (exit $ac_status); } && { |
| 15222 | test -z "$ac_c_werror_flag" || |
| 15223 | test ! -s conftest.err |
| 15224 | } && test -s conftest.$ac_objext; then |
| 15225 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15226 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15227 | ipv6=yes |
| 15228 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15229 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15231 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15232 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15233 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15234 | ipv6=no |
| 15235 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15236 | |
| 15237 | 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] | 15238 | fi |
| 15239 | |
| 15240 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15241 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15242 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15243 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 15244 | |
| 15245 | fi |
| 15246 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15247 | fi |
| 15248 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15249 | |
| 15250 | ipv6type=unknown |
| 15251 | ipv6lib=none |
| 15252 | ipv6trylibc=no |
| 15253 | |
| 15254 | if test "$ipv6" = "yes"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15255 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 15256 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 15257 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 15258 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15259 | case $i in |
| 15260 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15261 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15262 | /* confdefs.h. */ |
| 15263 | _ACEOF |
| 15264 | cat confdefs.h >>conftest.$ac_ext |
| 15265 | cat >>conftest.$ac_ext <<_ACEOF |
| 15266 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15267 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15268 | #include <netinet/in.h> |
| 15269 | #ifdef IPV6_INRIA_VERSION |
| 15270 | yes |
| 15271 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15272 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15274 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 15275 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15276 | fi |
| 15277 | rm -f conftest* |
| 15278 | |
| 15279 | ;; |
| 15280 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15281 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15282 | /* confdefs.h. */ |
| 15283 | _ACEOF |
| 15284 | cat confdefs.h >>conftest.$ac_ext |
| 15285 | cat >>conftest.$ac_ext <<_ACEOF |
| 15286 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15287 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15288 | #include <netinet/in.h> |
| 15289 | #ifdef __KAME__ |
| 15290 | yes |
| 15291 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15292 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15293 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15294 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15295 | ipv6type=$i; |
| 15296 | ipv6lib=inet6 |
| 15297 | ipv6libdir=/usr/local/v6/lib |
| 15298 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15299 | fi |
| 15300 | rm -f conftest* |
| 15301 | |
| 15302 | ;; |
| 15303 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15304 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15305 | /* confdefs.h. */ |
| 15306 | _ACEOF |
| 15307 | cat confdefs.h >>conftest.$ac_ext |
| 15308 | cat >>conftest.$ac_ext <<_ACEOF |
| 15309 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15310 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15311 | #include <features.h> |
| 15312 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 15313 | yes |
| 15314 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15315 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15316 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15317 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15318 | ipv6type=$i; |
| 15319 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15320 | fi |
| 15321 | rm -f conftest* |
| 15322 | |
| 15323 | ;; |
| 15324 | linux-inet6) |
| 15325 | if test -d /usr/inet6; then |
| 15326 | ipv6type=$i |
| 15327 | ipv6lib=inet6 |
| 15328 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15329 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15330 | fi |
| 15331 | ;; |
| 15332 | solaris) |
| 15333 | if test -f /etc/netconfig; then |
| 15334 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 15335 | ipv6type=$i |
| 15336 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15337 | fi |
| 15338 | fi |
| 15339 | ;; |
| 15340 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15341 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15342 | /* confdefs.h. */ |
| 15343 | _ACEOF |
| 15344 | cat confdefs.h >>conftest.$ac_ext |
| 15345 | cat >>conftest.$ac_ext <<_ACEOF |
| 15346 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15347 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15348 | #include <sys/param.h> |
| 15349 | #ifdef _TOSHIBA_INET6 |
| 15350 | yes |
| 15351 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15352 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15353 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15354 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15355 | ipv6type=$i; |
| 15356 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 15357 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15358 | fi |
| 15359 | rm -f conftest* |
| 15360 | |
| 15361 | ;; |
| 15362 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15363 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15364 | /* confdefs.h. */ |
| 15365 | _ACEOF |
| 15366 | cat confdefs.h >>conftest.$ac_ext |
| 15367 | cat >>conftest.$ac_ext <<_ACEOF |
| 15368 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15369 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15370 | #include </usr/local/v6/include/sys/v6config.h> |
| 15371 | #ifdef __V6D__ |
| 15372 | yes |
| 15373 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15374 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15375 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15376 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15377 | ipv6type=$i; |
| 15378 | ipv6lib=v6; |
| 15379 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 15380 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15381 | fi |
| 15382 | rm -f conftest* |
| 15383 | |
| 15384 | ;; |
| 15385 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15386 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15387 | /* confdefs.h. */ |
| 15388 | _ACEOF |
| 15389 | cat confdefs.h >>conftest.$ac_ext |
| 15390 | cat >>conftest.$ac_ext <<_ACEOF |
| 15391 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15392 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15393 | #include <sys/param.h> |
| 15394 | #ifdef _ZETA_MINAMI_INET6 |
| 15395 | yes |
| 15396 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15397 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15398 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15399 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15400 | ipv6type=$i; |
| 15401 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 15402 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15403 | fi |
| 15404 | rm -f conftest* |
| 15405 | |
| 15406 | ;; |
| 15407 | esac |
| 15408 | if test "$ipv6type" != "unknown"; then |
| 15409 | break |
| 15410 | fi |
| 15411 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15412 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 15413 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 15414 | fi |
| 15415 | |
| 15416 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 15417 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 15418 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 15419 | echo "using lib$ipv6lib" |
| 15420 | else |
| 15421 | if test $ipv6trylibc = "yes"; then |
| 15422 | echo "using libc" |
| 15423 | else |
| 15424 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 15425 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 15426 | echo 'ipv6 kit and compile beforehand.' |
| 15427 | exit 1 |
| 15428 | fi |
| 15429 | fi |
| 15430 | fi |
| 15431 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15432 | # Check for --with-doc-strings |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15433 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 15434 | 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] | 15435 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15436 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15437 | if test "${with_doc_strings+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15438 | withval=$with_doc_strings; |
| 15439 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15440 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15441 | |
| 15442 | if test -z "$with_doc_strings" |
| 15443 | then with_doc_strings="yes" |
| 15444 | fi |
| 15445 | if test "$with_doc_strings" != "no" |
| 15446 | then |
| 15447 | |
| 15448 | cat >>confdefs.h <<\_ACEOF |
| 15449 | #define WITH_DOC_STRINGS 1 |
| 15450 | _ACEOF |
| 15451 | |
| 15452 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15453 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 15454 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 15455 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 15456 | # Check for Python-specific malloc support |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15457 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 15458 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15459 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15460 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15461 | if test "${with_tsc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15462 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15463 | if test "$withval" != no |
| 15464 | then |
| 15465 | |
| 15466 | cat >>confdefs.h <<\_ACEOF |
| 15467 | #define WITH_TSC 1 |
| 15468 | _ACEOF |
| 15469 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15470 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15471 | echo "${ECHO_T}yes" >&6; } |
| 15472 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 15473 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15474 | fi |
| 15475 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15476 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15477 | echo "${ECHO_T}no" >&6; } |
| 15478 | fi |
| 15479 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 15480 | |
| 15481 | # Check for Python-specific malloc support |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15482 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 15483 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15484 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15485 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 15486 | if test "${with_pymalloc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15487 | withval=$with_pymalloc; |
| 15488 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15489 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 15490 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15491 | if test -z "$with_pymalloc" |
| 15492 | then with_pymalloc="yes" |
| 15493 | fi |
| 15494 | if test "$with_pymalloc" != "no" |
| 15495 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15496 | |
| 15497 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15498 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15499 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15500 | |
| 15501 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15502 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 15503 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 15504 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15505 | # Check for --with-wctype-functions |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15506 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 15507 | 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] | 15508 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15509 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15510 | if test "${with_wctype_functions+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15511 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15512 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15513 | then |
| 15514 | |
| 15515 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15516 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15517 | _ACEOF |
| 15518 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15519 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15520 | echo "${ECHO_T}yes" >&6; } |
| 15521 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 15522 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15523 | fi |
| 15524 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15525 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15526 | echo "${ECHO_T}no" >&6; } |
| 15527 | fi |
| 15528 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 15529 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15530 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15531 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 15532 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15533 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15534 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 15535 | # 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] | 15536 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15537 | for ac_func in dlopen |
| 15538 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15539 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15540 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15541 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 15542 | 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] | 15543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15544 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15545 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15546 | /* confdefs.h. */ |
| 15547 | _ACEOF |
| 15548 | cat confdefs.h >>conftest.$ac_ext |
| 15549 | cat >>conftest.$ac_ext <<_ACEOF |
| 15550 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15551 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15552 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15553 | #define $ac_func innocuous_$ac_func |
| 15554 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15555 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15556 | which can conflict with char $ac_func (); below. |
| 15557 | 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] | 15558 | <limits.h> exists even on freestanding compilers. */ |
| 15559 | |
| 15560 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15561 | # include <limits.h> |
| 15562 | #else |
| 15563 | # include <assert.h> |
| 15564 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15565 | |
| 15566 | #undef $ac_func |
| 15567 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15568 | /* Override any GCC internal prototype to avoid an error. |
| 15569 | Use char because int might match the return type of a GCC |
| 15570 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15571 | #ifdef __cplusplus |
| 15572 | extern "C" |
| 15573 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15574 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15575 | /* The GNU C library defines this for functions which it implements |
| 15576 | to always fail with ENOSYS. Some functions are actually named |
| 15577 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15578 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15579 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15580 | #endif |
| 15581 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15582 | int |
| 15583 | main () |
| 15584 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15585 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15586 | ; |
| 15587 | return 0; |
| 15588 | } |
| 15589 | _ACEOF |
| 15590 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15591 | if { (ac_try="$ac_link" |
| 15592 | case "(($ac_try" in |
| 15593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15594 | *) ac_try_echo=$ac_try;; |
| 15595 | esac |
| 15596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15597 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15598 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15600 | rm -f conftest.er1 |
| 15601 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15603 | (exit $ac_status); } && { |
| 15604 | test -z "$ac_c_werror_flag" || |
| 15605 | test ! -s conftest.err |
| 15606 | } && test -s conftest$ac_exeext && |
| 15607 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15608 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15610 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15612 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15613 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15614 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15615 | |
| 15616 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15617 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15618 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15619 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15620 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15621 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15622 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15623 | cat >>confdefs.h <<_ACEOF |
| 15624 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15625 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15626 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15627 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15628 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15629 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15630 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15631 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 15632 | # loading of modules. |
| 15633 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15634 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 15635 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15636 | if test -z "$DYNLOADFILE" |
| 15637 | then |
| 15638 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 15639 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 15640 | if test "$ac_cv_func_dlopen" = yes |
| 15641 | then DYNLOADFILE="dynload_shlib.o" |
| 15642 | else DYNLOADFILE="dynload_aix.o" |
| 15643 | fi |
| 15644 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15645 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15646 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 15647 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15648 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15649 | *) |
| 15650 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 15651 | # out any dynamic loading |
| 15652 | if test "$ac_cv_func_dlopen" = yes |
| 15653 | then DYNLOADFILE="dynload_shlib.o" |
| 15654 | else DYNLOADFILE="dynload_stub.o" |
| 15655 | fi |
| 15656 | ;; |
| 15657 | esac |
| 15658 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15659 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 15660 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15661 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 15662 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15663 | |
| 15664 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15665 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15666 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 15667 | |
| 15668 | fi |
| 15669 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 15670 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 15671 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15672 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15673 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 15674 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 15675 | if test -z "$MACHDEP_OBJS" |
| 15676 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 15677 | MACHDEP_OBJS=$extra_machdep_objs |
| 15678 | else |
| 15679 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 15680 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15681 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 15682 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 15683 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15684 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15685 | |
| 15686 | |
| 15687 | |
| 15688 | |
| 15689 | |
| 15690 | |
| 15691 | |
| 15692 | |
| 15693 | |
| 15694 | |
| 15695 | |
| 15696 | |
| 15697 | |
| 15698 | |
| 15699 | |
| 15700 | |
| 15701 | |
| 15702 | |
| 15703 | |
| 15704 | |
| 15705 | |
| 15706 | |
| 15707 | |
| 15708 | |
| 15709 | |
| 15710 | |
| 15711 | |
| 15712 | |
| 15713 | |
| 15714 | |
| 15715 | |
| 15716 | |
| 15717 | |
| 15718 | |
| 15719 | |
| 15720 | |
| 15721 | |
| 15722 | |
| 15723 | |
| 15724 | |
| 15725 | |
| 15726 | |
| 15727 | |
| 15728 | |
| 15729 | |
| 15730 | |
| 15731 | |
| 15732 | |
| 15733 | |
| 15734 | |
| 15735 | |
| 15736 | |
| 15737 | |
| 15738 | |
| 15739 | |
| 15740 | |
| 15741 | |
| 15742 | |
| 15743 | |
| 15744 | |
| 15745 | |
| 15746 | |
| 15747 | |
| 15748 | |
| 15749 | |
| 15750 | |
| 15751 | |
| 15752 | |
| 15753 | |
| 15754 | |
| 15755 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 15756 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 15757 | |
| 15758 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15759 | |
| 15760 | |
Thomas Wouters | cf297e4 | 2007-02-23 15:07:44 +0000 | [diff] [blame] | 15761 | |
| 15762 | |
Gregory P. Smith | 25523d2 | 2007-09-03 16:44:55 +0000 | [diff] [blame] | 15763 | |
Christian Heimes | 4e30a84 | 2007-11-30 22:12:06 +0000 | [diff] [blame] | 15764 | |
Martin v. Löwis | 92fab75 | 2008-03-08 10:40:41 +0000 | [diff] [blame] | 15765 | |
Martin v. Löwis | 823725e | 2008-03-24 13:39:54 +0000 | [diff] [blame] | 15766 | |
| 15767 | |
| 15768 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 15769 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 15770 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 15771 | getpriority getpwent getspnam getspent getsid getwd \ |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 15772 | kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 15773 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 15774 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15775 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 15776 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Gregory P. Smith | 25523d2 | 2007-09-03 16:44:55 +0000 | [diff] [blame] | 15777 | sigaction siginterrupt sigrelse strftime strlcpy \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 15778 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 92fab75 | 2008-03-08 10:40:41 +0000 | [diff] [blame] | 15779 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll wcsxfrm _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15780 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15781 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15782 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15783 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 15784 | 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] | 15785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15787 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15788 | /* confdefs.h. */ |
| 15789 | _ACEOF |
| 15790 | cat confdefs.h >>conftest.$ac_ext |
| 15791 | cat >>conftest.$ac_ext <<_ACEOF |
| 15792 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15793 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15794 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15795 | #define $ac_func innocuous_$ac_func |
| 15796 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15797 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15798 | which can conflict with char $ac_func (); below. |
| 15799 | 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] | 15800 | <limits.h> exists even on freestanding compilers. */ |
| 15801 | |
| 15802 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15803 | # include <limits.h> |
| 15804 | #else |
| 15805 | # include <assert.h> |
| 15806 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15807 | |
| 15808 | #undef $ac_func |
| 15809 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15810 | /* Override any GCC internal prototype to avoid an error. |
| 15811 | Use char because int might match the return type of a GCC |
| 15812 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15813 | #ifdef __cplusplus |
| 15814 | extern "C" |
| 15815 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15816 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15817 | /* The GNU C library defines this for functions which it implements |
| 15818 | to always fail with ENOSYS. Some functions are actually named |
| 15819 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15820 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15821 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15822 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15823 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15824 | int |
| 15825 | main () |
| 15826 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15827 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15828 | ; |
| 15829 | return 0; |
| 15830 | } |
| 15831 | _ACEOF |
| 15832 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15833 | if { (ac_try="$ac_link" |
| 15834 | case "(($ac_try" in |
| 15835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15836 | *) ac_try_echo=$ac_try;; |
| 15837 | esac |
| 15838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15839 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15840 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15842 | rm -f conftest.er1 |
| 15843 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15845 | (exit $ac_status); } && { |
| 15846 | test -z "$ac_c_werror_flag" || |
| 15847 | test ! -s conftest.err |
| 15848 | } && test -s conftest$ac_exeext && |
| 15849 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15850 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15851 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15852 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15854 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15855 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15856 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15857 | |
| 15858 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15859 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15860 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15861 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15862 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15863 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15864 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15865 | cat >>confdefs.h <<_ACEOF |
| 15866 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15867 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15868 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15869 | fi |
| 15870 | done |
| 15871 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15872 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15873 | # For some functions, having a definition is not sufficient, since |
| 15874 | # we want to take their address. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15875 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 15876 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15877 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15878 | /* confdefs.h. */ |
| 15879 | _ACEOF |
| 15880 | cat confdefs.h >>conftest.$ac_ext |
| 15881 | cat >>conftest.$ac_ext <<_ACEOF |
| 15882 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15883 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15884 | int |
| 15885 | main () |
| 15886 | { |
| 15887 | void *x=chroot |
| 15888 | ; |
| 15889 | return 0; |
| 15890 | } |
| 15891 | _ACEOF |
| 15892 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15893 | if { (ac_try="$ac_compile" |
| 15894 | case "(($ac_try" in |
| 15895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15896 | *) ac_try_echo=$ac_try;; |
| 15897 | esac |
| 15898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15899 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15900 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15902 | rm -f conftest.er1 |
| 15903 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15905 | (exit $ac_status); } && { |
| 15906 | test -z "$ac_c_werror_flag" || |
| 15907 | test ! -s conftest.err |
| 15908 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15909 | |
| 15910 | cat >>confdefs.h <<\_ACEOF |
| 15911 | #define HAVE_CHROOT 1 |
| 15912 | _ACEOF |
| 15913 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15914 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15915 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15916 | else |
| 15917 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15919 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15920 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15921 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15922 | |
| 15923 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15924 | |
| 15925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15926 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 15927 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15928 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15929 | /* confdefs.h. */ |
| 15930 | _ACEOF |
| 15931 | cat confdefs.h >>conftest.$ac_ext |
| 15932 | cat >>conftest.$ac_ext <<_ACEOF |
| 15933 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15934 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15935 | int |
| 15936 | main () |
| 15937 | { |
| 15938 | void *x=link |
| 15939 | ; |
| 15940 | return 0; |
| 15941 | } |
| 15942 | _ACEOF |
| 15943 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15944 | if { (ac_try="$ac_compile" |
| 15945 | case "(($ac_try" in |
| 15946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15947 | *) ac_try_echo=$ac_try;; |
| 15948 | esac |
| 15949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15950 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15951 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15953 | rm -f conftest.er1 |
| 15954 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15956 | (exit $ac_status); } && { |
| 15957 | test -z "$ac_c_werror_flag" || |
| 15958 | test ! -s conftest.err |
| 15959 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15960 | |
| 15961 | cat >>confdefs.h <<\_ACEOF |
| 15962 | #define HAVE_LINK 1 |
| 15963 | _ACEOF |
| 15964 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15965 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15966 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15967 | else |
| 15968 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15970 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15971 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15972 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15973 | |
| 15974 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15975 | |
| 15976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15977 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 15978 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15979 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15980 | /* confdefs.h. */ |
| 15981 | _ACEOF |
| 15982 | cat confdefs.h >>conftest.$ac_ext |
| 15983 | cat >>conftest.$ac_ext <<_ACEOF |
| 15984 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15985 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15986 | int |
| 15987 | main () |
| 15988 | { |
| 15989 | void *x=symlink |
| 15990 | ; |
| 15991 | return 0; |
| 15992 | } |
| 15993 | _ACEOF |
| 15994 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 15995 | if { (ac_try="$ac_compile" |
| 15996 | case "(($ac_try" in |
| 15997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15998 | *) ac_try_echo=$ac_try;; |
| 15999 | esac |
| 16000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16001 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16002 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16004 | rm -f conftest.er1 |
| 16005 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16007 | (exit $ac_status); } && { |
| 16008 | test -z "$ac_c_werror_flag" || |
| 16009 | test ! -s conftest.err |
| 16010 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16011 | |
| 16012 | cat >>confdefs.h <<\_ACEOF |
| 16013 | #define HAVE_SYMLINK 1 |
| 16014 | _ACEOF |
| 16015 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16016 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16017 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16018 | else |
| 16019 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16021 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16022 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16023 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16024 | |
| 16025 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16026 | |
| 16027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16028 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 16029 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16030 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16031 | /* confdefs.h. */ |
| 16032 | _ACEOF |
| 16033 | cat confdefs.h >>conftest.$ac_ext |
| 16034 | cat >>conftest.$ac_ext <<_ACEOF |
| 16035 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16036 | #include <unistd.h> |
| 16037 | int |
| 16038 | main () |
| 16039 | { |
| 16040 | void *x=fchdir |
| 16041 | ; |
| 16042 | return 0; |
| 16043 | } |
| 16044 | _ACEOF |
| 16045 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16046 | if { (ac_try="$ac_compile" |
| 16047 | case "(($ac_try" in |
| 16048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16049 | *) ac_try_echo=$ac_try;; |
| 16050 | esac |
| 16051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16052 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16053 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16055 | rm -f conftest.er1 |
| 16056 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16058 | (exit $ac_status); } && { |
| 16059 | test -z "$ac_c_werror_flag" || |
| 16060 | test ! -s conftest.err |
| 16061 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16062 | |
| 16063 | cat >>confdefs.h <<\_ACEOF |
| 16064 | #define HAVE_FCHDIR 1 |
| 16065 | _ACEOF |
| 16066 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16067 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16068 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16069 | else |
| 16070 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16072 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16073 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16074 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16075 | |
| 16076 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16077 | |
| 16078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16079 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 16080 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16081 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16082 | /* confdefs.h. */ |
| 16083 | _ACEOF |
| 16084 | cat confdefs.h >>conftest.$ac_ext |
| 16085 | cat >>conftest.$ac_ext <<_ACEOF |
| 16086 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16087 | #include <unistd.h> |
| 16088 | int |
| 16089 | main () |
| 16090 | { |
| 16091 | void *x=fsync |
| 16092 | ; |
| 16093 | return 0; |
| 16094 | } |
| 16095 | _ACEOF |
| 16096 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16097 | if { (ac_try="$ac_compile" |
| 16098 | case "(($ac_try" in |
| 16099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16100 | *) ac_try_echo=$ac_try;; |
| 16101 | esac |
| 16102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16103 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16104 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16106 | rm -f conftest.er1 |
| 16107 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16109 | (exit $ac_status); } && { |
| 16110 | test -z "$ac_c_werror_flag" || |
| 16111 | test ! -s conftest.err |
| 16112 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16113 | |
| 16114 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16115 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16116 | _ACEOF |
| 16117 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16118 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16119 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16120 | else |
| 16121 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16123 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16124 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16125 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16126 | |
| 16127 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16128 | |
| 16129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16130 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 16131 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16132 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16133 | /* confdefs.h. */ |
| 16134 | _ACEOF |
| 16135 | cat confdefs.h >>conftest.$ac_ext |
| 16136 | cat >>conftest.$ac_ext <<_ACEOF |
| 16137 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16138 | #include <unistd.h> |
| 16139 | int |
| 16140 | main () |
| 16141 | { |
| 16142 | void *x=fdatasync |
| 16143 | ; |
| 16144 | return 0; |
| 16145 | } |
| 16146 | _ACEOF |
| 16147 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16148 | if { (ac_try="$ac_compile" |
| 16149 | case "(($ac_try" in |
| 16150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16151 | *) ac_try_echo=$ac_try;; |
| 16152 | esac |
| 16153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16154 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16155 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16157 | rm -f conftest.er1 |
| 16158 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16160 | (exit $ac_status); } && { |
| 16161 | test -z "$ac_c_werror_flag" || |
| 16162 | test ! -s conftest.err |
| 16163 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16164 | |
| 16165 | cat >>confdefs.h <<\_ACEOF |
| 16166 | #define HAVE_FDATASYNC 1 |
| 16167 | _ACEOF |
| 16168 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16169 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16170 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16171 | else |
| 16172 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16174 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16175 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16176 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 16177 | |
| 16178 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16179 | |
| 16180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16181 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 16182 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
| 16183 | cat >conftest.$ac_ext <<_ACEOF |
| 16184 | /* confdefs.h. */ |
| 16185 | _ACEOF |
| 16186 | cat confdefs.h >>conftest.$ac_ext |
| 16187 | cat >>conftest.$ac_ext <<_ACEOF |
| 16188 | /* end confdefs.h. */ |
| 16189 | #include <sys/epoll.h> |
| 16190 | int |
| 16191 | main () |
| 16192 | { |
| 16193 | void *x=epoll_create |
| 16194 | ; |
| 16195 | return 0; |
| 16196 | } |
| 16197 | _ACEOF |
| 16198 | rm -f conftest.$ac_objext |
| 16199 | if { (ac_try="$ac_compile" |
| 16200 | case "(($ac_try" in |
| 16201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16202 | *) ac_try_echo=$ac_try;; |
| 16203 | esac |
| 16204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16205 | (eval "$ac_compile") 2>conftest.er1 |
| 16206 | ac_status=$? |
| 16207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16208 | rm -f conftest.er1 |
| 16209 | cat conftest.err >&5 |
| 16210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16211 | (exit $ac_status); } && { |
| 16212 | test -z "$ac_c_werror_flag" || |
| 16213 | test ! -s conftest.err |
| 16214 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 16215 | |
Christian Heimes | 4fbc72b | 2008-03-22 00:47:35 +0000 | [diff] [blame] | 16216 | cat >>confdefs.h <<\_ACEOF |
| 16217 | #define HAVE_EPOLL 1 |
| 16218 | _ACEOF |
| 16219 | |
| 16220 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16221 | echo "${ECHO_T}yes" >&6; } |
| 16222 | else |
| 16223 | echo "$as_me: failed program was:" >&5 |
| 16224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16225 | |
| 16226 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16227 | echo "${ECHO_T}no" >&6; } |
| 16228 | |
| 16229 | fi |
| 16230 | |
| 16231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16232 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 16233 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
| 16234 | cat >conftest.$ac_ext <<_ACEOF |
| 16235 | /* confdefs.h. */ |
| 16236 | _ACEOF |
| 16237 | cat confdefs.h >>conftest.$ac_ext |
| 16238 | cat >>conftest.$ac_ext <<_ACEOF |
| 16239 | /* end confdefs.h. */ |
| 16240 | |
| 16241 | #include <sys/types.h> |
| 16242 | #include <sys/event.h> |
| 16243 | |
| 16244 | int |
| 16245 | main () |
| 16246 | { |
| 16247 | int x=kqueue() |
| 16248 | ; |
| 16249 | return 0; |
| 16250 | } |
| 16251 | _ACEOF |
| 16252 | rm -f conftest.$ac_objext |
| 16253 | if { (ac_try="$ac_compile" |
| 16254 | case "(($ac_try" in |
| 16255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16256 | *) ac_try_echo=$ac_try;; |
| 16257 | esac |
| 16258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16259 | (eval "$ac_compile") 2>conftest.er1 |
| 16260 | ac_status=$? |
| 16261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16262 | rm -f conftest.er1 |
| 16263 | cat conftest.err >&5 |
| 16264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16265 | (exit $ac_status); } && { |
| 16266 | test -z "$ac_c_werror_flag" || |
| 16267 | test ! -s conftest.err |
| 16268 | } && test -s conftest.$ac_objext; then |
| 16269 | |
| 16270 | cat >>confdefs.h <<\_ACEOF |
| 16271 | #define HAVE_KQUEUE 1 |
| 16272 | _ACEOF |
| 16273 | |
| 16274 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16275 | echo "${ECHO_T}yes" >&6; } |
| 16276 | else |
| 16277 | echo "$as_me: failed program was:" >&5 |
| 16278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16279 | |
| 16280 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16281 | echo "${ECHO_T}no" >&6; } |
| 16282 | |
| 16283 | fi |
| 16284 | |
| 16285 | 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] | 16286 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 16287 | # functions ctermid_r, setgroups in the library, but no prototype |
| 16288 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 16289 | # address to avoid compiler warnings and potential miscompilations |
| 16290 | # because of the missing prototypes. |
| 16291 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16292 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 16293 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16294 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16295 | /* confdefs.h. */ |
| 16296 | _ACEOF |
| 16297 | cat confdefs.h >>conftest.$ac_ext |
| 16298 | cat >>conftest.$ac_ext <<_ACEOF |
| 16299 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16300 | |
| 16301 | #include "confdefs.h" |
| 16302 | #include <stdio.h> |
| 16303 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16304 | int |
| 16305 | main () |
| 16306 | { |
| 16307 | void* p = ctermid_r |
| 16308 | ; |
| 16309 | return 0; |
| 16310 | } |
| 16311 | _ACEOF |
| 16312 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16313 | if { (ac_try="$ac_compile" |
| 16314 | case "(($ac_try" in |
| 16315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16316 | *) ac_try_echo=$ac_try;; |
| 16317 | esac |
| 16318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16319 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16320 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16322 | rm -f conftest.er1 |
| 16323 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16325 | (exit $ac_status); } && { |
| 16326 | test -z "$ac_c_werror_flag" || |
| 16327 | test ! -s conftest.err |
| 16328 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16329 | |
| 16330 | cat >>confdefs.h <<\_ACEOF |
| 16331 | #define HAVE_CTERMID_R 1 |
| 16332 | _ACEOF |
| 16333 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16334 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16335 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16336 | else |
| 16337 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16339 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16340 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16341 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16342 | |
| 16343 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16344 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16346 | |
| 16347 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 16348 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16349 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16350 | /* confdefs.h. */ |
| 16351 | _ACEOF |
| 16352 | cat confdefs.h >>conftest.$ac_ext |
| 16353 | cat >>conftest.$ac_ext <<_ACEOF |
| 16354 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16355 | |
| 16356 | #include "confdefs.h" |
| 16357 | #include <sys/file.h> |
| 16358 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16359 | int |
| 16360 | main () |
| 16361 | { |
| 16362 | void* p = flock |
| 16363 | ; |
| 16364 | return 0; |
| 16365 | } |
| 16366 | _ACEOF |
| 16367 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16368 | if { (ac_try="$ac_compile" |
| 16369 | case "(($ac_try" in |
| 16370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16371 | *) ac_try_echo=$ac_try;; |
| 16372 | esac |
| 16373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16374 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16375 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16377 | rm -f conftest.er1 |
| 16378 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16380 | (exit $ac_status); } && { |
| 16381 | test -z "$ac_c_werror_flag" || |
| 16382 | test ! -s conftest.err |
| 16383 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16384 | |
| 16385 | cat >>confdefs.h <<\_ACEOF |
| 16386 | #define HAVE_FLOCK 1 |
| 16387 | _ACEOF |
| 16388 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16389 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16390 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16391 | else |
| 16392 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16394 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16395 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16396 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16397 | |
| 16398 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16399 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16401 | |
| 16402 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 16403 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16404 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16405 | /* confdefs.h. */ |
| 16406 | _ACEOF |
| 16407 | cat confdefs.h >>conftest.$ac_ext |
| 16408 | cat >>conftest.$ac_ext <<_ACEOF |
| 16409 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16410 | |
| 16411 | #include "confdefs.h" |
| 16412 | #include <unistd.h> |
| 16413 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16414 | int |
| 16415 | main () |
| 16416 | { |
| 16417 | void* p = getpagesize |
| 16418 | ; |
| 16419 | return 0; |
| 16420 | } |
| 16421 | _ACEOF |
| 16422 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16423 | if { (ac_try="$ac_compile" |
| 16424 | case "(($ac_try" in |
| 16425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16426 | *) ac_try_echo=$ac_try;; |
| 16427 | esac |
| 16428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16429 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16430 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16432 | rm -f conftest.er1 |
| 16433 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16435 | (exit $ac_status); } && { |
| 16436 | test -z "$ac_c_werror_flag" || |
| 16437 | test ! -s conftest.err |
| 16438 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16439 | |
| 16440 | cat >>confdefs.h <<\_ACEOF |
| 16441 | #define HAVE_GETPAGESIZE 1 |
| 16442 | _ACEOF |
| 16443 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16444 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16445 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16446 | else |
| 16447 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16449 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16450 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16451 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 16452 | |
| 16453 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16454 | |
| 16455 | 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] | 16456 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16457 | for ac_prog in true |
| 16458 | do |
| 16459 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 16460 | set dummy $ac_prog; ac_word=$2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16461 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 16462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16463 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 16464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16465 | else |
| 16466 | if test -n "$TRUE"; then |
| 16467 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 16468 | else |
| 16469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16470 | for as_dir in $PATH |
| 16471 | do |
| 16472 | IFS=$as_save_IFS |
| 16473 | test -z "$as_dir" && as_dir=. |
| 16474 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16475 | 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] | 16476 | ac_cv_prog_TRUE="$ac_prog" |
| 16477 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16478 | break 2 |
| 16479 | fi |
| 16480 | done |
| 16481 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16482 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16483 | |
| 16484 | fi |
| 16485 | fi |
| 16486 | TRUE=$ac_cv_prog_TRUE |
| 16487 | if test -n "$TRUE"; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16488 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 16489 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16490 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16491 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16492 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16493 | fi |
| 16494 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16495 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16496 | test -n "$TRUE" && break |
| 16497 | done |
| 16498 | test -n "$TRUE" || TRUE="/bin/true" |
| 16499 | |
| 16500 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16501 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 16502 | 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] | 16503 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 16504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16505 | else |
| 16506 | ac_check_lib_save_LIBS=$LIBS |
| 16507 | LIBS="-lc $LIBS" |
| 16508 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16509 | /* confdefs.h. */ |
| 16510 | _ACEOF |
| 16511 | cat confdefs.h >>conftest.$ac_ext |
| 16512 | cat >>conftest.$ac_ext <<_ACEOF |
| 16513 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16514 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16515 | /* Override any GCC internal prototype to avoid an error. |
| 16516 | Use char because int might match the return type of a GCC |
| 16517 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16518 | #ifdef __cplusplus |
| 16519 | extern "C" |
| 16520 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16521 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16522 | int |
| 16523 | main () |
| 16524 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16525 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16526 | ; |
| 16527 | return 0; |
| 16528 | } |
| 16529 | _ACEOF |
| 16530 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16531 | if { (ac_try="$ac_link" |
| 16532 | case "(($ac_try" in |
| 16533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16534 | *) ac_try_echo=$ac_try;; |
| 16535 | esac |
| 16536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16537 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16538 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16540 | rm -f conftest.er1 |
| 16541 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16543 | (exit $ac_status); } && { |
| 16544 | test -z "$ac_c_werror_flag" || |
| 16545 | test ! -s conftest.err |
| 16546 | } && test -s conftest$ac_exeext && |
| 16547 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16548 | ac_cv_lib_c_inet_aton=yes |
| 16549 | else |
| 16550 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16552 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16553 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16554 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16555 | |
| 16556 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16557 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16558 | LIBS=$ac_check_lib_save_LIBS |
| 16559 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16560 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 16561 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16562 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16563 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16564 | else |
| 16565 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16566 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 16567 | 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] | 16568 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 16569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16570 | else |
| 16571 | ac_check_lib_save_LIBS=$LIBS |
| 16572 | LIBS="-lresolv $LIBS" |
| 16573 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16574 | /* confdefs.h. */ |
| 16575 | _ACEOF |
| 16576 | cat confdefs.h >>conftest.$ac_ext |
| 16577 | cat >>conftest.$ac_ext <<_ACEOF |
| 16578 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16579 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16580 | /* Override any GCC internal prototype to avoid an error. |
| 16581 | Use char because int might match the return type of a GCC |
| 16582 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16583 | #ifdef __cplusplus |
| 16584 | extern "C" |
| 16585 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16586 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16587 | int |
| 16588 | main () |
| 16589 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16590 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16591 | ; |
| 16592 | return 0; |
| 16593 | } |
| 16594 | _ACEOF |
| 16595 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16596 | if { (ac_try="$ac_link" |
| 16597 | case "(($ac_try" in |
| 16598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16599 | *) ac_try_echo=$ac_try;; |
| 16600 | esac |
| 16601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16602 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16603 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16605 | rm -f conftest.er1 |
| 16606 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16608 | (exit $ac_status); } && { |
| 16609 | test -z "$ac_c_werror_flag" || |
| 16610 | test ! -s conftest.err |
| 16611 | } && test -s conftest$ac_exeext && |
| 16612 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16613 | ac_cv_lib_resolv_inet_aton=yes |
| 16614 | else |
| 16615 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16617 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16618 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16619 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16620 | |
| 16621 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16622 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16623 | LIBS=$ac_check_lib_save_LIBS |
| 16624 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16625 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 16626 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16627 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 16628 | cat >>confdefs.h <<_ACEOF |
| 16629 | #define HAVE_LIBRESOLV 1 |
| 16630 | _ACEOF |
| 16631 | |
| 16632 | LIBS="-lresolv $LIBS" |
| 16633 | |
| 16634 | fi |
| 16635 | |
| 16636 | |
| 16637 | fi |
| 16638 | |
| 16639 | |
Christian Heimes | d0764e2 | 2007-12-04 15:00:33 +0000 | [diff] [blame] | 16640 | # On Tru64, chflags seems to be present, but calling it will |
| 16641 | # exit Python |
| 16642 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 16643 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
| 16644 | if test "$cross_compiling" = yes; then |
| 16645 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 16646 | See \`config.log' for more details." >&5 |
| 16647 | echo "$as_me: error: cannot run test program while cross compiling |
| 16648 | See \`config.log' for more details." >&2;} |
| 16649 | { (exit 1); exit 1; }; } |
| 16650 | else |
| 16651 | cat >conftest.$ac_ext <<_ACEOF |
| 16652 | /* confdefs.h. */ |
| 16653 | _ACEOF |
| 16654 | cat confdefs.h >>conftest.$ac_ext |
| 16655 | cat >>conftest.$ac_ext <<_ACEOF |
| 16656 | /* end confdefs.h. */ |
| 16657 | |
| 16658 | #include <sys/stat.h> |
| 16659 | #include <unistd.h> |
| 16660 | int main(int argc, char*argv[]) |
| 16661 | { |
| 16662 | if(chflags(argv[0], 0) != 0) |
| 16663 | return 1; |
| 16664 | return 0; |
| 16665 | } |
| 16666 | |
| 16667 | _ACEOF |
| 16668 | rm -f conftest$ac_exeext |
| 16669 | if { (ac_try="$ac_link" |
| 16670 | case "(($ac_try" in |
| 16671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16672 | *) ac_try_echo=$ac_try;; |
| 16673 | esac |
| 16674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16675 | (eval "$ac_link") 2>&5 |
| 16676 | ac_status=$? |
| 16677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16678 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16679 | { (case "(($ac_try" in |
| 16680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16681 | *) ac_try_echo=$ac_try;; |
| 16682 | esac |
| 16683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16684 | (eval "$ac_try") 2>&5 |
| 16685 | ac_status=$? |
| 16686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16687 | (exit $ac_status); }; }; then |
| 16688 | |
| 16689 | cat >>confdefs.h <<\_ACEOF |
| 16690 | #define HAVE_CHFLAGS 1 |
| 16691 | _ACEOF |
| 16692 | |
| 16693 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16694 | echo "${ECHO_T}yes" >&6; } |
| 16695 | else |
| 16696 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16697 | echo "$as_me: failed program was:" >&5 |
| 16698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16699 | |
| 16700 | ( exit $ac_status ) |
| 16701 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16702 | echo "${ECHO_T}no" >&6; } |
| 16703 | |
| 16704 | fi |
| 16705 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16706 | fi |
| 16707 | |
| 16708 | |
| 16709 | |
| 16710 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 16711 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
| 16712 | if test "$cross_compiling" = yes; then |
| 16713 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 16714 | See \`config.log' for more details." >&5 |
| 16715 | echo "$as_me: error: cannot run test program while cross compiling |
| 16716 | See \`config.log' for more details." >&2;} |
| 16717 | { (exit 1); exit 1; }; } |
| 16718 | else |
| 16719 | cat >conftest.$ac_ext <<_ACEOF |
| 16720 | /* confdefs.h. */ |
| 16721 | _ACEOF |
| 16722 | cat confdefs.h >>conftest.$ac_ext |
| 16723 | cat >>conftest.$ac_ext <<_ACEOF |
| 16724 | /* end confdefs.h. */ |
| 16725 | |
| 16726 | #include <sys/stat.h> |
| 16727 | #include <unistd.h> |
| 16728 | int main(int argc, char*argv[]) |
| 16729 | { |
| 16730 | if(lchflags(argv[0], 0) != 0) |
| 16731 | return 1; |
| 16732 | return 0; |
| 16733 | } |
| 16734 | |
| 16735 | _ACEOF |
| 16736 | rm -f conftest$ac_exeext |
| 16737 | if { (ac_try="$ac_link" |
| 16738 | case "(($ac_try" in |
| 16739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16740 | *) ac_try_echo=$ac_try;; |
| 16741 | esac |
| 16742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16743 | (eval "$ac_link") 2>&5 |
| 16744 | ac_status=$? |
| 16745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16746 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16747 | { (case "(($ac_try" in |
| 16748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16749 | *) ac_try_echo=$ac_try;; |
| 16750 | esac |
| 16751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16752 | (eval "$ac_try") 2>&5 |
| 16753 | ac_status=$? |
| 16754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16755 | (exit $ac_status); }; }; then |
| 16756 | |
| 16757 | cat >>confdefs.h <<\_ACEOF |
| 16758 | #define HAVE_LCHFLAGS 1 |
| 16759 | _ACEOF |
| 16760 | |
| 16761 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16762 | echo "${ECHO_T}yes" >&6; } |
| 16763 | else |
| 16764 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16765 | echo "$as_me: failed program was:" >&5 |
| 16766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16767 | |
| 16768 | ( exit $ac_status ) |
| 16769 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16770 | echo "${ECHO_T}no" >&6; } |
| 16771 | |
| 16772 | fi |
| 16773 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16774 | fi |
| 16775 | |
| 16776 | |
| 16777 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16778 | case $ac_sys_system/$ac_sys_release in |
| 16779 | Darwin/*) |
| 16780 | _CUR_CFLAGS="${CFLAGS}" |
| 16781 | _CUR_LDFLAGS="${LDFLAGS}" |
| 16782 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 16783 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 16784 | ;; |
| 16785 | esac |
| 16786 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16787 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 16788 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16789 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
| 16790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16791 | else |
| 16792 | ac_check_lib_save_LIBS=$LIBS |
| 16793 | LIBS="-lz $LIBS" |
| 16794 | cat >conftest.$ac_ext <<_ACEOF |
| 16795 | /* confdefs.h. */ |
| 16796 | _ACEOF |
| 16797 | cat confdefs.h >>conftest.$ac_ext |
| 16798 | cat >>conftest.$ac_ext <<_ACEOF |
| 16799 | /* end confdefs.h. */ |
| 16800 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16801 | /* Override any GCC internal prototype to avoid an error. |
| 16802 | Use char because int might match the return type of a GCC |
| 16803 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16804 | #ifdef __cplusplus |
| 16805 | extern "C" |
| 16806 | #endif |
| 16807 | char inflateCopy (); |
| 16808 | int |
| 16809 | main () |
| 16810 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16811 | return inflateCopy (); |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16812 | ; |
| 16813 | return 0; |
| 16814 | } |
| 16815 | _ACEOF |
| 16816 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16817 | if { (ac_try="$ac_link" |
| 16818 | case "(($ac_try" in |
| 16819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16820 | *) ac_try_echo=$ac_try;; |
| 16821 | esac |
| 16822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16823 | (eval "$ac_link") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16824 | ac_status=$? |
| 16825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16826 | rm -f conftest.er1 |
| 16827 | cat conftest.err >&5 |
| 16828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16829 | (exit $ac_status); } && { |
| 16830 | test -z "$ac_c_werror_flag" || |
| 16831 | test ! -s conftest.err |
| 16832 | } && test -s conftest$ac_exeext && |
| 16833 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16834 | ac_cv_lib_z_inflateCopy=yes |
| 16835 | else |
| 16836 | echo "$as_me: failed program was:" >&5 |
| 16837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16838 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16839 | ac_cv_lib_z_inflateCopy=no |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16840 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16841 | |
| 16842 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16843 | conftest$ac_exeext conftest.$ac_ext |
| 16844 | LIBS=$ac_check_lib_save_LIBS |
| 16845 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16846 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 16847 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16848 | if test $ac_cv_lib_z_inflateCopy = yes; then |
| 16849 | |
| 16850 | cat >>confdefs.h <<\_ACEOF |
| 16851 | #define HAVE_ZLIB_COPY 1 |
| 16852 | _ACEOF |
| 16853 | |
| 16854 | fi |
| 16855 | |
| 16856 | |
| 16857 | case $ac_sys_system/$ac_sys_release in |
| 16858 | Darwin/*) |
| 16859 | CFLAGS="${_CUR_CFLAGS}" |
| 16860 | LDFLAGS="${_CUR_LDFLAGS}" |
| 16861 | ;; |
| 16862 | esac |
| 16863 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16864 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 16865 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16866 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16867 | /* confdefs.h. */ |
| 16868 | _ACEOF |
| 16869 | cat confdefs.h >>conftest.$ac_ext |
| 16870 | cat >>conftest.$ac_ext <<_ACEOF |
| 16871 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16872 | |
| 16873 | #include "confdefs.h" |
| 16874 | #include <netdb.h> |
| 16875 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16876 | int |
| 16877 | main () |
| 16878 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16879 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16880 | ; |
| 16881 | return 0; |
| 16882 | } |
| 16883 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16884 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16885 | if { (ac_try="$ac_link" |
| 16886 | case "(($ac_try" in |
| 16887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16888 | *) ac_try_echo=$ac_try;; |
| 16889 | esac |
| 16890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16891 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16892 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16894 | rm -f conftest.er1 |
| 16895 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16897 | (exit $ac_status); } && { |
| 16898 | test -z "$ac_c_werror_flag" || |
| 16899 | test ! -s conftest.err |
| 16900 | } && test -s conftest$ac_exeext && |
| 16901 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16902 | |
| 16903 | cat >>confdefs.h <<\_ACEOF |
| 16904 | #define HAVE_HSTRERROR 1 |
| 16905 | _ACEOF |
| 16906 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16907 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16908 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16909 | else |
| 16910 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16912 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16913 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16914 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16915 | |
| 16916 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16917 | |
| 16918 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16919 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16920 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16921 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 16922 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16923 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16924 | /* confdefs.h. */ |
| 16925 | _ACEOF |
| 16926 | cat confdefs.h >>conftest.$ac_ext |
| 16927 | cat >>conftest.$ac_ext <<_ACEOF |
| 16928 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16929 | |
| 16930 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 16931 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16932 | #include <sys/socket.h> |
| 16933 | #include <netinet/in.h> |
| 16934 | #include <arpa/inet.h> |
| 16935 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16936 | int |
| 16937 | main () |
| 16938 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16939 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16940 | ; |
| 16941 | return 0; |
| 16942 | } |
| 16943 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16944 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16945 | if { (ac_try="$ac_link" |
| 16946 | case "(($ac_try" in |
| 16947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16948 | *) ac_try_echo=$ac_try;; |
| 16949 | esac |
| 16950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16951 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16952 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16954 | rm -f conftest.er1 |
| 16955 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16957 | (exit $ac_status); } && { |
| 16958 | test -z "$ac_c_werror_flag" || |
| 16959 | test ! -s conftest.err |
| 16960 | } && test -s conftest$ac_exeext && |
| 16961 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16962 | |
| 16963 | cat >>confdefs.h <<\_ACEOF |
| 16964 | #define HAVE_INET_ATON 1 |
| 16965 | _ACEOF |
| 16966 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16967 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16968 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16969 | else |
| 16970 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16972 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16973 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16974 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16975 | |
| 16976 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16977 | |
| 16978 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16979 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16980 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 16981 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 16982 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16983 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16984 | /* confdefs.h. */ |
| 16985 | _ACEOF |
| 16986 | cat confdefs.h >>conftest.$ac_ext |
| 16987 | cat >>conftest.$ac_ext <<_ACEOF |
| 16988 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16989 | |
| 16990 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 16991 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16992 | #include <sys/socket.h> |
| 16993 | #include <netinet/in.h> |
| 16994 | #include <arpa/inet.h> |
| 16995 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16996 | int |
| 16997 | main () |
| 16998 | { |
| 16999 | void* p = inet_pton |
| 17000 | ; |
| 17001 | return 0; |
| 17002 | } |
| 17003 | _ACEOF |
| 17004 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17005 | if { (ac_try="$ac_compile" |
| 17006 | case "(($ac_try" in |
| 17007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17008 | *) ac_try_echo=$ac_try;; |
| 17009 | esac |
| 17010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17011 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17012 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17014 | rm -f conftest.er1 |
| 17015 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17017 | (exit $ac_status); } && { |
| 17018 | test -z "$ac_c_werror_flag" || |
| 17019 | test ! -s conftest.err |
| 17020 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17021 | |
| 17022 | cat >>confdefs.h <<\_ACEOF |
| 17023 | #define HAVE_INET_PTON 1 |
| 17024 | _ACEOF |
| 17025 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17026 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17027 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17028 | else |
| 17029 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17031 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17032 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17033 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 17034 | |
| 17035 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17036 | |
| 17037 | 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] | 17038 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 17039 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17040 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 17041 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17042 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17043 | /* confdefs.h. */ |
| 17044 | _ACEOF |
| 17045 | cat confdefs.h >>conftest.$ac_ext |
| 17046 | cat >>conftest.$ac_ext <<_ACEOF |
| 17047 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17048 | |
| 17049 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 17050 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 17051 | #ifdef HAVE_GRP_H |
| 17052 | #include <grp.h> |
| 17053 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17054 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17055 | int |
| 17056 | main () |
| 17057 | { |
| 17058 | void* p = setgroups |
| 17059 | ; |
| 17060 | return 0; |
| 17061 | } |
| 17062 | _ACEOF |
| 17063 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17064 | if { (ac_try="$ac_compile" |
| 17065 | case "(($ac_try" in |
| 17066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17067 | *) ac_try_echo=$ac_try;; |
| 17068 | esac |
| 17069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17070 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17071 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17073 | rm -f conftest.er1 |
| 17074 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17076 | (exit $ac_status); } && { |
| 17077 | test -z "$ac_c_werror_flag" || |
| 17078 | test ! -s conftest.err |
| 17079 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17080 | |
| 17081 | cat >>confdefs.h <<\_ACEOF |
| 17082 | #define HAVE_SETGROUPS 1 |
| 17083 | _ACEOF |
| 17084 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17085 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17086 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17087 | else |
| 17088 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17090 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17091 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17092 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 17093 | |
| 17094 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17095 | |
| 17096 | 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] | 17097 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17098 | # check for openpty and forkpty |
| 17099 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17100 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17101 | for ac_func in openpty |
| 17102 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17103 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17104 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17105 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17106 | 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] | 17107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17108 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17109 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17110 | /* confdefs.h. */ |
| 17111 | _ACEOF |
| 17112 | cat confdefs.h >>conftest.$ac_ext |
| 17113 | cat >>conftest.$ac_ext <<_ACEOF |
| 17114 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17115 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17116 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17117 | #define $ac_func innocuous_$ac_func |
| 17118 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17119 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17120 | which can conflict with char $ac_func (); below. |
| 17121 | 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] | 17122 | <limits.h> exists even on freestanding compilers. */ |
| 17123 | |
| 17124 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17125 | # include <limits.h> |
| 17126 | #else |
| 17127 | # include <assert.h> |
| 17128 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17129 | |
| 17130 | #undef $ac_func |
| 17131 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17132 | /* Override any GCC internal prototype to avoid an error. |
| 17133 | Use char because int might match the return type of a GCC |
| 17134 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17135 | #ifdef __cplusplus |
| 17136 | extern "C" |
| 17137 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17138 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17139 | /* The GNU C library defines this for functions which it implements |
| 17140 | to always fail with ENOSYS. Some functions are actually named |
| 17141 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17142 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17143 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17144 | #endif |
| 17145 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17146 | int |
| 17147 | main () |
| 17148 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17149 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17150 | ; |
| 17151 | return 0; |
| 17152 | } |
| 17153 | _ACEOF |
| 17154 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17155 | if { (ac_try="$ac_link" |
| 17156 | case "(($ac_try" in |
| 17157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17158 | *) ac_try_echo=$ac_try;; |
| 17159 | esac |
| 17160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17161 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17162 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17164 | rm -f conftest.er1 |
| 17165 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17167 | (exit $ac_status); } && { |
| 17168 | test -z "$ac_c_werror_flag" || |
| 17169 | test ! -s conftest.err |
| 17170 | } && test -s conftest$ac_exeext && |
| 17171 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17172 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17173 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17174 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17176 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17177 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17178 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17179 | |
| 17180 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17181 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17182 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17183 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17184 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17185 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17186 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17187 | cat >>confdefs.h <<_ACEOF |
| 17188 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17189 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17190 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17191 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17192 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 17193 | 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] | 17194 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 17195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17197 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17198 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17199 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17200 | /* confdefs.h. */ |
| 17201 | _ACEOF |
| 17202 | cat confdefs.h >>conftest.$ac_ext |
| 17203 | cat >>conftest.$ac_ext <<_ACEOF |
| 17204 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17205 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17206 | /* Override any GCC internal prototype to avoid an error. |
| 17207 | Use char because int might match the return type of a GCC |
| 17208 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17209 | #ifdef __cplusplus |
| 17210 | extern "C" |
| 17211 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17212 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17213 | int |
| 17214 | main () |
| 17215 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17216 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17217 | ; |
| 17218 | return 0; |
| 17219 | } |
| 17220 | _ACEOF |
| 17221 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17222 | if { (ac_try="$ac_link" |
| 17223 | case "(($ac_try" in |
| 17224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17225 | *) ac_try_echo=$ac_try;; |
| 17226 | esac |
| 17227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17228 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17229 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17231 | rm -f conftest.er1 |
| 17232 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17234 | (exit $ac_status); } && { |
| 17235 | test -z "$ac_c_werror_flag" || |
| 17236 | test ! -s conftest.err |
| 17237 | } && test -s conftest$ac_exeext && |
| 17238 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17239 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17240 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17241 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17243 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17244 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17245 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17246 | |
| 17247 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17248 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17249 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17250 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17251 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 17252 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17253 | if test $ac_cv_lib_util_openpty = yes; then |
| 17254 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17255 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17256 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17257 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17258 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17259 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 17260 | 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] | 17261 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
| 17262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17263 | else |
| 17264 | ac_check_lib_save_LIBS=$LIBS |
| 17265 | LIBS="-lbsd $LIBS" |
| 17266 | cat >conftest.$ac_ext <<_ACEOF |
| 17267 | /* confdefs.h. */ |
| 17268 | _ACEOF |
| 17269 | cat confdefs.h >>conftest.$ac_ext |
| 17270 | cat >>conftest.$ac_ext <<_ACEOF |
| 17271 | /* end confdefs.h. */ |
| 17272 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17273 | /* Override any GCC internal prototype to avoid an error. |
| 17274 | Use char because int might match the return type of a GCC |
| 17275 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17276 | #ifdef __cplusplus |
| 17277 | extern "C" |
| 17278 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17279 | char openpty (); |
| 17280 | int |
| 17281 | main () |
| 17282 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17283 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17284 | ; |
| 17285 | return 0; |
| 17286 | } |
| 17287 | _ACEOF |
| 17288 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17289 | if { (ac_try="$ac_link" |
| 17290 | case "(($ac_try" in |
| 17291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17292 | *) ac_try_echo=$ac_try;; |
| 17293 | esac |
| 17294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17295 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17296 | ac_status=$? |
| 17297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17298 | rm -f conftest.er1 |
| 17299 | cat conftest.err >&5 |
| 17300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17301 | (exit $ac_status); } && { |
| 17302 | test -z "$ac_c_werror_flag" || |
| 17303 | test ! -s conftest.err |
| 17304 | } && test -s conftest$ac_exeext && |
| 17305 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17306 | ac_cv_lib_bsd_openpty=yes |
| 17307 | else |
| 17308 | echo "$as_me: failed program was:" >&5 |
| 17309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17310 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17311 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17312 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17313 | |
| 17314 | 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] | 17315 | conftest$ac_exeext conftest.$ac_ext |
| 17316 | LIBS=$ac_check_lib_save_LIBS |
| 17317 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17318 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 17319 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17320 | if test $ac_cv_lib_bsd_openpty = yes; then |
| 17321 | cat >>confdefs.h <<\_ACEOF |
| 17322 | #define HAVE_OPENPTY 1 |
| 17323 | _ACEOF |
| 17324 | LIBS="$LIBS -lbsd" |
| 17325 | fi |
| 17326 | |
| 17327 | |
| 17328 | fi |
| 17329 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17330 | |
| 17331 | fi |
| 17332 | done |
| 17333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17334 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17335 | for ac_func in forkpty |
| 17336 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17337 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17338 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17339 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17340 | 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] | 17341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17343 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17344 | /* confdefs.h. */ |
| 17345 | _ACEOF |
| 17346 | cat confdefs.h >>conftest.$ac_ext |
| 17347 | cat >>conftest.$ac_ext <<_ACEOF |
| 17348 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17349 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17350 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17351 | #define $ac_func innocuous_$ac_func |
| 17352 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17353 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17354 | which can conflict with char $ac_func (); below. |
| 17355 | 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] | 17356 | <limits.h> exists even on freestanding compilers. */ |
| 17357 | |
| 17358 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17359 | # include <limits.h> |
| 17360 | #else |
| 17361 | # include <assert.h> |
| 17362 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17363 | |
| 17364 | #undef $ac_func |
| 17365 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17366 | /* Override any GCC internal prototype to avoid an error. |
| 17367 | Use char because int might match the return type of a GCC |
| 17368 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17369 | #ifdef __cplusplus |
| 17370 | extern "C" |
| 17371 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17372 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17373 | /* The GNU C library defines this for functions which it implements |
| 17374 | to always fail with ENOSYS. Some functions are actually named |
| 17375 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17376 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17377 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17378 | #endif |
| 17379 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17380 | int |
| 17381 | main () |
| 17382 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17383 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17384 | ; |
| 17385 | return 0; |
| 17386 | } |
| 17387 | _ACEOF |
| 17388 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17389 | if { (ac_try="$ac_link" |
| 17390 | case "(($ac_try" in |
| 17391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17392 | *) ac_try_echo=$ac_try;; |
| 17393 | esac |
| 17394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17395 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17396 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17398 | rm -f conftest.er1 |
| 17399 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17401 | (exit $ac_status); } && { |
| 17402 | test -z "$ac_c_werror_flag" || |
| 17403 | test ! -s conftest.err |
| 17404 | } && test -s conftest$ac_exeext && |
| 17405 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17406 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17407 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17408 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17410 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17411 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17412 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17413 | |
| 17414 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17415 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17416 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17417 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17418 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17419 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17420 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17421 | cat >>confdefs.h <<_ACEOF |
| 17422 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17423 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17424 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17425 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17426 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 17427 | 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] | 17428 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 17429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17430 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17431 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17432 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17433 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17434 | /* confdefs.h. */ |
| 17435 | _ACEOF |
| 17436 | cat confdefs.h >>conftest.$ac_ext |
| 17437 | cat >>conftest.$ac_ext <<_ACEOF |
| 17438 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17439 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17440 | /* Override any GCC internal prototype to avoid an error. |
| 17441 | Use char because int might match the return type of a GCC |
| 17442 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17443 | #ifdef __cplusplus |
| 17444 | extern "C" |
| 17445 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17446 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17447 | int |
| 17448 | main () |
| 17449 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17450 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17451 | ; |
| 17452 | return 0; |
| 17453 | } |
| 17454 | _ACEOF |
| 17455 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17456 | if { (ac_try="$ac_link" |
| 17457 | case "(($ac_try" in |
| 17458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17459 | *) ac_try_echo=$ac_try;; |
| 17460 | esac |
| 17461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17462 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17463 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17465 | rm -f conftest.er1 |
| 17466 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17468 | (exit $ac_status); } && { |
| 17469 | test -z "$ac_c_werror_flag" || |
| 17470 | test ! -s conftest.err |
| 17471 | } && test -s conftest$ac_exeext && |
| 17472 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17473 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17474 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17475 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17477 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17478 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17479 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17480 | |
| 17481 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17482 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17483 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17484 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17485 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 17486 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17487 | if test $ac_cv_lib_util_forkpty = yes; then |
| 17488 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17489 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17490 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17491 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17492 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17493 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 17494 | 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] | 17495 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
| 17496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17497 | else |
| 17498 | ac_check_lib_save_LIBS=$LIBS |
| 17499 | LIBS="-lbsd $LIBS" |
| 17500 | cat >conftest.$ac_ext <<_ACEOF |
| 17501 | /* confdefs.h. */ |
| 17502 | _ACEOF |
| 17503 | cat confdefs.h >>conftest.$ac_ext |
| 17504 | cat >>conftest.$ac_ext <<_ACEOF |
| 17505 | /* end confdefs.h. */ |
| 17506 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17507 | /* Override any GCC internal prototype to avoid an error. |
| 17508 | Use char because int might match the return type of a GCC |
| 17509 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17510 | #ifdef __cplusplus |
| 17511 | extern "C" |
| 17512 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17513 | char forkpty (); |
| 17514 | int |
| 17515 | main () |
| 17516 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17517 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17518 | ; |
| 17519 | return 0; |
| 17520 | } |
| 17521 | _ACEOF |
| 17522 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17523 | if { (ac_try="$ac_link" |
| 17524 | case "(($ac_try" in |
| 17525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17526 | *) ac_try_echo=$ac_try;; |
| 17527 | esac |
| 17528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17529 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17530 | ac_status=$? |
| 17531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17532 | rm -f conftest.er1 |
| 17533 | cat conftest.err >&5 |
| 17534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17535 | (exit $ac_status); } && { |
| 17536 | test -z "$ac_c_werror_flag" || |
| 17537 | test ! -s conftest.err |
| 17538 | } && test -s conftest$ac_exeext && |
| 17539 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17540 | ac_cv_lib_bsd_forkpty=yes |
| 17541 | else |
| 17542 | echo "$as_me: failed program was:" >&5 |
| 17543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17544 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17545 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17546 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17547 | |
| 17548 | 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] | 17549 | conftest$ac_exeext conftest.$ac_ext |
| 17550 | LIBS=$ac_check_lib_save_LIBS |
| 17551 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17552 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 17553 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 17554 | if test $ac_cv_lib_bsd_forkpty = yes; then |
| 17555 | cat >>confdefs.h <<\_ACEOF |
| 17556 | #define HAVE_FORKPTY 1 |
| 17557 | _ACEOF |
| 17558 | LIBS="$LIBS -lbsd" |
| 17559 | fi |
| 17560 | |
| 17561 | |
| 17562 | fi |
| 17563 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17564 | |
| 17565 | fi |
| 17566 | done |
| 17567 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17568 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 17569 | # Stuff for expat. |
| 17570 | |
| 17571 | for ac_func in memmove |
| 17572 | do |
| 17573 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17574 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17575 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17576 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17578 | else |
| 17579 | cat >conftest.$ac_ext <<_ACEOF |
| 17580 | /* confdefs.h. */ |
| 17581 | _ACEOF |
| 17582 | cat confdefs.h >>conftest.$ac_ext |
| 17583 | cat >>conftest.$ac_ext <<_ACEOF |
| 17584 | /* end confdefs.h. */ |
| 17585 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17586 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17587 | #define $ac_func innocuous_$ac_func |
| 17588 | |
| 17589 | /* System header to define __stub macros and hopefully few prototypes, |
| 17590 | which can conflict with char $ac_func (); below. |
| 17591 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17592 | <limits.h> exists even on freestanding compilers. */ |
| 17593 | |
| 17594 | #ifdef __STDC__ |
| 17595 | # include <limits.h> |
| 17596 | #else |
| 17597 | # include <assert.h> |
| 17598 | #endif |
| 17599 | |
| 17600 | #undef $ac_func |
| 17601 | |
| 17602 | /* Override any GCC internal prototype to avoid an error. |
| 17603 | Use char because int might match the return type of a GCC |
| 17604 | builtin and then its argument prototype would still apply. */ |
| 17605 | #ifdef __cplusplus |
| 17606 | extern "C" |
| 17607 | #endif |
| 17608 | char $ac_func (); |
| 17609 | /* The GNU C library defines this for functions which it implements |
| 17610 | to always fail with ENOSYS. Some functions are actually named |
| 17611 | something starting with __ and the normal name is an alias. */ |
| 17612 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17613 | choke me |
| 17614 | #endif |
| 17615 | |
| 17616 | int |
| 17617 | main () |
| 17618 | { |
| 17619 | return $ac_func (); |
| 17620 | ; |
| 17621 | return 0; |
| 17622 | } |
| 17623 | _ACEOF |
| 17624 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17625 | if { (ac_try="$ac_link" |
| 17626 | case "(($ac_try" in |
| 17627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17628 | *) ac_try_echo=$ac_try;; |
| 17629 | esac |
| 17630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17631 | (eval "$ac_link") 2>conftest.er1 |
| 17632 | ac_status=$? |
| 17633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17634 | rm -f conftest.er1 |
| 17635 | cat conftest.err >&5 |
| 17636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17637 | (exit $ac_status); } && { |
| 17638 | test -z "$ac_c_werror_flag" || |
| 17639 | test ! -s conftest.err |
| 17640 | } && test -s conftest$ac_exeext && |
| 17641 | $as_test_x conftest$ac_exeext; then |
| 17642 | eval "$as_ac_var=yes" |
| 17643 | else |
| 17644 | echo "$as_me: failed program was:" >&5 |
| 17645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17646 | |
| 17647 | eval "$as_ac_var=no" |
| 17648 | fi |
| 17649 | |
| 17650 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 17651 | conftest$ac_exeext conftest.$ac_ext |
| 17652 | fi |
| 17653 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17654 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17655 | echo "${ECHO_T}$ac_res" >&6; } |
| 17656 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17657 | cat >>confdefs.h <<_ACEOF |
| 17658 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17659 | _ACEOF |
| 17660 | |
| 17661 | fi |
| 17662 | done |
| 17663 | |
| 17664 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17665 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17666 | |
| 17667 | |
| 17668 | |
| 17669 | |
| 17670 | |
| 17671 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17672 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 17673 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17674 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17675 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17676 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17677 | 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] | 17678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 17679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17680 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17681 | /* confdefs.h. */ |
| 17682 | _ACEOF |
| 17683 | cat confdefs.h >>conftest.$ac_ext |
| 17684 | cat >>conftest.$ac_ext <<_ACEOF |
| 17685 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17686 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17687 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17688 | #define $ac_func innocuous_$ac_func |
| 17689 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 17690 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17691 | which can conflict with char $ac_func (); below. |
| 17692 | 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] | 17693 | <limits.h> exists even on freestanding compilers. */ |
| 17694 | |
| 17695 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17696 | # include <limits.h> |
| 17697 | #else |
| 17698 | # include <assert.h> |
| 17699 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17700 | |
| 17701 | #undef $ac_func |
| 17702 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17703 | /* Override any GCC internal prototype to avoid an error. |
| 17704 | Use char because int might match the return type of a GCC |
| 17705 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17706 | #ifdef __cplusplus |
| 17707 | extern "C" |
| 17708 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17709 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 17710 | /* The GNU C library defines this for functions which it implements |
| 17711 | to always fail with ENOSYS. Some functions are actually named |
| 17712 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17713 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 17714 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 17715 | #endif |
| 17716 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17717 | int |
| 17718 | main () |
| 17719 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17720 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17721 | ; |
| 17722 | return 0; |
| 17723 | } |
| 17724 | _ACEOF |
| 17725 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17726 | if { (ac_try="$ac_link" |
| 17727 | case "(($ac_try" in |
| 17728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17729 | *) ac_try_echo=$ac_try;; |
| 17730 | esac |
| 17731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17732 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17733 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17735 | rm -f conftest.er1 |
| 17736 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17738 | (exit $ac_status); } && { |
| 17739 | test -z "$ac_c_werror_flag" || |
| 17740 | test ! -s conftest.err |
| 17741 | } && test -s conftest$ac_exeext && |
| 17742 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17743 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17745 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17747 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17748 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17749 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17750 | |
| 17751 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17752 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17753 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17754 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17755 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17756 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17757 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17758 | cat >>confdefs.h <<_ACEOF |
| 17759 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17760 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17761 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17762 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17763 | done |
| 17764 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17766 | |
| 17767 | |
| 17768 | |
Christian Heimes | b186d00 | 2008-03-18 15:15:01 +0000 | [diff] [blame] | 17769 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17770 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17771 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17772 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17773 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17774 | 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] | 17775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17776 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17777 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17778 | /* confdefs.h. */ |
| 17779 | _ACEOF |
| 17780 | cat confdefs.h >>conftest.$ac_ext |
| 17781 | cat >>conftest.$ac_ext <<_ACEOF |
| 17782 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17783 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17784 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17785 | #define $ac_func innocuous_$ac_func |
| 17786 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17787 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17788 | which can conflict with char $ac_func (); below. |
| 17789 | 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] | 17790 | <limits.h> exists even on freestanding compilers. */ |
| 17791 | |
| 17792 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17793 | # include <limits.h> |
| 17794 | #else |
| 17795 | # include <assert.h> |
| 17796 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17797 | |
| 17798 | #undef $ac_func |
| 17799 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17800 | /* Override any GCC internal prototype to avoid an error. |
| 17801 | Use char because int might match the return type of a GCC |
| 17802 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17803 | #ifdef __cplusplus |
| 17804 | extern "C" |
| 17805 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17806 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17807 | /* The GNU C library defines this for functions which it implements |
| 17808 | to always fail with ENOSYS. Some functions are actually named |
| 17809 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17810 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17811 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17812 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17813 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17814 | int |
| 17815 | main () |
| 17816 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17817 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17818 | ; |
| 17819 | return 0; |
| 17820 | } |
| 17821 | _ACEOF |
| 17822 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17823 | if { (ac_try="$ac_link" |
| 17824 | case "(($ac_try" in |
| 17825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17826 | *) ac_try_echo=$ac_try;; |
| 17827 | esac |
| 17828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17829 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17830 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17832 | rm -f conftest.er1 |
| 17833 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17835 | (exit $ac_status); } && { |
| 17836 | test -z "$ac_c_werror_flag" || |
| 17837 | test ! -s conftest.err |
| 17838 | } && test -s conftest$ac_exeext && |
| 17839 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17840 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17841 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17842 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17844 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17845 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17846 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17847 | |
| 17848 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17849 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17850 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17851 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17852 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17853 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17854 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17855 | cat >>confdefs.h <<_ACEOF |
| 17856 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17857 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17858 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17859 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17860 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17861 | *" $ac_func.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17862 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 17863 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17864 | esac |
| 17865 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17866 | fi |
| 17867 | done |
| 17868 | |
| 17869 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17870 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17871 | for ac_func in getpgrp |
| 17872 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17873 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17874 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17875 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17876 | 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] | 17877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17879 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17880 | /* confdefs.h. */ |
| 17881 | _ACEOF |
| 17882 | cat confdefs.h >>conftest.$ac_ext |
| 17883 | cat >>conftest.$ac_ext <<_ACEOF |
| 17884 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17885 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17886 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17887 | #define $ac_func innocuous_$ac_func |
| 17888 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17889 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17890 | which can conflict with char $ac_func (); below. |
| 17891 | 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] | 17892 | <limits.h> exists even on freestanding compilers. */ |
| 17893 | |
| 17894 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17895 | # include <limits.h> |
| 17896 | #else |
| 17897 | # include <assert.h> |
| 17898 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17899 | |
| 17900 | #undef $ac_func |
| 17901 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17902 | /* Override any GCC internal prototype to avoid an error. |
| 17903 | Use char because int might match the return type of a GCC |
| 17904 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17905 | #ifdef __cplusplus |
| 17906 | extern "C" |
| 17907 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17908 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17909 | /* The GNU C library defines this for functions which it implements |
| 17910 | to always fail with ENOSYS. Some functions are actually named |
| 17911 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17912 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17913 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 17914 | #endif |
| 17915 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17916 | int |
| 17917 | main () |
| 17918 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17919 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17920 | ; |
| 17921 | return 0; |
| 17922 | } |
| 17923 | _ACEOF |
| 17924 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17925 | if { (ac_try="$ac_link" |
| 17926 | case "(($ac_try" in |
| 17927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17928 | *) ac_try_echo=$ac_try;; |
| 17929 | esac |
| 17930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17931 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17932 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17934 | rm -f conftest.er1 |
| 17935 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17937 | (exit $ac_status); } && { |
| 17938 | test -z "$ac_c_werror_flag" || |
| 17939 | test ! -s conftest.err |
| 17940 | } && test -s conftest$ac_exeext && |
| 17941 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17942 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17944 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17946 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17947 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17948 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17949 | |
| 17950 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17951 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17952 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17953 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17954 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17955 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17956 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17957 | cat >>confdefs.h <<_ACEOF |
| 17958 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17959 | _ACEOF |
| 17960 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17961 | /* confdefs.h. */ |
| 17962 | _ACEOF |
| 17963 | cat confdefs.h >>conftest.$ac_ext |
| 17964 | cat >>conftest.$ac_ext <<_ACEOF |
| 17965 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17966 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17967 | int |
| 17968 | main () |
| 17969 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17970 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17971 | ; |
| 17972 | return 0; |
| 17973 | } |
| 17974 | _ACEOF |
| 17975 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17976 | if { (ac_try="$ac_compile" |
| 17977 | case "(($ac_try" in |
| 17978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17979 | *) ac_try_echo=$ac_try;; |
| 17980 | esac |
| 17981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17982 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17983 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17985 | rm -f conftest.er1 |
| 17986 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 17988 | (exit $ac_status); } && { |
| 17989 | test -z "$ac_c_werror_flag" || |
| 17990 | test ! -s conftest.err |
| 17991 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17992 | |
| 17993 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17994 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17995 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17997 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17999 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18001 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18002 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18003 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18004 | |
| 18005 | 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] | 18006 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18007 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18008 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18009 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18010 | |
| 18011 | for ac_func in setpgrp |
| 18012 | do |
| 18013 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18014 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18015 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18016 | 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] | 18017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18018 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18019 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18020 | /* confdefs.h. */ |
| 18021 | _ACEOF |
| 18022 | cat confdefs.h >>conftest.$ac_ext |
| 18023 | cat >>conftest.$ac_ext <<_ACEOF |
| 18024 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18025 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18026 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18027 | #define $ac_func innocuous_$ac_func |
| 18028 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18029 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18030 | which can conflict with char $ac_func (); below. |
| 18031 | 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] | 18032 | <limits.h> exists even on freestanding compilers. */ |
| 18033 | |
| 18034 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18035 | # include <limits.h> |
| 18036 | #else |
| 18037 | # include <assert.h> |
| 18038 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18039 | |
| 18040 | #undef $ac_func |
| 18041 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18042 | /* Override any GCC internal prototype to avoid an error. |
| 18043 | Use char because int might match the return type of a GCC |
| 18044 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18045 | #ifdef __cplusplus |
| 18046 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18047 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18048 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18049 | /* The GNU C library defines this for functions which it implements |
| 18050 | to always fail with ENOSYS. Some functions are actually named |
| 18051 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18052 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18053 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18054 | #endif |
| 18055 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18056 | int |
| 18057 | main () |
| 18058 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18059 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18060 | ; |
| 18061 | return 0; |
| 18062 | } |
| 18063 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18064 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18065 | if { (ac_try="$ac_link" |
| 18066 | case "(($ac_try" in |
| 18067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18068 | *) ac_try_echo=$ac_try;; |
| 18069 | esac |
| 18070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18071 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18072 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18074 | rm -f conftest.er1 |
| 18075 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18077 | (exit $ac_status); } && { |
| 18078 | test -z "$ac_c_werror_flag" || |
| 18079 | test ! -s conftest.err |
| 18080 | } && test -s conftest$ac_exeext && |
| 18081 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18082 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18083 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18084 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18086 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18087 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18088 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18089 | |
| 18090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18091 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18092 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18093 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18094 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18095 | echo "${ECHO_T}$ac_res" >&6; } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18096 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18097 | cat >>confdefs.h <<_ACEOF |
| 18098 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18099 | _ACEOF |
| 18100 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18101 | /* confdefs.h. */ |
| 18102 | _ACEOF |
| 18103 | cat confdefs.h >>conftest.$ac_ext |
| 18104 | cat >>conftest.$ac_ext <<_ACEOF |
| 18105 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18106 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18107 | int |
| 18108 | main () |
| 18109 | { |
| 18110 | setpgrp(0,0); |
| 18111 | ; |
| 18112 | return 0; |
| 18113 | } |
| 18114 | _ACEOF |
| 18115 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18116 | if { (ac_try="$ac_compile" |
| 18117 | case "(($ac_try" in |
| 18118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18119 | *) ac_try_echo=$ac_try;; |
| 18120 | esac |
| 18121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18122 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18123 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18125 | rm -f conftest.er1 |
| 18126 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18128 | (exit $ac_status); } && { |
| 18129 | test -z "$ac_c_werror_flag" || |
| 18130 | test ! -s conftest.err |
| 18131 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18132 | |
| 18133 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18134 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18135 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 18136 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18137 | |
| 18138 | else |
| 18139 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18141 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18142 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 18143 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18144 | |
| 18145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 18146 | |
| 18147 | fi |
| 18148 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 18149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18150 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18151 | for ac_func in gettimeofday |
| 18152 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18153 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18154 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18155 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18156 | 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] | 18157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18158 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18159 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18160 | /* confdefs.h. */ |
| 18161 | _ACEOF |
| 18162 | cat confdefs.h >>conftest.$ac_ext |
| 18163 | cat >>conftest.$ac_ext <<_ACEOF |
| 18164 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18165 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18166 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18167 | #define $ac_func innocuous_$ac_func |
| 18168 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18169 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18170 | which can conflict with char $ac_func (); below. |
| 18171 | 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] | 18172 | <limits.h> exists even on freestanding compilers. */ |
| 18173 | |
| 18174 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18175 | # include <limits.h> |
| 18176 | #else |
| 18177 | # include <assert.h> |
| 18178 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18179 | |
| 18180 | #undef $ac_func |
| 18181 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18182 | /* Override any GCC internal prototype to avoid an error. |
| 18183 | Use char because int might match the return type of a GCC |
| 18184 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18185 | #ifdef __cplusplus |
| 18186 | extern "C" |
| 18187 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18188 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18189 | /* The GNU C library defines this for functions which it implements |
| 18190 | to always fail with ENOSYS. Some functions are actually named |
| 18191 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18192 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18193 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18194 | #endif |
| 18195 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18196 | int |
| 18197 | main () |
| 18198 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18199 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18200 | ; |
| 18201 | return 0; |
| 18202 | } |
| 18203 | _ACEOF |
| 18204 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18205 | if { (ac_try="$ac_link" |
| 18206 | case "(($ac_try" in |
| 18207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18208 | *) ac_try_echo=$ac_try;; |
| 18209 | esac |
| 18210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18211 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18212 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18214 | rm -f conftest.er1 |
| 18215 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18217 | (exit $ac_status); } && { |
| 18218 | test -z "$ac_c_werror_flag" || |
| 18219 | test ! -s conftest.err |
| 18220 | } && test -s conftest$ac_exeext && |
| 18221 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18222 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18223 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18224 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18226 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18227 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18228 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18229 | |
| 18230 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18231 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18232 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18233 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18234 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18235 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18236 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18237 | cat >>confdefs.h <<_ACEOF |
| 18238 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18239 | _ACEOF |
| 18240 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18241 | /* confdefs.h. */ |
| 18242 | _ACEOF |
| 18243 | cat confdefs.h >>conftest.$ac_ext |
| 18244 | cat >>conftest.$ac_ext <<_ACEOF |
| 18245 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18246 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18247 | int |
| 18248 | main () |
| 18249 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18250 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18251 | ; |
| 18252 | return 0; |
| 18253 | } |
| 18254 | _ACEOF |
| 18255 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18256 | if { (ac_try="$ac_compile" |
| 18257 | case "(($ac_try" in |
| 18258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18259 | *) ac_try_echo=$ac_try;; |
| 18260 | esac |
| 18261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18262 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18263 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18265 | rm -f conftest.er1 |
| 18266 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18268 | (exit $ac_status); } && { |
| 18269 | test -z "$ac_c_werror_flag" || |
| 18270 | test ! -s conftest.err |
| 18271 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18272 | : |
| 18273 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18274 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18277 | |
| 18278 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18279 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18280 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18282 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18283 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18284 | |
| 18285 | 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] | 18286 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18287 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18288 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18289 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18290 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18291 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 18292 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18293 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18294 | /* confdefs.h. */ |
| 18295 | _ACEOF |
| 18296 | cat confdefs.h >>conftest.$ac_ext |
| 18297 | cat >>conftest.$ac_ext <<_ACEOF |
| 18298 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18299 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 18300 | #if defined(MAJOR_IN_MKDEV) |
| 18301 | #include <sys/mkdev.h> |
| 18302 | #elif defined(MAJOR_IN_SYSMACROS) |
| 18303 | #include <sys/sysmacros.h> |
| 18304 | #else |
| 18305 | #include <sys/types.h> |
| 18306 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18307 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18308 | int |
| 18309 | main () |
| 18310 | { |
| 18311 | |
| 18312 | makedev(major(0),minor(0)); |
| 18313 | |
| 18314 | ; |
| 18315 | return 0; |
| 18316 | } |
| 18317 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 18318 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18319 | if { (ac_try="$ac_link" |
| 18320 | case "(($ac_try" in |
| 18321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18322 | *) ac_try_echo=$ac_try;; |
| 18323 | esac |
| 18324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18325 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18326 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18328 | rm -f conftest.er1 |
| 18329 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18331 | (exit $ac_status); } && { |
| 18332 | test -z "$ac_c_werror_flag" || |
| 18333 | test ! -s conftest.err |
| 18334 | } && test -s conftest$ac_exeext && |
| 18335 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18336 | |
| 18337 | |
| 18338 | cat >>confdefs.h <<\_ACEOF |
| 18339 | #define HAVE_DEVICE_MACROS 1 |
| 18340 | _ACEOF |
| 18341 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18342 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18343 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18344 | |
| 18345 | else |
| 18346 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18348 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18349 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18350 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18351 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 18352 | |
| 18353 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18354 | |
| 18355 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18356 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18357 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18358 | # 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] | 18359 | # for [no]getaddrinfo in netdb.h. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18360 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 18361 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18362 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18363 | /* confdefs.h. */ |
| 18364 | _ACEOF |
| 18365 | cat confdefs.h >>conftest.$ac_ext |
| 18366 | cat >>conftest.$ac_ext <<_ACEOF |
| 18367 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18368 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 18369 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18370 | #include <sys/socket.h> |
| 18371 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 18372 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18373 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18374 | int |
| 18375 | main () |
| 18376 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18377 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18378 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18380 | ; |
| 18381 | return 0; |
| 18382 | } |
| 18383 | _ACEOF |
| 18384 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18385 | if { (ac_try="$ac_link" |
| 18386 | case "(($ac_try" in |
| 18387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18388 | *) ac_try_echo=$ac_try;; |
| 18389 | esac |
| 18390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18391 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18392 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18394 | rm -f conftest.er1 |
| 18395 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18397 | (exit $ac_status); } && { |
| 18398 | test -z "$ac_c_werror_flag" || |
| 18399 | test ! -s conftest.err |
| 18400 | } && test -s conftest$ac_exeext && |
| 18401 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18402 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18403 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18404 | echo "${ECHO_T}yes" >&6; } |
| 18405 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 18406 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18407 | if test "$cross_compiling" = yes; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18408 | { echo "$as_me:$LINENO: result: buggy" >&5 |
| 18409 | echo "${ECHO_T}buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18410 | buggygetaddrinfo=yes |
| 18411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18412 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18413 | /* confdefs.h. */ |
| 18414 | _ACEOF |
| 18415 | cat confdefs.h >>conftest.$ac_ext |
| 18416 | cat >>conftest.$ac_ext <<_ACEOF |
| 18417 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18418 | |
| 18419 | #include <sys/types.h> |
| 18420 | #include <netdb.h> |
| 18421 | #include <string.h> |
| 18422 | #include <sys/socket.h> |
| 18423 | #include <netinet/in.h> |
| 18424 | |
| 18425 | main() |
| 18426 | { |
| 18427 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 18428 | struct addrinfo hints, *ai, *aitop; |
| 18429 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 18430 | |
| 18431 | for (passive = 0; passive <= 1; passive++) { |
| 18432 | memset(&hints, 0, sizeof(hints)); |
| 18433 | hints.ai_family = AF_UNSPEC; |
| 18434 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 18435 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 18436 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18437 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 18438 | (void)gai_strerror(gaierr); |
| 18439 | goto bad; |
| 18440 | } |
| 18441 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 18442 | if (ai->ai_addr == NULL || |
| 18443 | ai->ai_addrlen == 0 || |
| 18444 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 18445 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 18446 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 18447 | goto bad; |
| 18448 | } |
| 18449 | switch (ai->ai_family) { |
| 18450 | case AF_INET: |
| 18451 | if (strcmp(strport, "54321") != 0) { |
| 18452 | goto bad; |
| 18453 | } |
| 18454 | if (passive) { |
| 18455 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 18456 | goto bad; |
| 18457 | } |
| 18458 | } else { |
| 18459 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 18460 | goto bad; |
| 18461 | } |
| 18462 | } |
| 18463 | inet4++; |
| 18464 | break; |
| 18465 | case AF_INET6: |
| 18466 | if (strcmp(strport, "54321") != 0) { |
| 18467 | goto bad; |
| 18468 | } |
| 18469 | if (passive) { |
| 18470 | if (strcmp(straddr, "::") != 0) { |
| 18471 | goto bad; |
| 18472 | } |
| 18473 | } else { |
| 18474 | if (strcmp(straddr, "::1") != 0) { |
| 18475 | goto bad; |
| 18476 | } |
| 18477 | } |
| 18478 | inet6++; |
| 18479 | break; |
| 18480 | case AF_UNSPEC: |
| 18481 | goto bad; |
| 18482 | break; |
| 18483 | default: |
| 18484 | /* another family support? */ |
| 18485 | break; |
| 18486 | } |
| 18487 | } |
| 18488 | } |
| 18489 | |
| 18490 | if (!(inet4 == 0 || inet4 == 2)) |
| 18491 | goto bad; |
| 18492 | if (!(inet6 == 0 || inet6 == 2)) |
| 18493 | goto bad; |
| 18494 | |
| 18495 | if (aitop) |
| 18496 | freeaddrinfo(aitop); |
| 18497 | exit(0); |
| 18498 | |
| 18499 | bad: |
| 18500 | if (aitop) |
| 18501 | freeaddrinfo(aitop); |
| 18502 | exit(1); |
| 18503 | } |
| 18504 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18505 | _ACEOF |
| 18506 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18507 | if { (ac_try="$ac_link" |
| 18508 | case "(($ac_try" in |
| 18509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18510 | *) ac_try_echo=$ac_try;; |
| 18511 | esac |
| 18512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18513 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18514 | ac_status=$? |
| 18515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18516 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18517 | { (case "(($ac_try" in |
| 18518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18519 | *) ac_try_echo=$ac_try;; |
| 18520 | esac |
| 18521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18522 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18523 | ac_status=$? |
| 18524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18525 | (exit $ac_status); }; }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18526 | { echo "$as_me:$LINENO: result: good" >&5 |
| 18527 | echo "${ECHO_T}good" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18528 | buggygetaddrinfo=no |
| 18529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18530 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18534 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18535 | { echo "$as_me:$LINENO: result: buggy" >&5 |
| 18536 | echo "${ECHO_T}buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18537 | buggygetaddrinfo=yes |
| 18538 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18539 | 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] | 18540 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18541 | |
| 18542 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18543 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18544 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18547 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18548 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18549 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18550 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18551 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18552 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18553 | |
| 18554 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18555 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18556 | |
| 18557 | if test "$buggygetaddrinfo" = "yes"; then |
| 18558 | if test "$ipv6" = "yes"; then |
| 18559 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 18560 | echo ' or you can specify "--disable-ipv6"'. |
| 18561 | exit 1 |
| 18562 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18563 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18564 | |
| 18565 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18566 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18567 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 18568 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18569 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18570 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 18571 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18572 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18573 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18574 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18575 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18576 | 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] | 18577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18578 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18579 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18580 | /* confdefs.h. */ |
| 18581 | _ACEOF |
| 18582 | cat confdefs.h >>conftest.$ac_ext |
| 18583 | cat >>conftest.$ac_ext <<_ACEOF |
| 18584 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18585 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18586 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18587 | #define $ac_func innocuous_$ac_func |
| 18588 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18589 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18590 | which can conflict with char $ac_func (); below. |
| 18591 | 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] | 18592 | <limits.h> exists even on freestanding compilers. */ |
| 18593 | |
| 18594 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18595 | # include <limits.h> |
| 18596 | #else |
| 18597 | # include <assert.h> |
| 18598 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18599 | |
| 18600 | #undef $ac_func |
| 18601 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18602 | /* Override any GCC internal prototype to avoid an error. |
| 18603 | Use char because int might match the return type of a GCC |
| 18604 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18605 | #ifdef __cplusplus |
| 18606 | extern "C" |
| 18607 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18608 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18609 | /* The GNU C library defines this for functions which it implements |
| 18610 | to always fail with ENOSYS. Some functions are actually named |
| 18611 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18612 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18613 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18614 | #endif |
| 18615 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18616 | int |
| 18617 | main () |
| 18618 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18619 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18620 | ; |
| 18621 | return 0; |
| 18622 | } |
| 18623 | _ACEOF |
| 18624 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18625 | if { (ac_try="$ac_link" |
| 18626 | case "(($ac_try" in |
| 18627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18628 | *) ac_try_echo=$ac_try;; |
| 18629 | esac |
| 18630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18631 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18632 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18634 | rm -f conftest.er1 |
| 18635 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18637 | (exit $ac_status); } && { |
| 18638 | test -z "$ac_c_werror_flag" || |
| 18639 | test ! -s conftest.err |
| 18640 | } && test -s conftest$ac_exeext && |
| 18641 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18642 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18643 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18644 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18646 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18647 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18648 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18649 | |
| 18650 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18651 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18652 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18653 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18654 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18655 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18656 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18657 | cat >>confdefs.h <<_ACEOF |
| 18658 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18659 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18660 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18661 | fi |
| 18662 | done |
| 18663 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18664 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18665 | # checks for structures |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18666 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 18667 | 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] | 18668 | if test "${ac_cv_header_time+set}" = set; then |
| 18669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18670 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18671 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18672 | /* confdefs.h. */ |
| 18673 | _ACEOF |
| 18674 | cat confdefs.h >>conftest.$ac_ext |
| 18675 | cat >>conftest.$ac_ext <<_ACEOF |
| 18676 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18677 | #include <sys/types.h> |
| 18678 | #include <sys/time.h> |
| 18679 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18681 | int |
| 18682 | main () |
| 18683 | { |
| 18684 | if ((struct tm *) 0) |
| 18685 | return 0; |
| 18686 | ; |
| 18687 | return 0; |
| 18688 | } |
| 18689 | _ACEOF |
| 18690 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18691 | if { (ac_try="$ac_compile" |
| 18692 | case "(($ac_try" in |
| 18693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18694 | *) ac_try_echo=$ac_try;; |
| 18695 | esac |
| 18696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18697 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18698 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18700 | rm -f conftest.er1 |
| 18701 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18703 | (exit $ac_status); } && { |
| 18704 | test -z "$ac_c_werror_flag" || |
| 18705 | test ! -s conftest.err |
| 18706 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18707 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18711 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18712 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18713 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18714 | |
| 18715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18716 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18717 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 18718 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18719 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18720 | |
| 18721 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18722 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18723 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18724 | |
| 18725 | fi |
| 18726 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18727 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 18728 | 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] | 18729 | if test "${ac_cv_struct_tm+set}" = set; then |
| 18730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18732 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18733 | /* confdefs.h. */ |
| 18734 | _ACEOF |
| 18735 | cat confdefs.h >>conftest.$ac_ext |
| 18736 | cat >>conftest.$ac_ext <<_ACEOF |
| 18737 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18738 | #include <sys/types.h> |
| 18739 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18740 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18741 | int |
| 18742 | main () |
| 18743 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18744 | struct tm tm; |
| 18745 | int *p = &tm.tm_sec; |
| 18746 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18747 | ; |
| 18748 | return 0; |
| 18749 | } |
| 18750 | _ACEOF |
| 18751 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18752 | if { (ac_try="$ac_compile" |
| 18753 | case "(($ac_try" in |
| 18754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18755 | *) ac_try_echo=$ac_try;; |
| 18756 | esac |
| 18757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18758 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18759 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18761 | rm -f conftest.er1 |
| 18762 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18764 | (exit $ac_status); } && { |
| 18765 | test -z "$ac_c_werror_flag" || |
| 18766 | test ! -s conftest.err |
| 18767 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18768 | ac_cv_struct_tm=time.h |
| 18769 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18770 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18772 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18773 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18774 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18775 | |
| 18776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18777 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18778 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 18779 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18780 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18781 | |
| 18782 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18783 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18784 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18785 | |
| 18786 | fi |
| 18787 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18788 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 18789 | 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] | 18790 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 18791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18792 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18793 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18794 | /* confdefs.h. */ |
| 18795 | _ACEOF |
| 18796 | cat confdefs.h >>conftest.$ac_ext |
| 18797 | cat >>conftest.$ac_ext <<_ACEOF |
| 18798 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18799 | #include <sys/types.h> |
| 18800 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18801 | |
| 18802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18803 | int |
| 18804 | main () |
| 18805 | { |
| 18806 | static struct tm ac_aggr; |
| 18807 | if (ac_aggr.tm_zone) |
| 18808 | return 0; |
| 18809 | ; |
| 18810 | return 0; |
| 18811 | } |
| 18812 | _ACEOF |
| 18813 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18814 | if { (ac_try="$ac_compile" |
| 18815 | case "(($ac_try" in |
| 18816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18817 | *) ac_try_echo=$ac_try;; |
| 18818 | esac |
| 18819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18820 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18821 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18822 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18823 | rm -f conftest.er1 |
| 18824 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18826 | (exit $ac_status); } && { |
| 18827 | test -z "$ac_c_werror_flag" || |
| 18828 | test ! -s conftest.err |
| 18829 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18830 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18831 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18832 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18834 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18835 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18836 | /* confdefs.h. */ |
| 18837 | _ACEOF |
| 18838 | cat confdefs.h >>conftest.$ac_ext |
| 18839 | cat >>conftest.$ac_ext <<_ACEOF |
| 18840 | /* end confdefs.h. */ |
| 18841 | #include <sys/types.h> |
| 18842 | #include <$ac_cv_struct_tm> |
| 18843 | |
| 18844 | |
| 18845 | int |
| 18846 | main () |
| 18847 | { |
| 18848 | static struct tm ac_aggr; |
| 18849 | if (sizeof ac_aggr.tm_zone) |
| 18850 | return 0; |
| 18851 | ; |
| 18852 | return 0; |
| 18853 | } |
| 18854 | _ACEOF |
| 18855 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18856 | if { (ac_try="$ac_compile" |
| 18857 | case "(($ac_try" in |
| 18858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18859 | *) ac_try_echo=$ac_try;; |
| 18860 | esac |
| 18861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18862 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18863 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18865 | rm -f conftest.er1 |
| 18866 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18868 | (exit $ac_status); } && { |
| 18869 | test -z "$ac_c_werror_flag" || |
| 18870 | test ! -s conftest.err |
| 18871 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18872 | ac_cv_member_struct_tm_tm_zone=yes |
| 18873 | else |
| 18874 | echo "$as_me: failed program was:" >&5 |
| 18875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18876 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18877 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18878 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18879 | |
| 18880 | 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] | 18881 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18882 | |
| 18883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18884 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18885 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 18886 | 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] | 18887 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 18888 | |
| 18889 | cat >>confdefs.h <<_ACEOF |
| 18890 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 18891 | _ACEOF |
| 18892 | |
| 18893 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18894 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18896 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 18897 | |
| 18898 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18899 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18900 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18901 | |
| 18902 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18903 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 18904 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
| 18905 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
| 18906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18907 | else |
| 18908 | cat >conftest.$ac_ext <<_ACEOF |
| 18909 | /* confdefs.h. */ |
| 18910 | _ACEOF |
| 18911 | cat confdefs.h >>conftest.$ac_ext |
| 18912 | cat >>conftest.$ac_ext <<_ACEOF |
| 18913 | /* end confdefs.h. */ |
| 18914 | #include <time.h> |
| 18915 | |
| 18916 | int |
| 18917 | main () |
| 18918 | { |
| 18919 | #ifndef tzname |
| 18920 | (void) tzname; |
| 18921 | #endif |
| 18922 | |
| 18923 | ; |
| 18924 | return 0; |
| 18925 | } |
| 18926 | _ACEOF |
| 18927 | rm -f conftest.$ac_objext |
| 18928 | if { (ac_try="$ac_compile" |
| 18929 | case "(($ac_try" in |
| 18930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18931 | *) ac_try_echo=$ac_try;; |
| 18932 | esac |
| 18933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18934 | (eval "$ac_compile") 2>conftest.er1 |
| 18935 | ac_status=$? |
| 18936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18937 | rm -f conftest.er1 |
| 18938 | cat conftest.err >&5 |
| 18939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18940 | (exit $ac_status); } && { |
| 18941 | test -z "$ac_c_werror_flag" || |
| 18942 | test ! -s conftest.err |
| 18943 | } && test -s conftest.$ac_objext; then |
| 18944 | ac_cv_have_decl_tzname=yes |
| 18945 | else |
| 18946 | echo "$as_me: failed program was:" >&5 |
| 18947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18948 | |
| 18949 | ac_cv_have_decl_tzname=no |
| 18950 | fi |
| 18951 | |
| 18952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18953 | fi |
| 18954 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 18955 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 18956 | if test $ac_cv_have_decl_tzname = yes; then |
| 18957 | |
| 18958 | cat >>confdefs.h <<_ACEOF |
| 18959 | #define HAVE_DECL_TZNAME 1 |
| 18960 | _ACEOF |
| 18961 | |
| 18962 | |
| 18963 | else |
| 18964 | cat >>confdefs.h <<_ACEOF |
| 18965 | #define HAVE_DECL_TZNAME 0 |
| 18966 | _ACEOF |
| 18967 | |
| 18968 | |
| 18969 | fi |
| 18970 | |
| 18971 | |
| 18972 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 18973 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18974 | if test "${ac_cv_var_tzname+set}" = set; then |
| 18975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18976 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18977 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18978 | /* confdefs.h. */ |
| 18979 | _ACEOF |
| 18980 | cat confdefs.h >>conftest.$ac_ext |
| 18981 | cat >>conftest.$ac_ext <<_ACEOF |
| 18982 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18983 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18984 | #if !HAVE_DECL_TZNAME |
| 18985 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18986 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18987 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18988 | int |
| 18989 | main () |
| 18990 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18991 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18992 | ; |
| 18993 | return 0; |
| 18994 | } |
| 18995 | _ACEOF |
| 18996 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 18997 | if { (ac_try="$ac_link" |
| 18998 | case "(($ac_try" in |
| 18999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19000 | *) ac_try_echo=$ac_try;; |
| 19001 | esac |
| 19002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19003 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19004 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19006 | rm -f conftest.er1 |
| 19007 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19009 | (exit $ac_status); } && { |
| 19010 | test -z "$ac_c_werror_flag" || |
| 19011 | test ! -s conftest.err |
| 19012 | } && test -s conftest$ac_exeext && |
| 19013 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19014 | ac_cv_var_tzname=yes |
| 19015 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19016 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19018 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19019 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19020 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19021 | |
| 19022 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19023 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19024 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19025 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 19026 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19027 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19028 | |
| 19029 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19030 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19031 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19032 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19033 | fi |
| 19034 | fi |
| 19035 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19036 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 19037 | 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] | 19038 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 19039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19040 | else |
| 19041 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19042 | /* confdefs.h. */ |
| 19043 | _ACEOF |
| 19044 | cat confdefs.h >>conftest.$ac_ext |
| 19045 | cat >>conftest.$ac_ext <<_ACEOF |
| 19046 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19047 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19048 | int |
| 19049 | main () |
| 19050 | { |
| 19051 | static struct stat ac_aggr; |
| 19052 | if (ac_aggr.st_rdev) |
| 19053 | return 0; |
| 19054 | ; |
| 19055 | return 0; |
| 19056 | } |
| 19057 | _ACEOF |
| 19058 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19059 | if { (ac_try="$ac_compile" |
| 19060 | case "(($ac_try" in |
| 19061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19062 | *) ac_try_echo=$ac_try;; |
| 19063 | esac |
| 19064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19065 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19066 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19068 | rm -f conftest.er1 |
| 19069 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19071 | (exit $ac_status); } && { |
| 19072 | test -z "$ac_c_werror_flag" || |
| 19073 | test ! -s conftest.err |
| 19074 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19075 | ac_cv_member_struct_stat_st_rdev=yes |
| 19076 | else |
| 19077 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19079 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19080 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19081 | /* confdefs.h. */ |
| 19082 | _ACEOF |
| 19083 | cat confdefs.h >>conftest.$ac_ext |
| 19084 | cat >>conftest.$ac_ext <<_ACEOF |
| 19085 | /* end confdefs.h. */ |
| 19086 | $ac_includes_default |
| 19087 | int |
| 19088 | main () |
| 19089 | { |
| 19090 | static struct stat ac_aggr; |
| 19091 | if (sizeof ac_aggr.st_rdev) |
| 19092 | return 0; |
| 19093 | ; |
| 19094 | return 0; |
| 19095 | } |
| 19096 | _ACEOF |
| 19097 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19098 | if { (ac_try="$ac_compile" |
| 19099 | case "(($ac_try" in |
| 19100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19101 | *) ac_try_echo=$ac_try;; |
| 19102 | esac |
| 19103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19104 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19105 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19107 | rm -f conftest.er1 |
| 19108 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19110 | (exit $ac_status); } && { |
| 19111 | test -z "$ac_c_werror_flag" || |
| 19112 | test ! -s conftest.err |
| 19113 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19114 | ac_cv_member_struct_stat_st_rdev=yes |
| 19115 | else |
| 19116 | echo "$as_me: failed program was:" >&5 |
| 19117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19118 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19119 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19120 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19121 | |
| 19122 | 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] | 19123 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19124 | |
| 19125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19126 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19127 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 19128 | 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] | 19129 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 19130 | |
| 19131 | cat >>confdefs.h <<_ACEOF |
| 19132 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 19133 | _ACEOF |
| 19134 | |
| 19135 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19136 | fi |
| 19137 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19138 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 19139 | 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] | 19140 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 19141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19142 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19143 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19144 | /* confdefs.h. */ |
| 19145 | _ACEOF |
| 19146 | cat confdefs.h >>conftest.$ac_ext |
| 19147 | cat >>conftest.$ac_ext <<_ACEOF |
| 19148 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19149 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19150 | int |
| 19151 | main () |
| 19152 | { |
| 19153 | static struct stat ac_aggr; |
| 19154 | if (ac_aggr.st_blksize) |
| 19155 | return 0; |
| 19156 | ; |
| 19157 | return 0; |
| 19158 | } |
| 19159 | _ACEOF |
| 19160 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19161 | if { (ac_try="$ac_compile" |
| 19162 | case "(($ac_try" in |
| 19163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19164 | *) ac_try_echo=$ac_try;; |
| 19165 | esac |
| 19166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19167 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19168 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19170 | rm -f conftest.er1 |
| 19171 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19173 | (exit $ac_status); } && { |
| 19174 | test -z "$ac_c_werror_flag" || |
| 19175 | test ! -s conftest.err |
| 19176 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19177 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19178 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19179 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19181 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19182 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19183 | /* confdefs.h. */ |
| 19184 | _ACEOF |
| 19185 | cat confdefs.h >>conftest.$ac_ext |
| 19186 | cat >>conftest.$ac_ext <<_ACEOF |
| 19187 | /* end confdefs.h. */ |
| 19188 | $ac_includes_default |
| 19189 | int |
| 19190 | main () |
| 19191 | { |
| 19192 | static struct stat ac_aggr; |
| 19193 | if (sizeof ac_aggr.st_blksize) |
| 19194 | return 0; |
| 19195 | ; |
| 19196 | return 0; |
| 19197 | } |
| 19198 | _ACEOF |
| 19199 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19200 | if { (ac_try="$ac_compile" |
| 19201 | case "(($ac_try" in |
| 19202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19203 | *) ac_try_echo=$ac_try;; |
| 19204 | esac |
| 19205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19206 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19207 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19209 | rm -f conftest.er1 |
| 19210 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19212 | (exit $ac_status); } && { |
| 19213 | test -z "$ac_c_werror_flag" || |
| 19214 | test ! -s conftest.err |
| 19215 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19216 | ac_cv_member_struct_stat_st_blksize=yes |
| 19217 | else |
| 19218 | echo "$as_me: failed program was:" >&5 |
| 19219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19220 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19221 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19222 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19223 | |
| 19224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19225 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19226 | |
| 19227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19228 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19229 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 19230 | 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] | 19231 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19233 | cat >>confdefs.h <<_ACEOF |
| 19234 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 19235 | _ACEOF |
| 19236 | |
| 19237 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19238 | fi |
| 19239 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19240 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 19241 | 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] | 19242 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
| 19243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19244 | else |
| 19245 | cat >conftest.$ac_ext <<_ACEOF |
| 19246 | /* confdefs.h. */ |
| 19247 | _ACEOF |
| 19248 | cat confdefs.h >>conftest.$ac_ext |
| 19249 | cat >>conftest.$ac_ext <<_ACEOF |
| 19250 | /* end confdefs.h. */ |
| 19251 | $ac_includes_default |
| 19252 | int |
| 19253 | main () |
| 19254 | { |
| 19255 | static struct stat ac_aggr; |
| 19256 | if (ac_aggr.st_flags) |
| 19257 | return 0; |
| 19258 | ; |
| 19259 | return 0; |
| 19260 | } |
| 19261 | _ACEOF |
| 19262 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19263 | if { (ac_try="$ac_compile" |
| 19264 | case "(($ac_try" in |
| 19265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19266 | *) ac_try_echo=$ac_try;; |
| 19267 | esac |
| 19268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19269 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19270 | ac_status=$? |
| 19271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19272 | rm -f conftest.er1 |
| 19273 | cat conftest.err >&5 |
| 19274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19275 | (exit $ac_status); } && { |
| 19276 | test -z "$ac_c_werror_flag" || |
| 19277 | test ! -s conftest.err |
| 19278 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19279 | ac_cv_member_struct_stat_st_flags=yes |
| 19280 | else |
| 19281 | echo "$as_me: failed program was:" >&5 |
| 19282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19283 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19284 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19285 | /* confdefs.h. */ |
| 19286 | _ACEOF |
| 19287 | cat confdefs.h >>conftest.$ac_ext |
| 19288 | cat >>conftest.$ac_ext <<_ACEOF |
| 19289 | /* end confdefs.h. */ |
| 19290 | $ac_includes_default |
| 19291 | int |
| 19292 | main () |
| 19293 | { |
| 19294 | static struct stat ac_aggr; |
| 19295 | if (sizeof ac_aggr.st_flags) |
| 19296 | return 0; |
| 19297 | ; |
| 19298 | return 0; |
| 19299 | } |
| 19300 | _ACEOF |
| 19301 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19302 | if { (ac_try="$ac_compile" |
| 19303 | case "(($ac_try" in |
| 19304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19305 | *) ac_try_echo=$ac_try;; |
| 19306 | esac |
| 19307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19308 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19309 | ac_status=$? |
| 19310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19311 | rm -f conftest.er1 |
| 19312 | cat conftest.err >&5 |
| 19313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19314 | (exit $ac_status); } && { |
| 19315 | test -z "$ac_c_werror_flag" || |
| 19316 | test ! -s conftest.err |
| 19317 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19318 | ac_cv_member_struct_stat_st_flags=yes |
| 19319 | else |
| 19320 | echo "$as_me: failed program was:" >&5 |
| 19321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19322 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19323 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19324 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19325 | |
| 19326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19327 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19328 | |
| 19329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19330 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19331 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 19332 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 19333 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
| 19334 | |
| 19335 | cat >>confdefs.h <<_ACEOF |
| 19336 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 19337 | _ACEOF |
| 19338 | |
| 19339 | |
| 19340 | fi |
| 19341 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19342 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 19343 | 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] | 19344 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
| 19345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19346 | else |
| 19347 | cat >conftest.$ac_ext <<_ACEOF |
| 19348 | /* confdefs.h. */ |
| 19349 | _ACEOF |
| 19350 | cat confdefs.h >>conftest.$ac_ext |
| 19351 | cat >>conftest.$ac_ext <<_ACEOF |
| 19352 | /* end confdefs.h. */ |
| 19353 | $ac_includes_default |
| 19354 | int |
| 19355 | main () |
| 19356 | { |
| 19357 | static struct stat ac_aggr; |
| 19358 | if (ac_aggr.st_gen) |
| 19359 | return 0; |
| 19360 | ; |
| 19361 | return 0; |
| 19362 | } |
| 19363 | _ACEOF |
| 19364 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19365 | if { (ac_try="$ac_compile" |
| 19366 | case "(($ac_try" in |
| 19367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19368 | *) ac_try_echo=$ac_try;; |
| 19369 | esac |
| 19370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19371 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19372 | ac_status=$? |
| 19373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19374 | rm -f conftest.er1 |
| 19375 | cat conftest.err >&5 |
| 19376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19377 | (exit $ac_status); } && { |
| 19378 | test -z "$ac_c_werror_flag" || |
| 19379 | test ! -s conftest.err |
| 19380 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19381 | ac_cv_member_struct_stat_st_gen=yes |
| 19382 | else |
| 19383 | echo "$as_me: failed program was:" >&5 |
| 19384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19385 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19386 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19387 | /* confdefs.h. */ |
| 19388 | _ACEOF |
| 19389 | cat confdefs.h >>conftest.$ac_ext |
| 19390 | cat >>conftest.$ac_ext <<_ACEOF |
| 19391 | /* end confdefs.h. */ |
| 19392 | $ac_includes_default |
| 19393 | int |
| 19394 | main () |
| 19395 | { |
| 19396 | static struct stat ac_aggr; |
| 19397 | if (sizeof ac_aggr.st_gen) |
| 19398 | return 0; |
| 19399 | ; |
| 19400 | return 0; |
| 19401 | } |
| 19402 | _ACEOF |
| 19403 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19404 | if { (ac_try="$ac_compile" |
| 19405 | case "(($ac_try" in |
| 19406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19407 | *) ac_try_echo=$ac_try;; |
| 19408 | esac |
| 19409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19410 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19411 | ac_status=$? |
| 19412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19413 | rm -f conftest.er1 |
| 19414 | cat conftest.err >&5 |
| 19415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19416 | (exit $ac_status); } && { |
| 19417 | test -z "$ac_c_werror_flag" || |
| 19418 | test ! -s conftest.err |
| 19419 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19420 | ac_cv_member_struct_stat_st_gen=yes |
| 19421 | else |
| 19422 | echo "$as_me: failed program was:" >&5 |
| 19423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19424 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19425 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19426 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19427 | |
| 19428 | 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] | 19429 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19430 | |
| 19431 | 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] | 19432 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19433 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 19434 | 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] | 19435 | if test $ac_cv_member_struct_stat_st_gen = yes; then |
| 19436 | |
| 19437 | cat >>confdefs.h <<_ACEOF |
| 19438 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 19439 | _ACEOF |
| 19440 | |
| 19441 | |
| 19442 | fi |
| 19443 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19444 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 19445 | 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] | 19446 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
| 19447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19448 | else |
| 19449 | cat >conftest.$ac_ext <<_ACEOF |
| 19450 | /* confdefs.h. */ |
| 19451 | _ACEOF |
| 19452 | cat confdefs.h >>conftest.$ac_ext |
| 19453 | cat >>conftest.$ac_ext <<_ACEOF |
| 19454 | /* end confdefs.h. */ |
| 19455 | $ac_includes_default |
| 19456 | int |
| 19457 | main () |
| 19458 | { |
| 19459 | static struct stat ac_aggr; |
| 19460 | if (ac_aggr.st_birthtime) |
| 19461 | return 0; |
| 19462 | ; |
| 19463 | return 0; |
| 19464 | } |
| 19465 | _ACEOF |
| 19466 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19467 | if { (ac_try="$ac_compile" |
| 19468 | case "(($ac_try" in |
| 19469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19470 | *) ac_try_echo=$ac_try;; |
| 19471 | esac |
| 19472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19473 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19474 | ac_status=$? |
| 19475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19476 | rm -f conftest.er1 |
| 19477 | cat conftest.err >&5 |
| 19478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19479 | (exit $ac_status); } && { |
| 19480 | test -z "$ac_c_werror_flag" || |
| 19481 | test ! -s conftest.err |
| 19482 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19483 | ac_cv_member_struct_stat_st_birthtime=yes |
| 19484 | else |
| 19485 | echo "$as_me: failed program was:" >&5 |
| 19486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19487 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19488 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19489 | /* confdefs.h. */ |
| 19490 | _ACEOF |
| 19491 | cat confdefs.h >>conftest.$ac_ext |
| 19492 | cat >>conftest.$ac_ext <<_ACEOF |
| 19493 | /* end confdefs.h. */ |
| 19494 | $ac_includes_default |
| 19495 | int |
| 19496 | main () |
| 19497 | { |
| 19498 | static struct stat ac_aggr; |
| 19499 | if (sizeof ac_aggr.st_birthtime) |
| 19500 | return 0; |
| 19501 | ; |
| 19502 | return 0; |
| 19503 | } |
| 19504 | _ACEOF |
| 19505 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19506 | if { (ac_try="$ac_compile" |
| 19507 | case "(($ac_try" in |
| 19508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19509 | *) ac_try_echo=$ac_try;; |
| 19510 | esac |
| 19511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19512 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19513 | ac_status=$? |
| 19514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19515 | rm -f conftest.er1 |
| 19516 | cat conftest.err >&5 |
| 19517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19518 | (exit $ac_status); } && { |
| 19519 | test -z "$ac_c_werror_flag" || |
| 19520 | test ! -s conftest.err |
| 19521 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19522 | ac_cv_member_struct_stat_st_birthtime=yes |
| 19523 | else |
| 19524 | echo "$as_me: failed program was:" >&5 |
| 19525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19526 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19527 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 19528 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19529 | |
| 19530 | 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] | 19531 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19532 | |
| 19533 | 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] | 19534 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19535 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 19536 | 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] | 19537 | if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
| 19538 | |
| 19539 | cat >>confdefs.h <<_ACEOF |
| 19540 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 19541 | _ACEOF |
| 19542 | |
| 19543 | |
| 19544 | fi |
| 19545 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19546 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 19547 | 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] | 19548 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 19549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19551 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19552 | /* confdefs.h. */ |
| 19553 | _ACEOF |
| 19554 | cat confdefs.h >>conftest.$ac_ext |
| 19555 | cat >>conftest.$ac_ext <<_ACEOF |
| 19556 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19557 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19558 | int |
| 19559 | main () |
| 19560 | { |
| 19561 | static struct stat ac_aggr; |
| 19562 | if (ac_aggr.st_blocks) |
| 19563 | return 0; |
| 19564 | ; |
| 19565 | return 0; |
| 19566 | } |
| 19567 | _ACEOF |
| 19568 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19569 | if { (ac_try="$ac_compile" |
| 19570 | case "(($ac_try" in |
| 19571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19572 | *) ac_try_echo=$ac_try;; |
| 19573 | esac |
| 19574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19575 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19576 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19578 | rm -f conftest.er1 |
| 19579 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19581 | (exit $ac_status); } && { |
| 19582 | test -z "$ac_c_werror_flag" || |
| 19583 | test ! -s conftest.err |
| 19584 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19585 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19586 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19587 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19589 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19590 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19591 | /* confdefs.h. */ |
| 19592 | _ACEOF |
| 19593 | cat confdefs.h >>conftest.$ac_ext |
| 19594 | cat >>conftest.$ac_ext <<_ACEOF |
| 19595 | /* end confdefs.h. */ |
| 19596 | $ac_includes_default |
| 19597 | int |
| 19598 | main () |
| 19599 | { |
| 19600 | static struct stat ac_aggr; |
| 19601 | if (sizeof ac_aggr.st_blocks) |
| 19602 | return 0; |
| 19603 | ; |
| 19604 | return 0; |
| 19605 | } |
| 19606 | _ACEOF |
| 19607 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19608 | if { (ac_try="$ac_compile" |
| 19609 | case "(($ac_try" in |
| 19610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19611 | *) ac_try_echo=$ac_try;; |
| 19612 | esac |
| 19613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19614 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19615 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19617 | rm -f conftest.er1 |
| 19618 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19620 | (exit $ac_status); } && { |
| 19621 | test -z "$ac_c_werror_flag" || |
| 19622 | test ! -s conftest.err |
| 19623 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19624 | ac_cv_member_struct_stat_st_blocks=yes |
| 19625 | else |
| 19626 | echo "$as_me: failed program was:" >&5 |
| 19627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19628 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19629 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19630 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19631 | |
| 19632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19633 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19634 | |
| 19635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19636 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19637 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 19638 | 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] | 19639 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19641 | cat >>confdefs.h <<_ACEOF |
| 19642 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 19643 | _ACEOF |
| 19644 | |
| 19645 | |
| 19646 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19647 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19648 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19649 | |
| 19650 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19651 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19652 | *" fileblocks.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19653 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 19654 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19655 | esac |
| 19656 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 19657 | fi |
| 19658 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19659 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19660 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19661 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 19662 | 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] | 19663 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 19664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19666 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19667 | /* confdefs.h. */ |
| 19668 | _ACEOF |
| 19669 | cat confdefs.h >>conftest.$ac_ext |
| 19670 | cat >>conftest.$ac_ext <<_ACEOF |
| 19671 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19672 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19673 | int |
| 19674 | main () |
| 19675 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19676 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19677 | ; |
| 19678 | return 0; |
| 19679 | } |
| 19680 | _ACEOF |
| 19681 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19682 | if { (ac_try="$ac_compile" |
| 19683 | case "(($ac_try" in |
| 19684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19685 | *) ac_try_echo=$ac_try;; |
| 19686 | esac |
| 19687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19688 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19689 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19691 | rm -f conftest.er1 |
| 19692 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19694 | (exit $ac_status); } && { |
| 19695 | test -z "$ac_c_werror_flag" || |
| 19696 | test ! -s conftest.err |
| 19697 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19698 | ac_cv_header_time_altzone=yes |
| 19699 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19700 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19702 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19703 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19704 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19705 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19707 | fi |
| 19708 | |
| 19709 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 19710 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19711 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19712 | |
| 19713 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19714 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19715 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19716 | |
| 19717 | fi |
| 19718 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19719 | was_it_defined=no |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19720 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 19721 | 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] | 19722 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19723 | /* confdefs.h. */ |
| 19724 | _ACEOF |
| 19725 | cat confdefs.h >>conftest.$ac_ext |
| 19726 | cat >>conftest.$ac_ext <<_ACEOF |
| 19727 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19728 | |
| 19729 | #include <sys/types.h> |
| 19730 | #include <sys/select.h> |
| 19731 | #include <sys/time.h> |
| 19732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19733 | int |
| 19734 | main () |
| 19735 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19736 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19737 | ; |
| 19738 | return 0; |
| 19739 | } |
| 19740 | _ACEOF |
| 19741 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19742 | if { (ac_try="$ac_compile" |
| 19743 | case "(($ac_try" in |
| 19744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19745 | *) ac_try_echo=$ac_try;; |
| 19746 | esac |
| 19747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19748 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19749 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19751 | rm -f conftest.er1 |
| 19752 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19754 | (exit $ac_status); } && { |
| 19755 | test -z "$ac_c_werror_flag" || |
| 19756 | test ! -s conftest.err |
| 19757 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19758 | |
| 19759 | |
| 19760 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19761 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19762 | _ACEOF |
| 19763 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19764 | was_it_defined=yes |
| 19765 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 19766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19767 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19769 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19770 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19771 | fi |
| 19772 | |
| 19773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19774 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 19775 | echo "${ECHO_T}$was_it_defined" >&6; } |
| 19776 | |
| 19777 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 19778 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19779 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 19780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19781 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19782 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19783 | /* confdefs.h. */ |
| 19784 | _ACEOF |
| 19785 | cat confdefs.h >>conftest.$ac_ext |
| 19786 | cat >>conftest.$ac_ext <<_ACEOF |
| 19787 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19788 | |
| 19789 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19790 | int |
| 19791 | main () |
| 19792 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19793 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19794 | ; |
| 19795 | return 0; |
| 19796 | } |
| 19797 | _ACEOF |
| 19798 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19799 | if { (ac_try="$ac_compile" |
| 19800 | case "(($ac_try" in |
| 19801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19802 | *) ac_try_echo=$ac_try;; |
| 19803 | esac |
| 19804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19805 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19806 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19808 | rm -f conftest.er1 |
| 19809 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19811 | (exit $ac_status); } && { |
| 19812 | test -z "$ac_c_werror_flag" || |
| 19813 | test ! -s conftest.err |
| 19814 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19815 | ac_cv_struct_addrinfo=yes |
| 19816 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19817 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19819 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19820 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19821 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19822 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19824 | fi |
| 19825 | |
| 19826 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 19827 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19828 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19829 | |
| 19830 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19831 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19832 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19833 | |
| 19834 | fi |
| 19835 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19836 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 19837 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19838 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 19839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19840 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19841 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19842 | /* confdefs.h. */ |
| 19843 | _ACEOF |
| 19844 | cat confdefs.h >>conftest.$ac_ext |
| 19845 | cat >>conftest.$ac_ext <<_ACEOF |
| 19846 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19847 | |
| 19848 | # include <sys/types.h> |
| 19849 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19850 | int |
| 19851 | main () |
| 19852 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19853 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19854 | ; |
| 19855 | return 0; |
| 19856 | } |
| 19857 | _ACEOF |
| 19858 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19859 | if { (ac_try="$ac_compile" |
| 19860 | case "(($ac_try" in |
| 19861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19862 | *) ac_try_echo=$ac_try;; |
| 19863 | esac |
| 19864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19865 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19866 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19868 | rm -f conftest.er1 |
| 19869 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19871 | (exit $ac_status); } && { |
| 19872 | test -z "$ac_c_werror_flag" || |
| 19873 | test ! -s conftest.err |
| 19874 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19875 | ac_cv_struct_sockaddr_storage=yes |
| 19876 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19877 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19879 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19880 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19881 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19882 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19884 | fi |
| 19885 | |
| 19886 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 19887 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19888 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19889 | |
| 19890 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19891 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19892 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19893 | |
| 19894 | fi |
| 19895 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19896 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19897 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19898 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19899 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 19900 | 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] | 19901 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 19902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19903 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19904 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19905 | /* confdefs.h. */ |
| 19906 | _ACEOF |
| 19907 | cat confdefs.h >>conftest.$ac_ext |
| 19908 | cat >>conftest.$ac_ext <<_ACEOF |
| 19909 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19910 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19911 | int |
| 19912 | main () |
| 19913 | { |
| 19914 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 19915 | test_array [0] = 0 |
| 19916 | |
| 19917 | ; |
| 19918 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19919 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19920 | _ACEOF |
| 19921 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19922 | if { (ac_try="$ac_compile" |
| 19923 | case "(($ac_try" in |
| 19924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19925 | *) ac_try_echo=$ac_try;; |
| 19926 | esac |
| 19927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19928 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19929 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19931 | rm -f conftest.er1 |
| 19932 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19934 | (exit $ac_status); } && { |
| 19935 | test -z "$ac_c_werror_flag" || |
| 19936 | test ! -s conftest.err |
| 19937 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19938 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19939 | else |
| 19940 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19942 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19943 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19944 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19945 | |
| 19946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19947 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19948 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 19949 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19950 | 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] | 19951 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19952 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19953 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19954 | |
| 19955 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19956 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19957 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 19958 | 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] | 19959 | if test "${ac_cv_c_const+set}" = set; then |
| 19960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19961 | else |
| 19962 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19963 | /* confdefs.h. */ |
| 19964 | _ACEOF |
| 19965 | cat confdefs.h >>conftest.$ac_ext |
| 19966 | cat >>conftest.$ac_ext <<_ACEOF |
| 19967 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19969 | int |
| 19970 | main () |
| 19971 | { |
| 19972 | /* FIXME: Include the comments suggested by Paul. */ |
| 19973 | #ifndef __cplusplus |
| 19974 | /* Ultrix mips cc rejects this. */ |
| 19975 | typedef int charset[2]; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19976 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19977 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19978 | char const *const *pcpcc; |
| 19979 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19980 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 19981 | struct point {int x, y;}; |
| 19982 | static struct point const zero = {0,0}; |
| 19983 | /* AIX XL C 1.02.0.0 rejects this. |
| 19984 | It does not let you subtract one const X* pointer from another in |
| 19985 | an arm of an if-expression whose if-part is not a constant |
| 19986 | expression */ |
| 19987 | const char *g = "string"; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19988 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19989 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19990 | ++pcpcc; |
| 19991 | ppc = (char**) pcpcc; |
| 19992 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19993 | { /* SCO 3.2v4 cc rejects this. */ |
| 19994 | char *t; |
| 19995 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19997 | *t++ = 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 19998 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19999 | } |
| 20000 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 20001 | int x[] = {25, 17}; |
| 20002 | const int *foo = &x[0]; |
| 20003 | ++foo; |
| 20004 | } |
| 20005 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 20006 | typedef const int *iptr; |
| 20007 | iptr p = 0; |
| 20008 | ++p; |
| 20009 | } |
| 20010 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 20011 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 20012 | struct s { int j; const int *ap[3]; }; |
| 20013 | struct s *b; b->j = 5; |
| 20014 | } |
| 20015 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 20016 | const int foo = 10; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20017 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20018 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20019 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20020 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20022 | ; |
| 20023 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20024 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20025 | _ACEOF |
| 20026 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20027 | if { (ac_try="$ac_compile" |
| 20028 | case "(($ac_try" in |
| 20029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20030 | *) ac_try_echo=$ac_try;; |
| 20031 | esac |
| 20032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20033 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20034 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20036 | rm -f conftest.er1 |
| 20037 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20039 | (exit $ac_status); } && { |
| 20040 | test -z "$ac_c_werror_flag" || |
| 20041 | test ! -s conftest.err |
| 20042 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20043 | ac_cv_c_const=yes |
| 20044 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20045 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20047 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20048 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20049 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20050 | |
| 20051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20052 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20053 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 20054 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20055 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20056 | |
| 20057 | cat >>confdefs.h <<\_ACEOF |
| 20058 | #define const |
| 20059 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20060 | |
| 20061 | fi |
| 20062 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20063 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20064 | works=no |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20065 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 20066 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20067 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20068 | /* confdefs.h. */ |
| 20069 | _ACEOF |
| 20070 | cat confdefs.h >>conftest.$ac_ext |
| 20071 | cat >>conftest.$ac_ext <<_ACEOF |
| 20072 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20074 | int |
| 20075 | main () |
| 20076 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20077 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20078 | ; |
| 20079 | return 0; |
| 20080 | } |
| 20081 | _ACEOF |
| 20082 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20083 | if { (ac_try="$ac_compile" |
| 20084 | case "(($ac_try" in |
| 20085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20086 | *) ac_try_echo=$ac_try;; |
| 20087 | esac |
| 20088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20089 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20090 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20092 | rm -f conftest.er1 |
| 20093 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20095 | (exit $ac_status); } && { |
| 20096 | test -z "$ac_c_werror_flag" || |
| 20097 | test ! -s conftest.err |
| 20098 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20099 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20100 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20101 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20103 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20104 | |
| 20105 | cat >>confdefs.h <<\_ACEOF |
| 20106 | #define volatile |
| 20107 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20108 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20109 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20110 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20111 | |
| 20112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20113 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 20114 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20115 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20116 | works=no |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20117 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 20118 | 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] | 20119 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20120 | /* confdefs.h. */ |
| 20121 | _ACEOF |
| 20122 | cat confdefs.h >>conftest.$ac_ext |
| 20123 | cat >>conftest.$ac_ext <<_ACEOF |
| 20124 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 20125 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20126 | int |
| 20127 | main () |
| 20128 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20129 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20130 | ; |
| 20131 | return 0; |
| 20132 | } |
| 20133 | _ACEOF |
| 20134 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20135 | if { (ac_try="$ac_compile" |
| 20136 | case "(($ac_try" in |
| 20137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20138 | *) ac_try_echo=$ac_try;; |
| 20139 | esac |
| 20140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20141 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20142 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20144 | rm -f conftest.er1 |
| 20145 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20147 | (exit $ac_status); } && { |
| 20148 | test -z "$ac_c_werror_flag" || |
| 20149 | test ! -s conftest.err |
| 20150 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20151 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 20152 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20153 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20156 | |
| 20157 | cat >>confdefs.h <<\_ACEOF |
| 20158 | #define signed |
| 20159 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20160 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20161 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20162 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20163 | |
| 20164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20165 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 20166 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20167 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20168 | have_prototypes=no |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20169 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 20170 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20171 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20172 | /* confdefs.h. */ |
| 20173 | _ACEOF |
| 20174 | cat confdefs.h >>conftest.$ac_ext |
| 20175 | cat >>conftest.$ac_ext <<_ACEOF |
| 20176 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20177 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20178 | int |
| 20179 | main () |
| 20180 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20181 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20182 | ; |
| 20183 | return 0; |
| 20184 | } |
| 20185 | _ACEOF |
| 20186 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20187 | if { (ac_try="$ac_compile" |
| 20188 | case "(($ac_try" in |
| 20189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20190 | *) ac_try_echo=$ac_try;; |
| 20191 | esac |
| 20192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20193 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20194 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20196 | rm -f conftest.er1 |
| 20197 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20199 | (exit $ac_status); } && { |
| 20200 | test -z "$ac_c_werror_flag" || |
| 20201 | test ! -s conftest.err |
| 20202 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20203 | |
| 20204 | |
| 20205 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20206 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20207 | _ACEOF |
| 20208 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20209 | have_prototypes=yes |
| 20210 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20211 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20212 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20214 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20215 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20216 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20217 | |
| 20218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20219 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 20220 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20221 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20222 | works=no |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20223 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 20224 | 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] | 20225 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20226 | /* confdefs.h. */ |
| 20227 | _ACEOF |
| 20228 | cat confdefs.h >>conftest.$ac_ext |
| 20229 | cat >>conftest.$ac_ext <<_ACEOF |
| 20230 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20231 | |
| 20232 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 20233 | int foo(int x, ...) { |
| 20234 | va_list va; |
| 20235 | va_start(va, x); |
| 20236 | va_arg(va, int); |
| 20237 | va_arg(va, char *); |
| 20238 | va_arg(va, double); |
| 20239 | return 0; |
| 20240 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20242 | int |
| 20243 | main () |
| 20244 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 20245 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20246 | ; |
| 20247 | return 0; |
| 20248 | } |
| 20249 | _ACEOF |
| 20250 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20251 | if { (ac_try="$ac_compile" |
| 20252 | case "(($ac_try" in |
| 20253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20254 | *) ac_try_echo=$ac_try;; |
| 20255 | esac |
| 20256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20257 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20258 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20260 | rm -f conftest.er1 |
| 20261 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20263 | (exit $ac_status); } && { |
| 20264 | test -z "$ac_c_werror_flag" || |
| 20265 | test ! -s conftest.err |
| 20266 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20267 | |
| 20268 | |
| 20269 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20270 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20271 | _ACEOF |
| 20272 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20273 | works=yes |
| 20274 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20275 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20276 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20278 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20279 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20280 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20281 | |
| 20282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20283 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 20284 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20285 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20286 | # check for socketpair |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20287 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 20288 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20289 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20290 | /* confdefs.h. */ |
| 20291 | _ACEOF |
| 20292 | cat confdefs.h >>conftest.$ac_ext |
| 20293 | cat >>conftest.$ac_ext <<_ACEOF |
| 20294 | /* end confdefs.h. */ |
| 20295 | |
| 20296 | #include <sys/types.h> |
| 20297 | #include <sys/socket.h> |
| 20298 | |
| 20299 | int |
| 20300 | main () |
| 20301 | { |
| 20302 | void *x=socketpair |
| 20303 | ; |
| 20304 | return 0; |
| 20305 | } |
| 20306 | _ACEOF |
| 20307 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20308 | if { (ac_try="$ac_compile" |
| 20309 | case "(($ac_try" in |
| 20310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20311 | *) ac_try_echo=$ac_try;; |
| 20312 | esac |
| 20313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20314 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20315 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20317 | rm -f conftest.er1 |
| 20318 | cat conftest.err >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20320 | (exit $ac_status); } && { |
| 20321 | test -z "$ac_c_werror_flag" || |
| 20322 | test ! -s conftest.err |
| 20323 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20324 | |
| 20325 | cat >>confdefs.h <<\_ACEOF |
| 20326 | #define HAVE_SOCKETPAIR 1 |
| 20327 | _ACEOF |
| 20328 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20329 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20330 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20331 | else |
| 20332 | echo "$as_me: failed program was:" >&5 |
| 20333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20334 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20335 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20336 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 20337 | |
| 20338 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20339 | |
| 20340 | 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] | 20341 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20342 | # check if sockaddr has sa_len member |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20343 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 20344 | 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] | 20345 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20346 | /* confdefs.h. */ |
| 20347 | _ACEOF |
| 20348 | cat confdefs.h >>conftest.$ac_ext |
| 20349 | cat >>conftest.$ac_ext <<_ACEOF |
| 20350 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20351 | #include <sys/types.h> |
| 20352 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20353 | int |
| 20354 | main () |
| 20355 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20356 | struct sockaddr x; |
| 20357 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20358 | ; |
| 20359 | return 0; |
| 20360 | } |
| 20361 | _ACEOF |
| 20362 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20363 | if { (ac_try="$ac_compile" |
| 20364 | case "(($ac_try" in |
| 20365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20366 | *) ac_try_echo=$ac_try;; |
| 20367 | esac |
| 20368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20369 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20370 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20372 | rm -f conftest.er1 |
| 20373 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20375 | (exit $ac_status); } && { |
| 20376 | test -z "$ac_c_werror_flag" || |
| 20377 | test ! -s conftest.err |
| 20378 | } && test -s conftest.$ac_objext; then |
| 20379 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20380 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20381 | |
| 20382 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20383 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20384 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20385 | |
| 20386 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20387 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20389 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20390 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20391 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20392 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20393 | |
| 20394 | 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] | 20395 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20396 | va_list_is_array=no |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20397 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 20398 | 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] | 20399 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20400 | /* confdefs.h. */ |
| 20401 | _ACEOF |
| 20402 | cat confdefs.h >>conftest.$ac_ext |
| 20403 | cat >>conftest.$ac_ext <<_ACEOF |
| 20404 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20405 | |
| 20406 | #ifdef HAVE_STDARG_PROTOTYPES |
| 20407 | #include <stdarg.h> |
| 20408 | #else |
| 20409 | #include <varargs.h> |
| 20410 | #endif |
| 20411 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20412 | int |
| 20413 | main () |
| 20414 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20415 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20416 | ; |
| 20417 | return 0; |
| 20418 | } |
| 20419 | _ACEOF |
| 20420 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20421 | if { (ac_try="$ac_compile" |
| 20422 | case "(($ac_try" in |
| 20423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20424 | *) ac_try_echo=$ac_try;; |
| 20425 | esac |
| 20426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20427 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20428 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20430 | rm -f conftest.er1 |
| 20431 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20433 | (exit $ac_status); } && { |
| 20434 | test -z "$ac_c_werror_flag" || |
| 20435 | test ! -s conftest.err |
| 20436 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20437 | : |
| 20438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20439 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20441 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20442 | |
| 20443 | |
| 20444 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20445 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20446 | _ACEOF |
| 20447 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 20448 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20449 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20450 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20451 | |
| 20452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20453 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 20454 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20455 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20456 | # 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] | 20457 | |
| 20458 | |
| 20459 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20460 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 20461 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20462 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 20463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20464 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20465 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20466 | /* confdefs.h. */ |
| 20467 | _ACEOF |
| 20468 | cat confdefs.h >>conftest.$ac_ext |
| 20469 | cat >>conftest.$ac_ext <<_ACEOF |
| 20470 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20471 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 20472 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20473 | #define gethostbyname_r innocuous_gethostbyname_r |
| 20474 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20475 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20476 | which can conflict with char gethostbyname_r (); below. |
| 20477 | 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] | 20478 | <limits.h> exists even on freestanding compilers. */ |
| 20479 | |
| 20480 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20481 | # include <limits.h> |
| 20482 | #else |
| 20483 | # include <assert.h> |
| 20484 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20485 | |
| 20486 | #undef gethostbyname_r |
| 20487 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20488 | /* Override any GCC internal prototype to avoid an error. |
| 20489 | Use char because int might match the return type of a GCC |
| 20490 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20491 | #ifdef __cplusplus |
| 20492 | extern "C" |
| 20493 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20494 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20495 | /* The GNU C library defines this for functions which it implements |
| 20496 | to always fail with ENOSYS. Some functions are actually named |
| 20497 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20498 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20499 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20500 | #endif |
| 20501 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20502 | int |
| 20503 | main () |
| 20504 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20505 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20506 | ; |
| 20507 | return 0; |
| 20508 | } |
| 20509 | _ACEOF |
| 20510 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20511 | if { (ac_try="$ac_link" |
| 20512 | case "(($ac_try" in |
| 20513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20514 | *) ac_try_echo=$ac_try;; |
| 20515 | esac |
| 20516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20517 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20518 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20520 | rm -f conftest.er1 |
| 20521 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20523 | (exit $ac_status); } && { |
| 20524 | test -z "$ac_c_werror_flag" || |
| 20525 | test ! -s conftest.err |
| 20526 | } && test -s conftest$ac_exeext && |
| 20527 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20528 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20530 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20532 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20533 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20534 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20535 | |
| 20536 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20537 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20538 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20539 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 20540 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20541 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20543 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20544 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20545 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20546 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20547 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 20548 | 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] | 20549 | OLD_CFLAGS=$CFLAGS |
| 20550 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20551 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20552 | /* confdefs.h. */ |
| 20553 | _ACEOF |
| 20554 | cat confdefs.h >>conftest.$ac_ext |
| 20555 | cat >>conftest.$ac_ext <<_ACEOF |
| 20556 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20557 | |
| 20558 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20560 | int |
| 20561 | main () |
| 20562 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20563 | |
| 20564 | char *name; |
| 20565 | struct hostent *he, *res; |
| 20566 | char buffer[2048]; |
| 20567 | int buflen = 2048; |
| 20568 | int h_errnop; |
| 20569 | |
| 20570 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20571 | |
| 20572 | ; |
| 20573 | return 0; |
| 20574 | } |
| 20575 | _ACEOF |
| 20576 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20577 | if { (ac_try="$ac_compile" |
| 20578 | case "(($ac_try" in |
| 20579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20580 | *) ac_try_echo=$ac_try;; |
| 20581 | esac |
| 20582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20583 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20584 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20586 | rm -f conftest.er1 |
| 20587 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20589 | (exit $ac_status); } && { |
| 20590 | test -z "$ac_c_werror_flag" || |
| 20591 | test ! -s conftest.err |
| 20592 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20593 | |
| 20594 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 20595 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20596 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 20597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20598 | |
| 20599 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20600 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20601 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20602 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20603 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20604 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20605 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20606 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20607 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20610 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20611 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20612 | echo "${ECHO_T}no" >&6; } |
| 20613 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 20614 | 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] | 20615 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20616 | /* confdefs.h. */ |
| 20617 | _ACEOF |
| 20618 | cat confdefs.h >>conftest.$ac_ext |
| 20619 | cat >>conftest.$ac_ext <<_ACEOF |
| 20620 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20621 | |
| 20622 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20624 | int |
| 20625 | main () |
| 20626 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20627 | |
| 20628 | char *name; |
| 20629 | struct hostent *he; |
| 20630 | char buffer[2048]; |
| 20631 | int buflen = 2048; |
| 20632 | int h_errnop; |
| 20633 | |
| 20634 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20635 | |
| 20636 | ; |
| 20637 | return 0; |
| 20638 | } |
| 20639 | _ACEOF |
| 20640 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20641 | if { (ac_try="$ac_compile" |
| 20642 | case "(($ac_try" in |
| 20643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20644 | *) ac_try_echo=$ac_try;; |
| 20645 | esac |
| 20646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20647 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20648 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20650 | rm -f conftest.er1 |
| 20651 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20653 | (exit $ac_status); } && { |
| 20654 | test -z "$ac_c_werror_flag" || |
| 20655 | test ! -s conftest.err |
| 20656 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20657 | |
| 20658 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 20659 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20660 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 20661 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20662 | |
| 20663 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20664 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20665 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20666 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20667 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20668 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20669 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20670 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20671 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20674 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20675 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20676 | echo "${ECHO_T}no" >&6; } |
| 20677 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 20678 | 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] | 20679 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20680 | /* confdefs.h. */ |
| 20681 | _ACEOF |
| 20682 | cat confdefs.h >>conftest.$ac_ext |
| 20683 | cat >>conftest.$ac_ext <<_ACEOF |
| 20684 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20685 | |
| 20686 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20688 | int |
| 20689 | main () |
| 20690 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20691 | |
| 20692 | char *name; |
| 20693 | struct hostent *he; |
| 20694 | struct hostent_data data; |
| 20695 | |
| 20696 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20697 | |
| 20698 | ; |
| 20699 | return 0; |
| 20700 | } |
| 20701 | _ACEOF |
| 20702 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20703 | if { (ac_try="$ac_compile" |
| 20704 | case "(($ac_try" in |
| 20705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20706 | *) ac_try_echo=$ac_try;; |
| 20707 | esac |
| 20708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20709 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20710 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20711 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20712 | rm -f conftest.er1 |
| 20713 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20715 | (exit $ac_status); } && { |
| 20716 | test -z "$ac_c_werror_flag" || |
| 20717 | test ! -s conftest.err |
| 20718 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20719 | |
| 20720 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 20721 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20722 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 20723 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20724 | |
| 20725 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20726 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20727 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20728 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20729 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20730 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20731 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20732 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20733 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20736 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20737 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20738 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20739 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20740 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20741 | |
| 20742 | 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] | 20743 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20744 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20745 | |
| 20746 | 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] | 20747 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20748 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20749 | |
| 20750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20751 | CFLAGS=$OLD_CFLAGS |
| 20752 | |
| 20753 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20755 | |
| 20756 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20757 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20758 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20759 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20760 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20761 | 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] | 20762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20763 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20764 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20765 | /* confdefs.h. */ |
| 20766 | _ACEOF |
| 20767 | cat confdefs.h >>conftest.$ac_ext |
| 20768 | cat >>conftest.$ac_ext <<_ACEOF |
| 20769 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20770 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20771 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20772 | #define $ac_func innocuous_$ac_func |
| 20773 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20774 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20775 | which can conflict with char $ac_func (); below. |
| 20776 | 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] | 20777 | <limits.h> exists even on freestanding compilers. */ |
| 20778 | |
| 20779 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20780 | # include <limits.h> |
| 20781 | #else |
| 20782 | # include <assert.h> |
| 20783 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20784 | |
| 20785 | #undef $ac_func |
| 20786 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20787 | /* Override any GCC internal prototype to avoid an error. |
| 20788 | Use char because int might match the return type of a GCC |
| 20789 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20790 | #ifdef __cplusplus |
| 20791 | extern "C" |
| 20792 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20793 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20794 | /* The GNU C library defines this for functions which it implements |
| 20795 | to always fail with ENOSYS. Some functions are actually named |
| 20796 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20797 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20798 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20799 | #endif |
| 20800 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20801 | int |
| 20802 | main () |
| 20803 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20804 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20805 | ; |
| 20806 | return 0; |
| 20807 | } |
| 20808 | _ACEOF |
| 20809 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20810 | if { (ac_try="$ac_link" |
| 20811 | case "(($ac_try" in |
| 20812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20813 | *) ac_try_echo=$ac_try;; |
| 20814 | esac |
| 20815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20816 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20817 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20819 | rm -f conftest.er1 |
| 20820 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20822 | (exit $ac_status); } && { |
| 20823 | test -z "$ac_c_werror_flag" || |
| 20824 | test ! -s conftest.err |
| 20825 | } && test -s conftest$ac_exeext && |
| 20826 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20827 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20831 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20832 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20833 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20834 | |
| 20835 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20836 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20837 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20838 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20839 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20840 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20841 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 20842 | cat >>confdefs.h <<_ACEOF |
| 20843 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20844 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20845 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20846 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20847 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20848 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20849 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 20850 | fi |
| 20851 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20852 | |
| 20853 | |
| 20854 | |
| 20855 | |
| 20856 | |
| 20857 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20858 | # checks for system services |
| 20859 | # (none yet) |
| 20860 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20861 | # Linux requires this for correct f.p. operations |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20862 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 20863 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20864 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 20865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20867 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20868 | /* confdefs.h. */ |
| 20869 | _ACEOF |
| 20870 | cat confdefs.h >>conftest.$ac_ext |
| 20871 | cat >>conftest.$ac_ext <<_ACEOF |
| 20872 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20873 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 20874 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20875 | #define __fpu_control innocuous___fpu_control |
| 20876 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20877 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20878 | which can conflict with char __fpu_control (); below. |
| 20879 | 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] | 20880 | <limits.h> exists even on freestanding compilers. */ |
| 20881 | |
| 20882 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20883 | # include <limits.h> |
| 20884 | #else |
| 20885 | # include <assert.h> |
| 20886 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20887 | |
| 20888 | #undef __fpu_control |
| 20889 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20890 | /* Override any GCC internal prototype to avoid an error. |
| 20891 | Use char because int might match the return type of a GCC |
| 20892 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20893 | #ifdef __cplusplus |
| 20894 | extern "C" |
| 20895 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20896 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20897 | /* The GNU C library defines this for functions which it implements |
| 20898 | to always fail with ENOSYS. Some functions are actually named |
| 20899 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20900 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20901 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20902 | #endif |
| 20903 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20904 | int |
| 20905 | main () |
| 20906 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20907 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20908 | ; |
| 20909 | return 0; |
| 20910 | } |
| 20911 | _ACEOF |
| 20912 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20913 | if { (ac_try="$ac_link" |
| 20914 | case "(($ac_try" in |
| 20915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20916 | *) ac_try_echo=$ac_try;; |
| 20917 | esac |
| 20918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20919 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20920 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20922 | rm -f conftest.er1 |
| 20923 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20925 | (exit $ac_status); } && { |
| 20926 | test -z "$ac_c_werror_flag" || |
| 20927 | test ! -s conftest.err |
| 20928 | } && test -s conftest$ac_exeext && |
| 20929 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20930 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20931 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20932 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20934 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20935 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20936 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20937 | |
| 20938 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20939 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20940 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20941 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 20942 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20943 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 20944 | : |
| 20945 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20946 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20947 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 20948 | 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] | 20949 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 20950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20951 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20952 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20953 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20954 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20955 | /* confdefs.h. */ |
| 20956 | _ACEOF |
| 20957 | cat confdefs.h >>conftest.$ac_ext |
| 20958 | cat >>conftest.$ac_ext <<_ACEOF |
| 20959 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20960 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20961 | /* Override any GCC internal prototype to avoid an error. |
| 20962 | Use char because int might match the return type of a GCC |
| 20963 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20964 | #ifdef __cplusplus |
| 20965 | extern "C" |
| 20966 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20967 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20968 | int |
| 20969 | main () |
| 20970 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20971 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20972 | ; |
| 20973 | return 0; |
| 20974 | } |
| 20975 | _ACEOF |
| 20976 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20977 | if { (ac_try="$ac_link" |
| 20978 | case "(($ac_try" in |
| 20979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20980 | *) ac_try_echo=$ac_try;; |
| 20981 | esac |
| 20982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20983 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20984 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20986 | rm -f conftest.er1 |
| 20987 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20989 | (exit $ac_status); } && { |
| 20990 | test -z "$ac_c_werror_flag" || |
| 20991 | test ! -s conftest.err |
| 20992 | } && test -s conftest$ac_exeext && |
| 20993 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20994 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20995 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20996 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20998 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 20999 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21000 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21001 | |
| 21002 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21003 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21004 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21005 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21006 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 21007 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21008 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 21009 | cat >>confdefs.h <<_ACEOF |
| 21010 | #define HAVE_LIBIEEE 1 |
| 21011 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21012 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21013 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21014 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21015 | fi |
| 21016 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21017 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 21018 | fi |
| 21019 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21020 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21021 | # Check for --with-fpectl |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21022 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 21023 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21024 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21025 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21026 | if test "${with_fpectl+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21027 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21028 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21029 | then |
| 21030 | |
| 21031 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21032 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21033 | _ACEOF |
| 21034 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21035 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21036 | echo "${ECHO_T}yes" >&6; } |
| 21037 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 21038 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21039 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21040 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21041 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21042 | echo "${ECHO_T}no" >&6; } |
| 21043 | fi |
| 21044 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21045 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21046 | # check for --with-libm=... |
| 21047 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 21048 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 21049 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 21050 | *) LIBM=-lm |
| 21051 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21052 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 21053 | 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] | 21054 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21055 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21056 | if test "${with_libm+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21057 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21058 | if test "$withval" = no |
| 21059 | then LIBM= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21060 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 21061 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21062 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21063 | then LIBM=$withval |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21064 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 21065 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21066 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 21067 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 21068 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21069 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21070 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21071 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 21072 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
| 21073 | fi |
| 21074 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21075 | |
| 21076 | # check for --with-libc=... |
| 21077 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21078 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 21079 | 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] | 21080 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21081 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21082 | if test "${with_libc+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21083 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21084 | if test "$withval" = no |
| 21085 | then LIBC= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21086 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 21087 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21088 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21089 | then LIBC=$withval |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21090 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 21091 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21092 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 21093 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 21094 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21095 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 21096 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21097 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 21098 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
| 21099 | fi |
| 21100 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21101 | |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21102 | # ************************************ |
| 21103 | # * Check for mathematical functions * |
| 21104 | # ************************************ |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21105 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 21106 | LIBS_SAVE=$LIBS |
| 21107 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21108 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 21109 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 21110 | # -0. on some architectures. |
| 21111 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 21112 | echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; } |
| 21113 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
| 21114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21115 | else |
| 21116 | |
| 21117 | if test "$cross_compiling" = yes; then |
| 21118 | ac_cv_tanh_preserves_zero_sign=no |
| 21119 | else |
| 21120 | cat >conftest.$ac_ext <<_ACEOF |
| 21121 | /* confdefs.h. */ |
| 21122 | _ACEOF |
| 21123 | cat confdefs.h >>conftest.$ac_ext |
| 21124 | cat >>conftest.$ac_ext <<_ACEOF |
| 21125 | /* end confdefs.h. */ |
| 21126 | |
| 21127 | #include <math.h> |
| 21128 | #include <stdlib.h> |
| 21129 | int main() { |
| 21130 | /* return 0 if either negative zeros don't exist |
| 21131 | on this platform or if negative zeros exist |
| 21132 | and tanh(-0.) == -0. */ |
| 21133 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 21134 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 21135 | else exit(1); |
| 21136 | } |
| 21137 | |
| 21138 | _ACEOF |
| 21139 | rm -f conftest$ac_exeext |
| 21140 | if { (ac_try="$ac_link" |
| 21141 | case "(($ac_try" in |
| 21142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21143 | *) ac_try_echo=$ac_try;; |
| 21144 | esac |
| 21145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21146 | (eval "$ac_link") 2>&5 |
| 21147 | ac_status=$? |
| 21148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21149 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21150 | { (case "(($ac_try" in |
| 21151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21152 | *) ac_try_echo=$ac_try;; |
| 21153 | esac |
| 21154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21155 | (eval "$ac_try") 2>&5 |
| 21156 | ac_status=$? |
| 21157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21158 | (exit $ac_status); }; }; then |
| 21159 | ac_cv_tanh_preserves_zero_sign=yes |
| 21160 | else |
| 21161 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21162 | echo "$as_me: failed program was:" >&5 |
| 21163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21164 | |
| 21165 | ( exit $ac_status ) |
| 21166 | ac_cv_tanh_preserves_zero_sign=no |
| 21167 | fi |
| 21168 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21169 | fi |
| 21170 | |
| 21171 | |
| 21172 | fi |
| 21173 | |
| 21174 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 21175 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
| 21176 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 21177 | then |
| 21178 | |
| 21179 | cat >>confdefs.h <<\_ACEOF |
| 21180 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 21181 | _ACEOF |
| 21182 | |
| 21183 | fi |
| 21184 | |
| 21185 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 21186 | for ac_func in hypot |
| 21187 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21188 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21189 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21190 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 21191 | 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] | 21192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 21193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21194 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21195 | /* confdefs.h. */ |
| 21196 | _ACEOF |
| 21197 | cat confdefs.h >>conftest.$ac_ext |
| 21198 | cat >>conftest.$ac_ext <<_ACEOF |
| 21199 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21200 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21201 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21202 | #define $ac_func innocuous_$ac_func |
| 21203 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21204 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21205 | which can conflict with char $ac_func (); below. |
| 21206 | 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] | 21207 | <limits.h> exists even on freestanding compilers. */ |
| 21208 | |
| 21209 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21210 | # include <limits.h> |
| 21211 | #else |
| 21212 | # include <assert.h> |
| 21213 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21214 | |
| 21215 | #undef $ac_func |
| 21216 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21217 | /* Override any GCC internal prototype to avoid an error. |
| 21218 | Use char because int might match the return type of a GCC |
| 21219 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21220 | #ifdef __cplusplus |
| 21221 | extern "C" |
| 21222 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21223 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 21224 | /* The GNU C library defines this for functions which it implements |
| 21225 | to always fail with ENOSYS. Some functions are actually named |
| 21226 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21227 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 21228 | choke me |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 21229 | #endif |
| 21230 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21231 | int |
| 21232 | main () |
| 21233 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21234 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21235 | ; |
| 21236 | return 0; |
| 21237 | } |
| 21238 | _ACEOF |
| 21239 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21240 | if { (ac_try="$ac_link" |
| 21241 | case "(($ac_try" in |
| 21242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21243 | *) ac_try_echo=$ac_try;; |
| 21244 | esac |
| 21245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21246 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21247 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21248 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21249 | rm -f conftest.er1 |
| 21250 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21252 | (exit $ac_status); } && { |
| 21253 | test -z "$ac_c_werror_flag" || |
| 21254 | test ! -s conftest.err |
| 21255 | } && test -s conftest$ac_exeext && |
| 21256 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21257 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 21258 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21259 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21261 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21262 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21263 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21264 | |
| 21265 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21266 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21267 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21268 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21269 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21270 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21271 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 21272 | cat >>confdefs.h <<_ACEOF |
| 21273 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21274 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21275 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21276 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21277 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21278 | *" $ac_func.$ac_objext "* ) ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21279 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 21280 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21281 | esac |
| 21282 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 21283 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 21284 | done |
| 21285 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21286 | |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21287 | |
| 21288 | |
| 21289 | |
| 21290 | |
| 21291 | |
Christian Heimes | 9bd667a | 2008-01-20 15:14:11 +0000 | [diff] [blame] | 21292 | |
| 21293 | |
| 21294 | |
| 21295 | |
| 21296 | |
| 21297 | for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p |
Christian Heimes | 99170a5 | 2007-12-19 02:07:34 +0000 | [diff] [blame] | 21298 | do |
| 21299 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21300 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21301 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 21302 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21304 | else |
| 21305 | cat >conftest.$ac_ext <<_ACEOF |
| 21306 | /* confdefs.h. */ |
| 21307 | _ACEOF |
| 21308 | cat confdefs.h >>conftest.$ac_ext |
| 21309 | cat >>conftest.$ac_ext <<_ACEOF |
| 21310 | /* end confdefs.h. */ |
| 21311 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21312 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21313 | #define $ac_func innocuous_$ac_func |
| 21314 | |
| 21315 | /* System header to define __stub macros and hopefully few prototypes, |
| 21316 | which can conflict with char $ac_func (); below. |
| 21317 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21318 | <limits.h> exists even on freestanding compilers. */ |
| 21319 | |
| 21320 | #ifdef __STDC__ |
| 21321 | # include <limits.h> |
| 21322 | #else |
| 21323 | # include <assert.h> |
| 21324 | #endif |
| 21325 | |
| 21326 | #undef $ac_func |
| 21327 | |
| 21328 | /* Override any GCC internal prototype to avoid an error. |
| 21329 | Use char because int might match the return type of a GCC |
| 21330 | builtin and then its argument prototype would still apply. */ |
| 21331 | #ifdef __cplusplus |
| 21332 | extern "C" |
| 21333 | #endif |
| 21334 | char $ac_func (); |
| 21335 | /* The GNU C library defines this for functions which it implements |
| 21336 | to always fail with ENOSYS. Some functions are actually named |
| 21337 | something starting with __ and the normal name is an alias. */ |
| 21338 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 21339 | choke me |
| 21340 | #endif |
| 21341 | |
| 21342 | int |
| 21343 | main () |
| 21344 | { |
| 21345 | return $ac_func (); |
| 21346 | ; |
| 21347 | return 0; |
| 21348 | } |
| 21349 | _ACEOF |
| 21350 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21351 | if { (ac_try="$ac_link" |
| 21352 | case "(($ac_try" in |
| 21353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21354 | *) ac_try_echo=$ac_try;; |
| 21355 | esac |
| 21356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21357 | (eval "$ac_link") 2>conftest.er1 |
| 21358 | ac_status=$? |
| 21359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21360 | rm -f conftest.er1 |
| 21361 | cat conftest.err >&5 |
| 21362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21363 | (exit $ac_status); } && { |
| 21364 | test -z "$ac_c_werror_flag" || |
| 21365 | test ! -s conftest.err |
| 21366 | } && test -s conftest$ac_exeext && |
| 21367 | $as_test_x conftest$ac_exeext; then |
| 21368 | eval "$as_ac_var=yes" |
| 21369 | else |
| 21370 | echo "$as_me: failed program was:" >&5 |
| 21371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21372 | |
| 21373 | eval "$as_ac_var=no" |
| 21374 | fi |
| 21375 | |
| 21376 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21377 | conftest$ac_exeext conftest.$ac_ext |
| 21378 | fi |
| 21379 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21380 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21381 | echo "${ECHO_T}$ac_res" >&6; } |
| 21382 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 21383 | cat >>confdefs.h <<_ACEOF |
| 21384 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21385 | _ACEOF |
| 21386 | |
| 21387 | fi |
| 21388 | done |
| 21389 | |
| 21390 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 21391 | LIBS=$LIBS_SAVE |
| 21392 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21393 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21394 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21395 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 21396 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21397 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 21398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21399 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21400 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 21401 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21402 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21403 | # Is the header compilable? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21404 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 21405 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21406 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21407 | /* confdefs.h. */ |
| 21408 | _ACEOF |
| 21409 | cat confdefs.h >>conftest.$ac_ext |
| 21410 | cat >>conftest.$ac_ext <<_ACEOF |
| 21411 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21412 | $ac_includes_default |
| 21413 | #include <wchar.h> |
| 21414 | _ACEOF |
| 21415 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21416 | if { (ac_try="$ac_compile" |
| 21417 | case "(($ac_try" in |
| 21418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21419 | *) ac_try_echo=$ac_try;; |
| 21420 | esac |
| 21421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21422 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21423 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21425 | rm -f conftest.er1 |
| 21426 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21428 | (exit $ac_status); } && { |
| 21429 | test -z "$ac_c_werror_flag" || |
| 21430 | test ! -s conftest.err |
| 21431 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21432 | ac_header_compiler=yes |
| 21433 | else |
| 21434 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21436 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21437 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21438 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21439 | |
| 21440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21441 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21442 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21443 | |
| 21444 | # Is the header present? |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21445 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 21446 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21447 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21448 | /* confdefs.h. */ |
| 21449 | _ACEOF |
| 21450 | cat confdefs.h >>conftest.$ac_ext |
| 21451 | cat >>conftest.$ac_ext <<_ACEOF |
| 21452 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21453 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21454 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21455 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21456 | case "(($ac_try" in |
| 21457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21458 | *) ac_try_echo=$ac_try;; |
| 21459 | esac |
| 21460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21461 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21462 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21463 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21464 | rm -f conftest.er1 |
| 21465 | cat conftest.err >&5 |
| 21466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21467 | (exit $ac_status); } >/dev/null && { |
| 21468 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 21469 | test ! -s conftest.err |
| 21470 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21471 | ac_header_preproc=yes |
| 21472 | else |
| 21473 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21476 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21477 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21479 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21480 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21481 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21482 | |
| 21483 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21484 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21485 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21486 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21487 | 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] | 21488 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 21489 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 21490 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21491 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21492 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21493 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 21494 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21495 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 21496 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 21497 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 21498 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 21499 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 21500 | 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] | 21501 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 21502 | 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] | 21503 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 21504 | echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21505 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 21506 | ## ------------------------------------------------ ## |
| 21507 | ## Report this to http://www.python.org/python-bugs ## |
| 21508 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21509 | _ASBOX |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21510 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21511 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21512 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21513 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 21514 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21515 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 21516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21517 | else |
| 21518 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21519 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21520 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 21521 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21522 | |
| 21523 | fi |
| 21524 | if test $ac_cv_header_wchar_h = yes; then |
| 21525 | |
| 21526 | |
| 21527 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21528 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21529 | _ACEOF |
| 21530 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 21531 | wchar_h="yes" |
| 21532 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21533 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21534 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21535 | |
| 21536 | fi |
| 21537 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21539 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21540 | # determine wchar_t size |
| 21541 | if test "$wchar_h" = yes |
| 21542 | then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21543 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 21544 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21545 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 21546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21547 | else |
| 21548 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21549 | /* confdefs.h. */ |
| 21550 | _ACEOF |
| 21551 | cat confdefs.h >>conftest.$ac_ext |
| 21552 | cat >>conftest.$ac_ext <<_ACEOF |
| 21553 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21554 | #include <wchar.h> |
| 21555 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21556 | typedef wchar_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21557 | int |
| 21558 | main () |
| 21559 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21560 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21561 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21562 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21563 | return 0; |
| 21564 | ; |
| 21565 | return 0; |
| 21566 | } |
| 21567 | _ACEOF |
| 21568 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21569 | if { (ac_try="$ac_compile" |
| 21570 | case "(($ac_try" in |
| 21571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21572 | *) ac_try_echo=$ac_try;; |
| 21573 | esac |
| 21574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21575 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21576 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21578 | rm -f conftest.er1 |
| 21579 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21581 | (exit $ac_status); } && { |
| 21582 | test -z "$ac_c_werror_flag" || |
| 21583 | test ! -s conftest.err |
| 21584 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21585 | ac_cv_type_wchar_t=yes |
| 21586 | else |
| 21587 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21589 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21590 | ac_cv_type_wchar_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21591 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21592 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21594 | fi |
| 21595 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 21596 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 21597 | |
| 21598 | # The cast to long int works around a bug in the HP C Compiler |
| 21599 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 21600 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 21601 | # This bug is HP SR number 8606223364. |
| 21602 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 21603 | 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] | 21604 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 21605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21606 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21607 | if test "$cross_compiling" = yes; then |
| 21608 | # Depending upon the size, compute the lo and hi bounds. |
| 21609 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21610 | /* confdefs.h. */ |
| 21611 | _ACEOF |
| 21612 | cat confdefs.h >>conftest.$ac_ext |
| 21613 | cat >>conftest.$ac_ext <<_ACEOF |
| 21614 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21615 | #include <wchar.h> |
| 21616 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21617 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21618 | int |
| 21619 | main () |
| 21620 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21621 | 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] | 21622 | test_array [0] = 0 |
| 21623 | |
| 21624 | ; |
| 21625 | return 0; |
| 21626 | } |
| 21627 | _ACEOF |
| 21628 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21629 | if { (ac_try="$ac_compile" |
| 21630 | case "(($ac_try" in |
| 21631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21632 | *) ac_try_echo=$ac_try;; |
| 21633 | esac |
| 21634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21635 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21636 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21638 | rm -f conftest.er1 |
| 21639 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21641 | (exit $ac_status); } && { |
| 21642 | test -z "$ac_c_werror_flag" || |
| 21643 | test ! -s conftest.err |
| 21644 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21645 | ac_lo=0 ac_mid=0 |
| 21646 | while :; do |
| 21647 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21648 | /* confdefs.h. */ |
| 21649 | _ACEOF |
| 21650 | cat confdefs.h >>conftest.$ac_ext |
| 21651 | cat >>conftest.$ac_ext <<_ACEOF |
| 21652 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21653 | #include <wchar.h> |
| 21654 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21655 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21656 | int |
| 21657 | main () |
| 21658 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21659 | 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] | 21660 | test_array [0] = 0 |
| 21661 | |
| 21662 | ; |
| 21663 | return 0; |
| 21664 | } |
| 21665 | _ACEOF |
| 21666 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21667 | if { (ac_try="$ac_compile" |
| 21668 | case "(($ac_try" in |
| 21669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21670 | *) ac_try_echo=$ac_try;; |
| 21671 | esac |
| 21672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21673 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21674 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21676 | rm -f conftest.er1 |
| 21677 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21679 | (exit $ac_status); } && { |
| 21680 | test -z "$ac_c_werror_flag" || |
| 21681 | test ! -s conftest.err |
| 21682 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21683 | ac_hi=$ac_mid; break |
| 21684 | else |
| 21685 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21687 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21688 | ac_lo=`expr $ac_mid + 1` |
| 21689 | if test $ac_lo -le $ac_mid; then |
| 21690 | ac_lo= ac_hi= |
| 21691 | break |
| 21692 | fi |
| 21693 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21694 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21695 | |
| 21696 | 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] | 21697 | done |
| 21698 | else |
| 21699 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21701 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21702 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21703 | /* confdefs.h. */ |
| 21704 | _ACEOF |
| 21705 | cat confdefs.h >>conftest.$ac_ext |
| 21706 | cat >>conftest.$ac_ext <<_ACEOF |
| 21707 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21708 | #include <wchar.h> |
| 21709 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21710 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21711 | int |
| 21712 | main () |
| 21713 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21714 | 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] | 21715 | test_array [0] = 0 |
| 21716 | |
| 21717 | ; |
| 21718 | return 0; |
| 21719 | } |
| 21720 | _ACEOF |
| 21721 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21722 | if { (ac_try="$ac_compile" |
| 21723 | case "(($ac_try" in |
| 21724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21725 | *) ac_try_echo=$ac_try;; |
| 21726 | esac |
| 21727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21728 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21729 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21731 | rm -f conftest.er1 |
| 21732 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21734 | (exit $ac_status); } && { |
| 21735 | test -z "$ac_c_werror_flag" || |
| 21736 | test ! -s conftest.err |
| 21737 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21738 | ac_hi=-1 ac_mid=-1 |
| 21739 | while :; do |
| 21740 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21741 | /* confdefs.h. */ |
| 21742 | _ACEOF |
| 21743 | cat confdefs.h >>conftest.$ac_ext |
| 21744 | cat >>conftest.$ac_ext <<_ACEOF |
| 21745 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21746 | #include <wchar.h> |
| 21747 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21748 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21749 | int |
| 21750 | main () |
| 21751 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21752 | 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] | 21753 | test_array [0] = 0 |
| 21754 | |
| 21755 | ; |
| 21756 | return 0; |
| 21757 | } |
| 21758 | _ACEOF |
| 21759 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21760 | if { (ac_try="$ac_compile" |
| 21761 | case "(($ac_try" in |
| 21762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21763 | *) ac_try_echo=$ac_try;; |
| 21764 | esac |
| 21765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21766 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21767 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21769 | rm -f conftest.er1 |
| 21770 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21772 | (exit $ac_status); } && { |
| 21773 | test -z "$ac_c_werror_flag" || |
| 21774 | test ! -s conftest.err |
| 21775 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21776 | ac_lo=$ac_mid; break |
| 21777 | else |
| 21778 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21780 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21781 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 21782 | if test $ac_mid -le $ac_hi; then |
| 21783 | ac_lo= ac_hi= |
| 21784 | break |
| 21785 | fi |
| 21786 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21787 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21788 | |
| 21789 | 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] | 21790 | done |
| 21791 | else |
| 21792 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21794 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21795 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21796 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21797 | |
| 21798 | 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] | 21799 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21800 | |
| 21801 | 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] | 21802 | # Binary search between lo and hi bounds. |
| 21803 | while test "x$ac_lo" != "x$ac_hi"; do |
| 21804 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 21805 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21806 | /* confdefs.h. */ |
| 21807 | _ACEOF |
| 21808 | cat confdefs.h >>conftest.$ac_ext |
| 21809 | cat >>conftest.$ac_ext <<_ACEOF |
| 21810 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21811 | #include <wchar.h> |
| 21812 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21813 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21814 | int |
| 21815 | main () |
| 21816 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21817 | 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] | 21818 | test_array [0] = 0 |
| 21819 | |
| 21820 | ; |
| 21821 | return 0; |
| 21822 | } |
| 21823 | _ACEOF |
| 21824 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21825 | if { (ac_try="$ac_compile" |
| 21826 | case "(($ac_try" in |
| 21827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21828 | *) ac_try_echo=$ac_try;; |
| 21829 | esac |
| 21830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21831 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21832 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21834 | rm -f conftest.er1 |
| 21835 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21837 | (exit $ac_status); } && { |
| 21838 | test -z "$ac_c_werror_flag" || |
| 21839 | test ! -s conftest.err |
| 21840 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21841 | ac_hi=$ac_mid |
| 21842 | else |
| 21843 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21845 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21846 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21847 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21848 | |
| 21849 | 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] | 21850 | done |
| 21851 | case $ac_lo in |
| 21852 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21853 | '') if test "$ac_cv_type_wchar_t" = yes; then |
| 21854 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21855 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21856 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21857 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21858 | { (exit 77); exit 77; }; } |
| 21859 | else |
| 21860 | ac_cv_sizeof_wchar_t=0 |
| 21861 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21862 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21863 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21864 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21865 | /* confdefs.h. */ |
| 21866 | _ACEOF |
| 21867 | cat confdefs.h >>conftest.$ac_ext |
| 21868 | cat >>conftest.$ac_ext <<_ACEOF |
| 21869 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21870 | #include <wchar.h> |
| 21871 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21872 | typedef wchar_t ac__type_sizeof_; |
| 21873 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 21874 | 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] | 21875 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21876 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21877 | int |
| 21878 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21879 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21880 | |
| 21881 | FILE *f = fopen ("conftest.val", "w"); |
| 21882 | if (! f) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21883 | return 1; |
| 21884 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21885 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21886 | long int i = longval (); |
| 21887 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 21888 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21889 | fprintf (f, "%ld\n", i); |
| 21890 | } |
| 21891 | else |
| 21892 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21893 | unsigned long int i = ulongval (); |
| 21894 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 21895 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21896 | fprintf (f, "%lu\n", i); |
| 21897 | } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21898 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21899 | |
| 21900 | ; |
| 21901 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21902 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21903 | _ACEOF |
| 21904 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21905 | if { (ac_try="$ac_link" |
| 21906 | case "(($ac_try" in |
| 21907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21908 | *) ac_try_echo=$ac_try;; |
| 21909 | esac |
| 21910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21911 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21912 | ac_status=$? |
| 21913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21914 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21915 | { (case "(($ac_try" in |
| 21916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21917 | *) ac_try_echo=$ac_try;; |
| 21918 | esac |
| 21919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21920 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21921 | ac_status=$? |
| 21922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21923 | (exit $ac_status); }; }; then |
| 21924 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21925 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21926 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21927 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21930 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21931 | if test "$ac_cv_type_wchar_t" = yes; then |
| 21932 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21933 | See \`config.log' for more details." >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21934 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21935 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21936 | { (exit 77); exit 77; }; } |
| 21937 | else |
| 21938 | ac_cv_sizeof_wchar_t=0 |
| 21939 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21940 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21941 | 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] | 21942 | fi |
| 21943 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21944 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21945 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 21946 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
| 21947 | |
| 21948 | |
| 21949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21950 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21951 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21952 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21953 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21954 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 21955 | fi |
| 21956 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21957 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 21958 | 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] | 21959 | have_ucs4_tcl=no |
| 21960 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21961 | /* confdefs.h. */ |
| 21962 | _ACEOF |
| 21963 | cat confdefs.h >>conftest.$ac_ext |
| 21964 | cat >>conftest.$ac_ext <<_ACEOF |
| 21965 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 21966 | |
| 21967 | #include <tcl.h> |
| 21968 | #if TCL_UTF_MAX != 6 |
| 21969 | # error "NOT UCS4_TCL" |
| 21970 | #endif |
| 21971 | int |
| 21972 | main () |
| 21973 | { |
| 21974 | |
| 21975 | ; |
| 21976 | return 0; |
| 21977 | } |
| 21978 | _ACEOF |
| 21979 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21980 | if { (ac_try="$ac_compile" |
| 21981 | case "(($ac_try" in |
| 21982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21983 | *) ac_try_echo=$ac_try;; |
| 21984 | esac |
| 21985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21986 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 21987 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21989 | rm -f conftest.er1 |
| 21990 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 21991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 21992 | (exit $ac_status); } && { |
| 21993 | test -z "$ac_c_werror_flag" || |
| 21994 | test ! -s conftest.err |
| 21995 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 21996 | |
| 21997 | |
| 21998 | cat >>confdefs.h <<\_ACEOF |
| 21999 | #define HAVE_UCS4_TCL 1 |
| 22000 | _ACEOF |
| 22001 | |
| 22002 | have_ucs4_tcl=yes |
| 22003 | |
| 22004 | else |
| 22005 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22007 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22008 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 22009 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22010 | |
| 22011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22012 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 22013 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 22014 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22015 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22016 | if test "$wchar_h" = yes |
| 22017 | then |
| 22018 | # check whether wchar_t is signed or not |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22019 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 22020 | 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] | 22021 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 22022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22023 | else |
| 22024 | |
| 22025 | if test "$cross_compiling" = yes; then |
| 22026 | ac_cv_wchar_t_signed=yes |
| 22027 | else |
| 22028 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22029 | /* confdefs.h. */ |
| 22030 | _ACEOF |
| 22031 | cat confdefs.h >>conftest.$ac_ext |
| 22032 | cat >>conftest.$ac_ext <<_ACEOF |
| 22033 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22034 | |
| 22035 | #include <wchar.h> |
| 22036 | int main() |
| 22037 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 22038 | /* Success: exit code 0 */ |
| 22039 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22040 | } |
| 22041 | |
| 22042 | _ACEOF |
| 22043 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22044 | if { (ac_try="$ac_link" |
| 22045 | case "(($ac_try" in |
| 22046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22047 | *) ac_try_echo=$ac_try;; |
| 22048 | esac |
| 22049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22050 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22051 | ac_status=$? |
| 22052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22053 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22054 | { (case "(($ac_try" in |
| 22055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22056 | *) ac_try_echo=$ac_try;; |
| 22057 | esac |
| 22058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22059 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22060 | ac_status=$? |
| 22061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22062 | (exit $ac_status); }; }; then |
| 22063 | ac_cv_wchar_t_signed=yes |
| 22064 | else |
| 22065 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22066 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22068 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22069 | ( exit $ac_status ) |
| 22070 | ac_cv_wchar_t_signed=no |
| 22071 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22072 | 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] | 22073 | fi |
| 22074 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22075 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22076 | fi |
| 22077 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22078 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 22079 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
| 22080 | fi |
| 22081 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22082 | { echo "$as_me:$LINENO: checking what type to use for str" >&5 |
| 22083 | echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; } |
| 22084 | |
| 22085 | # Check whether --with-wide-unicode was given. |
| 22086 | if test "${with_wide_unicode+set}" = set; then |
| 22087 | withval=$with_wide_unicode; |
| 22088 | if test "$withval" != no |
| 22089 | then unicode_size="4" |
| 22090 | else unicode_size="2" |
| 22091 | fi |
| 22092 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22093 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22094 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22095 | case "$have_ucs4_tcl" in |
| 22096 | yes) unicode_size="4" ;; |
| 22097 | *) unicode_size="2" ;; |
| 22098 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22099 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22100 | fi |
| 22101 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 22102 | |
| 22103 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22104 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22105 | case "$unicode_size" in |
| 22106 | 4) cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22107 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22108 | _ACEOF |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22109 | ;; |
| 22110 | *) cat >>confdefs.h <<\_ACEOF |
| 22111 | #define Py_UNICODE_SIZE 2 |
| 22112 | _ACEOF |
| 22113 | ;; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22114 | esac |
| 22115 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22117 | |
| 22118 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22119 | # wchar_t is only usable if it maps to an unsigned type |
| 22120 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 22121 | -a "$ac_cv_wchar_t_signed" = "no" |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22122 | then |
| 22123 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22125 | cat >>confdefs.h <<\_ACEOF |
| 22126 | #define HAVE_USABLE_WCHAR_T 1 |
| 22127 | _ACEOF |
| 22128 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22129 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22130 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22131 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22132 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22133 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 22134 | then |
| 22135 | PY_UNICODE_TYPE="unsigned short" |
| 22136 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22137 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22138 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22139 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22140 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 22141 | then |
| 22142 | PY_UNICODE_TYPE="unsigned long" |
| 22143 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22144 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22145 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22146 | |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22147 | else |
| 22148 | PY_UNICODE_TYPE="no type found" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 22149 | fi |
Georg Brandl | 52d168a | 2008-01-07 18:10:24 +0000 | [diff] [blame] | 22150 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 22151 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22152 | |
| 22153 | # check for endianness |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22154 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 22155 | 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] | 22156 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 22157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22158 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22159 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 22160 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22161 | /* confdefs.h. */ |
| 22162 | _ACEOF |
| 22163 | cat confdefs.h >>conftest.$ac_ext |
| 22164 | cat >>conftest.$ac_ext <<_ACEOF |
| 22165 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22166 | #include <sys/types.h> |
| 22167 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22168 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22169 | int |
| 22170 | main () |
| 22171 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22172 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 22173 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22174 | bogus endian macros |
| 22175 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22176 | |
| 22177 | ; |
| 22178 | return 0; |
| 22179 | } |
| 22180 | _ACEOF |
| 22181 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22182 | if { (ac_try="$ac_compile" |
| 22183 | case "(($ac_try" in |
| 22184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22185 | *) ac_try_echo=$ac_try;; |
| 22186 | esac |
| 22187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22188 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22189 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22191 | rm -f conftest.er1 |
| 22192 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22194 | (exit $ac_status); } && { |
| 22195 | test -z "$ac_c_werror_flag" || |
| 22196 | test ! -s conftest.err |
| 22197 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22198 | # 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] | 22199 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22200 | /* confdefs.h. */ |
| 22201 | _ACEOF |
| 22202 | cat confdefs.h >>conftest.$ac_ext |
| 22203 | cat >>conftest.$ac_ext <<_ACEOF |
| 22204 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22205 | #include <sys/types.h> |
| 22206 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22208 | int |
| 22209 | main () |
| 22210 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22211 | #if BYTE_ORDER != BIG_ENDIAN |
| 22212 | not big endian |
| 22213 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22214 | |
| 22215 | ; |
| 22216 | return 0; |
| 22217 | } |
| 22218 | _ACEOF |
| 22219 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22220 | if { (ac_try="$ac_compile" |
| 22221 | case "(($ac_try" in |
| 22222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22223 | *) ac_try_echo=$ac_try;; |
| 22224 | esac |
| 22225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22226 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22227 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22229 | rm -f conftest.er1 |
| 22230 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22232 | (exit $ac_status); } && { |
| 22233 | test -z "$ac_c_werror_flag" || |
| 22234 | test ! -s conftest.err |
| 22235 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22236 | ac_cv_c_bigendian=yes |
| 22237 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22238 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22240 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22241 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22242 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22243 | |
| 22244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22246 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22248 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22249 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22250 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22251 | # 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] | 22252 | ac_cv_c_bigendian=unknown |
| 22253 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22254 | /* confdefs.h. */ |
| 22255 | _ACEOF |
| 22256 | cat confdefs.h >>conftest.$ac_ext |
| 22257 | cat >>conftest.$ac_ext <<_ACEOF |
| 22258 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22259 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 22260 | 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] | 22261 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22262 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 22263 | 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] | 22264 | 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] | 22265 | int |
| 22266 | main () |
| 22267 | { |
| 22268 | _ascii (); _ebcdic (); |
| 22269 | ; |
| 22270 | return 0; |
| 22271 | } |
| 22272 | _ACEOF |
| 22273 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22274 | if { (ac_try="$ac_compile" |
| 22275 | case "(($ac_try" in |
| 22276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22277 | *) ac_try_echo=$ac_try;; |
| 22278 | esac |
| 22279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22280 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22281 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22283 | rm -f conftest.er1 |
| 22284 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22286 | (exit $ac_status); } && { |
| 22287 | test -z "$ac_c_werror_flag" || |
| 22288 | test ! -s conftest.err |
| 22289 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22290 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22291 | ac_cv_c_bigendian=yes |
| 22292 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22293 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22294 | if test "$ac_cv_c_bigendian" = unknown; then |
| 22295 | ac_cv_c_bigendian=no |
| 22296 | else |
| 22297 | # finding both strings is unlikely to happen, but who knows? |
| 22298 | ac_cv_c_bigendian=unknown |
| 22299 | fi |
| 22300 | fi |
| 22301 | else |
| 22302 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22304 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22306 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22307 | |
| 22308 | 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] | 22309 | else |
| 22310 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22311 | /* confdefs.h. */ |
| 22312 | _ACEOF |
| 22313 | cat confdefs.h >>conftest.$ac_ext |
| 22314 | cat >>conftest.$ac_ext <<_ACEOF |
| 22315 | /* end confdefs.h. */ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22316 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22317 | int |
| 22318 | main () |
| 22319 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22320 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22321 | /* Are we little or big endian? From Harbison&Steele. */ |
| 22322 | union |
| 22323 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22324 | long int l; |
| 22325 | char c[sizeof (long int)]; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22326 | } u; |
| 22327 | u.l = 1; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22328 | return u.c[sizeof (long int) - 1] == 1; |
| 22329 | |
| 22330 | ; |
| 22331 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22332 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22333 | _ACEOF |
| 22334 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22335 | if { (ac_try="$ac_link" |
| 22336 | case "(($ac_try" in |
| 22337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22338 | *) ac_try_echo=$ac_try;; |
| 22339 | esac |
| 22340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22341 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22342 | ac_status=$? |
| 22343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22344 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22345 | { (case "(($ac_try" in |
| 22346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22347 | *) ac_try_echo=$ac_try;; |
| 22348 | esac |
| 22349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22350 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22351 | ac_status=$? |
| 22352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22353 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22354 | ac_cv_c_bigendian=no |
| 22355 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22356 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22357 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22360 | ( exit $ac_status ) |
| 22361 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22362 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22363 | 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] | 22364 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22365 | |
| 22366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22367 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22368 | |
| 22369 | 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] | 22370 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22371 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 22372 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22373 | case $ac_cv_c_bigendian in |
| 22374 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22376 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22377 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22378 | _ACEOF |
| 22379 | ;; |
| 22380 | no) |
| 22381 | ;; |
| 22382 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22383 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22384 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22385 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22386 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 22387 | { (exit 1); exit 1; }; } ;; |
| 22388 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 22389 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22390 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22391 | |
| 22392 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 22393 | # Check whether right shifting a negative integer extends the sign bit |
| 22394 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22395 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 22396 | 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] | 22397 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 22398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 22399 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22400 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 22401 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 22402 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 22403 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22404 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22405 | /* confdefs.h. */ |
| 22406 | _ACEOF |
| 22407 | cat confdefs.h >>conftest.$ac_ext |
| 22408 | cat >>conftest.$ac_ext <<_ACEOF |
| 22409 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 22410 | |
| 22411 | int main() |
| 22412 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 22413 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 22414 | } |
| 22415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22416 | _ACEOF |
| 22417 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22418 | if { (ac_try="$ac_link" |
| 22419 | case "(($ac_try" in |
| 22420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22421 | *) ac_try_echo=$ac_try;; |
| 22422 | esac |
| 22423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22424 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22425 | ac_status=$? |
| 22426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22427 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22428 | { (case "(($ac_try" in |
| 22429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22430 | *) ac_try_echo=$ac_try;; |
| 22431 | esac |
| 22432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22433 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22434 | ac_status=$? |
| 22435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22436 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 22437 | ac_cv_rshift_extends_sign=yes |
| 22438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22439 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22440 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22443 | ( exit $ac_status ) |
| 22444 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 22445 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22446 | 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] | 22447 | fi |
| 22448 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22449 | |
| 22450 | fi |
| 22451 | |
| 22452 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 22453 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 22454 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 22455 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22456 | |
| 22457 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 22458 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22459 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 22460 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 22461 | fi |
| 22462 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 22463 | # check for getc_unlocked and related locking functions |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22464 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 22465 | 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] | 22466 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 22467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 22468 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22469 | |
| 22470 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22471 | /* confdefs.h. */ |
| 22472 | _ACEOF |
| 22473 | cat confdefs.h >>conftest.$ac_ext |
| 22474 | cat >>conftest.$ac_ext <<_ACEOF |
| 22475 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 22476 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22477 | int |
| 22478 | main () |
| 22479 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 22480 | |
| 22481 | FILE *f = fopen("/dev/null", "r"); |
| 22482 | flockfile(f); |
| 22483 | getc_unlocked(f); |
| 22484 | funlockfile(f); |
| 22485 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22486 | ; |
| 22487 | return 0; |
| 22488 | } |
| 22489 | _ACEOF |
| 22490 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22491 | if { (ac_try="$ac_link" |
| 22492 | case "(($ac_try" in |
| 22493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22494 | *) ac_try_echo=$ac_try;; |
| 22495 | esac |
| 22496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22497 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22498 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22500 | rm -f conftest.er1 |
| 22501 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22503 | (exit $ac_status); } && { |
| 22504 | test -z "$ac_c_werror_flag" || |
| 22505 | test ! -s conftest.err |
| 22506 | } && test -s conftest$ac_exeext && |
| 22507 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 22508 | ac_cv_have_getc_unlocked=yes |
| 22509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22510 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22512 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22513 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 22514 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22515 | |
| 22516 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22517 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 22518 | fi |
| 22519 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22520 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 22521 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 22522 | if test "$ac_cv_have_getc_unlocked" = yes |
| 22523 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22524 | |
| 22525 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 22526 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22527 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 22528 | |
| 22529 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 22530 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22531 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 22532 | # save the value of LIBS so we don't actually link Python with readline |
| 22533 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22534 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22535 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 22536 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22537 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
| 22538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22539 | else |
| 22540 | ac_check_lib_save_LIBS=$LIBS |
| 22541 | LIBS="-lreadline $LIBS" |
| 22542 | cat >conftest.$ac_ext <<_ACEOF |
| 22543 | /* confdefs.h. */ |
| 22544 | _ACEOF |
| 22545 | cat confdefs.h >>conftest.$ac_ext |
| 22546 | cat >>conftest.$ac_ext <<_ACEOF |
| 22547 | /* end confdefs.h. */ |
| 22548 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22549 | /* Override any GCC internal prototype to avoid an error. |
| 22550 | Use char because int might match the return type of a GCC |
| 22551 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22552 | #ifdef __cplusplus |
| 22553 | extern "C" |
| 22554 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22555 | char readline (); |
| 22556 | int |
| 22557 | main () |
| 22558 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22559 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22560 | ; |
| 22561 | return 0; |
| 22562 | } |
| 22563 | _ACEOF |
| 22564 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22565 | if { (ac_try="$ac_link" |
| 22566 | case "(($ac_try" in |
| 22567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22568 | *) ac_try_echo=$ac_try;; |
| 22569 | esac |
| 22570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22571 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22572 | ac_status=$? |
| 22573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22574 | rm -f conftest.er1 |
| 22575 | cat conftest.err >&5 |
| 22576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22577 | (exit $ac_status); } && { |
| 22578 | test -z "$ac_c_werror_flag" || |
| 22579 | test ! -s conftest.err |
| 22580 | } && test -s conftest$ac_exeext && |
| 22581 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22582 | ac_cv_lib_readline_readline=yes |
| 22583 | else |
| 22584 | echo "$as_me: failed program was:" >&5 |
| 22585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22586 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22587 | ac_cv_lib_readline_readline=no |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22588 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22589 | |
| 22590 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22591 | conftest$ac_exeext conftest.$ac_ext |
| 22592 | LIBS=$ac_check_lib_save_LIBS |
| 22593 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22594 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 22595 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22596 | if test $ac_cv_lib_readline_readline = yes; then |
| 22597 | cat >>confdefs.h <<_ACEOF |
| 22598 | #define HAVE_LIBREADLINE 1 |
| 22599 | _ACEOF |
| 22600 | |
| 22601 | LIBS="-lreadline $LIBS" |
| 22602 | |
| 22603 | fi |
| 22604 | |
| 22605 | if test "$ac_cv_have_readline_readline" = no |
| 22606 | then |
| 22607 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22608 | { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5 |
| 22609 | echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22610 | if test "${ac_cv_lib_termcap_readline+set}" = set; then |
| 22611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22612 | else |
| 22613 | ac_check_lib_save_LIBS=$LIBS |
| 22614 | LIBS="-ltermcap $LIBS" |
| 22615 | cat >conftest.$ac_ext <<_ACEOF |
| 22616 | /* confdefs.h. */ |
| 22617 | _ACEOF |
| 22618 | cat confdefs.h >>conftest.$ac_ext |
| 22619 | cat >>conftest.$ac_ext <<_ACEOF |
| 22620 | /* end confdefs.h. */ |
| 22621 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22622 | /* Override any GCC internal prototype to avoid an error. |
| 22623 | Use char because int might match the return type of a GCC |
| 22624 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22625 | #ifdef __cplusplus |
| 22626 | extern "C" |
| 22627 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22628 | char readline (); |
| 22629 | int |
| 22630 | main () |
| 22631 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22632 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22633 | ; |
| 22634 | return 0; |
| 22635 | } |
| 22636 | _ACEOF |
| 22637 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22638 | if { (ac_try="$ac_link" |
| 22639 | case "(($ac_try" in |
| 22640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22641 | *) ac_try_echo=$ac_try;; |
| 22642 | esac |
| 22643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22644 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22645 | ac_status=$? |
| 22646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22647 | rm -f conftest.er1 |
| 22648 | cat conftest.err >&5 |
| 22649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22650 | (exit $ac_status); } && { |
| 22651 | test -z "$ac_c_werror_flag" || |
| 22652 | test ! -s conftest.err |
| 22653 | } && test -s conftest$ac_exeext && |
| 22654 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22655 | ac_cv_lib_termcap_readline=yes |
| 22656 | else |
| 22657 | echo "$as_me: failed program was:" >&5 |
| 22658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22659 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22660 | ac_cv_lib_termcap_readline=no |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22661 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22662 | |
| 22663 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22664 | conftest$ac_exeext conftest.$ac_ext |
| 22665 | LIBS=$ac_check_lib_save_LIBS |
| 22666 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22667 | { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5 |
| 22668 | echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22669 | if test $ac_cv_lib_termcap_readline = yes; then |
| 22670 | cat >>confdefs.h <<_ACEOF |
| 22671 | #define HAVE_LIBTERMCAP 1 |
| 22672 | _ACEOF |
| 22673 | |
| 22674 | LIBS="-ltermcap $LIBS" |
| 22675 | |
| 22676 | fi |
| 22677 | |
| 22678 | fi |
| 22679 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22680 | # check for readline 2.1 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22681 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 22682 | 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] | 22683 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| 22684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22685 | else |
| 22686 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22687 | LIBS="-lreadline $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22688 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22689 | /* confdefs.h. */ |
| 22690 | _ACEOF |
| 22691 | cat confdefs.h >>conftest.$ac_ext |
| 22692 | cat >>conftest.$ac_ext <<_ACEOF |
| 22693 | /* end confdefs.h. */ |
| 22694 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22695 | /* Override any GCC internal prototype to avoid an error. |
| 22696 | Use char because int might match the return type of a GCC |
| 22697 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22698 | #ifdef __cplusplus |
| 22699 | extern "C" |
| 22700 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22701 | char rl_callback_handler_install (); |
| 22702 | int |
| 22703 | main () |
| 22704 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22705 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22706 | ; |
| 22707 | return 0; |
| 22708 | } |
| 22709 | _ACEOF |
| 22710 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22711 | if { (ac_try="$ac_link" |
| 22712 | case "(($ac_try" in |
| 22713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22714 | *) ac_try_echo=$ac_try;; |
| 22715 | esac |
| 22716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22717 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22718 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22720 | rm -f conftest.er1 |
| 22721 | cat conftest.err >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22723 | (exit $ac_status); } && { |
| 22724 | test -z "$ac_c_werror_flag" || |
| 22725 | test ! -s conftest.err |
| 22726 | } && test -s conftest$ac_exeext && |
| 22727 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22728 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 22729 | else |
| 22730 | echo "$as_me: failed program was:" >&5 |
| 22731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22732 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22733 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22734 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22735 | |
| 22736 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22737 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 22738 | LIBS=$ac_check_lib_save_LIBS |
| 22739 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22740 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 22741 | 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] | 22742 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| 22743 | |
| 22744 | cat >>confdefs.h <<\_ACEOF |
| 22745 | #define HAVE_RL_CALLBACK 1 |
| 22746 | _ACEOF |
| 22747 | |
| 22748 | fi |
| 22749 | |
| 22750 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 22751 | # check for readline 2.2 |
| 22752 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22753 | /* confdefs.h. */ |
| 22754 | _ACEOF |
| 22755 | cat confdefs.h >>conftest.$ac_ext |
| 22756 | cat >>conftest.$ac_ext <<_ACEOF |
| 22757 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 22758 | #include <readline/readline.h> |
| 22759 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22760 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 22761 | case "(($ac_try" in |
| 22762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22763 | *) ac_try_echo=$ac_try;; |
| 22764 | esac |
| 22765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22766 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 22767 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22768 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 22769 | rm -f conftest.er1 |
| 22770 | cat conftest.err >&5 |
| 22771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22772 | (exit $ac_status); } >/dev/null && { |
| 22773 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 22774 | test ! -s conftest.err |
| 22775 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 22776 | have_readline=yes |
| 22777 | else |
| 22778 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22780 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 22781 | have_readline=no |
| 22782 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22783 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 22784 | rm -f conftest.err conftest.$ac_ext |
| 22785 | if test $have_readline = yes |
| 22786 | then |
| 22787 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22788 | /* confdefs.h. */ |
| 22789 | _ACEOF |
| 22790 | cat confdefs.h >>conftest.$ac_ext |
| 22791 | cat >>conftest.$ac_ext <<_ACEOF |
| 22792 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 22793 | #include <readline/readline.h> |
| 22794 | |
| 22795 | _ACEOF |
| 22796 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22797 | $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] | 22798 | |
| 22799 | cat >>confdefs.h <<\_ACEOF |
| 22800 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 22801 | _ACEOF |
| 22802 | |
| 22803 | fi |
| 22804 | rm -f conftest* |
| 22805 | |
| 22806 | fi |
| 22807 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 22808 | # check for readline 4.0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22809 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 22810 | 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] | 22811 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 22812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 22813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22814 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22815 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22816 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22817 | /* confdefs.h. */ |
| 22818 | _ACEOF |
| 22819 | cat confdefs.h >>conftest.$ac_ext |
| 22820 | cat >>conftest.$ac_ext <<_ACEOF |
| 22821 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22822 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22823 | /* Override any GCC internal prototype to avoid an error. |
| 22824 | Use char because int might match the return type of a GCC |
| 22825 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22826 | #ifdef __cplusplus |
| 22827 | extern "C" |
| 22828 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22829 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22830 | int |
| 22831 | main () |
| 22832 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22833 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22834 | ; |
| 22835 | return 0; |
| 22836 | } |
| 22837 | _ACEOF |
| 22838 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22839 | if { (ac_try="$ac_link" |
| 22840 | case "(($ac_try" in |
| 22841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22842 | *) ac_try_echo=$ac_try;; |
| 22843 | esac |
| 22844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22845 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22846 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22848 | rm -f conftest.er1 |
| 22849 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22851 | (exit $ac_status); } && { |
| 22852 | test -z "$ac_c_werror_flag" || |
| 22853 | test ! -s conftest.err |
| 22854 | } && test -s conftest$ac_exeext && |
| 22855 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22856 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 22857 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22858 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22860 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22861 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 22862 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22863 | |
| 22864 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22865 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22866 | LIBS=$ac_check_lib_save_LIBS |
| 22867 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22868 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 22869 | 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] | 22870 | 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] | 22871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22872 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 22873 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22874 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 22875 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 22876 | fi |
| 22877 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22878 | |
Thomas Wouters | 89d996e | 2007-09-08 17:39:28 +0000 | [diff] [blame] | 22879 | # also in 4.0 |
| 22880 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 22881 | echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; } |
| 22882 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then |
| 22883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22884 | else |
| 22885 | ac_check_lib_save_LIBS=$LIBS |
| 22886 | LIBS="-lreadline $LIBS" |
| 22887 | cat >conftest.$ac_ext <<_ACEOF |
| 22888 | /* confdefs.h. */ |
| 22889 | _ACEOF |
| 22890 | cat confdefs.h >>conftest.$ac_ext |
| 22891 | cat >>conftest.$ac_ext <<_ACEOF |
| 22892 | /* end confdefs.h. */ |
| 22893 | |
| 22894 | /* Override any GCC internal prototype to avoid an error. |
| 22895 | Use char because int might match the return type of a GCC |
| 22896 | builtin and then its argument prototype would still apply. */ |
| 22897 | #ifdef __cplusplus |
| 22898 | extern "C" |
| 22899 | #endif |
| 22900 | char rl_completion_display_matches_hook (); |
| 22901 | int |
| 22902 | main () |
| 22903 | { |
| 22904 | return rl_completion_display_matches_hook (); |
| 22905 | ; |
| 22906 | return 0; |
| 22907 | } |
| 22908 | _ACEOF |
| 22909 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22910 | if { (ac_try="$ac_link" |
| 22911 | case "(($ac_try" in |
| 22912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22913 | *) ac_try_echo=$ac_try;; |
| 22914 | esac |
| 22915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22916 | (eval "$ac_link") 2>conftest.er1 |
| 22917 | ac_status=$? |
| 22918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22919 | rm -f conftest.er1 |
| 22920 | cat conftest.err >&5 |
| 22921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22922 | (exit $ac_status); } && { |
| 22923 | test -z "$ac_c_werror_flag" || |
| 22924 | test ! -s conftest.err |
| 22925 | } && test -s conftest$ac_exeext && |
| 22926 | $as_test_x conftest$ac_exeext; then |
| 22927 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 22928 | else |
| 22929 | echo "$as_me: failed program was:" >&5 |
| 22930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22931 | |
| 22932 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 22933 | fi |
| 22934 | |
| 22935 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 22936 | conftest$ac_exeext conftest.$ac_ext |
| 22937 | LIBS=$ac_check_lib_save_LIBS |
| 22938 | fi |
| 22939 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 22940 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 22941 | if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then |
| 22942 | |
| 22943 | cat >>confdefs.h <<\_ACEOF |
| 22944 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 22945 | _ACEOF |
| 22946 | |
| 22947 | fi |
| 22948 | |
| 22949 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 22950 | # check for readline 4.2 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22951 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 22952 | 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] | 22953 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 22954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 22955 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22956 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 22957 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22958 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22959 | /* confdefs.h. */ |
| 22960 | _ACEOF |
| 22961 | cat confdefs.h >>conftest.$ac_ext |
| 22962 | cat >>conftest.$ac_ext <<_ACEOF |
| 22963 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22964 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22965 | /* Override any GCC internal prototype to avoid an error. |
| 22966 | Use char because int might match the return type of a GCC |
| 22967 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22968 | #ifdef __cplusplus |
| 22969 | extern "C" |
| 22970 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22971 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22972 | int |
| 22973 | main () |
| 22974 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22975 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22976 | ; |
| 22977 | return 0; |
| 22978 | } |
| 22979 | _ACEOF |
| 22980 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22981 | if { (ac_try="$ac_link" |
| 22982 | case "(($ac_try" in |
| 22983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22984 | *) ac_try_echo=$ac_try;; |
| 22985 | esac |
| 22986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22987 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22988 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22990 | rm -f conftest.er1 |
| 22991 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 22993 | (exit $ac_status); } && { |
| 22994 | test -z "$ac_c_werror_flag" || |
| 22995 | test ! -s conftest.err |
| 22996 | } && test -s conftest$ac_exeext && |
| 22997 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22998 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 22999 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23000 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23002 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23003 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23004 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23005 | |
| 23006 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23007 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23008 | LIBS=$ac_check_lib_save_LIBS |
| 23009 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23010 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 23011 | 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] | 23012 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23014 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23015 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23016 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23017 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 23018 | fi |
| 23019 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23020 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23021 | # also in readline 4.2 |
| 23022 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23023 | /* confdefs.h. */ |
| 23024 | _ACEOF |
| 23025 | cat confdefs.h >>conftest.$ac_ext |
| 23026 | cat >>conftest.$ac_ext <<_ACEOF |
| 23027 | /* end confdefs.h. */ |
| 23028 | #include <readline/readline.h> |
| 23029 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23030 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 23031 | case "(($ac_try" in |
| 23032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23033 | *) ac_try_echo=$ac_try;; |
| 23034 | esac |
| 23035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23036 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23037 | ac_status=$? |
| 23038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23039 | rm -f conftest.er1 |
| 23040 | cat conftest.err >&5 |
| 23041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23042 | (exit $ac_status); } >/dev/null && { |
| 23043 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 23044 | test ! -s conftest.err |
| 23045 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23046 | have_readline=yes |
| 23047 | else |
| 23048 | echo "$as_me: failed program was:" >&5 |
| 23049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23050 | |
| 23051 | have_readline=no |
| 23052 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23053 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23054 | rm -f conftest.err conftest.$ac_ext |
| 23055 | if test $have_readline = yes |
| 23056 | then |
| 23057 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 23058 | /* confdefs.h. */ |
| 23059 | _ACEOF |
| 23060 | cat confdefs.h >>conftest.$ac_ext |
| 23061 | cat >>conftest.$ac_ext <<_ACEOF |
| 23062 | /* end confdefs.h. */ |
| 23063 | #include <readline/readline.h> |
| 23064 | |
| 23065 | _ACEOF |
| 23066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 23067 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 23068 | |
| 23069 | cat >>confdefs.h <<\_ACEOF |
| 23070 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 23071 | _ACEOF |
| 23072 | |
| 23073 | fi |
| 23074 | rm -f conftest* |
| 23075 | |
| 23076 | fi |
| 23077 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 23078 | # End of readline checks: restore LIBS |
| 23079 | LIBS=$LIBS_no_readline |
| 23080 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23081 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 23082 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23083 | if test "${ac_cv_broken_nice+set}" = set; then |
| 23084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23085 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23086 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23087 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 23088 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23089 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23090 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23091 | /* confdefs.h. */ |
| 23092 | _ACEOF |
| 23093 | cat confdefs.h >>conftest.$ac_ext |
| 23094 | cat >>conftest.$ac_ext <<_ACEOF |
| 23095 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23096 | |
| 23097 | int main() |
| 23098 | { |
| 23099 | int val1 = nice(1); |
| 23100 | if (val1 != -1 && val1 == nice(2)) |
| 23101 | exit(0); |
| 23102 | exit(1); |
| 23103 | } |
| 23104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23105 | _ACEOF |
| 23106 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23107 | if { (ac_try="$ac_link" |
| 23108 | case "(($ac_try" in |
| 23109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23110 | *) ac_try_echo=$ac_try;; |
| 23111 | esac |
| 23112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23113 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23114 | ac_status=$? |
| 23115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23116 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23117 | { (case "(($ac_try" in |
| 23118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23119 | *) ac_try_echo=$ac_try;; |
| 23120 | esac |
| 23121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23122 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23123 | ac_status=$? |
| 23124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23125 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23126 | ac_cv_broken_nice=yes |
| 23127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23128 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23129 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23132 | ( exit $ac_status ) |
| 23133 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23134 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23135 | 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] | 23136 | fi |
| 23137 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23138 | |
| 23139 | fi |
| 23140 | |
| 23141 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 23142 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23143 | if test "$ac_cv_broken_nice" = yes |
| 23144 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23145 | |
| 23146 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23147 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23148 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 23149 | |
| 23150 | fi |
| 23151 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23152 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 23153 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 23154 | if test "$cross_compiling" = yes; then |
| 23155 | ac_cv_broken_poll=no |
| 23156 | else |
| 23157 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 23158 | /* confdefs.h. */ |
| 23159 | _ACEOF |
| 23160 | cat confdefs.h >>conftest.$ac_ext |
| 23161 | cat >>conftest.$ac_ext <<_ACEOF |
| 23162 | /* end confdefs.h. */ |
| 23163 | |
| 23164 | #include <poll.h> |
| 23165 | |
| 23166 | int main (void) |
| 23167 | { |
| 23168 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 23169 | |
| 23170 | close (42); |
| 23171 | |
| 23172 | int poll_test = poll (&poll_struct, 1, 0); |
| 23173 | |
| 23174 | if (poll_test < 0) |
| 23175 | { |
| 23176 | exit(0); |
| 23177 | } |
| 23178 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 23179 | { |
| 23180 | exit(0); |
| 23181 | } |
| 23182 | else |
| 23183 | { |
| 23184 | exit(1); |
| 23185 | } |
| 23186 | } |
| 23187 | |
| 23188 | _ACEOF |
| 23189 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23190 | if { (ac_try="$ac_link" |
| 23191 | case "(($ac_try" in |
| 23192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23193 | *) ac_try_echo=$ac_try;; |
| 23194 | esac |
| 23195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23196 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 23197 | ac_status=$? |
| 23198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23199 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23200 | { (case "(($ac_try" in |
| 23201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23202 | *) ac_try_echo=$ac_try;; |
| 23203 | esac |
| 23204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23205 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 23206 | ac_status=$? |
| 23207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23208 | (exit $ac_status); }; }; then |
| 23209 | ac_cv_broken_poll=yes |
| 23210 | else |
| 23211 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23212 | echo "$as_me: failed program was:" >&5 |
| 23213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23214 | |
| 23215 | ( exit $ac_status ) |
| 23216 | ac_cv_broken_poll=no |
| 23217 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23218 | 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] | 23219 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23220 | |
| 23221 | |
| 23222 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 23223 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 23224 | if test "$ac_cv_broken_poll" = yes |
| 23225 | then |
| 23226 | |
| 23227 | cat >>confdefs.h <<\_ACEOF |
| 23228 | #define HAVE_BROKEN_POLL 1 |
| 23229 | _ACEOF |
| 23230 | |
| 23231 | fi |
| 23232 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23233 | # 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] | 23234 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 23235 | # tzname[] |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23236 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 23237 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23238 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 23239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23240 | else |
| 23241 | cat >conftest.$ac_ext <<_ACEOF |
| 23242 | /* confdefs.h. */ |
| 23243 | _ACEOF |
| 23244 | cat confdefs.h >>conftest.$ac_ext |
| 23245 | cat >>conftest.$ac_ext <<_ACEOF |
| 23246 | /* end confdefs.h. */ |
| 23247 | #include <sys/types.h> |
| 23248 | #include <$ac_cv_struct_tm> |
| 23249 | |
| 23250 | |
| 23251 | int |
| 23252 | main () |
| 23253 | { |
| 23254 | static struct tm ac_aggr; |
| 23255 | if (ac_aggr.tm_zone) |
| 23256 | return 0; |
| 23257 | ; |
| 23258 | return 0; |
| 23259 | } |
| 23260 | _ACEOF |
| 23261 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23262 | if { (ac_try="$ac_compile" |
| 23263 | case "(($ac_try" in |
| 23264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23265 | *) ac_try_echo=$ac_try;; |
| 23266 | esac |
| 23267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23268 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23269 | ac_status=$? |
| 23270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23271 | rm -f conftest.er1 |
| 23272 | cat conftest.err >&5 |
| 23273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23274 | (exit $ac_status); } && { |
| 23275 | test -z "$ac_c_werror_flag" || |
| 23276 | test ! -s conftest.err |
| 23277 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23278 | ac_cv_member_struct_tm_tm_zone=yes |
| 23279 | else |
| 23280 | echo "$as_me: failed program was:" >&5 |
| 23281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23282 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23283 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23284 | /* confdefs.h. */ |
| 23285 | _ACEOF |
| 23286 | cat confdefs.h >>conftest.$ac_ext |
| 23287 | cat >>conftest.$ac_ext <<_ACEOF |
| 23288 | /* end confdefs.h. */ |
| 23289 | #include <sys/types.h> |
| 23290 | #include <$ac_cv_struct_tm> |
| 23291 | |
| 23292 | |
| 23293 | int |
| 23294 | main () |
| 23295 | { |
| 23296 | static struct tm ac_aggr; |
| 23297 | if (sizeof ac_aggr.tm_zone) |
| 23298 | return 0; |
| 23299 | ; |
| 23300 | return 0; |
| 23301 | } |
| 23302 | _ACEOF |
| 23303 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23304 | if { (ac_try="$ac_compile" |
| 23305 | case "(($ac_try" in |
| 23306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23307 | *) ac_try_echo=$ac_try;; |
| 23308 | esac |
| 23309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23310 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23311 | ac_status=$? |
| 23312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23313 | rm -f conftest.er1 |
| 23314 | cat conftest.err >&5 |
| 23315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23316 | (exit $ac_status); } && { |
| 23317 | test -z "$ac_c_werror_flag" || |
| 23318 | test ! -s conftest.err |
| 23319 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23320 | ac_cv_member_struct_tm_tm_zone=yes |
| 23321 | else |
| 23322 | echo "$as_me: failed program was:" >&5 |
| 23323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23324 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23325 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23326 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23327 | |
| 23328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23329 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23330 | |
| 23331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23332 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23333 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 23334 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23335 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 23336 | |
| 23337 | cat >>confdefs.h <<_ACEOF |
| 23338 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 23339 | _ACEOF |
| 23340 | |
| 23341 | |
| 23342 | fi |
| 23343 | |
| 23344 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 23345 | |
| 23346 | cat >>confdefs.h <<\_ACEOF |
| 23347 | #define HAVE_TM_ZONE 1 |
| 23348 | _ACEOF |
| 23349 | |
| 23350 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23351 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 23352 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
| 23353 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
| 23354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23355 | else |
| 23356 | cat >conftest.$ac_ext <<_ACEOF |
| 23357 | /* confdefs.h. */ |
| 23358 | _ACEOF |
| 23359 | cat confdefs.h >>conftest.$ac_ext |
| 23360 | cat >>conftest.$ac_ext <<_ACEOF |
| 23361 | /* end confdefs.h. */ |
| 23362 | #include <time.h> |
| 23363 | |
| 23364 | int |
| 23365 | main () |
| 23366 | { |
| 23367 | #ifndef tzname |
| 23368 | (void) tzname; |
| 23369 | #endif |
| 23370 | |
| 23371 | ; |
| 23372 | return 0; |
| 23373 | } |
| 23374 | _ACEOF |
| 23375 | rm -f conftest.$ac_objext |
| 23376 | if { (ac_try="$ac_compile" |
| 23377 | case "(($ac_try" in |
| 23378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23379 | *) ac_try_echo=$ac_try;; |
| 23380 | esac |
| 23381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23382 | (eval "$ac_compile") 2>conftest.er1 |
| 23383 | ac_status=$? |
| 23384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23385 | rm -f conftest.er1 |
| 23386 | cat conftest.err >&5 |
| 23387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23388 | (exit $ac_status); } && { |
| 23389 | test -z "$ac_c_werror_flag" || |
| 23390 | test ! -s conftest.err |
| 23391 | } && test -s conftest.$ac_objext; then |
| 23392 | ac_cv_have_decl_tzname=yes |
| 23393 | else |
| 23394 | echo "$as_me: failed program was:" >&5 |
| 23395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23396 | |
| 23397 | ac_cv_have_decl_tzname=no |
| 23398 | fi |
| 23399 | |
| 23400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23401 | fi |
| 23402 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 23403 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 23404 | if test $ac_cv_have_decl_tzname = yes; then |
| 23405 | |
| 23406 | cat >>confdefs.h <<_ACEOF |
| 23407 | #define HAVE_DECL_TZNAME 1 |
| 23408 | _ACEOF |
| 23409 | |
| 23410 | |
| 23411 | else |
| 23412 | cat >>confdefs.h <<_ACEOF |
| 23413 | #define HAVE_DECL_TZNAME 0 |
| 23414 | _ACEOF |
| 23415 | |
| 23416 | |
| 23417 | fi |
| 23418 | |
| 23419 | |
| 23420 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 23421 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23422 | if test "${ac_cv_var_tzname+set}" = set; then |
| 23423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23424 | else |
| 23425 | cat >conftest.$ac_ext <<_ACEOF |
| 23426 | /* confdefs.h. */ |
| 23427 | _ACEOF |
| 23428 | cat confdefs.h >>conftest.$ac_ext |
| 23429 | cat >>conftest.$ac_ext <<_ACEOF |
| 23430 | /* end confdefs.h. */ |
| 23431 | #include <time.h> |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23432 | #if !HAVE_DECL_TZNAME |
| 23433 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23434 | #endif |
| 23435 | |
| 23436 | int |
| 23437 | main () |
| 23438 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23439 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23440 | ; |
| 23441 | return 0; |
| 23442 | } |
| 23443 | _ACEOF |
| 23444 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23445 | if { (ac_try="$ac_link" |
| 23446 | case "(($ac_try" in |
| 23447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23448 | *) ac_try_echo=$ac_try;; |
| 23449 | esac |
| 23450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23451 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23452 | ac_status=$? |
| 23453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23454 | rm -f conftest.er1 |
| 23455 | cat conftest.err >&5 |
| 23456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23457 | (exit $ac_status); } && { |
| 23458 | test -z "$ac_c_werror_flag" || |
| 23459 | test ! -s conftest.err |
| 23460 | } && test -s conftest$ac_exeext && |
| 23461 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23462 | ac_cv_var_tzname=yes |
| 23463 | else |
| 23464 | echo "$as_me: failed program was:" >&5 |
| 23465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23466 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23467 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23468 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23469 | |
| 23470 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23471 | conftest$ac_exeext conftest.$ac_ext |
| 23472 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23473 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 23474 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23475 | if test $ac_cv_var_tzname = yes; then |
| 23476 | |
| 23477 | cat >>confdefs.h <<\_ACEOF |
| 23478 | #define HAVE_TZNAME 1 |
| 23479 | _ACEOF |
| 23480 | |
| 23481 | fi |
| 23482 | fi |
| 23483 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 23484 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 23485 | # check tzset(3) exists and works like we expect it to |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23486 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 23487 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 23488 | if test "${ac_cv_working_tzset+set}" = set; then |
| 23489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23490 | else |
| 23491 | |
| 23492 | if test "$cross_compiling" = yes; then |
| 23493 | ac_cv_working_tzset=no |
| 23494 | else |
| 23495 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23496 | /* confdefs.h. */ |
| 23497 | _ACEOF |
| 23498 | cat confdefs.h >>conftest.$ac_ext |
| 23499 | cat >>conftest.$ac_ext <<_ACEOF |
| 23500 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 23501 | |
| 23502 | #include <stdlib.h> |
| 23503 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 23504 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23505 | |
| 23506 | #if HAVE_TZNAME |
| 23507 | extern char *tzname[]; |
| 23508 | #endif |
| 23509 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 23510 | int main() |
| 23511 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 23512 | /* Note that we need to ensure that not only does tzset(3) |
| 23513 | do 'something' with localtime, but it works as documented |
| 23514 | 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] | 23515 | This includes making sure that tzname is set properly if |
| 23516 | tm->tm_zone does not exist since it is the alternative way |
| 23517 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 23518 | |
| 23519 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 23520 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 23521 | */ |
| 23522 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 23523 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 23524 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 23525 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 23526 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 23527 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 23528 | if (localtime(&groundhogday)->tm_hour != 0) |
| 23529 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23530 | #if HAVE_TZNAME |
| 23531 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 23532 | if (strcmp(tzname[0], "UTC") || |
| 23533 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 23534 | exit(1); |
| 23535 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 23536 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 23537 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 23538 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 23539 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 23540 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23541 | #if HAVE_TZNAME |
| 23542 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 23543 | exit(1); |
| 23544 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 23545 | |
| 23546 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 23547 | tzset(); |
| 23548 | if (localtime(&groundhogday)->tm_hour != 11) |
| 23549 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23550 | #if HAVE_TZNAME |
| 23551 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 23552 | exit(1); |
| 23553 | #endif |
| 23554 | |
| 23555 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 23556 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 23557 | exit(1); |
| 23558 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 23559 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 23560 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 23561 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 23562 | exit(0); |
| 23563 | } |
| 23564 | |
| 23565 | _ACEOF |
| 23566 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23567 | if { (ac_try="$ac_link" |
| 23568 | case "(($ac_try" in |
| 23569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23570 | *) ac_try_echo=$ac_try;; |
| 23571 | esac |
| 23572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23573 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 23574 | ac_status=$? |
| 23575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23576 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23577 | { (case "(($ac_try" in |
| 23578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23579 | *) ac_try_echo=$ac_try;; |
| 23580 | esac |
| 23581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23582 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 23583 | ac_status=$? |
| 23584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23585 | (exit $ac_status); }; }; then |
| 23586 | ac_cv_working_tzset=yes |
| 23587 | else |
| 23588 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23589 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23591 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 23592 | ( exit $ac_status ) |
| 23593 | ac_cv_working_tzset=no |
| 23594 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23595 | 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] | 23596 | fi |
| 23597 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23598 | |
| 23599 | fi |
| 23600 | |
| 23601 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 23602 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 23603 | if test "$ac_cv_working_tzset" = yes |
| 23604 | then |
| 23605 | |
| 23606 | cat >>confdefs.h <<\_ACEOF |
| 23607 | #define HAVE_WORKING_TZSET 1 |
| 23608 | _ACEOF |
| 23609 | |
| 23610 | fi |
| 23611 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 23612 | # Look for subsecond timestamps in struct stat |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23613 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 23614 | 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] | 23615 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 23616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23617 | else |
| 23618 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23619 | /* confdefs.h. */ |
| 23620 | _ACEOF |
| 23621 | cat confdefs.h >>conftest.$ac_ext |
| 23622 | cat >>conftest.$ac_ext <<_ACEOF |
| 23623 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 23624 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 23625 | int |
| 23626 | main () |
| 23627 | { |
| 23628 | |
| 23629 | struct stat st; |
| 23630 | st.st_mtim.tv_nsec = 1; |
| 23631 | |
| 23632 | ; |
| 23633 | return 0; |
| 23634 | } |
| 23635 | _ACEOF |
| 23636 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23637 | if { (ac_try="$ac_compile" |
| 23638 | case "(($ac_try" in |
| 23639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23640 | *) ac_try_echo=$ac_try;; |
| 23641 | esac |
| 23642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23643 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 23644 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23646 | rm -f conftest.er1 |
| 23647 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 23648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23649 | (exit $ac_status); } && { |
| 23650 | test -z "$ac_c_werror_flag" || |
| 23651 | test ! -s conftest.err |
| 23652 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 23653 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 23654 | else |
| 23655 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23657 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23658 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 23659 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23660 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23662 | fi |
| 23663 | |
| 23664 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 23665 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 23666 | if test "$ac_cv_stat_tv_nsec" = yes |
| 23667 | then |
| 23668 | |
| 23669 | cat >>confdefs.h <<\_ACEOF |
| 23670 | #define HAVE_STAT_TV_NSEC 1 |
| 23671 | _ACEOF |
| 23672 | |
| 23673 | fi |
| 23674 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 23675 | # Look for BSD style subsecond timestamps in struct stat |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23676 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 23677 | 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] | 23678 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
| 23679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23680 | else |
| 23681 | cat >conftest.$ac_ext <<_ACEOF |
| 23682 | /* confdefs.h. */ |
| 23683 | _ACEOF |
| 23684 | cat confdefs.h >>conftest.$ac_ext |
| 23685 | cat >>conftest.$ac_ext <<_ACEOF |
| 23686 | /* end confdefs.h. */ |
| 23687 | #include <sys/stat.h> |
| 23688 | int |
| 23689 | main () |
| 23690 | { |
| 23691 | |
| 23692 | struct stat st; |
| 23693 | st.st_mtimespec.tv_nsec = 1; |
| 23694 | |
| 23695 | ; |
| 23696 | return 0; |
| 23697 | } |
| 23698 | _ACEOF |
| 23699 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23700 | if { (ac_try="$ac_compile" |
| 23701 | case "(($ac_try" in |
| 23702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23703 | *) ac_try_echo=$ac_try;; |
| 23704 | esac |
| 23705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23706 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 23707 | ac_status=$? |
| 23708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23709 | rm -f conftest.er1 |
| 23710 | cat conftest.err >&5 |
| 23711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23712 | (exit $ac_status); } && { |
| 23713 | test -z "$ac_c_werror_flag" || |
| 23714 | test ! -s conftest.err |
| 23715 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 23716 | ac_cv_stat_tv_nsec2=yes |
| 23717 | else |
| 23718 | echo "$as_me: failed program was:" >&5 |
| 23719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23720 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23721 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 23722 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23723 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23725 | fi |
| 23726 | |
| 23727 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 23728 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 23729 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 23730 | then |
| 23731 | |
| 23732 | cat >>confdefs.h <<\_ACEOF |
| 23733 | #define HAVE_STAT_TV_NSEC2 1 |
| 23734 | _ACEOF |
| 23735 | |
| 23736 | fi |
| 23737 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23738 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23739 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 23740 | 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] | 23741 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 23742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23744 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23745 | /* confdefs.h. */ |
| 23746 | _ACEOF |
| 23747 | cat confdefs.h >>conftest.$ac_ext |
| 23748 | cat >>conftest.$ac_ext <<_ACEOF |
| 23749 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23750 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23751 | int |
| 23752 | main () |
| 23753 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23754 | |
| 23755 | int rtn; |
| 23756 | rtn = mvwdelch(0,0,0); |
| 23757 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23758 | ; |
| 23759 | return 0; |
| 23760 | } |
| 23761 | _ACEOF |
| 23762 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23763 | if { (ac_try="$ac_compile" |
| 23764 | case "(($ac_try" in |
| 23765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23766 | *) ac_try_echo=$ac_try;; |
| 23767 | esac |
| 23768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23769 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23770 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23772 | rm -f conftest.er1 |
| 23773 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23775 | (exit $ac_status); } && { |
| 23776 | test -z "$ac_c_werror_flag" || |
| 23777 | test ! -s conftest.err |
| 23778 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23779 | ac_cv_mvwdelch_is_expression=yes |
| 23780 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23781 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23783 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23784 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23785 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23786 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23788 | fi |
| 23789 | |
| 23790 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 23791 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23792 | |
| 23793 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 23794 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23795 | |
| 23796 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23797 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23798 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23799 | |
| 23800 | fi |
| 23801 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23802 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 23803 | 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] | 23804 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 23805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23806 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23807 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23808 | /* confdefs.h. */ |
| 23809 | _ACEOF |
| 23810 | cat confdefs.h >>conftest.$ac_ext |
| 23811 | cat >>conftest.$ac_ext <<_ACEOF |
| 23812 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23813 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23814 | int |
| 23815 | main () |
| 23816 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23817 | |
| 23818 | WINDOW *w; |
| 23819 | w->_flags = 0; |
| 23820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23821 | ; |
| 23822 | return 0; |
| 23823 | } |
| 23824 | _ACEOF |
| 23825 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23826 | if { (ac_try="$ac_compile" |
| 23827 | case "(($ac_try" in |
| 23828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23829 | *) ac_try_echo=$ac_try;; |
| 23830 | esac |
| 23831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23832 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23833 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23835 | rm -f conftest.er1 |
| 23836 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23838 | (exit $ac_status); } && { |
| 23839 | test -z "$ac_c_werror_flag" || |
| 23840 | test ! -s conftest.err |
| 23841 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23842 | ac_cv_window_has_flags=yes |
| 23843 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23844 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23846 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23847 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23848 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23849 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23851 | fi |
| 23852 | |
| 23853 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 23854 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23855 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23856 | |
| 23857 | if test "$ac_cv_window_has_flags" = yes |
| 23858 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23859 | |
| 23860 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23861 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23862 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 23863 | |
| 23864 | fi |
| 23865 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23866 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 23867 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23868 | cat >conftest.$ac_ext <<_ACEOF |
| 23869 | /* confdefs.h. */ |
| 23870 | _ACEOF |
| 23871 | cat confdefs.h >>conftest.$ac_ext |
| 23872 | cat >>conftest.$ac_ext <<_ACEOF |
| 23873 | /* end confdefs.h. */ |
| 23874 | #include <curses.h> |
| 23875 | int |
| 23876 | main () |
| 23877 | { |
| 23878 | void *x=is_term_resized |
| 23879 | ; |
| 23880 | return 0; |
| 23881 | } |
| 23882 | _ACEOF |
| 23883 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23884 | if { (ac_try="$ac_compile" |
| 23885 | case "(($ac_try" in |
| 23886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23887 | *) ac_try_echo=$ac_try;; |
| 23888 | esac |
| 23889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23890 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23891 | ac_status=$? |
| 23892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23893 | rm -f conftest.er1 |
| 23894 | cat conftest.err >&5 |
| 23895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23896 | (exit $ac_status); } && { |
| 23897 | test -z "$ac_c_werror_flag" || |
| 23898 | test ! -s conftest.err |
| 23899 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 23900 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23901 | cat >>confdefs.h <<\_ACEOF |
| 23902 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 23903 | _ACEOF |
| 23904 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23905 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23906 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23907 | else |
| 23908 | echo "$as_me: failed program was:" >&5 |
| 23909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23910 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23911 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23912 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23913 | |
| 23914 | fi |
| 23915 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23917 | |
| 23918 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 23919 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23920 | cat >conftest.$ac_ext <<_ACEOF |
| 23921 | /* confdefs.h. */ |
| 23922 | _ACEOF |
| 23923 | cat confdefs.h >>conftest.$ac_ext |
| 23924 | cat >>conftest.$ac_ext <<_ACEOF |
| 23925 | /* end confdefs.h. */ |
| 23926 | #include <curses.h> |
| 23927 | int |
| 23928 | main () |
| 23929 | { |
| 23930 | void *x=resize_term |
| 23931 | ; |
| 23932 | return 0; |
| 23933 | } |
| 23934 | _ACEOF |
| 23935 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23936 | if { (ac_try="$ac_compile" |
| 23937 | case "(($ac_try" in |
| 23938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23939 | *) ac_try_echo=$ac_try;; |
| 23940 | esac |
| 23941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23942 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23943 | ac_status=$? |
| 23944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23945 | rm -f conftest.er1 |
| 23946 | cat conftest.err >&5 |
| 23947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23948 | (exit $ac_status); } && { |
| 23949 | test -z "$ac_c_werror_flag" || |
| 23950 | test ! -s conftest.err |
| 23951 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23952 | |
| 23953 | cat >>confdefs.h <<\_ACEOF |
| 23954 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 23955 | _ACEOF |
| 23956 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23957 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23958 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23959 | else |
| 23960 | echo "$as_me: failed program was:" >&5 |
| 23961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23962 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23963 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23964 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23965 | |
| 23966 | fi |
| 23967 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23969 | |
| 23970 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 23971 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23972 | cat >conftest.$ac_ext <<_ACEOF |
| 23973 | /* confdefs.h. */ |
| 23974 | _ACEOF |
| 23975 | cat confdefs.h >>conftest.$ac_ext |
| 23976 | cat >>conftest.$ac_ext <<_ACEOF |
| 23977 | /* end confdefs.h. */ |
| 23978 | #include <curses.h> |
| 23979 | int |
| 23980 | main () |
| 23981 | { |
| 23982 | void *x=resizeterm |
| 23983 | ; |
| 23984 | return 0; |
| 23985 | } |
| 23986 | _ACEOF |
| 23987 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 23988 | if { (ac_try="$ac_compile" |
| 23989 | case "(($ac_try" in |
| 23990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23991 | *) ac_try_echo=$ac_try;; |
| 23992 | esac |
| 23993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23994 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 23995 | ac_status=$? |
| 23996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23997 | rm -f conftest.er1 |
| 23998 | cat conftest.err >&5 |
| 23999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24000 | (exit $ac_status); } && { |
| 24001 | test -z "$ac_c_werror_flag" || |
| 24002 | test ! -s conftest.err |
| 24003 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24004 | |
| 24005 | cat >>confdefs.h <<\_ACEOF |
| 24006 | #define HAVE_CURSES_RESIZETERM 1 |
| 24007 | _ACEOF |
| 24008 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24009 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24010 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24011 | else |
| 24012 | echo "$as_me: failed program was:" >&5 |
| 24013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24014 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24015 | { echo "$as_me:$LINENO: result: no" >&5 |
| 24016 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24017 | |
| 24018 | fi |
| 24019 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24021 | |
| 24022 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 24023 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24024 | |
| 24025 | if test -r /dev/ptmx |
| 24026 | then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24027 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24028 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 24029 | |
| 24030 | cat >>confdefs.h <<\_ACEOF |
| 24031 | #define HAVE_DEV_PTMX 1 |
| 24032 | _ACEOF |
| 24033 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24034 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24035 | { echo "$as_me:$LINENO: result: no" >&5 |
| 24036 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 24037 | fi |
| 24038 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24039 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 24040 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24041 | |
| 24042 | if test -r /dev/ptc |
| 24043 | then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24044 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24045 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 24046 | |
| 24047 | cat >>confdefs.h <<\_ACEOF |
| 24048 | #define HAVE_DEV_PTC 1 |
| 24049 | _ACEOF |
| 24050 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24051 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24052 | { echo "$as_me:$LINENO: result: no" >&5 |
| 24053 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 24054 | fi |
| 24055 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24056 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 24057 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24058 | if test "$cross_compiling" = yes; then |
| 24059 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 24060 | See \`config.log' for more details." >&5 |
| 24061 | echo "$as_me: error: cannot run test program while cross compiling |
| 24062 | See \`config.log' for more details." >&2;} |
| 24063 | { (exit 1); exit 1; }; } |
| 24064 | else |
| 24065 | cat >conftest.$ac_ext <<_ACEOF |
| 24066 | /* confdefs.h. */ |
| 24067 | _ACEOF |
| 24068 | cat confdefs.h >>conftest.$ac_ext |
| 24069 | cat >>conftest.$ac_ext <<_ACEOF |
| 24070 | /* end confdefs.h. */ |
| 24071 | #include <stdio.h> |
| 24072 | #include <stddef.h> |
| 24073 | #include <string.h> |
| 24074 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 24075 | #ifdef HAVE_SYS_TYPES_H |
| 24076 | #include <sys/types.h> |
| 24077 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24078 | |
| 24079 | #ifdef HAVE_SSIZE_T |
| 24080 | typedef ssize_t Py_ssize_t; |
| 24081 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 24082 | typedef long Py_ssize_t; |
| 24083 | #else |
| 24084 | typedef int Py_ssize_t; |
| 24085 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24086 | |
Christian Heimes | 2c18161 | 2007-12-17 20:04:13 +0000 | [diff] [blame] | 24087 | int main() |
| 24088 | { |
| 24089 | char buffer[256]; |
| 24090 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24091 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 24092 | return 1; |
| 24093 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24094 | if (strcmp(buffer, "123")) |
| 24095 | return 1; |
| 24096 | |
| 24097 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 24098 | return 1; |
| 24099 | |
| 24100 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24101 | return 1; |
| 24102 | |
| 24103 | return 0; |
| 24104 | } |
| 24105 | _ACEOF |
| 24106 | rm -f conftest$ac_exeext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24107 | if { (ac_try="$ac_link" |
| 24108 | case "(($ac_try" in |
| 24109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24110 | *) ac_try_echo=$ac_try;; |
| 24111 | esac |
| 24112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24113 | (eval "$ac_link") 2>&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24114 | ac_status=$? |
| 24115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24116 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24117 | { (case "(($ac_try" in |
| 24118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24119 | *) ac_try_echo=$ac_try;; |
| 24120 | esac |
| 24121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24122 | (eval "$ac_try") 2>&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24123 | ac_status=$? |
| 24124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24125 | (exit $ac_status); }; }; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24126 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 24127 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24128 | |
| 24129 | cat >>confdefs.h <<\_ACEOF |
| 24130 | #define PY_FORMAT_SIZE_T "z" |
| 24131 | _ACEOF |
| 24132 | |
| 24133 | else |
| 24134 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24135 | echo "$as_me: failed program was:" >&5 |
| 24136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24137 | |
| 24138 | ( exit $ac_status ) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24139 | { echo "$as_me:$LINENO: result: no" >&5 |
| 24140 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24141 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24142 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24143 | fi |
| 24144 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24145 | |
| 24146 | |
| 24147 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 24148 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24149 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 24150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 24151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24152 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24153 | /* confdefs.h. */ |
| 24154 | _ACEOF |
| 24155 | cat confdefs.h >>conftest.$ac_ext |
| 24156 | cat >>conftest.$ac_ext <<_ACEOF |
| 24157 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 24158 | |
| 24159 | #ifdef HAVE_SYS_TYPES_H |
| 24160 | #include <sys/types.h> |
| 24161 | #endif |
| 24162 | #ifdef HAVE_SYS_SOCKET_H |
| 24163 | #include <sys/socket.h> |
| 24164 | #endif |
| 24165 | |
| 24166 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24167 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24168 | int |
| 24169 | main () |
| 24170 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24171 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24172 | return 0; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24173 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24174 | return 0; |
| 24175 | ; |
| 24176 | return 0; |
| 24177 | } |
| 24178 | _ACEOF |
| 24179 | rm -f conftest.$ac_objext |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24180 | if { (ac_try="$ac_compile" |
| 24181 | case "(($ac_try" in |
| 24182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24183 | *) ac_try_echo=$ac_try;; |
| 24184 | esac |
| 24185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24186 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24187 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24189 | rm -f conftest.er1 |
| 24190 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24192 | (exit $ac_status); } && { |
| 24193 | test -z "$ac_c_werror_flag" || |
| 24194 | test ! -s conftest.err |
| 24195 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 24196 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 24197 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24198 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24200 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24201 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 24202 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24203 | |
| 24204 | 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] | 24205 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24206 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 24207 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24208 | if test $ac_cv_type_socklen_t = yes; then |
| 24209 | : |
| 24210 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 24211 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 24212 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 24213 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24214 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 24215 | |
| 24216 | fi |
| 24217 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24218 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24219 | |
| 24220 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 24221 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 24222 | do |
| 24223 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 24224 | done |
| 24225 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24226 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 24227 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24228 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 24229 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 24230 | for dir in $SRCDIRS; do |
| 24231 | if test ! -d $dir; then |
| 24232 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 24233 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 24234 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24235 | { echo "$as_me:$LINENO: result: done" >&5 |
| 24236 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 24237 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 24238 | # generate output files |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24239 | 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] | 24240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24241 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24242 | # This file is a shell script that caches the results of configure |
| 24243 | # 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] | 24244 | # scripts and configure runs, see configure's option --config-cache. |
| 24245 | # It is not useful on other systems. If it contains results you don't |
| 24246 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24247 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24248 | # config.status only pays attention to the cache file if you give it |
| 24249 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24250 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24251 | # `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] | 24252 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 24253 | # following values. |
| 24254 | |
| 24255 | _ACEOF |
| 24256 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 24257 | # The following way of writing the cache mishandles newlines in values, |
| 24258 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24259 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 24260 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 24261 | # and sets the high bit in the cache file unless we assign to the vars. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24262 | ( |
| 24263 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 24264 | eval ac_val=\$$ac_var |
| 24265 | case $ac_val in #( |
| 24266 | *${as_nl}*) |
| 24267 | case $ac_var in #( |
| 24268 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 24269 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 24270 | esac |
| 24271 | case $ac_var in #( |
| 24272 | _ | IFS | as_nl) ;; #( |
| 24273 | *) $as_unset $ac_var ;; |
| 24274 | esac ;; |
| 24275 | esac |
| 24276 | done |
| 24277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24278 | (set) 2>&1 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24279 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 24280 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24281 | # `set' does not quote correctly, so add quotes (double-quote |
| 24282 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 24283 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24284 | "s/'/'\\\\''/g; |
| 24285 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24286 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24287 | *) |
| 24288 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24289 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24290 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24291 | esac | |
| 24292 | sort |
| 24293 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24294 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24295 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24296 | t clear |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24297 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24298 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 24299 | t end |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24300 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 24301 | :end' >>confcache |
| 24302 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 24303 | if test -w "$cache_file"; then |
| 24304 | test "x$cache_file" != "x/dev/null" && |
| 24305 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 24306 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24307 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 24308 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24309 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 24310 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 24311 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24312 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 24313 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 24314 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24315 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 24316 | # Let make expand exec_prefix. |
| 24317 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 24318 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24319 | DEFS=-DHAVE_CONFIG_H |
| 24320 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24321 | ac_libobjs= |
| 24322 | ac_ltlibobjs= |
| 24323 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 24324 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24325 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 24326 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 24327 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 24328 | # will be set to the directory where LIBOBJS objects are built. |
| 24329 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 24330 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24331 | done |
| 24332 | LIBOBJS=$ac_libobjs |
| 24333 | |
| 24334 | LTLIBOBJS=$ac_ltlibobjs |
| 24335 | |
| 24336 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24337 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24338 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24339 | ac_clean_files_save=$ac_clean_files |
| 24340 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 24341 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 24342 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 24343 | cat >$CONFIG_STATUS <<_ACEOF |
| 24344 | #! $SHELL |
| 24345 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 24346 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24347 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24348 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 24349 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24350 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24351 | ac_cs_recheck=false |
| 24352 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24353 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 24354 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24356 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24357 | ## --------------------- ## |
| 24358 | ## M4sh Initialization. ## |
| 24359 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24360 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24361 | # Be more Bourne compatible |
| 24362 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24363 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 24364 | emulate sh |
| 24365 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24366 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 24367 | # is contrary to our usage. Disable this feature. |
| 24368 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24369 | setopt NO_GLOB_SUBST |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 24370 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24371 | case `(set -o) 2>/dev/null` in |
| 24372 | *posix*) set -o posix ;; |
| 24373 | esac |
| 24374 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24375 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 24376 | |
| 24377 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24378 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24379 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24380 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24381 | # Avoid depending upon Character Ranges. |
| 24382 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 24383 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 24384 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 24385 | as_cr_digits='0123456789' |
| 24386 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 24387 | |
| 24388 | # The user is always right. |
| 24389 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24390 | echo "#! /bin/sh" >conf$$.sh |
| 24391 | echo "exit 0" >>conf$$.sh |
| 24392 | chmod +x conf$$.sh |
| 24393 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24394 | PATH_SEPARATOR=';' |
| 24395 | else |
| 24396 | PATH_SEPARATOR=: |
| 24397 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24398 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24399 | fi |
| 24400 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24401 | # Support unset when possible. |
| 24402 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 24403 | as_unset=unset |
| 24404 | else |
| 24405 | as_unset=false |
| 24406 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24407 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24408 | |
| 24409 | # IFS |
| 24410 | # We need space, tab and new line, in precisely that order. Quoting is |
| 24411 | # there to prevent editors from complaining about space-tab. |
| 24412 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 24413 | # splitting by setting IFS to empty value.) |
| 24414 | as_nl=' |
| 24415 | ' |
| 24416 | IFS=" "" $as_nl" |
| 24417 | |
| 24418 | # Find who we are. Look in the path if we contain no directory separator. |
| 24419 | case $0 in |
| 24420 | *[\\/]* ) as_myself=$0 ;; |
| 24421 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24422 | for as_dir in $PATH |
| 24423 | do |
| 24424 | IFS=$as_save_IFS |
| 24425 | test -z "$as_dir" && as_dir=. |
| 24426 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 24427 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24428 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24429 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24430 | ;; |
| 24431 | esac |
| 24432 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 24433 | # in which case we are not to be found in the path. |
| 24434 | if test "x$as_myself" = x; then |
| 24435 | as_myself=$0 |
| 24436 | fi |
| 24437 | if test ! -f "$as_myself"; then |
| 24438 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 24439 | { (exit 1); exit 1; } |
| 24440 | fi |
| 24441 | |
| 24442 | # Work around bugs in pre-3.0 UWIN ksh. |
| 24443 | for as_var in ENV MAIL MAILPATH |
| 24444 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 24445 | done |
| 24446 | PS1='$ ' |
| 24447 | PS2='> ' |
| 24448 | PS4='+ ' |
| 24449 | |
| 24450 | # NLS nuisances. |
| 24451 | for as_var in \ |
| 24452 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 24453 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 24454 | LC_TELEPHONE LC_TIME |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 24455 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24456 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 24457 | eval $as_var=C; export $as_var |
| 24458 | else |
| 24459 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 24460 | fi |
| 24461 | done |
| 24462 | |
| 24463 | # Required to use basename. |
| 24464 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 24465 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 24466 | as_expr=expr |
| 24467 | else |
| 24468 | as_expr=false |
| 24469 | fi |
| 24470 | |
| 24471 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 24472 | as_basename=basename |
| 24473 | else |
| 24474 | as_basename=false |
| 24475 | fi |
| 24476 | |
| 24477 | |
| 24478 | # Name of the executable. |
| 24479 | as_me=`$as_basename -- "$0" || |
| 24480 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 24481 | X"$0" : 'X\(//\)$' \| \ |
| 24482 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 24483 | echo X/"$0" | |
| 24484 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 24485 | s//\1/ |
| 24486 | q |
| 24487 | } |
| 24488 | /^X\/\(\/\/\)$/{ |
| 24489 | s//\1/ |
| 24490 | q |
| 24491 | } |
| 24492 | /^X\/\(\/\).*/{ |
| 24493 | s//\1/ |
| 24494 | q |
| 24495 | } |
| 24496 | s/.*/./; q'` |
| 24497 | |
| 24498 | # CDPATH. |
| 24499 | $as_unset CDPATH |
| 24500 | |
| 24501 | |
| 24502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24503 | as_lineno_1=$LINENO |
| 24504 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24505 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24506 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24508 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 24509 | # uniformly replaced by the line number. The first 'sed' inserts a |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24510 | # line-number line after each line using $LINENO; the second 'sed' |
| 24511 | # does the real work. The second script uses 'N' to pair each |
| 24512 | # line-number line with the line containing $LINENO, and appends |
| 24513 | # trailing '-' during substitution so that $LINENO is not a special |
| 24514 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24515 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24516 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 24517 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 24518 | sed -n ' |
| 24519 | p |
| 24520 | /[$]LINENO/= |
| 24521 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24522 | sed ' |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24523 | s/[$]LINENO.*/&-/ |
| 24524 | t lineno |
| 24525 | b |
| 24526 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24527 | N |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24528 | :loop |
| 24529 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24530 | t loop |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24531 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24532 | ' >$as_me.lineno && |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24533 | chmod +x "$as_me.lineno" || |
| 24534 | { 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] | 24535 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24537 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 24538 | # (the dirname of $[0] is not the place where we might find the |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24539 | # original and so on. Autoconf is especially sensitive to this). |
| 24540 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24541 | # Exit status is that of the last command. |
| 24542 | exit |
| 24543 | } |
| 24544 | |
| 24545 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24546 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 24547 | as_dirname=dirname |
| 24548 | else |
| 24549 | as_dirname=false |
| 24550 | fi |
| 24551 | |
| 24552 | ECHO_C= ECHO_N= ECHO_T= |
| 24553 | case `echo -n x` in |
| 24554 | -n*) |
| 24555 | case `echo 'x\c'` in |
| 24556 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 24557 | *) ECHO_C='\c';; |
| 24558 | esac;; |
| 24559 | *) |
| 24560 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24561 | esac |
| 24562 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24563 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 24564 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24565 | as_expr=expr |
| 24566 | else |
| 24567 | as_expr=false |
| 24568 | fi |
| 24569 | |
| 24570 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24571 | if test -d conf$$.dir; then |
| 24572 | rm -f conf$$.dir/conf$$.file |
| 24573 | else |
| 24574 | rm -f conf$$.dir |
| 24575 | mkdir conf$$.dir |
| 24576 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24577 | echo >conf$$.file |
| 24578 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24579 | as_ln_s='ln -s' |
| 24580 | # ... but there are two gotchas: |
| 24581 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 24582 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 24583 | # In both cases, we have to default to `cp -p'. |
| 24584 | 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] | 24585 | as_ln_s='cp -p' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24586 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 24587 | as_ln_s=ln |
| 24588 | else |
| 24589 | as_ln_s='cp -p' |
| 24590 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24591 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 24592 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24593 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24594 | if mkdir -p . 2>/dev/null; then |
| 24595 | as_mkdir_p=: |
| 24596 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24597 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24598 | as_mkdir_p=false |
| 24599 | fi |
| 24600 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24601 | if test -x / >/dev/null 2>&1; then |
| 24602 | as_test_x='test -x' |
| 24603 | else |
| 24604 | if ls -dL / >/dev/null 2>&1; then |
| 24605 | as_ls_L_option=L |
| 24606 | else |
| 24607 | as_ls_L_option= |
| 24608 | fi |
| 24609 | as_test_x=' |
| 24610 | eval sh -c '\'' |
| 24611 | if test -d "$1"; then |
| 24612 | test -d "$1/."; |
| 24613 | else |
| 24614 | case $1 in |
| 24615 | -*)set "./$1";; |
| 24616 | esac; |
| 24617 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 24618 | ???[sx]*):;;*)false;;esac;fi |
| 24619 | '\'' sh |
| 24620 | ' |
| 24621 | fi |
| 24622 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24623 | |
| 24624 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24625 | 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] | 24626 | |
| 24627 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24628 | 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] | 24629 | |
| 24630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24631 | exec 6>&1 |
| 24632 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24633 | # 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] | 24634 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24635 | # values after options handling. |
| 24636 | ac_log=" |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 24637 | This file was extended by python $as_me 3.0, which was |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24638 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24639 | |
| 24640 | CONFIG_FILES = $CONFIG_FILES |
| 24641 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 24642 | CONFIG_LINKS = $CONFIG_LINKS |
| 24643 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 24644 | $ $0 $@ |
| 24645 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24646 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 24647 | " |
| 24648 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24649 | _ACEOF |
| 24650 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24651 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24652 | # Files that config.status was made for. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24653 | config_files="$ac_config_files" |
| 24654 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24655 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24656 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24657 | |
| 24658 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24659 | ac_cs_usage="\ |
| 24660 | \`$as_me' instantiates files from templates according to the |
| 24661 | current configuration. |
| 24662 | |
| 24663 | Usage: $0 [OPTIONS] [FILE]... |
| 24664 | |
| 24665 | -h, --help print this help, then exit |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24666 | -V, --version print version number and configuration settings, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24667 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24668 | -d, --debug don't remove temporary files |
| 24669 | --recheck update $as_me by reconfiguring in the same conditions |
| 24670 | --file=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24671 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24672 | --header=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24673 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24674 | |
| 24675 | Configuration files: |
| 24676 | $config_files |
| 24677 | |
| 24678 | Configuration headers: |
| 24679 | $config_headers |
| 24680 | |
| 24681 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 24682 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24683 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24684 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24685 | ac_cs_version="\\ |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 24686 | python config.status 3.0 |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24687 | configured by $0, generated by GNU Autoconf 2.61, |
| 24688 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24689 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24690 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24691 | This config.status script is free software; the Free Software Foundation |
| 24692 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24693 | |
| 24694 | ac_pwd='$ac_pwd' |
| 24695 | srcdir='$srcdir' |
| 24696 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24697 | _ACEOF |
| 24698 | |
| 24699 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24700 | # If no file are specified by the user, then we need to provide default |
| 24701 | # value. By we need to know if files were specified by the user. |
| 24702 | ac_need_defaults=: |
| 24703 | while test $# != 0 |
| 24704 | do |
| 24705 | case $1 in |
| 24706 | --*=*) |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24707 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 24708 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24709 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24710 | ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24711 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24712 | ac_option=$1 |
| 24713 | ac_optarg=$2 |
| 24714 | ac_shift=shift |
| 24715 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24716 | esac |
| 24717 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24718 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24719 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24720 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 24721 | ac_cs_recheck=: ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24722 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 24723 | echo "$ac_cs_version"; exit ;; |
| 24724 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24725 | debug=: ;; |
| 24726 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24727 | $ac_shift |
| 24728 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24729 | ac_need_defaults=false;; |
| 24730 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24731 | $ac_shift |
| 24732 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24733 | ac_need_defaults=false;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24734 | --he | --h) |
| 24735 | # Conflict between --help and --header |
| 24736 | { echo "$as_me: error: ambiguous option: $1 |
| 24737 | Try \`$0 --help' for more information." >&2 |
| 24738 | { (exit 1); exit 1; }; };; |
| 24739 | --help | --hel | -h ) |
| 24740 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24741 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 24742 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 24743 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24744 | |
| 24745 | # This is an error. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24746 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 24747 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24748 | { (exit 1); exit 1; }; } ;; |
| 24749 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24750 | *) ac_config_targets="$ac_config_targets $1" |
| 24751 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24752 | |
| 24753 | esac |
| 24754 | shift |
| 24755 | done |
| 24756 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24757 | ac_configure_extra_args= |
| 24758 | |
| 24759 | if $ac_cs_silent; then |
| 24760 | exec 6>/dev/null |
| 24761 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 24762 | fi |
| 24763 | |
| 24764 | _ACEOF |
| 24765 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24766 | if \$ac_cs_recheck; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24767 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 24768 | CONFIG_SHELL=$SHELL |
| 24769 | export CONFIG_SHELL |
| 24770 | 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] | 24771 | fi |
| 24772 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24773 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24774 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24775 | exec 5>>config.log |
| 24776 | { |
| 24777 | echo |
| 24778 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 24779 | ## Running $as_me. ## |
| 24780 | _ASBOX |
| 24781 | echo "$ac_log" |
| 24782 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24783 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24784 | _ACEOF |
| 24785 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24786 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24787 | |
| 24788 | cat >>$CONFIG_STATUS <<\_ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24789 | |
| 24790 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24791 | for ac_config_target in $ac_config_targets |
| 24792 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24793 | case $ac_config_target in |
| 24794 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 24795 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 24796 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 24797 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 24798 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 24799 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24800 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 24801 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 24802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24803 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 24804 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 24805 | { (exit 1); exit 1; }; };; |
| 24806 | esac |
| 24807 | done |
| 24808 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24810 | # If the user did not use the arguments to specify the items to instantiate, |
| 24811 | # then the envvar interface is used. Set only those that are not. |
| 24812 | # We use the long form for the default assignment because of an extremely |
| 24813 | # bizarre bug on SunOS 4.1.3. |
| 24814 | if $ac_need_defaults; then |
| 24815 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 24816 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 24817 | fi |
| 24818 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24819 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24820 | # 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] | 24821 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24822 | # Hook for its removal unless debugging. |
| 24823 | # Note that there is a small window in which the directory will not be cleaned: |
| 24824 | # 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] | 24825 | $debug || |
| 24826 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24827 | tmp= |
| 24828 | trap 'exit_status=$? |
| 24829 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 24830 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24831 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 24832 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24833 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24835 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24836 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24837 | test -n "$tmp" && test -d "$tmp" |
| 24838 | } || |
| 24839 | { |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24840 | tmp=./conf$$-$RANDOM |
| 24841 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24842 | } || |
| 24843 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24844 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24845 | { (exit 1); exit 1; } |
| 24846 | } |
| 24847 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24848 | # |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24849 | # Set up the sed scripts for CONFIG_FILES section. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24850 | # |
| 24851 | |
| 24852 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 24853 | # This happens for instance when ./config.status config.h |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24854 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24855 | |
| 24856 | _ACEOF |
| 24857 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24858 | |
| 24859 | |
| 24860 | ac_delim='%!_!# ' |
| 24861 | for ac_last_try in false false false false false :; do |
| 24862 | cat >conf$$subs.sed <<_ACEOF |
| 24863 | SHELL!$SHELL$ac_delim |
| 24864 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 24865 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 24866 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 24867 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 24868 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 24869 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 24870 | exec_prefix!$exec_prefix$ac_delim |
| 24871 | prefix!$prefix$ac_delim |
| 24872 | program_transform_name!$program_transform_name$ac_delim |
| 24873 | bindir!$bindir$ac_delim |
| 24874 | sbindir!$sbindir$ac_delim |
| 24875 | libexecdir!$libexecdir$ac_delim |
| 24876 | datarootdir!$datarootdir$ac_delim |
| 24877 | datadir!$datadir$ac_delim |
| 24878 | sysconfdir!$sysconfdir$ac_delim |
| 24879 | sharedstatedir!$sharedstatedir$ac_delim |
| 24880 | localstatedir!$localstatedir$ac_delim |
| 24881 | includedir!$includedir$ac_delim |
| 24882 | oldincludedir!$oldincludedir$ac_delim |
| 24883 | docdir!$docdir$ac_delim |
| 24884 | infodir!$infodir$ac_delim |
| 24885 | htmldir!$htmldir$ac_delim |
| 24886 | dvidir!$dvidir$ac_delim |
| 24887 | pdfdir!$pdfdir$ac_delim |
| 24888 | psdir!$psdir$ac_delim |
| 24889 | libdir!$libdir$ac_delim |
| 24890 | localedir!$localedir$ac_delim |
| 24891 | mandir!$mandir$ac_delim |
| 24892 | DEFS!$DEFS$ac_delim |
| 24893 | ECHO_C!$ECHO_C$ac_delim |
| 24894 | ECHO_N!$ECHO_N$ac_delim |
| 24895 | ECHO_T!$ECHO_T$ac_delim |
| 24896 | LIBS!$LIBS$ac_delim |
| 24897 | build_alias!$build_alias$ac_delim |
| 24898 | host_alias!$host_alias$ac_delim |
| 24899 | target_alias!$target_alias$ac_delim |
| 24900 | VERSION!$VERSION$ac_delim |
| 24901 | SOVERSION!$SOVERSION$ac_delim |
| 24902 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 24903 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 24904 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 24905 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24906 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 24907 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 24908 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 24909 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 24910 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 24911 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 24912 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 24913 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 24914 | MACHDEP!$MACHDEP$ac_delim |
| 24915 | SGI_ABI!$SGI_ABI$ac_delim |
| 24916 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 24917 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 24918 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 24919 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 24920 | CC!$CC$ac_delim |
| 24921 | CFLAGS!$CFLAGS$ac_delim |
| 24922 | LDFLAGS!$LDFLAGS$ac_delim |
| 24923 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 24924 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 24925 | EXEEXT!$EXEEXT$ac_delim |
| 24926 | OBJEXT!$OBJEXT$ac_delim |
| 24927 | CXX!$CXX$ac_delim |
| 24928 | MAINCC!$MAINCC$ac_delim |
| 24929 | CPP!$CPP$ac_delim |
| 24930 | GREP!$GREP$ac_delim |
| 24931 | EGREP!$EGREP$ac_delim |
| 24932 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 24933 | LIBRARY!$LIBRARY$ac_delim |
| 24934 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 24935 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 24936 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 24937 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 24938 | INSTSONAME!$INSTSONAME$ac_delim |
| 24939 | RUNSHARED!$RUNSHARED$ac_delim |
| 24940 | LINKCC!$LINKCC$ac_delim |
| 24941 | RANLIB!$RANLIB$ac_delim |
| 24942 | AR!$AR$ac_delim |
| 24943 | SVNVERSION!$SVNVERSION$ac_delim |
| 24944 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 24945 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 24946 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 24947 | LN!$LN$ac_delim |
| 24948 | OPT!$OPT$ac_delim |
| 24949 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 24950 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 24951 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 24952 | SO!$SO$ac_delim |
| 24953 | LDSHARED!$LDSHARED$ac_delim |
| 24954 | BLDSHARED!$BLDSHARED$ac_delim |
| 24955 | CCSHARED!$CCSHARED$ac_delim |
| 24956 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 24957 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 24958 | SHLIBS!$SHLIBS$ac_delim |
| 24959 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24960 | _ACEOF |
| 24961 | |
| 24962 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 24963 | break |
| 24964 | elif $ac_last_try; then |
| 24965 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 24966 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 24967 | { (exit 1); exit 1; }; } |
| 24968 | else |
| 24969 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24970 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 24971 | done |
| 24972 | |
| 24973 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 24974 | if test -n "$ac_eof"; then |
| 24975 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 24976 | ac_eof=`expr $ac_eof + 1` |
| 24977 | fi |
| 24978 | |
| 24979 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24980 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 24981 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 24982 | _ACEOF |
| 24983 | sed ' |
| 24984 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 24985 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 24986 | :n |
| 24987 | t n |
| 24988 | s/'"$ac_delim"'$/,g/; t |
| 24989 | s/$/\\/; p |
| 24990 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 24991 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 24992 | rm -f conf$$subs.sed |
| 24993 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24994 | CEOF$ac_eof |
| 24995 | _ACEOF |
| 24996 | |
| 24997 | |
| 24998 | ac_delim='%!_!# ' |
| 24999 | for ac_last_try in false false false false false :; do |
| 25000 | cat >conf$$subs.sed <<_ACEOF |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 25001 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25002 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 25003 | LDLAST!$LDLAST$ac_delim |
| 25004 | THREADOBJ!$THREADOBJ$ac_delim |
| 25005 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 25006 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 25007 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 25008 | TRUE!$TRUE$ac_delim |
| 25009 | LIBOBJS!$LIBOBJS$ac_delim |
| 25010 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 25011 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 25012 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 25013 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 25014 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 25015 | LIBM!$LIBM$ac_delim |
| 25016 | LIBC!$LIBC$ac_delim |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25017 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 25018 | SRCDIRS!$SRCDIRS$ac_delim |
| 25019 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 25020 | _ACEOF |
| 25021 | |
Christian Heimes | 81ee3ef | 2008-05-04 22:42:01 +0000 | [diff] [blame] | 25022 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25023 | break |
| 25024 | elif $ac_last_try; then |
| 25025 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 25026 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 25027 | { (exit 1); exit 1; }; } |
| 25028 | else |
| 25029 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 25030 | fi |
| 25031 | done |
| 25032 | |
| 25033 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 25034 | if test -n "$ac_eof"; then |
| 25035 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 25036 | ac_eof=`expr $ac_eof + 1` |
| 25037 | fi |
| 25038 | |
| 25039 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25040 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 25041 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 25042 | _ACEOF |
| 25043 | sed ' |
| 25044 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 25045 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 25046 | :n |
| 25047 | t n |
| 25048 | s/'"$ac_delim"'$/,g/; t |
| 25049 | s/$/\\/; p |
| 25050 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 25051 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 25052 | rm -f conf$$subs.sed |
| 25053 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25054 | :end |
| 25055 | s/|#_!!_#|//g |
| 25056 | CEOF$ac_eof |
| 25057 | _ACEOF |
| 25058 | |
| 25059 | |
| 25060 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 25061 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 25062 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 25063 | # (actually we leave an empty line to preserve line numbers). |
| 25064 | if test "x$srcdir" = x.; then |
| 25065 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 25066 | s/:*\$(srcdir):*/:/ |
| 25067 | s/:*\${srcdir}:*/:/ |
| 25068 | s/:*@srcdir@:*/:/ |
| 25069 | s/^\([^=]*=[ ]*\):*/\1/ |
| 25070 | s/:*$// |
| 25071 | s/^[^=]*=[ ]*$// |
| 25072 | }' |
| 25073 | fi |
| 25074 | |
| 25075 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25076 | fi # test -n "$CONFIG_FILES" |
| 25077 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25078 | |
| 25079 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
| 25080 | do |
| 25081 | case $ac_tag in |
| 25082 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 25083 | esac |
| 25084 | case $ac_mode$ac_tag in |
| 25085 | :[FHL]*:*);; |
| 25086 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 25087 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 25088 | { (exit 1); exit 1; }; };; |
| 25089 | :[FH]-) ac_tag=-:-;; |
| 25090 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 25091 | esac |
| 25092 | ac_save_IFS=$IFS |
| 25093 | IFS=: |
| 25094 | set x $ac_tag |
| 25095 | IFS=$ac_save_IFS |
| 25096 | shift |
| 25097 | ac_file=$1 |
| 25098 | shift |
| 25099 | |
| 25100 | case $ac_mode in |
| 25101 | :L) ac_source=$1;; |
| 25102 | :[FH]) |
| 25103 | ac_file_inputs= |
| 25104 | for ac_f |
| 25105 | do |
| 25106 | case $ac_f in |
| 25107 | -) ac_f="$tmp/stdin";; |
| 25108 | *) # Look for the file first in the build tree, then in the source tree |
| 25109 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 25110 | # because $ac_f cannot contain `:'. |
| 25111 | test -f "$ac_f" || |
| 25112 | case $ac_f in |
| 25113 | [\\/$]*) false;; |
| 25114 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 25115 | esac || |
| 25116 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 25117 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 25118 | { (exit 1); exit 1; }; };; |
| 25119 | esac |
| 25120 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 25121 | done |
| 25122 | |
| 25123 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 25124 | # use $as_me), people would be surprised to read: |
| 25125 | # /* config.h. Generated by config.status. */ |
| 25126 | configure_input="Generated from "`IFS=: |
| 25127 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 25128 | if test x"$ac_file" != x-; then |
| 25129 | configure_input="$ac_file. $configure_input" |
| 25130 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 25131 | echo "$as_me: creating $ac_file" >&6;} |
| 25132 | fi |
| 25133 | |
| 25134 | case $ac_tag in |
| 25135 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 25136 | esac |
| 25137 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25138 | esac |
| 25139 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25140 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25141 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25142 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 25143 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25144 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25145 | echo X"$ac_file" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25146 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25147 | s//\1/ |
| 25148 | q |
| 25149 | } |
| 25150 | /^X\(\/\/\)[^/].*/{ |
| 25151 | s//\1/ |
| 25152 | q |
| 25153 | } |
| 25154 | /^X\(\/\/\)$/{ |
| 25155 | s//\1/ |
| 25156 | q |
| 25157 | } |
| 25158 | /^X\(\/\).*/{ |
| 25159 | s//\1/ |
| 25160 | q |
| 25161 | } |
| 25162 | s/.*/./; q'` |
| 25163 | { as_dir="$ac_dir" |
| 25164 | case $as_dir in #( |
| 25165 | -*) as_dir=./$as_dir;; |
| 25166 | esac |
| 25167 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25168 | as_dirs= |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25169 | while :; do |
| 25170 | case $as_dir in #( |
| 25171 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 25172 | *) as_qdir=$as_dir;; |
| 25173 | esac |
| 25174 | as_dirs="'$as_qdir' $as_dirs" |
| 25175 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25176 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25177 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 25178 | X"$as_dir" : 'X\(//\)$' \| \ |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25179 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25180 | echo X"$as_dir" | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25181 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 25182 | s//\1/ |
| 25183 | q |
| 25184 | } |
| 25185 | /^X\(\/\/\)[^/].*/{ |
| 25186 | s//\1/ |
| 25187 | q |
| 25188 | } |
| 25189 | /^X\(\/\/\)$/{ |
| 25190 | s//\1/ |
| 25191 | q |
| 25192 | } |
| 25193 | /^X\(\/\).*/{ |
| 25194 | s//\1/ |
| 25195 | q |
| 25196 | } |
| 25197 | s/.*/./; q'` |
| 25198 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25199 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25200 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 25201 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 25202 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25203 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25204 | ac_builddir=. |
| 25205 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25206 | case "$ac_dir" in |
| 25207 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 25208 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25209 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25210 | # A ".." for each directory in $ac_dir_suffix. |
| 25211 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 25212 | case $ac_top_builddir_sub in |
| 25213 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 25214 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 25215 | esac ;; |
| 25216 | esac |
| 25217 | ac_abs_top_builddir=$ac_pwd |
| 25218 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 25219 | # for backward compatibility: |
| 25220 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25221 | |
| 25222 | case $srcdir in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25223 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25224 | ac_srcdir=. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25225 | ac_top_srcdir=$ac_top_builddir_sub |
| 25226 | ac_abs_top_srcdir=$ac_pwd ;; |
| 25227 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25228 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25229 | ac_top_srcdir=$srcdir |
| 25230 | ac_abs_top_srcdir=$srcdir ;; |
| 25231 | *) # Relative name. |
| 25232 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 25233 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 25234 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25235 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25236 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25238 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25239 | case $ac_mode in |
| 25240 | :F) |
| 25241 | # |
| 25242 | # CONFIG_FILE |
| 25243 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25244 | |
| 25245 | case $INSTALL in |
| 25246 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25247 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25248 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25249 | _ACEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25250 | |
| 25251 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25252 | # If the template does not know about datarootdir, expand it. |
| 25253 | # FIXME: This hack should be removed a few years after 2.60. |
| 25254 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 25255 | |
| 25256 | case `sed -n '/datarootdir/ { |
| 25257 | p |
| 25258 | q |
| 25259 | } |
| 25260 | /@datadir@/p |
| 25261 | /@docdir@/p |
| 25262 | /@infodir@/p |
| 25263 | /@localedir@/p |
| 25264 | /@mandir@/p |
| 25265 | ' $ac_file_inputs` in |
| 25266 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 25267 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 25268 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 25269 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 25270 | _ACEOF |
| 25271 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25272 | ac_datarootdir_hack=' |
| 25273 | s&@datadir@&$datadir&g |
| 25274 | s&@docdir@&$docdir&g |
| 25275 | s&@infodir@&$infodir&g |
| 25276 | s&@localedir@&$localedir&g |
| 25277 | s&@mandir@&$mandir&g |
| 25278 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 25279 | esac |
| 25280 | _ACEOF |
| 25281 | |
| 25282 | # Neutralize VPATH when `$srcdir' = `.'. |
| 25283 | # Shell code in configure.ac might set extrasub. |
| 25284 | # FIXME: do we really want to maintain this feature? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 25285 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25286 | sed "$ac_vpsub |
| 25287 | $extrasub |
| 25288 | _ACEOF |
| 25289 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25290 | :t |
| 25291 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25292 | s&@configure_input@&$configure_input&;t t |
| 25293 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 25294 | s&@srcdir@&$ac_srcdir&;t t |
| 25295 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 25296 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 25297 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 25298 | s&@builddir@&$ac_builddir&;t t |
| 25299 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 25300 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 25301 | s&@INSTALL@&$ac_INSTALL&;t t |
| 25302 | $ac_datarootdir_hack |
| 25303 | " $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] | 25304 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25305 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 25306 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 25307 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 25308 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 25309 | which seems to be undefined. Please make sure it is defined." >&5 |
| 25310 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 25311 | which seems to be undefined. Please make sure it is defined." >&2;} |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 25312 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25313 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25314 | case $ac_file in |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25315 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 25316 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25317 | esac |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25318 | ;; |
| 25319 | :H) |
| 25320 | # |
| 25321 | # CONFIG_HEADER |
| 25322 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25323 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25324 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25325 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 25326 | # substitutes the proper values into config.h.in to produce config.h. |
| 25327 | rm -f conftest.defines conftest.tail |
| 25328 | # First, append a space to every undef/define line, to ease matching. |
| 25329 | echo 's/$/ /' >conftest.defines |
| 25330 | # Then, protect against being on the right side of a sed subst, or in |
| 25331 | # an unquoted here document, in config.status. If some macros were |
| 25332 | # called several times there might be several #defines for the same |
| 25333 | # symbol, which is useless. But do not sort them, since the last |
| 25334 | # AC_DEFINE must be honored. |
| 25335 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 25336 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 25337 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 25338 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 25339 | # just an empty string. |
| 25340 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 25341 | ac_dB='\\)[ (].*,\\1define\\2' |
| 25342 | ac_dC=' ' |
| 25343 | ac_dD=' ,' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 25344 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25345 | uniq confdefs.h | |
| 25346 | sed -n ' |
| 25347 | t rset |
| 25348 | :rset |
| 25349 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 25350 | t ok |
| 25351 | d |
| 25352 | :ok |
| 25353 | s/[\\&,]/\\&/g |
| 25354 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 25355 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 25356 | ' >>conftest.defines |
| 25357 | |
| 25358 | # Remove the space that was appended to ease matching. |
| 25359 | # Then replace #undef with comments. This is necessary, for |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25360 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 25361 | # on some systems where configure will not decide to define it. |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25362 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 25363 | echo 's/ $// |
| 25364 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 25365 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25366 | # Break up conftest.defines: |
| 25367 | ac_max_sed_lines=50 |
| 25368 | |
| 25369 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 25370 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 25371 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 25372 | # et cetera. |
| 25373 | ac_in='$ac_file_inputs' |
| 25374 | ac_out='"$tmp/out1"' |
| 25375 | ac_nxt='"$tmp/out2"' |
| 25376 | |
| 25377 | while : |
Skip Montanaro | eb33e5a | 2007-08-17 12:57:41 +0000 | [diff] [blame] | 25378 | do |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25379 | # Write a here document: |
| 25380 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25381 | # First, check the format of the line: |
| 25382 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 25383 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 25384 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 25385 | b |
| 25386 | :def |
| 25387 | _ACEOF |
| 25388 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25389 | echo 'CEOF |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25390 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 25391 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 25392 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 25393 | grep . conftest.tail >/dev/null || break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25394 | rm -f conftest.defines |
| 25395 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25396 | done |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25397 | rm -f conftest.defines conftest.tail |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25398 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25399 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25400 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25401 | if test x"$ac_file" != x-; then |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25402 | echo "/* $configure_input */" >"$tmp/config.h" |
| 25403 | cat "$ac_result" >>"$tmp/config.h" |
| 25404 | 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] | 25405 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 25406 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 25407 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25408 | rm -f $ac_file |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25409 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25410 | fi |
| 25411 | else |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25412 | echo "/* $configure_input */" |
| 25413 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25414 | fi |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25415 | rm -f "$tmp/out12" |
| 25416 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 25417 | |
Thomas Wouters | 47b49bf | 2007-08-30 22:15:33 +0000 | [diff] [blame] | 25418 | |
| 25419 | esac |
| 25420 | |
| 25421 | done # for ac_tag |
| 25422 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 25423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25424 | { (exit 0); exit 0; } |
| 25425 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25426 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25427 | ac_clean_files=$ac_clean_files_save |
| 25428 | |
| 25429 | |
| 25430 | # configure is writing to config.log, and then calls config.status. |
| 25431 | # config.status does its own redirection, appending to config.log. |
| 25432 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 25433 | # by configure, so config.status won't be able to write to it; its |
| 25434 | # output is simply discarded. So we exec the FD to /dev/null, |
| 25435 | # effectively closing config.log, so it can be properly (re)opened and |
| 25436 | # appended to by config.status. When coming back to configure, we |
| 25437 | # need to make the FD available again. |
| 25438 | if test "$no_create" != yes; then |
| 25439 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25440 | ac_config_status_args= |
| 25441 | test "$silent" = yes && |
| 25442 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25443 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25444 | $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] | 25445 | exec 5>>config.log |
| 25446 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 25447 | # would make configure fail if this is the last instruction. |
| 25448 | $ac_cs_success || { (exit 1); exit 1; } |
| 25449 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 25450 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 25451 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 25452 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 25453 | if test ! -f Modules/Setup |
| 25454 | then |
| 25455 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 25456 | fi |
| 25457 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 25458 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 25459 | if test ! -f Modules/Setup.local |
| 25460 | then |
| 25461 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 25462 | fi |
| 25463 | |
| 25464 | echo "creating Makefile" |
| 25465 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 25466 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 25467 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 25468 | mv config.c Modules |