Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Thomas Wouters | cf297e4 | 2007-02-23 15:07:44 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 53610 . |
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 | 89f507f | 2006-12-13 04:49:30 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 89f507f | 2006-12-13 04:49:30 +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 | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
| 25 | else |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 240 | # Try only shells that exist, to save several forks. |
| 241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 242 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 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 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 251 | case `(set -o) 2>/dev/null` in |
| 252 | *posix*) set -o posix ;; |
| 253 | esac |
| 254 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 255 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 256 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 257 | |
| 258 | : |
| 259 | _ASEOF |
| 260 | }; then |
| 261 | CONFIG_SHELL=$as_shell |
| 262 | as_have_required=yes |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 263 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 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 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 272 | case `(set -o) 2>/dev/null` in |
| 273 | *posix*) set -o posix ;; |
| 274 | esac |
| 275 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 276 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 277 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 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 | ( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 331 | as_lineno_1=$LINENO |
| 332 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 524 | if test -x / >/dev/null 2>&1; then |
| 525 | as_test_x='test -x' |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 526 | else |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 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 | ' |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 544 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 89f507f | 2006-12-13 04:49:30 +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 | 89f507f | 2006-12-13 04:49:30 +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 | 89f507f | 2006-12-13 04:49:30 +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 | 89f507f | 2006-12-13 04:49:30 +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 | 89f507f | 2006-12-13 04:49:30 +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 | 89f507f | 2006-12-13 04:49:30 +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 | 89f507f | 2006-12-13 04:49:30 +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 | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STDINT_H |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 613 | # include <stdint.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 614 | #endif |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 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 | 477c8d5 | 2006-05-27 19:21:47 +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 |
| 661 | PYTHONFRAMEWORKDIR |
| 662 | PYTHONFRAMEWORKPREFIX |
| 663 | PYTHONFRAMEWORKINSTALLDIR |
| 664 | FRAMEWORKINSTALLFIRST |
| 665 | FRAMEWORKINSTALLLAST |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 666 | FRAMEWORKALTINSTALLFIRST |
| 667 | FRAMEWORKALTINSTALLLAST |
| 668 | FRAMEWORKUNIXTOOLSPREFIX |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 669 | MACHDEP |
| 670 | SGI_ABI |
| 671 | EXTRAPLATDIR |
| 672 | EXTRAMACHDEPPATH |
| 673 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 674 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 675 | CC |
| 676 | CFLAGS |
| 677 | LDFLAGS |
| 678 | CPPFLAGS |
| 679 | ac_ct_CC |
| 680 | EXEEXT |
| 681 | OBJEXT |
| 682 | CXX |
| 683 | MAINCC |
| 684 | CPP |
| 685 | GREP |
| 686 | EGREP |
| 687 | BUILDEXEEXT |
| 688 | LIBRARY |
| 689 | LDLIBRARY |
| 690 | DLLLIBRARY |
| 691 | BLDLIBRARY |
| 692 | LDLIBRARYDIR |
| 693 | INSTSONAME |
| 694 | RUNSHARED |
| 695 | LINKCC |
| 696 | RANLIB |
| 697 | AR |
| 698 | SVNVERSION |
| 699 | INSTALL_PROGRAM |
| 700 | INSTALL_SCRIPT |
| 701 | INSTALL_DATA |
| 702 | LN |
| 703 | OPT |
| 704 | BASECFLAGS |
| 705 | OTHER_LIBTOOL_OPT |
| 706 | LIBTOOL_CRUFT |
| 707 | SO |
| 708 | LDSHARED |
| 709 | BLDSHARED |
| 710 | CCSHARED |
| 711 | LINKFORSHARED |
| 712 | CFLAGSFORSHARED |
| 713 | SHLIBS |
| 714 | USE_SIGNAL_MODULE |
| 715 | SIGNAL_OBJS |
| 716 | USE_THREAD_MODULE |
| 717 | LDLAST |
| 718 | THREADOBJ |
| 719 | DLINCLDIR |
| 720 | DYNLOADFILE |
| 721 | MACHDEP_OBJS |
| 722 | TRUE |
| 723 | LIBOBJS |
| 724 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 725 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 726 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 727 | HAVE_GETHOSTBYNAME_R |
| 728 | HAVE_GETHOSTBYNAME |
| 729 | LIBM |
| 730 | LIBC |
| 731 | UNICODE_OBJS |
| 732 | THREADHEADERS |
| 733 | SRCDIRS |
| 734 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 735 | ac_subst_files='' |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 736 | ac_precious_vars='build_alias |
| 737 | host_alias |
| 738 | target_alias |
| 739 | CC |
| 740 | CFLAGS |
| 741 | LDFLAGS |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 742 | LIBS |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 89f507f | 2006-12-13 04:49:30 +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 | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 853 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 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 | 89f507f | 2006-12-13 04:49:30 +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 | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 872 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 89f507f | 2006-12-13 04:49:30 +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 | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 1069 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 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 | 89f507f | 2006-12-13 04:49:30 +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 | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 1078 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1217 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +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 | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1221 | { (exit 1); exit 1; }; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +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 | 477c8d5 | 2006-05-27 19:21:47 +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] |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1315 | --enable-universalsdk[SDKDIR] |
| 1316 | Build agains 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 |
| 1324 | --enable-unicode[=ucs[24]] |
| 1325 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1326 | |
| 1327 | Optional Packages: |
| 1328 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1329 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1330 | --without-gcc never use gcc |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1331 | --with-cxx-main=<compiler> |
| 1332 | compile main() and link python executable with C++ |
| 1333 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1334 | --with-suffix=.exe set executable suffix |
| 1335 | --with-pydebug build with Py_DEBUG defined |
| 1336 | --with-libs='lib1 ...' link against additional libs |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1337 | --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] | 1338 | --with-signal-module disable/enable signal module |
| 1339 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1340 | --with(out)-threads[=DIRECTORY] |
| 1341 | disable/enable thread support |
| 1342 | --with(out)-thread[=DIRECTORY] |
| 1343 | deprecated; use --with(out)-threads |
| 1344 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1345 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1346 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1347 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1348 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1349 | --with-fpectl enable SIGFPE catching |
| 1350 | --with-libm=STRING math library |
| 1351 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1352 | |
| 1353 | Some influential environment variables: |
| 1354 | CC C compiler command |
| 1355 | CFLAGS C compiler flags |
| 1356 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1357 | nonstandard directory <lib dir> |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 1358 | LIBS libraries to pass to the linker, e.g. -l<library> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1359 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1360 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1361 | CPP C preprocessor |
| 1362 | |
| 1363 | Use these variables to override the choices made by `configure' or to help |
| 1364 | it to find libraries and programs with nonstandard names/locations. |
| 1365 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 1366 | Report bugs to <http://www.python.org/python-bugs>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1367 | _ACEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1368 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1369 | fi |
| 1370 | |
| 1371 | if test "$ac_init_help" = "recursive"; then |
| 1372 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1373 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 1374 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1375 | ac_builddir=. |
| 1376 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1377 | case "$ac_dir" in |
| 1378 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1379 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1380 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1381 | # A ".." for each directory in $ac_dir_suffix. |
| 1382 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1383 | case $ac_top_builddir_sub in |
| 1384 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1385 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1386 | esac ;; |
| 1387 | esac |
| 1388 | ac_abs_top_builddir=$ac_pwd |
| 1389 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1390 | # for backward compatibility: |
| 1391 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | |
| 1393 | case $srcdir in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1394 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1395 | ac_srcdir=. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1396 | ac_top_srcdir=$ac_top_builddir_sub |
| 1397 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1398 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1399 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1400 | ac_top_srcdir=$srcdir |
| 1401 | ac_abs_top_srcdir=$srcdir ;; |
| 1402 | *) # Relative name. |
| 1403 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1404 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1405 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1406 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1407 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1408 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1409 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1410 | # Check for guested configure. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 1411 | if test -f "$ac_srcdir/configure.gnu"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1412 | echo && |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 1413 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1414 | elif test -f "$ac_srcdir/configure"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1415 | echo && |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 1416 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1417 | else |
| 1418 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1419 | fi || ac_status=$? |
| 1420 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1421 | done |
| 1422 | fi |
| 1423 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1424 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1425 | if $ac_init_version; then |
| 1426 | cat <<\_ACEOF |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 1427 | python configure 3.0 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 1428 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1429 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1430 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1431 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1432 | This configure script is free software; the Free Software Foundation |
| 1433 | gives unlimited permission to copy, distribute and modify it. |
| 1434 | _ACEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1435 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1436 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1437 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1438 | This file contains any messages produced by compilers while |
| 1439 | running configure, to aid debugging if configure makes a mistake. |
| 1440 | |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 1441 | It was created by python $as_me 3.0, which was |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 1442 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1443 | |
| 1444 | $ $0 $@ |
| 1445 | |
| 1446 | _ACEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1447 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1448 | { |
| 1449 | cat <<_ASUNAME |
| 1450 | ## --------- ## |
| 1451 | ## Platform. ## |
| 1452 | ## --------- ## |
| 1453 | |
| 1454 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1455 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1456 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1457 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1458 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1459 | |
| 1460 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1461 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1462 | |
| 1463 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1464 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1465 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1466 | /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] | 1467 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1468 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1469 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1470 | |
| 1471 | _ASUNAME |
| 1472 | |
| 1473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1474 | for as_dir in $PATH |
| 1475 | do |
| 1476 | IFS=$as_save_IFS |
| 1477 | test -z "$as_dir" && as_dir=. |
| 1478 | echo "PATH: $as_dir" |
| 1479 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1480 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1481 | |
| 1482 | } >&5 |
| 1483 | |
| 1484 | cat >&5 <<_ACEOF |
| 1485 | |
| 1486 | |
| 1487 | ## ----------- ## |
| 1488 | ## Core tests. ## |
| 1489 | ## ----------- ## |
| 1490 | |
| 1491 | _ACEOF |
| 1492 | |
| 1493 | |
| 1494 | # Keep a trace of the command line. |
| 1495 | # 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] | 1496 | # 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] | 1497 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1498 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1499 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1500 | ac_configure_args0= |
| 1501 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1502 | ac_must_keep_next=false |
| 1503 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1504 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1505 | for ac_arg |
| 1506 | do |
| 1507 | case $ac_arg in |
| 1508 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1509 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1510 | | -silent | --silent | --silen | --sile | --sil) |
| 1511 | continue ;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1512 | *\'*) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1513 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1514 | esac |
| 1515 | case $ac_pass in |
| 1516 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1517 | 2) |
| 1518 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1519 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1520 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1521 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1522 | case $ac_arg in |
| 1523 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1524 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1525 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1526 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1527 | case "$ac_configure_args0 " in |
| 1528 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1529 | esac |
| 1530 | ;; |
| 1531 | -* ) ac_must_keep_next=true ;; |
| 1532 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1533 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 1534 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1535 | ;; |
| 1536 | esac |
| 1537 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1538 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1539 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1540 | $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] | 1541 | |
| 1542 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1543 | # config.log. We remove comments because anyway the quotes in there |
| 1544 | # would cause problems or look ugly. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1545 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1546 | # 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] | 1547 | trap 'exit_status=$? |
| 1548 | # Save into config.log some information that might help in debugging. |
| 1549 | { |
| 1550 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1552 | cat <<\_ASBOX |
| 1553 | ## ---------------- ## |
| 1554 | ## Cache variables. ## |
| 1555 | ## ---------------- ## |
| 1556 | _ASBOX |
| 1557 | echo |
| 1558 | # The following way of writing the cache mishandles newlines in values, |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1559 | ( |
| 1560 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1561 | eval ac_val=\$$ac_var |
| 1562 | case $ac_val in #( |
| 1563 | *${as_nl}*) |
| 1564 | case $ac_var in #( |
| 1565 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1566 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1567 | esac |
| 1568 | case $ac_var in #( |
| 1569 | _ | IFS | as_nl) ;; #( |
| 1570 | *) $as_unset $ac_var ;; |
| 1571 | esac ;; |
| 1572 | esac |
| 1573 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1574 | (set) 2>&1 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1575 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1576 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1577 | sed -n \ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1578 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1579 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1580 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1581 | *) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1582 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1583 | ;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1584 | esac | |
| 1585 | sort |
| 1586 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1587 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1588 | |
| 1589 | cat <<\_ASBOX |
| 1590 | ## ----------------- ## |
| 1591 | ## Output variables. ## |
| 1592 | ## ----------------- ## |
| 1593 | _ASBOX |
| 1594 | echo |
| 1595 | for ac_var in $ac_subst_vars |
| 1596 | do |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1597 | eval ac_val=\$$ac_var |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 1598 | case $ac_val in |
| 1599 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1600 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1601 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1602 | done | sort |
| 1603 | echo |
| 1604 | |
| 1605 | if test -n "$ac_subst_files"; then |
| 1606 | cat <<\_ASBOX |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1607 | ## ------------------- ## |
| 1608 | ## File substitutions. ## |
| 1609 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1610 | _ASBOX |
| 1611 | echo |
| 1612 | for ac_var in $ac_subst_files |
| 1613 | do |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1614 | eval ac_val=\$$ac_var |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 1615 | case $ac_val in |
| 1616 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1617 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1618 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1619 | done | sort |
| 1620 | echo |
| 1621 | fi |
| 1622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1623 | if test -s confdefs.h; then |
| 1624 | cat <<\_ASBOX |
| 1625 | ## ----------- ## |
| 1626 | ## confdefs.h. ## |
| 1627 | ## ----------- ## |
| 1628 | _ASBOX |
| 1629 | echo |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1630 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1631 | echo |
| 1632 | fi |
| 1633 | test "$ac_signal" != 0 && |
| 1634 | echo "$as_me: caught signal $ac_signal" |
| 1635 | echo "$as_me: exit $exit_status" |
| 1636 | } >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1637 | rm -f core *.core core.conftest.* && |
| 1638 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1639 | exit $exit_status |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1640 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1641 | for ac_signal in 1 2 13 15; do |
| 1642 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1643 | done |
| 1644 | ac_signal=0 |
| 1645 | |
| 1646 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1647 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1648 | |
| 1649 | # Predefined preprocessor variables. |
| 1650 | |
| 1651 | cat >>confdefs.h <<_ACEOF |
| 1652 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1653 | _ACEOF |
| 1654 | |
| 1655 | |
| 1656 | cat >>confdefs.h <<_ACEOF |
| 1657 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1658 | _ACEOF |
| 1659 | |
| 1660 | |
| 1661 | cat >>confdefs.h <<_ACEOF |
| 1662 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1663 | _ACEOF |
| 1664 | |
| 1665 | |
| 1666 | cat >>confdefs.h <<_ACEOF |
| 1667 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1668 | _ACEOF |
| 1669 | |
| 1670 | |
| 1671 | cat >>confdefs.h <<_ACEOF |
| 1672 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1673 | _ACEOF |
| 1674 | |
| 1675 | |
| 1676 | # 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] | 1677 | # Prefer explicitly selected file to automatically selected ones. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1678 | if test -n "$CONFIG_SITE"; then |
| 1679 | set x "$CONFIG_SITE" |
| 1680 | elif test "x$prefix" != xNONE; then |
| 1681 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1682 | else |
| 1683 | set x "$ac_default_prefix/share/config.site" \ |
| 1684 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1685 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1686 | shift |
| 1687 | for ac_site_file |
| 1688 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1689 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1690 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1691 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1692 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1693 | . "$ac_site_file" |
| 1694 | fi |
| 1695 | done |
| 1696 | |
| 1697 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1698 | # Some versions of bash will fail to source /dev/null (special |
| 1699 | # files actually), so we avoid doing that. |
| 1700 | if test -f "$cache_file"; then |
| 1701 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1702 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1703 | case $cache_file in |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 1704 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1705 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1706 | esac |
| 1707 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1709 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1710 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1711 | >$cache_file |
| 1712 | fi |
| 1713 | |
| 1714 | # Check that the precious variables saved in the cache have kept the same |
| 1715 | # value. |
| 1716 | ac_cache_corrupted=false |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1717 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1718 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1719 | eval ac_new_set=\$ac_env_${ac_var}_set |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1720 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1721 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1722 | case $ac_old_set,$ac_new_set in |
| 1723 | set,) |
| 1724 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1725 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1726 | ac_cache_corrupted=: ;; |
| 1727 | ,set) |
| 1728 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1729 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1730 | ac_cache_corrupted=: ;; |
| 1731 | ,);; |
| 1732 | *) |
| 1733 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1734 | { 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] | 1735 | 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] | 1736 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1737 | echo "$as_me: former value: $ac_old_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1738 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1739 | echo "$as_me: current value: $ac_new_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1740 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1741 | fi;; |
| 1742 | esac |
| 1743 | # Pass precious variables to config.status. |
| 1744 | if test "$ac_new_set" = set; then |
| 1745 | case $ac_new_val in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1746 | *\'*) 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] | 1747 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1748 | esac |
| 1749 | case " $ac_configure_args " in |
| 1750 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1751 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1752 | esac |
| 1753 | fi |
| 1754 | done |
| 1755 | if $ac_cache_corrupted; then |
| 1756 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1757 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1758 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1759 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1760 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1761 | fi |
| 1762 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1763 | |
| 1764 | |
| 1765 | |
| 1766 | |
| 1767 | |
| 1768 | |
| 1769 | |
| 1770 | |
| 1771 | |
| 1772 | |
| 1773 | |
| 1774 | |
| 1775 | |
| 1776 | |
| 1777 | |
| 1778 | |
| 1779 | |
| 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1787 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1788 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1789 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1790 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1791 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1792 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1793 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1794 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1795 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1796 | |
| 1797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1798 | |
| 1799 | |
| 1800 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1801 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1802 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1803 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1804 | # with other autoconf-based packages that include Python.h |
| 1805 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1806 | rm confdefs.h |
| 1807 | mv confdefs.h.new confdefs.h |
| 1808 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1809 | |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 1810 | VERSION=3.0 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1811 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1812 | |
| 1813 | SOVERSION=1.0 |
| 1814 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1815 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1816 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1817 | |
| 1818 | cat >>confdefs.h <<\_ACEOF |
| 1819 | #define _GNU_SOURCE 1 |
| 1820 | _ACEOF |
| 1821 | |
| 1822 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1823 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1824 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1825 | # them. |
| 1826 | |
| 1827 | cat >>confdefs.h <<\_ACEOF |
| 1828 | #define _NETBSD_SOURCE 1 |
| 1829 | _ACEOF |
| 1830 | |
| 1831 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1832 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1833 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1834 | # them. |
| 1835 | |
| 1836 | cat >>confdefs.h <<\_ACEOF |
| 1837 | #define __BSD_VISIBLE 1 |
| 1838 | _ACEOF |
| 1839 | |
| 1840 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1841 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1842 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1843 | |
| 1844 | cat >>confdefs.h <<\_ACEOF |
| 1845 | #define _BSD_TYPES 1 |
| 1846 | _ACEOF |
| 1847 | |
| 1848 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1849 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1850 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1851 | # Arguments passed to configure. |
| 1852 | |
| 1853 | CONFIG_ARGS="$ac_configure_args" |
| 1854 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1855 | # Check whether --enable-universalsdk was given. |
| 1856 | if test "${enable_universalsdk+set}" = set; then |
| 1857 | enableval=$enable_universalsdk; |
| 1858 | case $enableval in |
| 1859 | yes) |
| 1860 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1861 | ;; |
| 1862 | esac |
| 1863 | case $enableval in |
| 1864 | no) |
| 1865 | UNIVERSALSDK= |
| 1866 | enable_universalsdk= |
| 1867 | ;; |
| 1868 | *) |
| 1869 | UNIVERSALSDK=$enableval |
| 1870 | ;; |
| 1871 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1872 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1873 | else |
| 1874 | |
| 1875 | UNIVERSALSDK= |
| 1876 | enable_universalsdk= |
| 1877 | |
| 1878 | fi |
| 1879 | |
| 1880 | |
| 1881 | |
| 1882 | # Check whether --enable-framework was given. |
| 1883 | if test "${enable_framework+set}" = set; then |
| 1884 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1885 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1886 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1887 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1888 | esac |
| 1889 | case $enableval in |
| 1890 | no) |
| 1891 | PYTHONFRAMEWORK= |
| 1892 | PYTHONFRAMEWORKDIR=no-framework |
| 1893 | PYTHONFRAMEWORKPREFIX= |
| 1894 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1895 | FRAMEWORKINSTALLFIRST= |
| 1896 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1897 | FRAMEWORKALTINSTALLFIRST= |
| 1898 | FRAMEWORKALTINSTALLLAST= |
| 1899 | if test "x${prefix}" = "xNONE"; then |
| 1900 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1901 | else |
| 1902 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1903 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1904 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1905 | ;; |
| 1906 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1907 | PYTHONFRAMEWORK=Python |
| 1908 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1909 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1910 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1911 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
| 1912 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1913 | FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall" |
| 1914 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
| 1915 | if test "x${prefix}" = "xNONE" ; then |
| 1916 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1917 | else |
| 1918 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1919 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1920 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1921 | |
| 1922 | # Add makefiles for Mac specific code to the list of output |
| 1923 | # files: |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1924 | ac_config_files="$ac_config_files Mac/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1925 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1926 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1927 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1928 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1929 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1930 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1931 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1933 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1934 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1935 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1936 | PYTHONFRAMEWORKPREFIX= |
| 1937 | PYTHONFRAMEWORKINSTALLDIR= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1938 | FRAMEWORKINSTALLFIRST= |
| 1939 | FRAMEWORKINSTALLLAST= |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1940 | FRAMEWORKALTINSTALLFIRST= |
| 1941 | FRAMEWORKALTINSTALLLAST= |
| 1942 | if test "x${prefix}" = "xNONE" ; then |
| 1943 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1944 | else |
| 1945 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1946 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1947 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1948 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1949 | fi |
| 1950 | |
| 1951 | |
| 1952 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1953 | |
| 1954 | |
| 1955 | |
| 1956 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1957 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 1958 | |
| 1959 | |
| 1960 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1961 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1962 | ## AC_HELP_STRING(--with-dyld, |
| 1963 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1964 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1965 | # Set name for machine-dependent library files |
| 1966 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 1967 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1968 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1969 | if test -z "$MACHDEP" |
| 1970 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1971 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1972 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1973 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1974 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1975 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1976 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1977 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1978 | ac_md_system=`echo $ac_sys_system | |
| 1979 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1980 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1981 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1982 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1983 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1984 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1985 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1986 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1987 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1988 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1989 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1990 | esac |
| 1991 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1992 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1993 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1994 | # disable features if it is defined, without any means to access these |
| 1995 | # features as extensions. For these systems, we skip the definition of |
| 1996 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1997 | # some feature, make sure there is no alternative way to access this |
| 1998 | # feature. Also, when using wildcards, make sure you have verified the |
| 1999 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2000 | # wildcard, and that the wildcard does not include future systems |
| 2001 | # (which may remove their limitations). |
| 2002 | case $ac_sys_system/$ac_sys_release in |
| 2003 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2004 | # 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] | 2005 | # 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] | 2006 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0]) |
| 2007 | define_xopen_source=no;; |
| 2008 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2009 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2010 | # Marc Recht |
| 2011 | 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] | 2012 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2013 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2014 | # of union __?sigval. Reported by Stuart Bishop. |
| 2015 | SunOS/5.6) |
| 2016 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2017 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2018 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2019 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2020 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2021 | define_xopen_source=no;; |
| 2022 | # 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] | 2023 | # 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] | 2024 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2025 | define_xopen_source=no;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2026 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 2027 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 2028 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 2029 | # This should hopefully be fixed in FreeBSD 4.9 |
| 2030 | FreeBSD/4.8* | Darwin/6* ) |
| 2031 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2032 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2033 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2034 | # 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] | 2035 | AIX/4) |
| 2036 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2037 | AIX/5) |
| 2038 | if test `uname -r` -eq 1; then |
| 2039 | define_xopen_source=no |
| 2040 | fi |
| 2041 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2042 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2043 | # disables platform specific features beyond repair. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 2044 | # 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] | 2045 | # has no effect, don't bother defining them |
| 2046 | Darwin/[789].*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2047 | define_xopen_source=no |
| 2048 | ;; |
| 2049 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2050 | esac |
| 2051 | |
| 2052 | if test $define_xopen_source = yes |
| 2053 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2054 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2055 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2056 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2057 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2058 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2059 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2060 | |
| 2061 | cat >>confdefs.h <<\_ACEOF |
| 2062 | #define _XOPEN_SOURCE 500 |
| 2063 | _ACEOF |
| 2064 | |
| 2065 | ;; |
| 2066 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2067 | |
| 2068 | cat >>confdefs.h <<\_ACEOF |
| 2069 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2070 | _ACEOF |
| 2071 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2072 | ;; |
| 2073 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2074 | |
| 2075 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2076 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2077 | # several APIs are not declared. Since this is also needed in some |
| 2078 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2079 | # except for Solaris 10, where it must not be defined, |
| 2080 | # as it implies XPG4.2 |
| 2081 | case $ac_sys_system/$ac_sys_release in |
| 2082 | SunOS/5.10) |
| 2083 | ;; |
| 2084 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2085 | |
| 2086 | cat >>confdefs.h <<\_ACEOF |
| 2087 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2088 | _ACEOF |
| 2089 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2090 | ;; |
| 2091 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2092 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2093 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2094 | cat >>confdefs.h <<\_ACEOF |
| 2095 | #define _POSIX_C_SOURCE 200112L |
| 2096 | _ACEOF |
| 2097 | |
| 2098 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2099 | fi |
| 2100 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2101 | # |
| 2102 | # SGI compilers allow the specification of the both the ABI and the |
| 2103 | # ISA on the command line. Depending on the values of these switches, |
| 2104 | # different and often incompatable code will be generated. |
| 2105 | # |
| 2106 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2107 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2108 | # variable is also adjusted. |
| 2109 | # |
| 2110 | |
| 2111 | if test ! -z "$SGI_ABI" |
| 2112 | then |
| 2113 | CC="cc $SGI_ABI" |
| 2114 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2115 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2116 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2117 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2118 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2119 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2120 | # And add extra plat-mac for darwin |
| 2121 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2122 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2123 | { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2124 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2125 | if test -z "$EXTRAPLATDIR" |
| 2126 | then |
| 2127 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2128 | darwin) |
| 2129 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2130 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2131 | ;; |
| 2132 | *) |
| 2133 | EXTRAPLATDIR="" |
| 2134 | EXTRAMACHDEPPATH="" |
| 2135 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2136 | esac |
| 2137 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2138 | { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2139 | echo "${ECHO_T}$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2140 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2141 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2142 | # it may influence the way we can build extensions, so distutils |
| 2143 | # needs to check it |
| 2144 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2145 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2146 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2147 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2148 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2149 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2150 | |
| 2151 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2152 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2153 | # just to get things to compile and link. Users are free to override OPT |
| 2154 | # when running configure or make. The build should not break if they do. |
| 2155 | # BASECFLAGS should generally not be messed with, however. |
| 2156 | |
| 2157 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2158 | # on that fiddles with OPT and BASECFLAGS? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2159 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2160 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2161 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2162 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2163 | if test "${with_gcc+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2164 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2165 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2166 | no) CC=cc |
| 2167 | without_gcc=yes;; |
| 2168 | yes) CC=gcc |
| 2169 | without_gcc=no;; |
| 2170 | *) CC=$withval |
| 2171 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2172 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2173 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2174 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2175 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2176 | AIX*) CC=cc_r |
| 2177 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2178 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2179 | case $BE_HOST_CPU in |
| 2180 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2181 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2182 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2183 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 2184 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2185 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2186 | ;; |
| 2187 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2188 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2189 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2190 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2191 | ;; |
| 2192 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2193 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 2194 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 2195 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2196 | ;; |
| 2197 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2198 | AR="\$(srcdir)/Modules/ar_beos" |
| 2199 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2200 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2201 | Monterey*) |
| 2202 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2203 | without_gcc=;; |
| 2204 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2205 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2206 | fi |
| 2207 | |
| 2208 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2209 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2210 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2211 | # If the user switches compilers, we can't believe the cache |
| 2212 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2213 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2214 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 2215 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 2216 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 2217 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2218 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2219 | fi |
| 2220 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2221 | ac_ext=c |
| 2222 | ac_cpp='$CPP $CPPFLAGS' |
| 2223 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2224 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2225 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2226 | if test -n "$ac_tool_prefix"; then |
| 2227 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2228 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2229 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2230 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2231 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2233 | else |
| 2234 | if test -n "$CC"; then |
| 2235 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2238 | for as_dir in $PATH |
| 2239 | do |
| 2240 | IFS=$as_save_IFS |
| 2241 | test -z "$as_dir" && as_dir=. |
| 2242 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2243 | 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] | 2244 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2245 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2246 | break 2 |
| 2247 | fi |
| 2248 | done |
| 2249 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2250 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2251 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2252 | fi |
| 2253 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2254 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2255 | if test -n "$CC"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2256 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2257 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2258 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2259 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2260 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2261 | fi |
| 2262 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2264 | fi |
| 2265 | if test -z "$ac_cv_prog_CC"; then |
| 2266 | ac_ct_CC=$CC |
| 2267 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2268 | set dummy gcc; ac_word=$2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2269 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2271 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2273 | else |
| 2274 | if test -n "$ac_ct_CC"; then |
| 2275 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2276 | else |
| 2277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2278 | for as_dir in $PATH |
| 2279 | do |
| 2280 | IFS=$as_save_IFS |
| 2281 | test -z "$as_dir" && as_dir=. |
| 2282 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2283 | 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] | 2284 | ac_cv_prog_ac_ct_CC="gcc" |
| 2285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2286 | break 2 |
| 2287 | fi |
| 2288 | done |
| 2289 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2290 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2291 | |
| 2292 | fi |
| 2293 | fi |
| 2294 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2295 | if test -n "$ac_ct_CC"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2296 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2297 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2298 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2299 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2300 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2301 | fi |
| 2302 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2303 | if test "x$ac_ct_CC" = x; then |
| 2304 | CC="" |
| 2305 | else |
| 2306 | case $cross_compiling:$ac_tool_warned in |
| 2307 | yes:) |
| 2308 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2309 | whose name does not start with the host triplet. If you think this |
| 2310 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2311 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2312 | whose name does not start with the host triplet. If you think this |
| 2313 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2314 | ac_tool_warned=yes ;; |
| 2315 | esac |
| 2316 | CC=$ac_ct_CC |
| 2317 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2318 | else |
| 2319 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2320 | fi |
| 2321 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2322 | if test -z "$CC"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2323 | if test -n "$ac_tool_prefix"; then |
| 2324 | # 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] | 2325 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2326 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2327 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2328 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2330 | else |
| 2331 | if test -n "$CC"; then |
| 2332 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2333 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2335 | for as_dir in $PATH |
| 2336 | do |
| 2337 | IFS=$as_save_IFS |
| 2338 | test -z "$as_dir" && as_dir=. |
| 2339 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2340 | 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] | 2341 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2343 | break 2 |
| 2344 | fi |
| 2345 | done |
| 2346 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2347 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2348 | |
| 2349 | fi |
| 2350 | fi |
| 2351 | CC=$ac_cv_prog_CC |
| 2352 | if test -n "$CC"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2353 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2354 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2355 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2356 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2357 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2358 | fi |
| 2359 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2360 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2361 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2362 | fi |
| 2363 | if test -z "$CC"; then |
| 2364 | # Extract the first word of "cc", so it can be a program name with args. |
| 2365 | set dummy cc; ac_word=$2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2366 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2368 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2370 | else |
| 2371 | if test -n "$CC"; then |
| 2372 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2373 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2374 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2376 | for as_dir in $PATH |
| 2377 | do |
| 2378 | IFS=$as_save_IFS |
| 2379 | test -z "$as_dir" && as_dir=. |
| 2380 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2381 | 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] | 2382 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2383 | ac_prog_rejected=yes |
| 2384 | continue |
| 2385 | fi |
| 2386 | ac_cv_prog_CC="cc" |
| 2387 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2388 | break 2 |
| 2389 | fi |
| 2390 | done |
| 2391 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2392 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2393 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2394 | if test $ac_prog_rejected = yes; then |
| 2395 | # We found a bogon in the path, so make sure we never use it. |
| 2396 | set dummy $ac_cv_prog_CC |
| 2397 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2398 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2399 | # We chose a different compiler from the bogus one. |
| 2400 | # However, it has the same basename, so the bogon will be chosen |
| 2401 | # first if we set CC to just the basename; use the full file name. |
| 2402 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2403 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2404 | fi |
| 2405 | fi |
| 2406 | fi |
| 2407 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2408 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2409 | if test -n "$CC"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2410 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2411 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2412 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2413 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2414 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2415 | fi |
| 2416 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2417 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2418 | fi |
| 2419 | if test -z "$CC"; then |
| 2420 | if test -n "$ac_tool_prefix"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2421 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2422 | do |
| 2423 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2424 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2425 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2427 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2429 | else |
| 2430 | if test -n "$CC"; then |
| 2431 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2432 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2434 | for as_dir in $PATH |
| 2435 | do |
| 2436 | IFS=$as_save_IFS |
| 2437 | test -z "$as_dir" && as_dir=. |
| 2438 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2439 | 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] | 2440 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2441 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2442 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2443 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2444 | done |
| 2445 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2446 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2447 | |
| 2448 | fi |
| 2449 | fi |
| 2450 | CC=$ac_cv_prog_CC |
| 2451 | if test -n "$CC"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2452 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2453 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2454 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2455 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2456 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2457 | fi |
| 2458 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2460 | test -n "$CC" && break |
| 2461 | done |
| 2462 | fi |
| 2463 | if test -z "$CC"; then |
| 2464 | ac_ct_CC=$CC |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2465 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2466 | do |
| 2467 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2468 | set dummy $ac_prog; ac_word=$2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2469 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2470 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2471 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2473 | else |
| 2474 | if test -n "$ac_ct_CC"; then |
| 2475 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2476 | else |
| 2477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2478 | for as_dir in $PATH |
| 2479 | do |
| 2480 | IFS=$as_save_IFS |
| 2481 | test -z "$as_dir" && as_dir=. |
| 2482 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2484 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2485 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2486 | break 2 |
| 2487 | fi |
| 2488 | done |
| 2489 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2490 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2491 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2492 | fi |
| 2493 | fi |
| 2494 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2495 | if test -n "$ac_ct_CC"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2496 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2497 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2498 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2499 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2500 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2501 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2502 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2504 | test -n "$ac_ct_CC" && break |
| 2505 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2506 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2507 | if test "x$ac_ct_CC" = x; then |
| 2508 | CC="" |
| 2509 | else |
| 2510 | case $cross_compiling:$ac_tool_warned in |
| 2511 | yes:) |
| 2512 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2513 | whose name does not start with the host triplet. If you think this |
| 2514 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2515 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2516 | whose name does not start with the host triplet. If you think this |
| 2517 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2518 | ac_tool_warned=yes ;; |
| 2519 | esac |
| 2520 | CC=$ac_ct_CC |
| 2521 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2522 | fi |
| 2523 | |
| 2524 | fi |
| 2525 | |
| 2526 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2527 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2528 | See \`config.log' for more details." >&5 |
| 2529 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2530 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2531 | { (exit 1); exit 1; }; } |
| 2532 | |
| 2533 | # Provide some information about the compiler. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2534 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | ac_compiler=`set X $ac_compile; echo $2` |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2536 | { (ac_try="$ac_compiler --version >&5" |
| 2537 | case "(($ac_try" in |
| 2538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2539 | *) ac_try_echo=$ac_try;; |
| 2540 | esac |
| 2541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2542 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2543 | ac_status=$? |
| 2544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2545 | (exit $ac_status); } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2546 | { (ac_try="$ac_compiler -v >&5" |
| 2547 | case "(($ac_try" in |
| 2548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2549 | *) ac_try_echo=$ac_try;; |
| 2550 | esac |
| 2551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2552 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2553 | ac_status=$? |
| 2554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2555 | (exit $ac_status); } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2556 | { (ac_try="$ac_compiler -V >&5" |
| 2557 | case "(($ac_try" in |
| 2558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2559 | *) ac_try_echo=$ac_try;; |
| 2560 | esac |
| 2561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2562 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2563 | ac_status=$? |
| 2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2565 | (exit $ac_status); } |
| 2566 | |
| 2567 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2568 | /* confdefs.h. */ |
| 2569 | _ACEOF |
| 2570 | cat confdefs.h >>conftest.$ac_ext |
| 2571 | cat >>conftest.$ac_ext <<_ACEOF |
| 2572 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2574 | int |
| 2575 | main () |
| 2576 | { |
| 2577 | |
| 2578 | ; |
| 2579 | return 0; |
| 2580 | } |
| 2581 | _ACEOF |
| 2582 | ac_clean_files_save=$ac_clean_files |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2583 | 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] | 2584 | # Try to create an executable without -o first, disregard a.out. |
| 2585 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2586 | # of exeext. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2587 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2588 | 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] | 2589 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2590 | # |
| 2591 | # List of possible output files, starting from the most likely. |
| 2592 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2593 | # only as a last resort. b.out is created by i960 compilers. |
| 2594 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2595 | # |
| 2596 | # The IRIX 6 linker writes into existing files which may not be |
| 2597 | # executable, retaining their permissions. Remove them first so a |
| 2598 | # subsequent execution test works. |
| 2599 | ac_rmfiles= |
| 2600 | for ac_file in $ac_files |
| 2601 | do |
| 2602 | case $ac_file in |
| 2603 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2604 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2605 | esac |
| 2606 | done |
| 2607 | rm -f $ac_rmfiles |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2608 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2609 | if { (ac_try="$ac_link_default" |
| 2610 | case "(($ac_try" in |
| 2611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2612 | *) ac_try_echo=$ac_try;; |
| 2613 | esac |
| 2614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2615 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2616 | ac_status=$? |
| 2617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2618 | (exit $ac_status); }; then |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2619 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2620 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2621 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2622 | # so that the user can short-circuit this test for compilers unknown to |
| 2623 | # Autoconf. |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2624 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2625 | do |
| 2626 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2627 | case $ac_file in |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2628 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
| 2629 | ;; |
| 2630 | [ab].out ) |
| 2631 | # We found the default executable, but exeext='' is most |
| 2632 | # certainly right. |
| 2633 | break;; |
| 2634 | *.* ) |
| 2635 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2636 | then :; else |
| 2637 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2638 | fi |
| 2639 | # We set ac_cv_exeext here because the later test for it is not |
| 2640 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2641 | # argument, so we may need to know it at that point already. |
| 2642 | # Even if this section looks crufty: it has the advantage of |
| 2643 | # actually working. |
| 2644 | break;; |
| 2645 | * ) |
| 2646 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2647 | esac |
| 2648 | done |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2649 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2650 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2651 | else |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2652 | ac_file='' |
| 2653 | fi |
| 2654 | |
| 2655 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2656 | echo "${ECHO_T}$ac_file" >&6; } |
| 2657 | if test -z "$ac_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2658 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2660 | |
| 2661 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2662 | See \`config.log' for more details." >&5 |
| 2663 | echo "$as_me: error: C compiler cannot create executables |
| 2664 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2665 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2666 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2667 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2668 | ac_exeext=$ac_cv_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2669 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2670 | # 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] | 2671 | # the compiler is broken, or we cross compile. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2672 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2673 | 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] | 2674 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2675 | # If not cross compiling, check that we can run a simple program. |
| 2676 | if test "$cross_compiling" != yes; then |
| 2677 | if { ac_try='./$ac_file' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2678 | { (case "(($ac_try" in |
| 2679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2680 | *) ac_try_echo=$ac_try;; |
| 2681 | esac |
| 2682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2683 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2684 | ac_status=$? |
| 2685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2686 | (exit $ac_status); }; }; then |
| 2687 | cross_compiling=no |
| 2688 | else |
| 2689 | if test "$cross_compiling" = maybe; then |
| 2690 | cross_compiling=yes |
| 2691 | else |
| 2692 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2693 | If you meant to cross compile, use \`--host'. |
| 2694 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2695 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2696 | If you meant to cross compile, use \`--host'. |
| 2697 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2698 | { (exit 1); exit 1; }; } |
| 2699 | fi |
| 2700 | fi |
| 2701 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2702 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2703 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2704 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2705 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2706 | ac_clean_files=$ac_clean_files_save |
| 2707 | # Check that the compiler produces executables we can run. If not, either |
| 2708 | # the compiler is broken, or we cross compile. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2709 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2710 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2711 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2712 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2713 | |
| 2714 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2715 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2716 | if { (ac_try="$ac_link" |
| 2717 | case "(($ac_try" in |
| 2718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2719 | *) ac_try_echo=$ac_try;; |
| 2720 | esac |
| 2721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2722 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2723 | ac_status=$? |
| 2724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2725 | (exit $ac_status); }; then |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2726 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2727 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2728 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2729 | # `rm'. |
| 2730 | for ac_file in conftest.exe conftest conftest.*; do |
| 2731 | test -f "$ac_file" || continue |
| 2732 | case $ac_file in |
| 2733 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2734 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2735 | break;; |
| 2736 | * ) break;; |
| 2737 | esac |
| 2738 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2739 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2740 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2741 | See \`config.log' for more details." >&5 |
| 2742 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2743 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2744 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2745 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2746 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2747 | rm -f conftest$ac_cv_exeext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2748 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2749 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2750 | |
| 2751 | rm -f conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2752 | EXEEXT=$ac_cv_exeext |
| 2753 | ac_exeext=$EXEEXT |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2754 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2755 | 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] | 2756 | if test "${ac_cv_objext+set}" = set; then |
| 2757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2758 | else |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2759 | cat >conftest.$ac_ext <<_ACEOF |
| 2760 | /* confdefs.h. */ |
| 2761 | _ACEOF |
| 2762 | cat confdefs.h >>conftest.$ac_ext |
| 2763 | cat >>conftest.$ac_ext <<_ACEOF |
| 2764 | /* end confdefs.h. */ |
| 2765 | |
| 2766 | int |
| 2767 | main () |
| 2768 | { |
| 2769 | |
| 2770 | ; |
| 2771 | return 0; |
| 2772 | } |
| 2773 | _ACEOF |
| 2774 | rm -f conftest.o conftest.obj |
| 2775 | if { (ac_try="$ac_compile" |
| 2776 | case "(($ac_try" in |
| 2777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2778 | *) ac_try_echo=$ac_try;; |
| 2779 | esac |
| 2780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2781 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2782 | ac_status=$? |
| 2783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2784 | (exit $ac_status); }; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2785 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2786 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2787 | case $ac_file in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2788 | *.$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] | 2789 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2790 | break;; |
| 2791 | esac |
| 2792 | done |
| 2793 | else |
| 2794 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2796 | |
| 2797 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2798 | See \`config.log' for more details." >&5 |
| 2799 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2800 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2801 | { (exit 1); exit 1; }; } |
| 2802 | fi |
| 2803 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2804 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2805 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2806 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2807 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2808 | OBJEXT=$ac_cv_objext |
| 2809 | ac_objext=$OBJEXT |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2810 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2811 | 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] | 2812 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2814 | else |
| 2815 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2816 | /* confdefs.h. */ |
| 2817 | _ACEOF |
| 2818 | cat confdefs.h >>conftest.$ac_ext |
| 2819 | cat >>conftest.$ac_ext <<_ACEOF |
| 2820 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2821 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2822 | int |
| 2823 | main () |
| 2824 | { |
| 2825 | #ifndef __GNUC__ |
| 2826 | choke me |
| 2827 | #endif |
| 2828 | |
| 2829 | ; |
| 2830 | return 0; |
| 2831 | } |
| 2832 | _ACEOF |
| 2833 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2834 | if { (ac_try="$ac_compile" |
| 2835 | case "(($ac_try" in |
| 2836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2837 | *) ac_try_echo=$ac_try;; |
| 2838 | esac |
| 2839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2840 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2841 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2843 | rm -f conftest.er1 |
| 2844 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2846 | (exit $ac_status); } && { |
| 2847 | test -z "$ac_c_werror_flag" || |
| 2848 | test ! -s conftest.err |
| 2849 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2850 | ac_compiler_gnu=yes |
| 2851 | else |
| 2852 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2854 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2855 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2856 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2857 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 2858 | 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] | 2859 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2860 | |
| 2861 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2862 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2863 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2864 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2865 | ac_test_CFLAGS=${CFLAGS+set} |
| 2866 | ac_save_CFLAGS=$CFLAGS |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2867 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2868 | 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] | 2869 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2871 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2872 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2873 | ac_c_werror_flag=yes |
| 2874 | ac_cv_prog_cc_g=no |
| 2875 | CFLAGS="-g" |
| 2876 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2877 | /* confdefs.h. */ |
| 2878 | _ACEOF |
| 2879 | cat confdefs.h >>conftest.$ac_ext |
| 2880 | cat >>conftest.$ac_ext <<_ACEOF |
| 2881 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2882 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2883 | int |
| 2884 | main () |
| 2885 | { |
| 2886 | |
| 2887 | ; |
| 2888 | return 0; |
| 2889 | } |
| 2890 | _ACEOF |
| 2891 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2892 | if { (ac_try="$ac_compile" |
| 2893 | case "(($ac_try" in |
| 2894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2895 | *) ac_try_echo=$ac_try;; |
| 2896 | esac |
| 2897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2898 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2899 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2901 | rm -f conftest.er1 |
| 2902 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2904 | (exit $ac_status); } && { |
| 2905 | test -z "$ac_c_werror_flag" || |
| 2906 | test ! -s conftest.err |
| 2907 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2908 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2909 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2910 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2912 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2913 | CFLAGS="" |
| 2914 | cat >conftest.$ac_ext <<_ACEOF |
| 2915 | /* confdefs.h. */ |
| 2916 | _ACEOF |
| 2917 | cat confdefs.h >>conftest.$ac_ext |
| 2918 | cat >>conftest.$ac_ext <<_ACEOF |
| 2919 | /* end confdefs.h. */ |
| 2920 | |
| 2921 | int |
| 2922 | main () |
| 2923 | { |
| 2924 | |
| 2925 | ; |
| 2926 | return 0; |
| 2927 | } |
| 2928 | _ACEOF |
| 2929 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2930 | if { (ac_try="$ac_compile" |
| 2931 | case "(($ac_try" in |
| 2932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2933 | *) ac_try_echo=$ac_try;; |
| 2934 | esac |
| 2935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2936 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2937 | ac_status=$? |
| 2938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2939 | rm -f conftest.er1 |
| 2940 | cat conftest.err >&5 |
| 2941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2942 | (exit $ac_status); } && { |
| 2943 | test -z "$ac_c_werror_flag" || |
| 2944 | test ! -s conftest.err |
| 2945 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2946 | : |
| 2947 | else |
| 2948 | echo "$as_me: failed program was:" >&5 |
| 2949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2950 | |
| 2951 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2952 | CFLAGS="-g" |
| 2953 | cat >conftest.$ac_ext <<_ACEOF |
| 2954 | /* confdefs.h. */ |
| 2955 | _ACEOF |
| 2956 | cat confdefs.h >>conftest.$ac_ext |
| 2957 | cat >>conftest.$ac_ext <<_ACEOF |
| 2958 | /* end confdefs.h. */ |
| 2959 | |
| 2960 | int |
| 2961 | main () |
| 2962 | { |
| 2963 | |
| 2964 | ; |
| 2965 | return 0; |
| 2966 | } |
| 2967 | _ACEOF |
| 2968 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 2969 | if { (ac_try="$ac_compile" |
| 2970 | case "(($ac_try" in |
| 2971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2972 | *) ac_try_echo=$ac_try;; |
| 2973 | esac |
| 2974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2975 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2976 | ac_status=$? |
| 2977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2978 | rm -f conftest.er1 |
| 2979 | cat conftest.err >&5 |
| 2980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 2981 | (exit $ac_status); } && { |
| 2982 | test -z "$ac_c_werror_flag" || |
| 2983 | test ! -s conftest.err |
| 2984 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2985 | ac_cv_prog_cc_g=yes |
| 2986 | else |
| 2987 | echo "$as_me: failed program was:" >&5 |
| 2988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2989 | |
| 2990 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2991 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2992 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 2993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2994 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2995 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 2996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 2997 | fi |
| 2998 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 2999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3000 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3001 | fi |
| 3002 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3003 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3004 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3005 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3006 | elif test $ac_cv_prog_cc_g = yes; then |
| 3007 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3008 | CFLAGS="-g -O2" |
| 3009 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3010 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3011 | fi |
| 3012 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3013 | if test "$GCC" = yes; then |
| 3014 | CFLAGS="-O2" |
| 3015 | else |
| 3016 | CFLAGS= |
| 3017 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3018 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3019 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3020 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3021 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3023 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3024 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3025 | ac_save_CC=$CC |
| 3026 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3027 | /* confdefs.h. */ |
| 3028 | _ACEOF |
| 3029 | cat confdefs.h >>conftest.$ac_ext |
| 3030 | cat >>conftest.$ac_ext <<_ACEOF |
| 3031 | /* end confdefs.h. */ |
| 3032 | #include <stdarg.h> |
| 3033 | #include <stdio.h> |
| 3034 | #include <sys/types.h> |
| 3035 | #include <sys/stat.h> |
| 3036 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3037 | struct buf { int x; }; |
| 3038 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3039 | static char *e (p, i) |
| 3040 | char **p; |
| 3041 | int i; |
| 3042 | { |
| 3043 | return p[i]; |
| 3044 | } |
| 3045 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3046 | { |
| 3047 | char *s; |
| 3048 | va_list v; |
| 3049 | va_start (v,p); |
| 3050 | s = g (p, va_arg (v,int)); |
| 3051 | va_end (v); |
| 3052 | return s; |
| 3053 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3054 | |
| 3055 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3056 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3057 | These don't provoke an error unfortunately, instead are silently treated |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3058 | 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] | 3059 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3060 | array size at least. It's necessary to write '\x00'==0 to get something |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3061 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3062 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3063 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 3064 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3065 | inside strings and character constants. */ |
| 3066 | #define FOO(x) 'x' |
| 3067 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3068 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3069 | int test (int i, double x); |
| 3070 | struct s1 {int (*f) (int a);}; |
| 3071 | struct s2 {int (*f) (double a);}; |
| 3072 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3073 | int argc; |
| 3074 | char **argv; |
| 3075 | int |
| 3076 | main () |
| 3077 | { |
| 3078 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3079 | ; |
| 3080 | return 0; |
| 3081 | } |
| 3082 | _ACEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3083 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3084 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3085 | do |
| 3086 | CC="$ac_save_CC $ac_arg" |
| 3087 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3088 | if { (ac_try="$ac_compile" |
| 3089 | case "(($ac_try" in |
| 3090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3091 | *) ac_try_echo=$ac_try;; |
| 3092 | esac |
| 3093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3094 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3095 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3097 | rm -f conftest.er1 |
| 3098 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3100 | (exit $ac_status); } && { |
| 3101 | test -z "$ac_c_werror_flag" || |
| 3102 | test ! -s conftest.err |
| 3103 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3104 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3105 | else |
| 3106 | echo "$as_me: failed program was:" >&5 |
| 3107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3108 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3109 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3110 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3111 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 3112 | rm -f core conftest.err conftest.$ac_objext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3113 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3114 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3115 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3116 | CC=$ac_save_CC |
| 3117 | |
| 3118 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3119 | # AC_CACHE_VAL |
| 3120 | case "x$ac_cv_prog_cc_c89" in |
| 3121 | x) |
| 3122 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3123 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3124 | xno) |
| 3125 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3126 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3127 | *) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3128 | CC="$CC $ac_cv_prog_cc_c89" |
| 3129 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3130 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3131 | esac |
| 3132 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3133 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3134 | ac_ext=c |
| 3135 | ac_cpp='$CPP $CPPFLAGS' |
| 3136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3139 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3140 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3141 | |
| 3142 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3143 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3144 | echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3145 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3146 | # Check whether --with-cxx_main was given. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3147 | if test "${with_cxx_main+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3148 | withval=$with_cxx_main; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3149 | |
| 3150 | case $withval in |
| 3151 | no) with_cxx_main=no |
| 3152 | MAINCC='$(CC)';; |
| 3153 | yes) with_cxx_main=yes |
| 3154 | MAINCC='$(CXX)';; |
| 3155 | *) with_cxx_main=yes |
| 3156 | MAINCC=$withval |
| 3157 | if test -z "$CXX" |
| 3158 | then |
| 3159 | CXX=$withval |
| 3160 | fi;; |
| 3161 | esac |
| 3162 | else |
| 3163 | |
| 3164 | with_cxx_main=no |
| 3165 | MAINCC='$(CC)' |
| 3166 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3167 | fi |
| 3168 | |
| 3169 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3170 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3171 | |
| 3172 | preset_cxx="$CXX" |
| 3173 | if test -z "$CXX" |
| 3174 | then |
| 3175 | case "$CC" in |
| 3176 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3177 | set dummy g++; ac_word=$2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3178 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3179 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3180 | if test "${ac_cv_path_CXX+set}" = set; then |
| 3181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3182 | else |
| 3183 | case $CXX in |
| 3184 | [\\/]* | ?:[\\/]*) |
| 3185 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3186 | ;; |
| 3187 | *) |
| 3188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3189 | for as_dir in notfound |
| 3190 | do |
| 3191 | IFS=$as_save_IFS |
| 3192 | test -z "$as_dir" && as_dir=. |
| 3193 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3194 | 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] | 3195 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 3196 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3197 | break 2 |
| 3198 | fi |
| 3199 | done |
| 3200 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3201 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3202 | |
| 3203 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3204 | ;; |
| 3205 | esac |
| 3206 | fi |
| 3207 | CXX=$ac_cv_path_CXX |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3208 | if test -n "$CXX"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3209 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3210 | echo "${ECHO_T}$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3211 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3212 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3213 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3214 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3215 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3216 | ;; |
| 3217 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3218 | set dummy c++; ac_word=$2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3219 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3220 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3221 | if test "${ac_cv_path_CXX+set}" = set; then |
| 3222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3223 | else |
| 3224 | case $CXX in |
| 3225 | [\\/]* | ?:[\\/]*) |
| 3226 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3227 | ;; |
| 3228 | *) |
| 3229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3230 | for as_dir in notfound |
| 3231 | do |
| 3232 | IFS=$as_save_IFS |
| 3233 | test -z "$as_dir" && as_dir=. |
| 3234 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3235 | 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] | 3236 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
| 3237 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3238 | break 2 |
| 3239 | fi |
| 3240 | done |
| 3241 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3242 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3243 | |
| 3244 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3245 | ;; |
| 3246 | esac |
| 3247 | fi |
| 3248 | CXX=$ac_cv_path_CXX |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3249 | if test -n "$CXX"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3250 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3251 | echo "${ECHO_T}$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3252 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3253 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3254 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3255 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3256 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3257 | ;; |
| 3258 | esac |
| 3259 | if test "$CXX" = "notfound" |
| 3260 | then |
| 3261 | CXX="" |
| 3262 | fi |
| 3263 | fi |
| 3264 | if test -z "$CXX" |
| 3265 | then |
| 3266 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3267 | do |
| 3268 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3269 | set dummy $ac_prog; ac_word=$2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3270 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3271 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3272 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3274 | else |
| 3275 | if test -n "$CXX"; then |
| 3276 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3277 | else |
| 3278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3279 | for as_dir in $PATH |
| 3280 | do |
| 3281 | IFS=$as_save_IFS |
| 3282 | test -z "$as_dir" && as_dir=. |
| 3283 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3284 | 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] | 3285 | ac_cv_prog_CXX="$ac_prog" |
| 3286 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3287 | break 2 |
| 3288 | fi |
| 3289 | done |
| 3290 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3291 | IFS=$as_save_IFS |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3292 | |
| 3293 | fi |
| 3294 | fi |
| 3295 | CXX=$ac_cv_prog_CXX |
| 3296 | if test -n "$CXX"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3297 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3298 | echo "${ECHO_T}$CXX" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3299 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3300 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3301 | echo "${ECHO_T}no" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3302 | fi |
| 3303 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3304 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3305 | test -n "$CXX" && break |
| 3306 | done |
| 3307 | test -n "$CXX" || CXX="notfound" |
| 3308 | |
| 3309 | if test "$CXX" = "notfound" |
| 3310 | then |
| 3311 | CXX="" |
| 3312 | fi |
| 3313 | fi |
| 3314 | if test "$preset_cxx" != "$CXX" |
| 3315 | then |
| 3316 | { echo "$as_me:$LINENO: WARNING: |
| 3317 | |
| 3318 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3319 | If this is not intended, then set CXX on the configure command line. |
| 3320 | " >&5 |
| 3321 | echo "$as_me: WARNING: |
| 3322 | |
| 3323 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3324 | If this is not intended, then set CXX on the configure command line. |
| 3325 | " >&2;} |
| 3326 | fi |
| 3327 | |
| 3328 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3329 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3330 | |
| 3331 | ac_ext=c |
| 3332 | ac_cpp='$CPP $CPPFLAGS' |
| 3333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3336 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3337 | 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] | 3338 | # On Suns, sometimes $CPP names a directory. |
| 3339 | if test -n "$CPP" && test -d "$CPP"; then |
| 3340 | CPP= |
| 3341 | fi |
| 3342 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3343 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3345 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3346 | # Double quotes because CPP needs to be expanded |
| 3347 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3348 | do |
| 3349 | ac_preproc_ok=false |
| 3350 | for ac_c_preproc_warn_flag in '' yes |
| 3351 | do |
| 3352 | # Use a header file that comes with gcc, so configuring glibc |
| 3353 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3354 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3355 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3356 | # 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] | 3357 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3358 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3359 | /* confdefs.h. */ |
| 3360 | _ACEOF |
| 3361 | cat confdefs.h >>conftest.$ac_ext |
| 3362 | cat >>conftest.$ac_ext <<_ACEOF |
| 3363 | /* end confdefs.h. */ |
| 3364 | #ifdef __STDC__ |
| 3365 | # include <limits.h> |
| 3366 | #else |
| 3367 | # include <assert.h> |
| 3368 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3369 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3370 | _ACEOF |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3371 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3372 | case "(($ac_try" in |
| 3373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3374 | *) ac_try_echo=$ac_try;; |
| 3375 | esac |
| 3376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3377 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3378 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3379 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3380 | rm -f conftest.er1 |
| 3381 | cat conftest.err >&5 |
| 3382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3383 | (exit $ac_status); } >/dev/null && { |
| 3384 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3385 | test ! -s conftest.err |
| 3386 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3387 | : |
| 3388 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3389 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3392 | # Broken: fails on valid input. |
| 3393 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3394 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3395 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3396 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3397 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3398 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3399 | # can be detected and how. |
| 3400 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3401 | /* confdefs.h. */ |
| 3402 | _ACEOF |
| 3403 | cat confdefs.h >>conftest.$ac_ext |
| 3404 | cat >>conftest.$ac_ext <<_ACEOF |
| 3405 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3406 | #include <ac_nonexistent.h> |
| 3407 | _ACEOF |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3408 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3409 | case "(($ac_try" in |
| 3410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3411 | *) ac_try_echo=$ac_try;; |
| 3412 | esac |
| 3413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3414 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3415 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3416 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3417 | rm -f conftest.er1 |
| 3418 | cat conftest.err >&5 |
| 3419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3420 | (exit $ac_status); } >/dev/null && { |
| 3421 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3422 | test ! -s conftest.err |
| 3423 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3424 | # Broken: success on invalid input. |
| 3425 | continue |
| 3426 | else |
| 3427 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3430 | # Passes both tests. |
| 3431 | ac_preproc_ok=: |
| 3432 | break |
| 3433 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3434 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3435 | rm -f conftest.err conftest.$ac_ext |
| 3436 | |
| 3437 | done |
| 3438 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3439 | rm -f conftest.err conftest.$ac_ext |
| 3440 | if $ac_preproc_ok; then |
| 3441 | break |
| 3442 | fi |
| 3443 | |
| 3444 | done |
| 3445 | ac_cv_prog_CPP=$CPP |
| 3446 | |
| 3447 | fi |
| 3448 | CPP=$ac_cv_prog_CPP |
| 3449 | else |
| 3450 | ac_cv_prog_CPP=$CPP |
| 3451 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3452 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3453 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3454 | ac_preproc_ok=false |
| 3455 | for ac_c_preproc_warn_flag in '' yes |
| 3456 | do |
| 3457 | # Use a header file that comes with gcc, so configuring glibc |
| 3458 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3459 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3460 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3461 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3462 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3463 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3464 | /* confdefs.h. */ |
| 3465 | _ACEOF |
| 3466 | cat confdefs.h >>conftest.$ac_ext |
| 3467 | cat >>conftest.$ac_ext <<_ACEOF |
| 3468 | /* end confdefs.h. */ |
| 3469 | #ifdef __STDC__ |
| 3470 | # include <limits.h> |
| 3471 | #else |
| 3472 | # include <assert.h> |
| 3473 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3474 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3475 | _ACEOF |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3476 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3477 | case "(($ac_try" in |
| 3478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3479 | *) ac_try_echo=$ac_try;; |
| 3480 | esac |
| 3481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3482 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3483 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3484 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3485 | rm -f conftest.er1 |
| 3486 | cat conftest.err >&5 |
| 3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3488 | (exit $ac_status); } >/dev/null && { |
| 3489 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3490 | test ! -s conftest.err |
| 3491 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3492 | : |
| 3493 | else |
| 3494 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3497 | # Broken: fails on valid input. |
| 3498 | continue |
| 3499 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3501 | rm -f conftest.err conftest.$ac_ext |
| 3502 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3503 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3504 | # can be detected and how. |
| 3505 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3506 | /* confdefs.h. */ |
| 3507 | _ACEOF |
| 3508 | cat confdefs.h >>conftest.$ac_ext |
| 3509 | cat >>conftest.$ac_ext <<_ACEOF |
| 3510 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3511 | #include <ac_nonexistent.h> |
| 3512 | _ACEOF |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3513 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3514 | case "(($ac_try" in |
| 3515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3516 | *) ac_try_echo=$ac_try;; |
| 3517 | esac |
| 3518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3519 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3520 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3521 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3522 | rm -f conftest.er1 |
| 3523 | cat conftest.err >&5 |
| 3524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3525 | (exit $ac_status); } >/dev/null && { |
| 3526 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3527 | test ! -s conftest.err |
| 3528 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3529 | # Broken: success on invalid input. |
| 3530 | continue |
| 3531 | else |
| 3532 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3534 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3535 | # Passes both tests. |
| 3536 | ac_preproc_ok=: |
| 3537 | break |
| 3538 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | rm -f conftest.err conftest.$ac_ext |
| 3541 | |
| 3542 | done |
| 3543 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3544 | rm -f conftest.err conftest.$ac_ext |
| 3545 | if $ac_preproc_ok; then |
| 3546 | : |
| 3547 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3548 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3549 | See \`config.log' for more details." >&5 |
| 3550 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3551 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3552 | { (exit 1); exit 1; }; } |
| 3553 | fi |
| 3554 | |
| 3555 | ac_ext=c |
| 3556 | ac_cpp='$CPP $CPPFLAGS' |
| 3557 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3558 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3559 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3560 | |
| 3561 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3562 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3563 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3564 | if test "${ac_cv_path_GREP+set}" = set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3566 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3567 | # Extract the first word of "grep ggrep" to use in msg output |
| 3568 | if test -z "$GREP"; then |
| 3569 | set dummy grep ggrep; ac_prog_name=$2 |
| 3570 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3572 | else |
| 3573 | ac_path_GREP_found=false |
| 3574 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3576 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3577 | do |
| 3578 | IFS=$as_save_IFS |
| 3579 | test -z "$as_dir" && as_dir=. |
| 3580 | for ac_prog in grep ggrep; do |
| 3581 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3582 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3583 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3584 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3585 | # Check for GNU $ac_path_GREP |
| 3586 | case `"$ac_path_GREP" --version 2>&1` in |
| 3587 | *GNU*) |
| 3588 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3589 | *) |
| 3590 | ac_count=0 |
| 3591 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3592 | while : |
| 3593 | do |
| 3594 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3595 | mv "conftest.tmp" "conftest.in" |
| 3596 | cp "conftest.in" "conftest.nl" |
| 3597 | echo 'GREP' >> "conftest.nl" |
| 3598 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3599 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3600 | ac_count=`expr $ac_count + 1` |
| 3601 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3602 | # Best one so far, save it but keep looking for a better one |
| 3603 | ac_cv_path_GREP="$ac_path_GREP" |
| 3604 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3605 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3606 | # 10*(2^10) chars as input seems more than enough |
| 3607 | test $ac_count -gt 10 && break |
| 3608 | done |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3609 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3610 | esac |
| 3611 | |
| 3612 | |
| 3613 | $ac_path_GREP_found && break 3 |
| 3614 | done |
| 3615 | done |
| 3616 | |
| 3617 | done |
| 3618 | IFS=$as_save_IFS |
| 3619 | |
| 3620 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3621 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3622 | |
| 3623 | GREP="$ac_cv_path_GREP" |
| 3624 | if test -z "$GREP"; then |
| 3625 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3626 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3627 | { (exit 1); exit 1; }; } |
| 3628 | fi |
| 3629 | |
| 3630 | else |
| 3631 | ac_cv_path_GREP=$GREP |
| 3632 | fi |
| 3633 | |
| 3634 | |
| 3635 | fi |
| 3636 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3637 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3638 | GREP="$ac_cv_path_GREP" |
| 3639 | |
| 3640 | |
| 3641 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3642 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3643 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3645 | else |
| 3646 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3647 | then ac_cv_path_EGREP="$GREP -E" |
| 3648 | else |
| 3649 | # Extract the first word of "egrep" to use in msg output |
| 3650 | if test -z "$EGREP"; then |
| 3651 | set dummy egrep; ac_prog_name=$2 |
| 3652 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3654 | else |
| 3655 | ac_path_EGREP_found=false |
| 3656 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3658 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3659 | do |
| 3660 | IFS=$as_save_IFS |
| 3661 | test -z "$as_dir" && as_dir=. |
| 3662 | for ac_prog in egrep; do |
| 3663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3664 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 3665 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3666 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3667 | # Check for GNU $ac_path_EGREP |
| 3668 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3669 | *GNU*) |
| 3670 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3671 | *) |
| 3672 | ac_count=0 |
| 3673 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3674 | while : |
| 3675 | do |
| 3676 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3677 | mv "conftest.tmp" "conftest.in" |
| 3678 | cp "conftest.in" "conftest.nl" |
| 3679 | echo 'EGREP' >> "conftest.nl" |
| 3680 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3681 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3682 | ac_count=`expr $ac_count + 1` |
| 3683 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3684 | # Best one so far, save it but keep looking for a better one |
| 3685 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3686 | ac_path_EGREP_max=$ac_count |
| 3687 | fi |
| 3688 | # 10*(2^10) chars as input seems more than enough |
| 3689 | test $ac_count -gt 10 && break |
| 3690 | done |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3691 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3692 | esac |
| 3693 | |
| 3694 | |
| 3695 | $ac_path_EGREP_found && break 3 |
| 3696 | done |
| 3697 | done |
| 3698 | |
| 3699 | done |
| 3700 | IFS=$as_save_IFS |
| 3701 | |
| 3702 | |
| 3703 | fi |
| 3704 | |
| 3705 | EGREP="$ac_cv_path_EGREP" |
| 3706 | if test -z "$EGREP"; then |
| 3707 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3708 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3709 | { (exit 1); exit 1; }; } |
| 3710 | fi |
| 3711 | |
| 3712 | else |
| 3713 | ac_cv_path_EGREP=$EGREP |
| 3714 | fi |
| 3715 | |
| 3716 | |
| 3717 | fi |
| 3718 | fi |
| 3719 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3720 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3721 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3722 | |
| 3723 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3724 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3725 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3726 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3727 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3728 | /* confdefs.h. */ |
| 3729 | _ACEOF |
| 3730 | cat confdefs.h >>conftest.$ac_ext |
| 3731 | cat >>conftest.$ac_ext <<_ACEOF |
| 3732 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3733 | #ifdef _AIX |
| 3734 | yes |
| 3735 | #endif |
| 3736 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3737 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3738 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3739 | $EGREP "yes" >/dev/null 2>&1; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3740 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3741 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3742 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3743 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3744 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3745 | |
| 3746 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3747 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3748 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3749 | fi |
| 3750 | rm -f conftest* |
| 3751 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3752 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3753 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3754 | # Check for unsupported systems |
| 3755 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 3756 | Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3757 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3758 | echo See README for details. |
| 3759 | exit 1;; |
| 3760 | esac |
| 3761 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3762 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3763 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3764 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3765 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3766 | # Check whether --with-suffix was given. |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3767 | if test "${with_suffix+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3768 | withval=$with_suffix; |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3769 | case $withval in |
| 3770 | no) EXEEXT=;; |
| 3771 | yes) EXEEXT=.exe;; |
| 3772 | *) EXEEXT=$withval;; |
| 3773 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3774 | fi |
| 3775 | |
| 3776 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3777 | echo "${ECHO_T}$EXEEXT" >&6; } |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3778 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3779 | # Test whether we're running on a non-case-sensitive system, in which |
| 3780 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3781 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3782 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3783 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3784 | if test ! -d CaseSensitiveTestDir; then |
| 3785 | mkdir CaseSensitiveTestDir |
| 3786 | fi |
| 3787 | |
| 3788 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3789 | then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3790 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3791 | echo "${ECHO_T}yes" >&6; } |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3792 | BUILDEXEEXT=.exe |
| 3793 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3794 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3795 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3796 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3797 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3798 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3799 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3800 | case $MACHDEP in |
| 3801 | bsdos*) |
| 3802 | case $CC in |
| 3803 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3804 | esac;; |
| 3805 | esac |
| 3806 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3807 | case $ac_sys_system in |
| 3808 | hp*|HP*) |
| 3809 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3810 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3811 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3812 | Monterey*) |
| 3813 | case $CC in |
| 3814 | cc) CC="$CC -Wl,-Bexport";; |
| 3815 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3816 | SunOS*) |
| 3817 | # 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] | 3818 | |
| 3819 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3820 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3821 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3822 | |
| 3823 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3824 | esac |
| 3825 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3826 | |
| 3827 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3828 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3829 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3830 | if test -z "$LIBRARY" |
| 3831 | then |
| 3832 | LIBRARY='libpython$(VERSION).a' |
| 3833 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3834 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3835 | echo "${ECHO_T}$LIBRARY" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3836 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3837 | # 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] | 3838 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3839 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3840 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3841 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3842 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3843 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3844 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3845 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3846 | # RUNSHARED is used to run shared python without installed libraries |
| 3847 | # |
| 3848 | # INSTSONAME is the name of the shared library that will be use to install |
| 3849 | # on the system - some systems like version suffix, others don't |
| 3850 | |
| 3851 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3852 | |
| 3853 | |
| 3854 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3855 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3856 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3857 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3858 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3859 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3860 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3861 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3862 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3863 | # 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] | 3864 | # If CXX is set, and if it is needed to link a main function that was |
| 3865 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3866 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3867 | # 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] | 3868 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3869 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3870 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3871 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3872 | if test -z "$LINKCC" |
| 3873 | then |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 3874 | LINKCC='$(PURIFY) $(MAINCC)' |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3875 | case $ac_sys_system in |
| 3876 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3877 | exp_extra="\"\"" |
| 3878 | if test $ac_sys_release -ge 5 -o \ |
| 3879 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3880 | exp_extra="." |
| 3881 | fi |
| 3882 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3883 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3884 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3885 | esac |
| 3886 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3887 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3888 | echo "${ECHO_T}$LINKCC" >&6; } |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3889 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3890 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3891 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
| 3892 | # Check whether --enable-shared was given. |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3893 | if test "${enable_shared+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3894 | enableval=$enable_shared; |
| 3895 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3896 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3897 | |
| 3898 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3899 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3900 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3901 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3902 | enable_shared="yes";; |
| 3903 | *) |
| 3904 | enable_shared="no";; |
| 3905 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3906 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3907 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3908 | echo "${ECHO_T}$enable_shared" >&6; } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3909 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3910 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3911 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
| 3912 | # Check whether --enable-profiling was given. |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3913 | if test "${enable_profiling+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3914 | enableval=$enable_profiling; ac_save_cc="$CC" |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3915 | CC="$CC -pg" |
| 3916 | if test "$cross_compiling" = yes; then |
| 3917 | ac_enable_profiling="no" |
| 3918 | else |
| 3919 | cat >conftest.$ac_ext <<_ACEOF |
| 3920 | /* confdefs.h. */ |
| 3921 | _ACEOF |
| 3922 | cat confdefs.h >>conftest.$ac_ext |
| 3923 | cat >>conftest.$ac_ext <<_ACEOF |
| 3924 | /* end confdefs.h. */ |
| 3925 | int main() { return 0; } |
| 3926 | _ACEOF |
| 3927 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3928 | if { (ac_try="$ac_link" |
| 3929 | case "(($ac_try" in |
| 3930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3931 | *) ac_try_echo=$ac_try;; |
| 3932 | esac |
| 3933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3934 | (eval "$ac_link") 2>&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3935 | ac_status=$? |
| 3936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3937 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 3938 | { (case "(($ac_try" in |
| 3939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3940 | *) ac_try_echo=$ac_try;; |
| 3941 | esac |
| 3942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3943 | (eval "$ac_try") 2>&5 |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3944 | ac_status=$? |
| 3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3946 | (exit $ac_status); }; }; then |
| 3947 | ac_enable_profiling="yes" |
| 3948 | else |
| 3949 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3950 | echo "$as_me: failed program was:" >&5 |
| 3951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3952 | |
| 3953 | ( exit $ac_status ) |
| 3954 | ac_enable_profiling="no" |
| 3955 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3956 | 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] | 3957 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3958 | |
| 3959 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3960 | CC="$ac_save_cc" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3961 | fi |
| 3962 | |
| 3963 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 3964 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3965 | |
| 3966 | case "$ac_enable_profiling" in |
| 3967 | "yes") |
| 3968 | BASECFLAGS="-pg $BASECFLAGS" |
| 3969 | LDFLAGS="-pg $LDFLAGS" |
| 3970 | ;; |
| 3971 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3972 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 3973 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3974 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3975 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3976 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3977 | # library that we build, but we do not want to link against it (we |
| 3978 | # will find it with a -framework option). For this reason there is an |
| 3979 | # extra variable BLDLIBRARY against which Python and the extension |
| 3980 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3981 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3982 | if test "$enable_framework" |
| 3983 | then |
| 3984 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3985 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3986 | BLDLIBRARY='' |
| 3987 | else |
| 3988 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3989 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3990 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3991 | # Other platforms follow |
| 3992 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3993 | |
| 3994 | cat >>confdefs.h <<\_ACEOF |
| 3995 | #define Py_ENABLE_SHARED 1 |
| 3996 | _ACEOF |
| 3997 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3998 | case $ac_sys_system in |
| 3999 | BeOS*) |
| 4000 | LDLIBRARY='libpython$(VERSION).so' |
| 4001 | ;; |
| 4002 | CYGWIN*) |
| 4003 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4004 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4005 | ;; |
| 4006 | SunOS*) |
| 4007 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 4008 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4009 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 4010 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4011 | ;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 4012 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4013 | LDLIBRARY='libpython$(VERSION).so' |
| 4014 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4015 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 4016 | case $ac_sys_system in |
| 4017 | FreeBSD*) |
| 4018 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4019 | ;; |
| 4020 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4021 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4022 | ;; |
| 4023 | hp*|HP*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4024 | case `uname -m` in |
| 4025 | ia64) |
| 4026 | LDLIBRARY='libpython$(VERSION).so' |
| 4027 | ;; |
| 4028 | *) |
| 4029 | LDLIBRARY='libpython$(VERSION).sl' |
| 4030 | ;; |
| 4031 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4032 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4033 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4034 | ;; |
| 4035 | OSF*) |
| 4036 | LDLIBRARY='libpython$(VERSION).so' |
Neal Norwitz | 671b9e3 | 2006-01-09 07:07:12 +0000 | [diff] [blame] | 4037 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 4038 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4039 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 4040 | atheos*) |
| 4041 | LDLIBRARY='libpython$(VERSION).so' |
| 4042 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4043 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4044 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4045 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 4046 | else # shared is disabled |
| 4047 | case $ac_sys_system in |
| 4048 | CYGWIN*) |
| 4049 | BLDLIBRARY='$(LIBRARY)' |
| 4050 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4051 | ;; |
| 4052 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 4053 | fi |
| 4054 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4055 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4056 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 4057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4058 | if test -n "$ac_tool_prefix"; then |
| 4059 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4060 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4061 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4062 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4063 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4065 | else |
| 4066 | if test -n "$RANLIB"; then |
| 4067 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4068 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4070 | for as_dir in $PATH |
| 4071 | do |
| 4072 | IFS=$as_save_IFS |
| 4073 | test -z "$as_dir" && as_dir=. |
| 4074 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4075 | 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] | 4076 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4077 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4078 | break 2 |
| 4079 | fi |
| 4080 | done |
| 4081 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4082 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4083 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4084 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4085 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4086 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4087 | if test -n "$RANLIB"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4088 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4089 | echo "${ECHO_T}$RANLIB" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4090 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4091 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4092 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4093 | fi |
| 4094 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4095 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4096 | fi |
| 4097 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4098 | ac_ct_RANLIB=$RANLIB |
| 4099 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4100 | set dummy ranlib; ac_word=$2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4101 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4103 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4105 | else |
| 4106 | if test -n "$ac_ct_RANLIB"; then |
| 4107 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4108 | else |
| 4109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4110 | for as_dir in $PATH |
| 4111 | do |
| 4112 | IFS=$as_save_IFS |
| 4113 | test -z "$as_dir" && as_dir=. |
| 4114 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4115 | 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] | 4116 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4117 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4118 | break 2 |
| 4119 | fi |
| 4120 | done |
| 4121 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4122 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4124 | fi |
| 4125 | fi |
| 4126 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4127 | if test -n "$ac_ct_RANLIB"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4128 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4129 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4130 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4131 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4132 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4133 | fi |
| 4134 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4135 | if test "x$ac_ct_RANLIB" = x; then |
| 4136 | RANLIB=":" |
| 4137 | else |
| 4138 | case $cross_compiling:$ac_tool_warned in |
| 4139 | yes:) |
| 4140 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4141 | whose name does not start with the host triplet. If you think this |
| 4142 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4143 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4144 | whose name does not start with the host triplet. If you think this |
| 4145 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4146 | ac_tool_warned=yes ;; |
| 4147 | esac |
| 4148 | RANLIB=$ac_ct_RANLIB |
| 4149 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4150 | else |
| 4151 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4152 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4153 | |
| 4154 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4155 | for ac_prog in ar aal |
| 4156 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4157 | # 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] | 4158 | set dummy $ac_prog; ac_word=$2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4159 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4161 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4163 | else |
| 4164 | if test -n "$AR"; then |
| 4165 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4166 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4168 | for as_dir in $PATH |
| 4169 | do |
| 4170 | IFS=$as_save_IFS |
| 4171 | test -z "$as_dir" && as_dir=. |
| 4172 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4173 | 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] | 4174 | ac_cv_prog_AR="$ac_prog" |
| 4175 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4176 | break 2 |
| 4177 | fi |
| 4178 | done |
| 4179 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4180 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4181 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4182 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4183 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4184 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4185 | if test -n "$AR"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4186 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4187 | echo "${ECHO_T}$AR" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4188 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4189 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4190 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4191 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4192 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4193 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4194 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4195 | done |
| 4196 | test -n "$AR" || AR="ar" |
| 4197 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4198 | |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4199 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 4200 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4201 | set dummy svnversion; ac_word=$2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4202 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4203 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4204 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
| 4205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4206 | else |
| 4207 | if test -n "$SVNVERSION"; then |
| 4208 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4209 | else |
| 4210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4211 | for as_dir in $PATH |
| 4212 | do |
| 4213 | IFS=$as_save_IFS |
| 4214 | test -z "$as_dir" && as_dir=. |
| 4215 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4216 | 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] | 4217 | ac_cv_prog_SVNVERSION="found" |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4218 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4219 | break 2 |
| 4220 | fi |
| 4221 | done |
| 4222 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4223 | IFS=$as_save_IFS |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4224 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4225 | 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] | 4226 | fi |
| 4227 | fi |
| 4228 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4229 | if test -n "$SVNVERSION"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4230 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4231 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4232 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4233 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4234 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4235 | fi |
| 4236 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4237 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 4238 | if test $SVNVERSION = found |
| 4239 | then |
| 4240 | SVNVERSION="svnversion \$(srcdir)" |
| 4241 | else |
| 4242 | SVNVERSION="echo exported" |
| 4243 | fi |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 4244 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 4245 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 4246 | bsdos*|hp*|HP*) |
| 4247 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 4248 | if test -z "$INSTALL" |
| 4249 | then |
| 4250 | INSTALL="${srcdir}/install-sh -c" |
| 4251 | fi |
| 4252 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4253 | ac_aux_dir= |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4254 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4255 | if test -f "$ac_dir/install-sh"; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4256 | ac_aux_dir=$ac_dir |
| 4257 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4258 | break |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4259 | elif test -f "$ac_dir/install.sh"; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4260 | ac_aux_dir=$ac_dir |
| 4261 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4262 | break |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4263 | elif test -f "$ac_dir/shtool"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4264 | ac_aux_dir=$ac_dir |
| 4265 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4266 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4267 | fi |
| 4268 | done |
| 4269 | if test -z "$ac_aux_dir"; then |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4270 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4271 | 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] | 4272 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4273 | fi |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4274 | |
| 4275 | # These three variables are undocumented and unsupported, |
| 4276 | # and are intended to be withdrawn in a future Autoconf release. |
| 4277 | # They can cause serious problems if a builder's source tree is in a directory |
| 4278 | # whose full name contains unusual characters. |
| 4279 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4280 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4281 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4282 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4283 | |
| 4284 | # Find a good install program. We prefer a C program (faster), |
| 4285 | # so one script is as good as another. But avoid the broken or |
| 4286 | # incompatible versions: |
| 4287 | # SysV /etc/install, /usr/sbin/install |
| 4288 | # SunOS /usr/etc/install |
| 4289 | # IRIX /sbin/install |
| 4290 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4291 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4292 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4293 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4294 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4295 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4296 | # ./install, which can be erroneously created by make from ./install.sh. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4297 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4298 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4299 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4300 | if test "${ac_cv_path_install+set}" = set; then |
| 4301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4302 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4304 | for as_dir in $PATH |
| 4305 | do |
| 4306 | IFS=$as_save_IFS |
| 4307 | test -z "$as_dir" && as_dir=. |
| 4308 | # Account for people who put trailing slashes in PATH elements. |
| 4309 | case $as_dir/ in |
| 4310 | ./ | .// | /cC/* | \ |
| 4311 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4312 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4313 | /usr/ucb/* ) ;; |
| 4314 | *) |
| 4315 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4316 | # Don't use installbsd from OSF since it installs stuff as root |
| 4317 | # by default. |
| 4318 | for ac_prog in ginstall scoinst install; do |
| 4319 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4320 | 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] | 4321 | if test $ac_prog = install && |
| 4322 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4323 | # AIX install. It has an incompatible calling convention. |
| 4324 | : |
| 4325 | elif test $ac_prog = install && |
| 4326 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4327 | # program-specific install script used by HP pwplus--don't use. |
| 4328 | : |
| 4329 | else |
| 4330 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4331 | break 3 |
| 4332 | fi |
| 4333 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4334 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4335 | done |
| 4336 | ;; |
| 4337 | esac |
| 4338 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4339 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4340 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4341 | |
| 4342 | fi |
| 4343 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4344 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4345 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4346 | # As a last resort, use the slow shell script. Don't cache a |
| 4347 | # value for INSTALL within a source directory, because that will |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4348 | # break other packages using the cache if that directory is |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4349 | # removed, or if the value is a relative name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4350 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4351 | fi |
| 4352 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4353 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4354 | echo "${ECHO_T}$INSTALL" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4355 | |
| 4356 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4357 | # It thinks the first close brace ends the variable substitution. |
| 4358 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4360 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4361 | |
| 4362 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4363 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4364 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4365 | # Not every filesystem supports hard links |
| 4366 | |
| 4367 | if test -z "$LN" ; then |
| 4368 | case $ac_sys_system in |
| 4369 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 4370 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 4371 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4372 | *) LN=ln;; |
| 4373 | esac |
| 4374 | fi |
| 4375 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4376 | # Check for --with-pydebug |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4377 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4378 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4379 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4380 | # Check whether --with-pydebug was given. |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4381 | if test "${with_pydebug+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4382 | withval=$with_pydebug; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4383 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4384 | then |
| 4385 | |
| 4386 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4387 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4388 | _ACEOF |
| 4389 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4390 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4391 | echo "${ECHO_T}yes" >&6; }; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4392 | Py_DEBUG='true' |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4393 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4394 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4395 | fi |
| 4396 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4397 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4398 | echo "${ECHO_T}no" >&6; } |
| 4399 | fi |
| 4400 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4401 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4402 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4403 | # merged with this chunk of code? |
| 4404 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4405 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4406 | # ------------------------ |
| 4407 | # (The following bit of code is complicated enough - please keep things |
| 4408 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4409 | |
| 4410 | # There are two parallel sets of case statements below, one that checks to |
| 4411 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4412 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4413 | # user set OPT. |
| 4414 | |
| 4415 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4416 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4417 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4418 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4419 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4420 | case $GCC in |
| 4421 | yes) |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4422 | if test "$CC" != 'g++' ; then |
| 4423 | STRICT_PROTO="-Wstrict-prototypes" |
| 4424 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4425 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4426 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4427 | if test "$Py_DEBUG" = 'true' ; then |
| 4428 | # Optimization messes up debuggers, so turn it off for |
| 4429 | # debug builds. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4430 | OPT="-g -Wall $STRICT_PROTO" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4431 | else |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4432 | OPT="-g -O3 -Wall $STRICT_PROTO" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4433 | fi |
| 4434 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4435 | *) |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4436 | OPT="-O3 -Wall $STRICT_PROTO" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4437 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4438 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 4439 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4440 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4441 | ;; |
| 4442 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 4443 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4444 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4445 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4446 | OPT="-O" |
| 4447 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4448 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4449 | |
| 4450 | # The current (beta) Monterey compiler dies with optimizations |
| 4451 | # 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] | 4452 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4453 | Monterey*) |
| 4454 | OPT="" |
| 4455 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 4456 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4457 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4458 | fi |
| 4459 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4460 | |
| 4461 | # tweak BASECFLAGS based on compiler and platform |
| 4462 | case $GCC in |
| 4463 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4464 | # Python violates C99 rules, by casting between incompatible |
| 4465 | # pointer types. GCC may generate bad code as a result of that, |
| 4466 | # so use -fno-strict-aliasing if supported. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4467 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4468 | 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] | 4469 | ac_save_cc="$CC" |
| 4470 | CC="$CC -fno-strict-aliasing" |
| 4471 | if test "$cross_compiling" = yes; then |
| 4472 | ac_cv_no_strict_aliasing_ok=no |
| 4473 | else |
| 4474 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4475 | /* confdefs.h. */ |
| 4476 | _ACEOF |
| 4477 | cat confdefs.h >>conftest.$ac_ext |
| 4478 | cat >>conftest.$ac_ext <<_ACEOF |
| 4479 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4480 | int main() { return 0; } |
| 4481 | _ACEOF |
| 4482 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4483 | if { (ac_try="$ac_link" |
| 4484 | case "(($ac_try" in |
| 4485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4486 | *) ac_try_echo=$ac_try;; |
| 4487 | esac |
| 4488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4489 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4490 | ac_status=$? |
| 4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4492 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4493 | { (case "(($ac_try" in |
| 4494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4495 | *) ac_try_echo=$ac_try;; |
| 4496 | esac |
| 4497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4498 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4499 | ac_status=$? |
| 4500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4501 | (exit $ac_status); }; }; then |
| 4502 | ac_cv_no_strict_aliasing_ok=yes |
| 4503 | else |
| 4504 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4505 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4507 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4508 | ( exit $ac_status ) |
| 4509 | ac_cv_no_strict_aliasing_ok=no |
| 4510 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4511 | 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] | 4512 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4513 | |
| 4514 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4515 | CC="$ac_save_cc" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4516 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4517 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 4518 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4519 | then |
| 4520 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4521 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4522 | case $ac_sys_system in |
| 4523 | SCO_SV*) |
| 4524 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4525 | ;; |
| 4526 | # is there any other compiler on Darwin besides gcc? |
| 4527 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 4528 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4529 | if test "${enable_universalsdk}"; then |
| 4530 | BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 4531 | fi |
| 4532 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4533 | ;; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 4534 | OSF*) |
| 4535 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4536 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4537 | esac |
| 4538 | ;; |
| 4539 | |
| 4540 | *) |
| 4541 | case $ac_sys_system in |
| 4542 | OpenUNIX*|UnixWare*) |
| 4543 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4544 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 4545 | OSF*) |
| 4546 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4547 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4548 | SCO_SV*) |
| 4549 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4550 | ;; |
| 4551 | esac |
| 4552 | ;; |
| 4553 | esac |
| 4554 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 4555 | if test "$Py_DEBUG" = 'true'; then |
| 4556 | : |
| 4557 | else |
| 4558 | OPT="-DNDEBUG $OPT" |
| 4559 | fi |
| 4560 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4561 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4562 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4563 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 4564 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4565 | |
Neal Norwitz | 020c46a | 2006-01-07 21:39:28 +0000 | [diff] [blame] | 4566 | # disable check for icc since it seems to pass, but generates a warning |
| 4567 | if test "$CC" = icc |
| 4568 | then |
| 4569 | ac_cv_opt_olimit_ok=no |
| 4570 | fi |
| 4571 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4572 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4573 | 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] | 4574 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 4575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4576 | else |
| 4577 | ac_save_cc="$CC" |
| 4578 | CC="$CC -OPT:Olimit=0" |
| 4579 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4580 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4581 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4582 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4583 | /* confdefs.h. */ |
| 4584 | _ACEOF |
| 4585 | cat confdefs.h >>conftest.$ac_ext |
| 4586 | cat >>conftest.$ac_ext <<_ACEOF |
| 4587 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4588 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4589 | _ACEOF |
| 4590 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4591 | if { (ac_try="$ac_link" |
| 4592 | case "(($ac_try" in |
| 4593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4594 | *) ac_try_echo=$ac_try;; |
| 4595 | esac |
| 4596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4597 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4598 | ac_status=$? |
| 4599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4600 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4601 | { (case "(($ac_try" in |
| 4602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4603 | *) ac_try_echo=$ac_try;; |
| 4604 | esac |
| 4605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4606 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4607 | ac_status=$? |
| 4608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4609 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4610 | ac_cv_opt_olimit_ok=yes |
| 4611 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4612 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4613 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4616 | ( exit $ac_status ) |
| 4617 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4618 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4619 | 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] | 4620 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4621 | |
| 4622 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4623 | CC="$ac_save_cc" |
| 4624 | fi |
| 4625 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4626 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4627 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 4628 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4629 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4630 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4631 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4632 | # environment? |
| 4633 | Darwin*) |
| 4634 | ;; |
| 4635 | *) |
| 4636 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4637 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4638 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4639 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4640 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4641 | 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] | 4642 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 4643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4644 | else |
| 4645 | ac_save_cc="$CC" |
| 4646 | CC="$CC -Olimit 1500" |
| 4647 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4648 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4650 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4651 | /* confdefs.h. */ |
| 4652 | _ACEOF |
| 4653 | cat confdefs.h >>conftest.$ac_ext |
| 4654 | cat >>conftest.$ac_ext <<_ACEOF |
| 4655 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4656 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4657 | _ACEOF |
| 4658 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4659 | if { (ac_try="$ac_link" |
| 4660 | case "(($ac_try" in |
| 4661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4662 | *) ac_try_echo=$ac_try;; |
| 4663 | esac |
| 4664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4665 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4666 | ac_status=$? |
| 4667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4668 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4669 | { (case "(($ac_try" in |
| 4670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4671 | *) ac_try_echo=$ac_try;; |
| 4672 | esac |
| 4673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4674 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4675 | ac_status=$? |
| 4676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4677 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4678 | ac_cv_olimit_ok=yes |
| 4679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4680 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4681 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4684 | ( exit $ac_status ) |
| 4685 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 4686 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4687 | 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] | 4688 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4689 | |
| 4690 | |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4691 | CC="$ac_save_cc" |
| 4692 | fi |
| 4693 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4694 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4695 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4696 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4697 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4698 | fi |
| 4699 | fi |
| 4700 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 4701 | # Check whether GCC supports PyArg_ParseTuple format |
| 4702 | if test "$GCC" = "yes" |
| 4703 | then |
| 4704 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4705 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
| 4706 | save_CFLAGS=$CFLAGS |
| 4707 | CFLAGS="$CFLAGS -Werror" |
| 4708 | cat >conftest.$ac_ext <<_ACEOF |
| 4709 | /* confdefs.h. */ |
| 4710 | _ACEOF |
| 4711 | cat confdefs.h >>conftest.$ac_ext |
| 4712 | cat >>conftest.$ac_ext <<_ACEOF |
| 4713 | /* end confdefs.h. */ |
| 4714 | |
| 4715 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 4716 | |
| 4717 | int |
| 4718 | main () |
| 4719 | { |
| 4720 | |
| 4721 | ; |
| 4722 | return 0; |
| 4723 | } |
| 4724 | _ACEOF |
| 4725 | rm -f conftest.$ac_objext |
| 4726 | if { (ac_try="$ac_compile" |
| 4727 | case "(($ac_try" in |
| 4728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4729 | *) ac_try_echo=$ac_try;; |
| 4730 | esac |
| 4731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4732 | (eval "$ac_compile") 2>conftest.er1 |
| 4733 | ac_status=$? |
| 4734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4735 | rm -f conftest.er1 |
| 4736 | cat conftest.err >&5 |
| 4737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4738 | (exit $ac_status); } && { |
| 4739 | test -z "$ac_c_werror_flag" || |
| 4740 | test ! -s conftest.err |
| 4741 | } && test -s conftest.$ac_objext; then |
| 4742 | |
| 4743 | cat >>confdefs.h <<\_ACEOF |
| 4744 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 4745 | _ACEOF |
| 4746 | |
| 4747 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4748 | echo "${ECHO_T}yes" >&6; } |
| 4749 | else |
| 4750 | echo "$as_me: failed program was:" >&5 |
| 4751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4752 | |
| 4753 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4754 | echo "${ECHO_T}no" >&6; } |
| 4755 | |
| 4756 | fi |
| 4757 | |
| 4758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4759 | CFLAGS=$save_CFLAGS |
| 4760 | fi |
| 4761 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4762 | # On some compilers, pthreads are available without further options |
| 4763 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4764 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4765 | # So we have to see first whether pthreads are available without |
| 4766 | # options before we can check whether -Kpthread improves anything. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4767 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4768 | 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] | 4769 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 4770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4771 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4772 | if test "$cross_compiling" = yes; then |
| 4773 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4774 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4775 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4776 | /* confdefs.h. */ |
| 4777 | _ACEOF |
| 4778 | cat confdefs.h >>conftest.$ac_ext |
| 4779 | cat >>conftest.$ac_ext <<_ACEOF |
| 4780 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4781 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4782 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4783 | |
| 4784 | void* routine(void* p){return NULL;} |
| 4785 | |
| 4786 | int main(){ |
| 4787 | pthread_t p; |
| 4788 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4789 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4790 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4791 | return 0; |
| 4792 | } |
| 4793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4794 | _ACEOF |
| 4795 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4796 | if { (ac_try="$ac_link" |
| 4797 | case "(($ac_try" in |
| 4798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4799 | *) ac_try_echo=$ac_try;; |
| 4800 | esac |
| 4801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4802 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4803 | ac_status=$? |
| 4804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4805 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4806 | { (case "(($ac_try" in |
| 4807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4808 | *) ac_try_echo=$ac_try;; |
| 4809 | esac |
| 4810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4811 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4812 | ac_status=$? |
| 4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4814 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4815 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4816 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4817 | ac_cv_kthread=no |
| 4818 | ac_cv_pthread=no |
| 4819 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4820 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4821 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4822 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4825 | ( exit $ac_status ) |
| 4826 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4827 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4828 | 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] | 4829 | fi |
| 4830 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4831 | |
| 4832 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4833 | fi |
| 4834 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4835 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4836 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4837 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4839 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4840 | then |
| 4841 | ac_cv_kpthread=no |
| 4842 | else |
| 4843 | # -Kpthread, if available, provides the right #defines |
| 4844 | # and linker options to make pthread_create available |
| 4845 | # Some compilers won't report that they do not support -Kpthread, |
| 4846 | # so we need to run a program to see whether it really made the |
| 4847 | # function available. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4848 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4849 | 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] | 4850 | if test "${ac_cv_kpthread+set}" = set; then |
| 4851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4852 | else |
| 4853 | ac_save_cc="$CC" |
| 4854 | CC="$CC -Kpthread" |
| 4855 | if test "$cross_compiling" = yes; then |
| 4856 | ac_cv_kpthread=no |
| 4857 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4858 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4859 | /* confdefs.h. */ |
| 4860 | _ACEOF |
| 4861 | cat confdefs.h >>conftest.$ac_ext |
| 4862 | cat >>conftest.$ac_ext <<_ACEOF |
| 4863 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4864 | |
| 4865 | #include <pthread.h> |
| 4866 | |
| 4867 | void* routine(void* p){return NULL;} |
| 4868 | |
| 4869 | int main(){ |
| 4870 | pthread_t p; |
| 4871 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4872 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4873 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4874 | return 0; |
| 4875 | } |
| 4876 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4877 | _ACEOF |
| 4878 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4879 | if { (ac_try="$ac_link" |
| 4880 | case "(($ac_try" in |
| 4881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4882 | *) ac_try_echo=$ac_try;; |
| 4883 | esac |
| 4884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4885 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4886 | ac_status=$? |
| 4887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4888 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4889 | { (case "(($ac_try" in |
| 4890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4891 | *) ac_try_echo=$ac_try;; |
| 4892 | esac |
| 4893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4894 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4895 | ac_status=$? |
| 4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4897 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4898 | ac_cv_kpthread=yes |
| 4899 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4900 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4904 | ( exit $ac_status ) |
| 4905 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4906 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4907 | 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] | 4908 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4909 | |
| 4910 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4911 | CC="$ac_save_cc" |
| 4912 | fi |
| 4913 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4914 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4915 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4916 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4917 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4918 | 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] | 4919 | then |
| 4920 | # -Kthread, if available, provides the right #defines |
| 4921 | # and linker options to make pthread_create available |
| 4922 | # Some compilers won't report that they do not support -Kthread, |
| 4923 | # so we need to run a program to see whether it really made the |
| 4924 | # function available. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4925 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4926 | 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] | 4927 | if test "${ac_cv_kthread+set}" = set; then |
| 4928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4929 | else |
| 4930 | ac_save_cc="$CC" |
| 4931 | CC="$CC -Kthread" |
| 4932 | if test "$cross_compiling" = yes; then |
| 4933 | ac_cv_kthread=no |
| 4934 | else |
| 4935 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4936 | /* confdefs.h. */ |
| 4937 | _ACEOF |
| 4938 | cat confdefs.h >>conftest.$ac_ext |
| 4939 | cat >>conftest.$ac_ext <<_ACEOF |
| 4940 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4941 | |
| 4942 | #include <pthread.h> |
| 4943 | |
| 4944 | void* routine(void* p){return NULL;} |
| 4945 | |
| 4946 | int main(){ |
| 4947 | pthread_t p; |
| 4948 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4949 | return 1; |
| 4950 | (void)pthread_detach(p); |
| 4951 | return 0; |
| 4952 | } |
| 4953 | |
| 4954 | _ACEOF |
| 4955 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4956 | if { (ac_try="$ac_link" |
| 4957 | case "(($ac_try" in |
| 4958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4959 | *) ac_try_echo=$ac_try;; |
| 4960 | esac |
| 4961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4962 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4963 | ac_status=$? |
| 4964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4965 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 4966 | { (case "(($ac_try" in |
| 4967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4968 | *) ac_try_echo=$ac_try;; |
| 4969 | esac |
| 4970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4971 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4972 | ac_status=$? |
| 4973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4974 | (exit $ac_status); }; }; then |
| 4975 | ac_cv_kthread=yes |
| 4976 | else |
| 4977 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4978 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4980 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4981 | ( exit $ac_status ) |
| 4982 | ac_cv_kthread=no |
| 4983 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4984 | 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] | 4985 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4986 | |
| 4987 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4988 | CC="$ac_save_cc" |
| 4989 | fi |
| 4990 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 4991 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4992 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4993 | fi |
| 4994 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4995 | 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] | 4996 | then |
| 4997 | # -pthread, if available, provides the right #defines |
| 4998 | # and linker options to make pthread_create available |
| 4999 | # Some compilers won't report that they do not support -pthread, |
| 5000 | # so we need to run a program to see whether it really made the |
| 5001 | # function available. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5002 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5003 | 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] | 5004 | if test "${ac_cv_thread+set}" = set; then |
| 5005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5006 | else |
| 5007 | ac_save_cc="$CC" |
| 5008 | CC="$CC -pthread" |
| 5009 | if test "$cross_compiling" = yes; then |
| 5010 | ac_cv_pthread=no |
| 5011 | else |
| 5012 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5013 | /* confdefs.h. */ |
| 5014 | _ACEOF |
| 5015 | cat confdefs.h >>conftest.$ac_ext |
| 5016 | cat >>conftest.$ac_ext <<_ACEOF |
| 5017 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5018 | |
| 5019 | #include <pthread.h> |
| 5020 | |
| 5021 | void* routine(void* p){return NULL;} |
| 5022 | |
| 5023 | int main(){ |
| 5024 | pthread_t p; |
| 5025 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5026 | return 1; |
| 5027 | (void)pthread_detach(p); |
| 5028 | return 0; |
| 5029 | } |
| 5030 | |
| 5031 | _ACEOF |
| 5032 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 5033 | if { (ac_try="$ac_link" |
| 5034 | case "(($ac_try" in |
| 5035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5036 | *) ac_try_echo=$ac_try;; |
| 5037 | esac |
| 5038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5039 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5040 | ac_status=$? |
| 5041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5042 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 5043 | { (case "(($ac_try" in |
| 5044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5045 | *) ac_try_echo=$ac_try;; |
| 5046 | esac |
| 5047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5048 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5049 | ac_status=$? |
| 5050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5051 | (exit $ac_status); }; }; then |
| 5052 | ac_cv_pthread=yes |
| 5053 | else |
| 5054 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5055 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5057 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5058 | ( exit $ac_status ) |
| 5059 | ac_cv_pthread=no |
| 5060 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5061 | 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] | 5062 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5063 | |
| 5064 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5065 | CC="$ac_save_cc" |
| 5066 | fi |
| 5067 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5068 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5069 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 5070 | fi |
| 5071 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5072 | # If we have set a CC compiler flag for thread support then |
| 5073 | # check if it works for CXX, too. |
| 5074 | ac_cv_cxx_thread=no |
| 5075 | if test ! -z "$CXX" |
| 5076 | then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5077 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5078 | 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] | 5079 | ac_save_cxx="$CXX" |
| 5080 | |
| 5081 | if test "$ac_cv_kpthread" = "yes" |
| 5082 | then |
| 5083 | CXX="$CXX -Kpthread" |
| 5084 | ac_cv_cxx_thread=yes |
| 5085 | elif test "$ac_cv_kthread" = "yes" |
| 5086 | then |
| 5087 | CXX="$CXX -Kthread" |
| 5088 | ac_cv_cxx_thread=yes |
| 5089 | elif test "$ac_cv_pthread" = "yes" |
| 5090 | then |
| 5091 | CXX="$CXX -pthread" |
| 5092 | ac_cv_cxx_thread=yes |
| 5093 | fi |
| 5094 | |
| 5095 | if test $ac_cv_cxx_thread = yes |
| 5096 | then |
| 5097 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5098 | $CXX -c conftest.$ac_ext 2>&5 |
| 5099 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5100 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5101 | then |
| 5102 | ac_cv_cxx_thread=yes |
| 5103 | else |
| 5104 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5105 | fi |
| 5106 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5107 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5108 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5109 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Brett Cannon | c601e0f | 2004-11-07 01:24:12 +0000 | [diff] [blame] | 5110 | fi |
| 5111 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 5112 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5113 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5114 | # checks for header files |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5115 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5116 | 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] | 5117 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5119 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5120 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5121 | /* confdefs.h. */ |
| 5122 | _ACEOF |
| 5123 | cat confdefs.h >>conftest.$ac_ext |
| 5124 | cat >>conftest.$ac_ext <<_ACEOF |
| 5125 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5126 | #include <stdlib.h> |
| 5127 | #include <stdarg.h> |
| 5128 | #include <string.h> |
| 5129 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5130 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5131 | int |
| 5132 | main () |
| 5133 | { |
| 5134 | |
| 5135 | ; |
| 5136 | return 0; |
| 5137 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5138 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5139 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 5140 | if { (ac_try="$ac_compile" |
| 5141 | case "(($ac_try" in |
| 5142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5143 | *) ac_try_echo=$ac_try;; |
| 5144 | esac |
| 5145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5146 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5147 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5149 | rm -f conftest.er1 |
| 5150 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5152 | (exit $ac_status); } && { |
| 5153 | test -z "$ac_c_werror_flag" || |
| 5154 | test ! -s conftest.err |
| 5155 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5156 | ac_cv_header_stdc=yes |
| 5157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5158 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5160 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5161 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5162 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5163 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5165 | |
| 5166 | if test $ac_cv_header_stdc = yes; then |
| 5167 | # 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] | 5168 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5169 | /* confdefs.h. */ |
| 5170 | _ACEOF |
| 5171 | cat confdefs.h >>conftest.$ac_ext |
| 5172 | cat >>conftest.$ac_ext <<_ACEOF |
| 5173 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5174 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5175 | |
| 5176 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5177 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5178 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5179 | : |
| 5180 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5181 | ac_cv_header_stdc=no |
| 5182 | fi |
| 5183 | rm -f conftest* |
| 5184 | |
| 5185 | fi |
| 5186 | |
| 5187 | if test $ac_cv_header_stdc = yes; then |
| 5188 | # 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] | 5189 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5190 | /* confdefs.h. */ |
| 5191 | _ACEOF |
| 5192 | cat confdefs.h >>conftest.$ac_ext |
| 5193 | cat >>conftest.$ac_ext <<_ACEOF |
| 5194 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5195 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5196 | |
| 5197 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5198 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5199 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5200 | : |
| 5201 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5202 | ac_cv_header_stdc=no |
| 5203 | fi |
| 5204 | rm -f conftest* |
| 5205 | |
| 5206 | fi |
| 5207 | |
| 5208 | if test $ac_cv_header_stdc = yes; then |
| 5209 | # /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] | 5210 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5211 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5212 | else |
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 | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5219 | #include <ctype.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5220 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5221 | #if ((' ' & 0x0FF) == 0x020) |
| 5222 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5223 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5224 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5225 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5226 | (('a' <= (c) && (c) <= 'i') \ |
| 5227 | || ('j' <= (c) && (c) <= 'r') \ |
| 5228 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5229 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5230 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5232 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5233 | int |
| 5234 | main () |
| 5235 | { |
| 5236 | int i; |
| 5237 | for (i = 0; i < 256; i++) |
| 5238 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5239 | || toupper (i) != TOUPPER (i)) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5240 | return 2; |
| 5241 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5242 | } |
| 5243 | _ACEOF |
| 5244 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 5245 | if { (ac_try="$ac_link" |
| 5246 | case "(($ac_try" in |
| 5247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5248 | *) ac_try_echo=$ac_try;; |
| 5249 | esac |
| 5250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5251 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5252 | ac_status=$? |
| 5253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5254 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 5255 | { (case "(($ac_try" in |
| 5256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5257 | *) ac_try_echo=$ac_try;; |
| 5258 | esac |
| 5259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5260 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5261 | ac_status=$? |
| 5262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5263 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5264 | : |
| 5265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5266 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5267 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5270 | ( exit $ac_status ) |
| 5271 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5272 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5273 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5274 | fi |
| 5275 | |
| 5276 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5277 | fi |
| 5278 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5279 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5280 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5281 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5282 | |
| 5283 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5284 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5285 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5286 | |
| 5287 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5288 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5289 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5290 | |
| 5291 | |
| 5292 | |
| 5293 | |
| 5294 | |
| 5295 | |
| 5296 | |
| 5297 | |
| 5298 | |
| 5299 | 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] | 5300 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5301 | do |
| 5302 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5303 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5304 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5305 | 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] | 5306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5307 | else |
| 5308 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5309 | /* confdefs.h. */ |
| 5310 | _ACEOF |
| 5311 | cat confdefs.h >>conftest.$ac_ext |
| 5312 | cat >>conftest.$ac_ext <<_ACEOF |
| 5313 | /* end confdefs.h. */ |
| 5314 | $ac_includes_default |
| 5315 | |
| 5316 | #include <$ac_header> |
| 5317 | _ACEOF |
| 5318 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 5319 | if { (ac_try="$ac_compile" |
| 5320 | case "(($ac_try" in |
| 5321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5322 | *) ac_try_echo=$ac_try;; |
| 5323 | esac |
| 5324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5325 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5326 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5328 | rm -f conftest.er1 |
| 5329 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5331 | (exit $ac_status); } && { |
| 5332 | test -z "$ac_c_werror_flag" || |
| 5333 | test ! -s conftest.err |
| 5334 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5335 | eval "$as_ac_Header=yes" |
| 5336 | else |
| 5337 | echo "$as_me: failed program was:" >&5 |
| 5338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5339 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5340 | eval "$as_ac_Header=no" |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5341 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5342 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5344 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5345 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5346 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5347 | echo "${ECHO_T}$ac_res" >&6; } |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 5348 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5349 | cat >>confdefs.h <<_ACEOF |
| 5350 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5351 | _ACEOF |
| 5352 | |
| 5353 | fi |
| 5354 | |
| 5355 | done |
| 5356 | |
| 5357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5358 | |
| 5359 | |
| 5360 | |
| 5361 | |
| 5362 | |
| 5363 | |
| 5364 | |
| 5365 | |
| 5366 | |
| 5367 | |
| 5368 | |
| 5369 | |
| 5370 | |
| 5371 | |
| 5372 | |
| 5373 | |
| 5374 | |
| 5375 | |
| 5376 | |
| 5377 | |
| 5378 | |
| 5379 | |
| 5380 | |
| 5381 | |
| 5382 | |
| 5383 | |
| 5384 | |
| 5385 | |
| 5386 | |
| 5387 | |
| 5388 | |
| 5389 | |
| 5390 | |
| 5391 | |
| 5392 | |
| 5393 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5394 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5395 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5396 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5397 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5398 | |
| 5399 | |
| 5400 | |
| 5401 | |
| 5402 | |
| 5403 | |
| 5404 | |
| 5405 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5406 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5407 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5408 | fcntl.h grp.h \ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5409 | io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
| 5410 | 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] | 5411 | unistd.h utime.h \ |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5412 | sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ |
| 5413 | sys/modem.h \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5414 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
| 5415 | sys/time.h \ |
| 5416 | 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] | 5417 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
| 5418 | bluetooth/bluetooth.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5419 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5420 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5421 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5422 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5423 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5424 | 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] | 5425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5426 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5427 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5428 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5429 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5430 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5431 | # Is the header compilable? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5432 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5433 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5434 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5435 | /* confdefs.h. */ |
| 5436 | _ACEOF |
| 5437 | cat confdefs.h >>conftest.$ac_ext |
| 5438 | cat >>conftest.$ac_ext <<_ACEOF |
| 5439 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5440 | $ac_includes_default |
| 5441 | #include <$ac_header> |
| 5442 | _ACEOF |
| 5443 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 5444 | if { (ac_try="$ac_compile" |
| 5445 | case "(($ac_try" in |
| 5446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5447 | *) ac_try_echo=$ac_try;; |
| 5448 | esac |
| 5449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5450 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5451 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5453 | rm -f conftest.er1 |
| 5454 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5456 | (exit $ac_status); } && { |
| 5457 | test -z "$ac_c_werror_flag" || |
| 5458 | test ! -s conftest.err |
| 5459 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5460 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5461 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5462 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5464 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5465 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5466 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5467 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5469 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5470 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5471 | |
| 5472 | # Is the header present? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5473 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5474 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5475 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5476 | /* confdefs.h. */ |
| 5477 | _ACEOF |
| 5478 | cat confdefs.h >>conftest.$ac_ext |
| 5479 | cat >>conftest.$ac_ext <<_ACEOF |
| 5480 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5481 | #include <$ac_header> |
| 5482 | _ACEOF |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 5483 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5484 | case "(($ac_try" in |
| 5485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5486 | *) ac_try_echo=$ac_try;; |
| 5487 | esac |
| 5488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5489 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5490 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5491 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5492 | rm -f conftest.er1 |
| 5493 | cat conftest.err >&5 |
| 5494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5495 | (exit $ac_status); } >/dev/null && { |
| 5496 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5497 | test ! -s conftest.err |
| 5498 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5499 | ac_header_preproc=yes |
| 5500 | else |
| 5501 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5504 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5505 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5507 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5508 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5509 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5510 | |
| 5511 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5512 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5513 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5514 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5515 | 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] | 5516 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5517 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5518 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5519 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5520 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5521 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5522 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5523 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5524 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5525 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5526 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5527 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5528 | 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] | 5529 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5530 | 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] | 5531 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5532 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5533 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5534 | ## ------------------------------------------------ ## |
| 5535 | ## Report this to http://www.python.org/python-bugs ## |
| 5536 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5537 | _ASBOX |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5538 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5539 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5540 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5541 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5542 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5543 | 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] | 5544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5545 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5546 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5547 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5548 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5549 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5550 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5551 | |
| 5552 | fi |
| 5553 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5554 | cat >>confdefs.h <<_ACEOF |
| 5555 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5556 | _ACEOF |
| 5557 | |
| 5558 | fi |
| 5559 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5560 | done |
| 5561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5562 | |
| 5563 | |
| 5564 | |
| 5565 | |
| 5566 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5567 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5568 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 5569 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5570 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5571 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 5572 | 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] | 5573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5574 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5575 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5576 | /* confdefs.h. */ |
| 5577 | _ACEOF |
| 5578 | cat confdefs.h >>conftest.$ac_ext |
| 5579 | cat >>conftest.$ac_ext <<_ACEOF |
| 5580 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5581 | #include <sys/types.h> |
| 5582 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5584 | int |
| 5585 | main () |
| 5586 | { |
| 5587 | if ((DIR *) 0) |
| 5588 | return 0; |
| 5589 | ; |
| 5590 | return 0; |
| 5591 | } |
| 5592 | _ACEOF |
| 5593 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 5594 | if { (ac_try="$ac_compile" |
| 5595 | case "(($ac_try" in |
| 5596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5597 | *) ac_try_echo=$ac_try;; |
| 5598 | esac |
| 5599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5600 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5601 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5603 | rm -f conftest.er1 |
| 5604 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5606 | (exit $ac_status); } && { |
| 5607 | test -z "$ac_c_werror_flag" || |
| 5608 | test ! -s conftest.err |
| 5609 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5610 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5611 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5612 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5614 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5615 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5616 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5617 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5619 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5620 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5621 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5622 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5623 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5624 | cat >>confdefs.h <<_ACEOF |
| 5625 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 5626 | _ACEOF |
| 5627 | |
| 5628 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5629 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5630 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5631 | done |
| 5632 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5633 | if test $ac_header_dirent = dirent.h; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5634 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5635 | 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] | 5636 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5639 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5640 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5641 | /* confdefs.h. */ |
| 5642 | _ACEOF |
| 5643 | cat confdefs.h >>conftest.$ac_ext |
| 5644 | cat >>conftest.$ac_ext <<_ACEOF |
| 5645 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5646 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5647 | /* Override any GCC internal prototype to avoid an error. |
| 5648 | Use char because int might match the return type of a GCC |
| 5649 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5650 | #ifdef __cplusplus |
| 5651 | extern "C" |
| 5652 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5653 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5654 | int |
| 5655 | main () |
| 5656 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5657 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5658 | ; |
| 5659 | return 0; |
| 5660 | } |
| 5661 | _ACEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5662 | for ac_lib in '' dir; do |
| 5663 | if test -z "$ac_lib"; then |
| 5664 | ac_res="none required" |
| 5665 | else |
| 5666 | ac_res=-l$ac_lib |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5667 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5668 | fi |
| 5669 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 5670 | if { (ac_try="$ac_link" |
| 5671 | case "(($ac_try" in |
| 5672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5673 | *) ac_try_echo=$ac_try;; |
| 5674 | esac |
| 5675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5676 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5677 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5679 | rm -f conftest.er1 |
| 5680 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5682 | (exit $ac_status); } && { |
| 5683 | test -z "$ac_c_werror_flag" || |
| 5684 | test ! -s conftest.err |
| 5685 | } && test -s conftest$ac_exeext && |
| 5686 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5687 | ac_cv_search_opendir=$ac_res |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5688 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5689 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5691 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5692 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5693 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5694 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5695 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5696 | conftest$ac_exeext |
| 5697 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5698 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5699 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5700 | done |
| 5701 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5702 | : |
| 5703 | else |
| 5704 | ac_cv_search_opendir=no |
| 5705 | fi |
| 5706 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5707 | LIBS=$ac_func_search_save_LIBS |
| 5708 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5709 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5710 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 5711 | ac_res=$ac_cv_search_opendir |
| 5712 | if test "$ac_res" != no; then |
| 5713 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5714 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5715 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5716 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5717 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5718 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5719 | 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] | 5720 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5722 | else |
| 5723 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5724 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5725 | /* confdefs.h. */ |
| 5726 | _ACEOF |
| 5727 | cat confdefs.h >>conftest.$ac_ext |
| 5728 | cat >>conftest.$ac_ext <<_ACEOF |
| 5729 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5730 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5731 | /* Override any GCC internal prototype to avoid an error. |
| 5732 | Use char because int might match the return type of a GCC |
| 5733 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5734 | #ifdef __cplusplus |
| 5735 | extern "C" |
| 5736 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5737 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5738 | int |
| 5739 | main () |
| 5740 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5741 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5742 | ; |
| 5743 | return 0; |
| 5744 | } |
| 5745 | _ACEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5746 | for ac_lib in '' x; do |
| 5747 | if test -z "$ac_lib"; then |
| 5748 | ac_res="none required" |
| 5749 | else |
| 5750 | ac_res=-l$ac_lib |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5751 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5752 | fi |
| 5753 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 5754 | if { (ac_try="$ac_link" |
| 5755 | case "(($ac_try" in |
| 5756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5757 | *) ac_try_echo=$ac_try;; |
| 5758 | esac |
| 5759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5760 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5761 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5763 | rm -f conftest.er1 |
| 5764 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5766 | (exit $ac_status); } && { |
| 5767 | test -z "$ac_c_werror_flag" || |
| 5768 | test ! -s conftest.err |
| 5769 | } && test -s conftest$ac_exeext && |
| 5770 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5771 | ac_cv_search_opendir=$ac_res |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5772 | else |
| 5773 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5775 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5777 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5778 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5779 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5780 | conftest$ac_exeext |
| 5781 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5782 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5783 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5784 | done |
| 5785 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5786 | : |
| 5787 | else |
| 5788 | ac_cv_search_opendir=no |
| 5789 | fi |
| 5790 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5791 | LIBS=$ac_func_search_save_LIBS |
| 5792 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5793 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5794 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 5795 | ac_res=$ac_cv_search_opendir |
| 5796 | if test "$ac_res" != no; then |
| 5797 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5798 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5799 | fi |
| 5800 | |
| 5801 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5802 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5803 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5804 | 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] | 5805 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5807 | else |
| 5808 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5809 | /* confdefs.h. */ |
| 5810 | _ACEOF |
| 5811 | cat confdefs.h >>conftest.$ac_ext |
| 5812 | cat >>conftest.$ac_ext <<_ACEOF |
| 5813 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5814 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5815 | int |
| 5816 | main () |
| 5817 | { |
| 5818 | return makedev(0, 0); |
| 5819 | ; |
| 5820 | return 0; |
| 5821 | } |
| 5822 | _ACEOF |
| 5823 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 5824 | if { (ac_try="$ac_link" |
| 5825 | case "(($ac_try" in |
| 5826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5827 | *) ac_try_echo=$ac_try;; |
| 5828 | esac |
| 5829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5830 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5831 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5833 | rm -f conftest.er1 |
| 5834 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5836 | (exit $ac_status); } && { |
| 5837 | test -z "$ac_c_werror_flag" || |
| 5838 | test ! -s conftest.err |
| 5839 | } && test -s conftest$ac_exeext && |
| 5840 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5841 | ac_cv_header_sys_types_h_makedev=yes |
| 5842 | else |
| 5843 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5845 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5846 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5847 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5848 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5849 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5850 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5851 | |
| 5852 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5853 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5854 | 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] | 5855 | |
| 5856 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5857 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5858 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5859 | 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] | 5860 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5862 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5863 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5864 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5865 | else |
| 5866 | # Is the header compilable? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5867 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5868 | 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] | 5869 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5870 | /* confdefs.h. */ |
| 5871 | _ACEOF |
| 5872 | cat confdefs.h >>conftest.$ac_ext |
| 5873 | cat >>conftest.$ac_ext <<_ACEOF |
| 5874 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5875 | $ac_includes_default |
| 5876 | #include <sys/mkdev.h> |
| 5877 | _ACEOF |
| 5878 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 5879 | if { (ac_try="$ac_compile" |
| 5880 | case "(($ac_try" in |
| 5881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5882 | *) ac_try_echo=$ac_try;; |
| 5883 | esac |
| 5884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5885 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5886 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5888 | rm -f conftest.er1 |
| 5889 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5891 | (exit $ac_status); } && { |
| 5892 | test -z "$ac_c_werror_flag" || |
| 5893 | test ! -s conftest.err |
| 5894 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5895 | ac_header_compiler=yes |
| 5896 | else |
| 5897 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5899 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5900 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5901 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5902 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 5903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5904 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5905 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5906 | |
| 5907 | # Is the header present? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5908 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5909 | 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] | 5910 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5911 | /* confdefs.h. */ |
| 5912 | _ACEOF |
| 5913 | cat confdefs.h >>conftest.$ac_ext |
| 5914 | cat >>conftest.$ac_ext <<_ACEOF |
| 5915 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5916 | #include <sys/mkdev.h> |
| 5917 | _ACEOF |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 5918 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5919 | case "(($ac_try" in |
| 5920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5921 | *) ac_try_echo=$ac_try;; |
| 5922 | esac |
| 5923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5924 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5925 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5926 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5927 | rm -f conftest.er1 |
| 5928 | cat conftest.err >&5 |
| 5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 5930 | (exit $ac_status); } >/dev/null && { |
| 5931 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5932 | test ! -s conftest.err |
| 5933 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5934 | ac_header_preproc=yes |
| 5935 | else |
| 5936 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5938 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5939 | ac_header_preproc=no |
| 5940 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5941 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5942 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5943 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5944 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5945 | |
| 5946 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5947 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5948 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5949 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5950 | 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] | 5951 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 5952 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 5953 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5954 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5955 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5956 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5957 | 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] | 5958 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5959 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5960 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 5961 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 5962 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5963 | 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] | 5964 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 5965 | 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] | 5966 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 5967 | echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5968 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5969 | ## ------------------------------------------------ ## |
| 5970 | ## Report this to http://www.python.org/python-bugs ## |
| 5971 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5972 | _ASBOX |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5973 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5974 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5975 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5976 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5977 | 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] | 5978 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5980 | else |
| 5981 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5982 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5983 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5984 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5985 | |
| 5986 | fi |
| 5987 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5988 | |
| 5989 | cat >>confdefs.h <<\_ACEOF |
| 5990 | #define MAJOR_IN_MKDEV 1 |
| 5991 | _ACEOF |
| 5992 | |
| 5993 | fi |
| 5994 | |
| 5995 | |
| 5996 | |
| 5997 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5998 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 5999 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6000 | 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] | 6001 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 6002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6003 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6004 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6005 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6006 | else |
| 6007 | # Is the header compilable? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6008 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6009 | 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] | 6010 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6011 | /* confdefs.h. */ |
| 6012 | _ACEOF |
| 6013 | cat confdefs.h >>conftest.$ac_ext |
| 6014 | cat >>conftest.$ac_ext <<_ACEOF |
| 6015 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6016 | $ac_includes_default |
| 6017 | #include <sys/sysmacros.h> |
| 6018 | _ACEOF |
| 6019 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6020 | if { (ac_try="$ac_compile" |
| 6021 | case "(($ac_try" in |
| 6022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6023 | *) ac_try_echo=$ac_try;; |
| 6024 | esac |
| 6025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6026 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6027 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6029 | rm -f conftest.er1 |
| 6030 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6032 | (exit $ac_status); } && { |
| 6033 | test -z "$ac_c_werror_flag" || |
| 6034 | test ! -s conftest.err |
| 6035 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6036 | ac_header_compiler=yes |
| 6037 | else |
| 6038 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6040 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6041 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6042 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6043 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6045 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6046 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6047 | |
| 6048 | # Is the header present? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6049 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6050 | 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] | 6051 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6052 | /* confdefs.h. */ |
| 6053 | _ACEOF |
| 6054 | cat confdefs.h >>conftest.$ac_ext |
| 6055 | cat >>conftest.$ac_ext <<_ACEOF |
| 6056 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6057 | #include <sys/sysmacros.h> |
| 6058 | _ACEOF |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6059 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6060 | case "(($ac_try" in |
| 6061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6062 | *) ac_try_echo=$ac_try;; |
| 6063 | esac |
| 6064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6065 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6066 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6067 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6068 | rm -f conftest.er1 |
| 6069 | cat conftest.err >&5 |
| 6070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6071 | (exit $ac_status); } >/dev/null && { |
| 6072 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6073 | test ! -s conftest.err |
| 6074 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6075 | ac_header_preproc=yes |
| 6076 | else |
| 6077 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6079 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6080 | ac_header_preproc=no |
| 6081 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6082 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6083 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6084 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6085 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6086 | |
| 6087 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6088 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6089 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6090 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6091 | 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] | 6092 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6093 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 6094 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6095 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6096 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6097 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6098 | 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] | 6099 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6100 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6101 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6102 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6103 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6104 | 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] | 6105 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6106 | 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] | 6107 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6108 | echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6109 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6110 | ## ------------------------------------------------ ## |
| 6111 | ## Report this to http://www.python.org/python-bugs ## |
| 6112 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6113 | _ASBOX |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6114 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6115 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6116 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6117 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6118 | 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] | 6119 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 6120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6121 | else |
| 6122 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6123 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6124 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6125 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6126 | |
| 6127 | fi |
| 6128 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 6129 | |
| 6130 | cat >>confdefs.h <<\_ACEOF |
| 6131 | #define MAJOR_IN_SYSMACROS 1 |
| 6132 | _ACEOF |
| 6133 | |
| 6134 | fi |
| 6135 | |
| 6136 | |
| 6137 | fi |
| 6138 | fi |
| 6139 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6140 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6141 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6142 | |
| 6143 | for ac_header in term.h |
| 6144 | do |
| 6145 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6146 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6147 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6148 | 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] | 6149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6150 | else |
| 6151 | cat >conftest.$ac_ext <<_ACEOF |
| 6152 | /* confdefs.h. */ |
| 6153 | _ACEOF |
| 6154 | cat confdefs.h >>conftest.$ac_ext |
| 6155 | cat >>conftest.$ac_ext <<_ACEOF |
| 6156 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6157 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6158 | #ifdef HAVE_CURSES_H |
| 6159 | #include <curses.h> |
| 6160 | #endif |
| 6161 | |
| 6162 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6163 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6164 | _ACEOF |
| 6165 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6166 | if { (ac_try="$ac_compile" |
| 6167 | case "(($ac_try" in |
| 6168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6169 | *) ac_try_echo=$ac_try;; |
| 6170 | esac |
| 6171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6172 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6173 | ac_status=$? |
| 6174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6175 | rm -f conftest.er1 |
| 6176 | cat conftest.err >&5 |
| 6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6178 | (exit $ac_status); } && { |
| 6179 | test -z "$ac_c_werror_flag" || |
| 6180 | test ! -s conftest.err |
| 6181 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6182 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6183 | else |
| 6184 | echo "$as_me: failed program was:" >&5 |
| 6185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6186 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6187 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6188 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6189 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6190 | 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] | 6191 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6192 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6193 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6194 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6195 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6196 | cat >>confdefs.h <<_ACEOF |
| 6197 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6198 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6199 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6200 | fi |
| 6201 | |
| 6202 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6203 | |
| 6204 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6205 | # On Linux, netlink.h requires asm/types.h |
| 6206 | |
| 6207 | for ac_header in linux/netlink.h |
| 6208 | do |
| 6209 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6210 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6211 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6212 | 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] | 6213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6214 | else |
| 6215 | cat >conftest.$ac_ext <<_ACEOF |
| 6216 | /* confdefs.h. */ |
| 6217 | _ACEOF |
| 6218 | cat confdefs.h >>conftest.$ac_ext |
| 6219 | cat >>conftest.$ac_ext <<_ACEOF |
| 6220 | /* end confdefs.h. */ |
| 6221 | |
| 6222 | #ifdef HAVE_ASM_TYPES_H |
| 6223 | #include <asm/types.h> |
| 6224 | #endif |
| 6225 | #ifdef HAVE_SYS_SOCKET_H |
| 6226 | #include <sys/socket.h> |
| 6227 | #endif |
| 6228 | |
| 6229 | |
| 6230 | #include <$ac_header> |
| 6231 | _ACEOF |
| 6232 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6233 | if { (ac_try="$ac_compile" |
| 6234 | case "(($ac_try" in |
| 6235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6236 | *) ac_try_echo=$ac_try;; |
| 6237 | esac |
| 6238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6239 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6240 | ac_status=$? |
| 6241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6242 | rm -f conftest.er1 |
| 6243 | cat conftest.err >&5 |
| 6244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6245 | (exit $ac_status); } && { |
| 6246 | test -z "$ac_c_werror_flag" || |
| 6247 | test ! -s conftest.err |
| 6248 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6249 | eval "$as_ac_Header=yes" |
| 6250 | else |
| 6251 | echo "$as_me: failed program was:" >&5 |
| 6252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6253 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6254 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6255 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6256 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6257 | 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] | 6258 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6259 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6260 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6261 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6262 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6263 | cat >>confdefs.h <<_ACEOF |
| 6264 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6265 | _ACEOF |
| 6266 | |
| 6267 | fi |
| 6268 | |
| 6269 | done |
| 6270 | |
| 6271 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6272 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6273 | was_it_defined=no |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6274 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6275 | 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] | 6276 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6277 | /* confdefs.h. */ |
| 6278 | _ACEOF |
| 6279 | cat confdefs.h >>conftest.$ac_ext |
| 6280 | cat >>conftest.$ac_ext <<_ACEOF |
| 6281 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6282 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6283 | |
| 6284 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6285 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6286 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6287 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6288 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6289 | |
| 6290 | |
| 6291 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6292 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6293 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6294 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6295 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6296 | fi |
| 6297 | rm -f conftest* |
| 6298 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6299 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6300 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6301 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6302 | # Check whether using makedev requires defining _OSF_SOURCE |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6303 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6304 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6305 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6306 | /* confdefs.h. */ |
| 6307 | _ACEOF |
| 6308 | cat confdefs.h >>conftest.$ac_ext |
| 6309 | cat >>conftest.$ac_ext <<_ACEOF |
| 6310 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6311 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6312 | int |
| 6313 | main () |
| 6314 | { |
| 6315 | makedev(0, 0) |
| 6316 | ; |
| 6317 | return 0; |
| 6318 | } |
| 6319 | _ACEOF |
| 6320 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6321 | if { (ac_try="$ac_link" |
| 6322 | case "(($ac_try" in |
| 6323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6324 | *) ac_try_echo=$ac_try;; |
| 6325 | esac |
| 6326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6327 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6328 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6330 | rm -f conftest.er1 |
| 6331 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6333 | (exit $ac_status); } && { |
| 6334 | test -z "$ac_c_werror_flag" || |
| 6335 | test ! -s conftest.err |
| 6336 | } && test -s conftest$ac_exeext && |
| 6337 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6338 | ac_cv_has_makedev=yes |
| 6339 | else |
| 6340 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6342 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6343 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6344 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6345 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6346 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6347 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6348 | if test "$ac_cv_has_makedev" = "no"; then |
| 6349 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6350 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6351 | /* confdefs.h. */ |
| 6352 | _ACEOF |
| 6353 | cat confdefs.h >>conftest.$ac_ext |
| 6354 | cat >>conftest.$ac_ext <<_ACEOF |
| 6355 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6356 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6357 | #define _OSF_SOURCE 1 |
| 6358 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6359 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6360 | int |
| 6361 | main () |
| 6362 | { |
| 6363 | makedev(0, 0) |
| 6364 | ; |
| 6365 | return 0; |
| 6366 | } |
| 6367 | _ACEOF |
| 6368 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6369 | if { (ac_try="$ac_link" |
| 6370 | case "(($ac_try" in |
| 6371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6372 | *) ac_try_echo=$ac_try;; |
| 6373 | esac |
| 6374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6375 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6376 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6378 | rm -f conftest.er1 |
| 6379 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6381 | (exit $ac_status); } && { |
| 6382 | test -z "$ac_c_werror_flag" || |
| 6383 | test ! -s conftest.err |
| 6384 | } && test -s conftest$ac_exeext && |
| 6385 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6386 | ac_cv_has_makedev=yes |
| 6387 | else |
| 6388 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6390 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6391 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6392 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6393 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6394 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6395 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6396 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6397 | |
| 6398 | cat >>confdefs.h <<\_ACEOF |
| 6399 | #define _OSF_SOURCE 1 |
| 6400 | _ACEOF |
| 6401 | |
| 6402 | fi |
| 6403 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6404 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6405 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6406 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6407 | |
| 6408 | cat >>confdefs.h <<\_ACEOF |
| 6409 | #define HAVE_MAKEDEV 1 |
| 6410 | _ACEOF |
| 6411 | |
| 6412 | fi |
| 6413 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6414 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6415 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6416 | # defined, but the compiler does not support pragma redefine_extname, |
| 6417 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6418 | # structures (such as rlimit64) without declaring them. As a |
| 6419 | # work-around, disable LFS on such configurations |
| 6420 | |
| 6421 | use_lfs=yes |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6422 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6423 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6424 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6425 | /* confdefs.h. */ |
| 6426 | _ACEOF |
| 6427 | cat confdefs.h >>conftest.$ac_ext |
| 6428 | cat >>conftest.$ac_ext <<_ACEOF |
| 6429 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6430 | |
| 6431 | #define _LARGEFILE_SOURCE 1 |
| 6432 | #define _FILE_OFFSET_BITS 64 |
| 6433 | #include <sys/resource.h> |
| 6434 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6435 | int |
| 6436 | main () |
| 6437 | { |
| 6438 | struct rlimit foo; |
| 6439 | ; |
| 6440 | return 0; |
| 6441 | } |
| 6442 | _ACEOF |
| 6443 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6444 | if { (ac_try="$ac_compile" |
| 6445 | case "(($ac_try" in |
| 6446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6447 | *) ac_try_echo=$ac_try;; |
| 6448 | esac |
| 6449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6450 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6451 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6453 | rm -f conftest.er1 |
| 6454 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6456 | (exit $ac_status); } && { |
| 6457 | test -z "$ac_c_werror_flag" || |
| 6458 | test ! -s conftest.err |
| 6459 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6460 | sol_lfs_bug=no |
| 6461 | else |
| 6462 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6464 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6465 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6466 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6467 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6469 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6470 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6471 | if test "$sol_lfs_bug" = "yes"; then |
| 6472 | use_lfs=no |
| 6473 | fi |
| 6474 | |
| 6475 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6476 | # Two defines needed to enable largefile support on various platforms |
| 6477 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6479 | cat >>confdefs.h <<\_ACEOF |
| 6480 | #define _LARGEFILE_SOURCE 1 |
| 6481 | _ACEOF |
| 6482 | |
| 6483 | |
| 6484 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6485 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6486 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6487 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6488 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6489 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6490 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6491 | cat >> confdefs.h <<\EOF |
| 6492 | #if defined(SCO_DS) |
| 6493 | #undef _OFF_T |
| 6494 | #endif |
| 6495 | EOF |
| 6496 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6497 | # Type availability checks |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6498 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6499 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6500 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 6501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6502 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6503 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6504 | /* confdefs.h. */ |
| 6505 | _ACEOF |
| 6506 | cat confdefs.h >>conftest.$ac_ext |
| 6507 | cat >>conftest.$ac_ext <<_ACEOF |
| 6508 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6509 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6510 | typedef mode_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6511 | int |
| 6512 | main () |
| 6513 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6514 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6515 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6516 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6517 | return 0; |
| 6518 | ; |
| 6519 | return 0; |
| 6520 | } |
| 6521 | _ACEOF |
| 6522 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6523 | if { (ac_try="$ac_compile" |
| 6524 | case "(($ac_try" in |
| 6525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6526 | *) ac_try_echo=$ac_try;; |
| 6527 | esac |
| 6528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6529 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6530 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6532 | rm -f conftest.er1 |
| 6533 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6535 | (exit $ac_status); } && { |
| 6536 | test -z "$ac_c_werror_flag" || |
| 6537 | test ! -s conftest.err |
| 6538 | } && test -s conftest.$ac_objext; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6539 | ac_cv_type_mode_t=yes |
| 6540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6541 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6543 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6544 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6545 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6546 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6548 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6549 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6550 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6551 | if test $ac_cv_type_mode_t = yes; then |
| 6552 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6554 | |
| 6555 | cat >>confdefs.h <<_ACEOF |
| 6556 | #define mode_t int |
| 6557 | _ACEOF |
| 6558 | |
| 6559 | fi |
| 6560 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6561 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6562 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6563 | if test "${ac_cv_type_off_t+set}" = set; then |
| 6564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6565 | else |
| 6566 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6567 | /* confdefs.h. */ |
| 6568 | _ACEOF |
| 6569 | cat confdefs.h >>conftest.$ac_ext |
| 6570 | cat >>conftest.$ac_ext <<_ACEOF |
| 6571 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6572 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6573 | typedef off_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6574 | int |
| 6575 | main () |
| 6576 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6577 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6578 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6579 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6580 | return 0; |
| 6581 | ; |
| 6582 | return 0; |
| 6583 | } |
| 6584 | _ACEOF |
| 6585 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6586 | if { (ac_try="$ac_compile" |
| 6587 | case "(($ac_try" in |
| 6588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6589 | *) ac_try_echo=$ac_try;; |
| 6590 | esac |
| 6591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6592 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6593 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6595 | rm -f conftest.er1 |
| 6596 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6598 | (exit $ac_status); } && { |
| 6599 | test -z "$ac_c_werror_flag" || |
| 6600 | test ! -s conftest.err |
| 6601 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6602 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6603 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6604 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6606 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6607 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6608 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6609 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6611 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6612 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6613 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6614 | if test $ac_cv_type_off_t = yes; then |
| 6615 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6616 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6617 | |
| 6618 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6619 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6620 | _ACEOF |
| 6621 | |
| 6622 | fi |
| 6623 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6624 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6625 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6626 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 6627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6628 | else |
| 6629 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6630 | /* confdefs.h. */ |
| 6631 | _ACEOF |
| 6632 | cat confdefs.h >>conftest.$ac_ext |
| 6633 | cat >>conftest.$ac_ext <<_ACEOF |
| 6634 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6635 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6636 | typedef pid_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6637 | int |
| 6638 | main () |
| 6639 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6640 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6641 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6642 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6643 | return 0; |
| 6644 | ; |
| 6645 | return 0; |
| 6646 | } |
| 6647 | _ACEOF |
| 6648 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6649 | if { (ac_try="$ac_compile" |
| 6650 | case "(($ac_try" in |
| 6651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6652 | *) ac_try_echo=$ac_try;; |
| 6653 | esac |
| 6654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6655 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6656 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6658 | rm -f conftest.er1 |
| 6659 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6661 | (exit $ac_status); } && { |
| 6662 | test -z "$ac_c_werror_flag" || |
| 6663 | test ! -s conftest.err |
| 6664 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6665 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6666 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6667 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6669 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6670 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6671 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6672 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6674 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6675 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6676 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6677 | if test $ac_cv_type_pid_t = yes; then |
| 6678 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6680 | |
| 6681 | cat >>confdefs.h <<_ACEOF |
| 6682 | #define pid_t int |
| 6683 | _ACEOF |
| 6684 | |
| 6685 | fi |
| 6686 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6687 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6688 | 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] | 6689 | if test "${ac_cv_type_signal+set}" = set; then |
| 6690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6691 | else |
| 6692 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6693 | /* confdefs.h. */ |
| 6694 | _ACEOF |
| 6695 | cat confdefs.h >>conftest.$ac_ext |
| 6696 | cat >>conftest.$ac_ext <<_ACEOF |
| 6697 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6698 | #include <sys/types.h> |
| 6699 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6701 | int |
| 6702 | main () |
| 6703 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6704 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6705 | ; |
| 6706 | return 0; |
| 6707 | } |
| 6708 | _ACEOF |
| 6709 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6710 | if { (ac_try="$ac_compile" |
| 6711 | case "(($ac_try" in |
| 6712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6713 | *) ac_try_echo=$ac_try;; |
| 6714 | esac |
| 6715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6716 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6717 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6719 | rm -f conftest.er1 |
| 6720 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6722 | (exit $ac_status); } && { |
| 6723 | test -z "$ac_c_werror_flag" || |
| 6724 | test ! -s conftest.err |
| 6725 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6726 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6727 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6728 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6730 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6731 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6732 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6733 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6735 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6736 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6737 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6739 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6740 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6741 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6742 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6743 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6744 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6745 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6746 | if test "${ac_cv_type_size_t+set}" = set; then |
| 6747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6749 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6750 | /* confdefs.h. */ |
| 6751 | _ACEOF |
| 6752 | cat confdefs.h >>conftest.$ac_ext |
| 6753 | cat >>conftest.$ac_ext <<_ACEOF |
| 6754 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6755 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6756 | typedef size_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6757 | int |
| 6758 | main () |
| 6759 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6760 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6761 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6762 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6763 | return 0; |
| 6764 | ; |
| 6765 | return 0; |
| 6766 | } |
| 6767 | _ACEOF |
| 6768 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6769 | if { (ac_try="$ac_compile" |
| 6770 | case "(($ac_try" in |
| 6771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6772 | *) ac_try_echo=$ac_try;; |
| 6773 | esac |
| 6774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6775 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6776 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6778 | rm -f conftest.er1 |
| 6779 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6781 | (exit $ac_status); } && { |
| 6782 | test -z "$ac_c_werror_flag" || |
| 6783 | test ! -s conftest.err |
| 6784 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6785 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6787 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6789 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6790 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6791 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6792 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6794 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6795 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6796 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6797 | if test $ac_cv_type_size_t = yes; then |
| 6798 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6799 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6800 | |
| 6801 | cat >>confdefs.h <<_ACEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6802 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6803 | _ACEOF |
| 6804 | |
| 6805 | fi |
| 6806 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6807 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6808 | 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] | 6809 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 6810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6811 | else |
| 6812 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6813 | /* confdefs.h. */ |
| 6814 | _ACEOF |
| 6815 | cat confdefs.h >>conftest.$ac_ext |
| 6816 | cat >>conftest.$ac_ext <<_ACEOF |
| 6817 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6818 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6819 | |
| 6820 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6822 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6823 | ac_cv_type_uid_t=yes |
| 6824 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6825 | ac_cv_type_uid_t=no |
| 6826 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6827 | rm -f conftest* |
| 6828 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6829 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6830 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 6831 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6832 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6833 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6834 | cat >>confdefs.h <<\_ACEOF |
| 6835 | #define uid_t int |
| 6836 | _ACEOF |
| 6837 | |
| 6838 | |
| 6839 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6840 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6841 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6842 | |
| 6843 | fi |
| 6844 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6845 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 6846 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6847 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 6848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6849 | else |
| 6850 | cat >conftest.$ac_ext <<_ACEOF |
| 6851 | /* confdefs.h. */ |
| 6852 | _ACEOF |
| 6853 | cat confdefs.h >>conftest.$ac_ext |
| 6854 | cat >>conftest.$ac_ext <<_ACEOF |
| 6855 | /* end confdefs.h. */ |
| 6856 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6857 | typedef ssize_t ac__type_new_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6858 | int |
| 6859 | main () |
| 6860 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6861 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6862 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6863 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6864 | return 0; |
| 6865 | ; |
| 6866 | return 0; |
| 6867 | } |
| 6868 | _ACEOF |
| 6869 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6870 | if { (ac_try="$ac_compile" |
| 6871 | case "(($ac_try" in |
| 6872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6873 | *) ac_try_echo=$ac_try;; |
| 6874 | esac |
| 6875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6876 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6877 | ac_status=$? |
| 6878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6879 | rm -f conftest.er1 |
| 6880 | cat conftest.err >&5 |
| 6881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6882 | (exit $ac_status); } && { |
| 6883 | test -z "$ac_c_werror_flag" || |
| 6884 | test ! -s conftest.err |
| 6885 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6886 | ac_cv_type_ssize_t=yes |
| 6887 | else |
| 6888 | echo "$as_me: failed program was:" >&5 |
| 6889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6890 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6891 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6892 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6893 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6894 | 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] | 6895 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6896 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 6897 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6898 | if test $ac_cv_type_ssize_t = yes; then |
| 6899 | |
| 6900 | cat >>confdefs.h <<\_ACEOF |
| 6901 | #define HAVE_SSIZE_T 1 |
| 6902 | _ACEOF |
| 6903 | |
| 6904 | fi |
| 6905 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6906 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6907 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6908 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6909 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 6910 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6911 | if test "${ac_cv_type_int+set}" = set; then |
| 6912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6913 | else |
| 6914 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6915 | /* confdefs.h. */ |
| 6916 | _ACEOF |
| 6917 | cat confdefs.h >>conftest.$ac_ext |
| 6918 | cat >>conftest.$ac_ext <<_ACEOF |
| 6919 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6920 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6921 | typedef int ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6922 | int |
| 6923 | main () |
| 6924 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6925 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6926 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6927 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6928 | return 0; |
| 6929 | ; |
| 6930 | return 0; |
| 6931 | } |
| 6932 | _ACEOF |
| 6933 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6934 | if { (ac_try="$ac_compile" |
| 6935 | case "(($ac_try" in |
| 6936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6937 | *) ac_try_echo=$ac_try;; |
| 6938 | esac |
| 6939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6940 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6941 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6943 | rm -f conftest.er1 |
| 6944 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6946 | (exit $ac_status); } && { |
| 6947 | test -z "$ac_c_werror_flag" || |
| 6948 | test ! -s conftest.err |
| 6949 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6950 | ac_cv_type_int=yes |
| 6951 | else |
| 6952 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6954 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6955 | ac_cv_type_int=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6956 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6957 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 6958 | 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] | 6959 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6960 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6961 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6962 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6963 | # The cast to long int works around a bug in the HP C Compiler |
| 6964 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6965 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6966 | # This bug is HP SR number 8606223364. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6967 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 6968 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6969 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6971 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6972 | if test "$cross_compiling" = yes; then |
| 6973 | # Depending upon the size, compute the lo and hi bounds. |
| 6974 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6975 | /* confdefs.h. */ |
| 6976 | _ACEOF |
| 6977 | cat confdefs.h >>conftest.$ac_ext |
| 6978 | cat >>conftest.$ac_ext <<_ACEOF |
| 6979 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6980 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 6981 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6982 | int |
| 6983 | main () |
| 6984 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 6985 | 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] | 6986 | test_array [0] = 0 |
| 6987 | |
| 6988 | ; |
| 6989 | return 0; |
| 6990 | } |
| 6991 | _ACEOF |
| 6992 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 6993 | if { (ac_try="$ac_compile" |
| 6994 | case "(($ac_try" in |
| 6995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6996 | *) ac_try_echo=$ac_try;; |
| 6997 | esac |
| 6998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6999 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7000 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7002 | rm -f conftest.er1 |
| 7003 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7005 | (exit $ac_status); } && { |
| 7006 | test -z "$ac_c_werror_flag" || |
| 7007 | test ! -s conftest.err |
| 7008 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7009 | ac_lo=0 ac_mid=0 |
| 7010 | while :; do |
| 7011 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7012 | /* confdefs.h. */ |
| 7013 | _ACEOF |
| 7014 | cat confdefs.h >>conftest.$ac_ext |
| 7015 | cat >>conftest.$ac_ext <<_ACEOF |
| 7016 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7017 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7018 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7019 | int |
| 7020 | main () |
| 7021 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7022 | 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] | 7023 | test_array [0] = 0 |
| 7024 | |
| 7025 | ; |
| 7026 | return 0; |
| 7027 | } |
| 7028 | _ACEOF |
| 7029 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7030 | if { (ac_try="$ac_compile" |
| 7031 | case "(($ac_try" in |
| 7032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7033 | *) ac_try_echo=$ac_try;; |
| 7034 | esac |
| 7035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7036 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7037 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7039 | rm -f conftest.er1 |
| 7040 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7042 | (exit $ac_status); } && { |
| 7043 | test -z "$ac_c_werror_flag" || |
| 7044 | test ! -s conftest.err |
| 7045 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7046 | ac_hi=$ac_mid; break |
| 7047 | else |
| 7048 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7050 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7051 | ac_lo=`expr $ac_mid + 1` |
| 7052 | if test $ac_lo -le $ac_mid; then |
| 7053 | ac_lo= ac_hi= |
| 7054 | break |
| 7055 | fi |
| 7056 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7057 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7058 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7059 | 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] | 7060 | done |
| 7061 | else |
| 7062 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7064 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7065 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7066 | /* confdefs.h. */ |
| 7067 | _ACEOF |
| 7068 | cat confdefs.h >>conftest.$ac_ext |
| 7069 | cat >>conftest.$ac_ext <<_ACEOF |
| 7070 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7071 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7072 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7073 | int |
| 7074 | main () |
| 7075 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7076 | 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] | 7077 | test_array [0] = 0 |
| 7078 | |
| 7079 | ; |
| 7080 | return 0; |
| 7081 | } |
| 7082 | _ACEOF |
| 7083 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7084 | if { (ac_try="$ac_compile" |
| 7085 | case "(($ac_try" in |
| 7086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7087 | *) ac_try_echo=$ac_try;; |
| 7088 | esac |
| 7089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7090 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7091 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7093 | rm -f conftest.er1 |
| 7094 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7096 | (exit $ac_status); } && { |
| 7097 | test -z "$ac_c_werror_flag" || |
| 7098 | test ! -s conftest.err |
| 7099 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7100 | ac_hi=-1 ac_mid=-1 |
| 7101 | while :; do |
| 7102 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7103 | /* confdefs.h. */ |
| 7104 | _ACEOF |
| 7105 | cat confdefs.h >>conftest.$ac_ext |
| 7106 | cat >>conftest.$ac_ext <<_ACEOF |
| 7107 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7108 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7109 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7110 | int |
| 7111 | main () |
| 7112 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7113 | 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] | 7114 | test_array [0] = 0 |
| 7115 | |
| 7116 | ; |
| 7117 | return 0; |
| 7118 | } |
| 7119 | _ACEOF |
| 7120 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7121 | if { (ac_try="$ac_compile" |
| 7122 | case "(($ac_try" in |
| 7123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7124 | *) ac_try_echo=$ac_try;; |
| 7125 | esac |
| 7126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7127 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7128 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7130 | rm -f conftest.er1 |
| 7131 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7133 | (exit $ac_status); } && { |
| 7134 | test -z "$ac_c_werror_flag" || |
| 7135 | test ! -s conftest.err |
| 7136 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7137 | ac_lo=$ac_mid; break |
| 7138 | else |
| 7139 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7141 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7142 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7143 | if test $ac_mid -le $ac_hi; then |
| 7144 | ac_lo= ac_hi= |
| 7145 | break |
| 7146 | fi |
| 7147 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7148 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7149 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7150 | 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] | 7151 | done |
| 7152 | else |
| 7153 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7155 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7156 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7157 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7158 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7159 | 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] | 7160 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7161 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7162 | 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] | 7163 | # Binary search between lo and hi bounds. |
| 7164 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7165 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7166 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7167 | /* confdefs.h. */ |
| 7168 | _ACEOF |
| 7169 | cat confdefs.h >>conftest.$ac_ext |
| 7170 | cat >>conftest.$ac_ext <<_ACEOF |
| 7171 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7172 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7173 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7174 | int |
| 7175 | main () |
| 7176 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7177 | 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] | 7178 | test_array [0] = 0 |
| 7179 | |
| 7180 | ; |
| 7181 | return 0; |
| 7182 | } |
| 7183 | _ACEOF |
| 7184 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7185 | if { (ac_try="$ac_compile" |
| 7186 | case "(($ac_try" in |
| 7187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7188 | *) ac_try_echo=$ac_try;; |
| 7189 | esac |
| 7190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7191 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7192 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7194 | rm -f conftest.er1 |
| 7195 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7197 | (exit $ac_status); } && { |
| 7198 | test -z "$ac_c_werror_flag" || |
| 7199 | test ! -s conftest.err |
| 7200 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7201 | ac_hi=$ac_mid |
| 7202 | else |
| 7203 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7205 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7206 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7207 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7208 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7209 | 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] | 7210 | done |
| 7211 | case $ac_lo in |
| 7212 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7213 | '') if test "$ac_cv_type_int" = yes; then |
| 7214 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7215 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7216 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7217 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7218 | { (exit 77); exit 77; }; } |
| 7219 | else |
| 7220 | ac_cv_sizeof_int=0 |
| 7221 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7222 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7223 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7224 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7225 | /* confdefs.h. */ |
| 7226 | _ACEOF |
| 7227 | cat confdefs.h >>conftest.$ac_ext |
| 7228 | cat >>conftest.$ac_ext <<_ACEOF |
| 7229 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7230 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7231 | typedef int ac__type_sizeof_; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7232 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7233 | 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] | 7234 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7235 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7236 | int |
| 7237 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7238 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7239 | |
| 7240 | FILE *f = fopen ("conftest.val", "w"); |
| 7241 | if (! f) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7242 | return 1; |
| 7243 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7244 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7245 | long int i = longval (); |
| 7246 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7247 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7248 | fprintf (f, "%ld\n", i); |
| 7249 | } |
| 7250 | else |
| 7251 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7252 | unsigned long int i = ulongval (); |
| 7253 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7254 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7255 | fprintf (f, "%lu\n", i); |
| 7256 | } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7257 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7258 | |
| 7259 | ; |
| 7260 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7261 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7262 | _ACEOF |
| 7263 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7264 | if { (ac_try="$ac_link" |
| 7265 | case "(($ac_try" in |
| 7266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7267 | *) ac_try_echo=$ac_try;; |
| 7268 | esac |
| 7269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7270 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7271 | ac_status=$? |
| 7272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7273 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7274 | { (case "(($ac_try" in |
| 7275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7276 | *) ac_try_echo=$ac_try;; |
| 7277 | esac |
| 7278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7279 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7280 | ac_status=$? |
| 7281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7282 | (exit $ac_status); }; }; then |
| 7283 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7285 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7286 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7289 | ( exit $ac_status ) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7290 | if test "$ac_cv_type_int" = yes; then |
| 7291 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7292 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7293 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7294 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7295 | { (exit 77); exit 77; }; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7296 | else |
| 7297 | ac_cv_sizeof_int=0 |
| 7298 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7299 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7300 | 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] | 7301 | fi |
| 7302 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7303 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7304 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 7305 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7306 | |
| 7307 | |
| 7308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7309 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7310 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7311 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7312 | |
| 7313 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7314 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 7315 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7316 | if test "${ac_cv_type_long+set}" = set; then |
| 7317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7318 | else |
| 7319 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7320 | /* confdefs.h. */ |
| 7321 | _ACEOF |
| 7322 | cat confdefs.h >>conftest.$ac_ext |
| 7323 | cat >>conftest.$ac_ext <<_ACEOF |
| 7324 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7325 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7326 | typedef long ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7327 | int |
| 7328 | main () |
| 7329 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7330 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7331 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7332 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7333 | return 0; |
| 7334 | ; |
| 7335 | return 0; |
| 7336 | } |
| 7337 | _ACEOF |
| 7338 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7339 | if { (ac_try="$ac_compile" |
| 7340 | case "(($ac_try" in |
| 7341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7342 | *) ac_try_echo=$ac_try;; |
| 7343 | esac |
| 7344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7345 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7346 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7348 | rm -f conftest.er1 |
| 7349 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7351 | (exit $ac_status); } && { |
| 7352 | test -z "$ac_c_werror_flag" || |
| 7353 | test ! -s conftest.err |
| 7354 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7355 | ac_cv_type_long=yes |
| 7356 | else |
| 7357 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7359 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7360 | ac_cv_type_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7361 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7362 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7363 | 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] | 7364 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7365 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 7366 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7367 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7368 | # The cast to long int works around a bug in the HP C Compiler |
| 7369 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7370 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7371 | # This bug is HP SR number 8606223364. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7372 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 7373 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7374 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 7375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7376 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7377 | if test "$cross_compiling" = yes; then |
| 7378 | # Depending upon the size, compute the lo and hi bounds. |
| 7379 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7380 | /* confdefs.h. */ |
| 7381 | _ACEOF |
| 7382 | cat confdefs.h >>conftest.$ac_ext |
| 7383 | cat >>conftest.$ac_ext <<_ACEOF |
| 7384 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7385 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7386 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7387 | int |
| 7388 | main () |
| 7389 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7390 | 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] | 7391 | test_array [0] = 0 |
| 7392 | |
| 7393 | ; |
| 7394 | return 0; |
| 7395 | } |
| 7396 | _ACEOF |
| 7397 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7398 | if { (ac_try="$ac_compile" |
| 7399 | case "(($ac_try" in |
| 7400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7401 | *) ac_try_echo=$ac_try;; |
| 7402 | esac |
| 7403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7404 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7405 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7407 | rm -f conftest.er1 |
| 7408 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7410 | (exit $ac_status); } && { |
| 7411 | test -z "$ac_c_werror_flag" || |
| 7412 | test ! -s conftest.err |
| 7413 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7414 | ac_lo=0 ac_mid=0 |
| 7415 | while :; do |
| 7416 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7417 | /* confdefs.h. */ |
| 7418 | _ACEOF |
| 7419 | cat confdefs.h >>conftest.$ac_ext |
| 7420 | cat >>conftest.$ac_ext <<_ACEOF |
| 7421 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7422 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7423 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7424 | int |
| 7425 | main () |
| 7426 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7427 | 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] | 7428 | test_array [0] = 0 |
| 7429 | |
| 7430 | ; |
| 7431 | return 0; |
| 7432 | } |
| 7433 | _ACEOF |
| 7434 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7435 | if { (ac_try="$ac_compile" |
| 7436 | case "(($ac_try" in |
| 7437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7438 | *) ac_try_echo=$ac_try;; |
| 7439 | esac |
| 7440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7441 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7442 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7444 | rm -f conftest.er1 |
| 7445 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7447 | (exit $ac_status); } && { |
| 7448 | test -z "$ac_c_werror_flag" || |
| 7449 | test ! -s conftest.err |
| 7450 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7451 | ac_hi=$ac_mid; break |
| 7452 | else |
| 7453 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7455 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7456 | ac_lo=`expr $ac_mid + 1` |
| 7457 | if test $ac_lo -le $ac_mid; then |
| 7458 | ac_lo= ac_hi= |
| 7459 | break |
| 7460 | fi |
| 7461 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7462 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7463 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7464 | 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] | 7465 | done |
| 7466 | else |
| 7467 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7469 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7470 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7471 | /* confdefs.h. */ |
| 7472 | _ACEOF |
| 7473 | cat confdefs.h >>conftest.$ac_ext |
| 7474 | cat >>conftest.$ac_ext <<_ACEOF |
| 7475 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7476 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7477 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7478 | int |
| 7479 | main () |
| 7480 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7481 | 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] | 7482 | test_array [0] = 0 |
| 7483 | |
| 7484 | ; |
| 7485 | return 0; |
| 7486 | } |
| 7487 | _ACEOF |
| 7488 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7489 | if { (ac_try="$ac_compile" |
| 7490 | case "(($ac_try" in |
| 7491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7492 | *) ac_try_echo=$ac_try;; |
| 7493 | esac |
| 7494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7495 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7496 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7498 | rm -f conftest.er1 |
| 7499 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7501 | (exit $ac_status); } && { |
| 7502 | test -z "$ac_c_werror_flag" || |
| 7503 | test ! -s conftest.err |
| 7504 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7505 | ac_hi=-1 ac_mid=-1 |
| 7506 | while :; do |
| 7507 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7508 | /* confdefs.h. */ |
| 7509 | _ACEOF |
| 7510 | cat confdefs.h >>conftest.$ac_ext |
| 7511 | cat >>conftest.$ac_ext <<_ACEOF |
| 7512 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7513 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7514 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7515 | int |
| 7516 | main () |
| 7517 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7518 | 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] | 7519 | test_array [0] = 0 |
| 7520 | |
| 7521 | ; |
| 7522 | return 0; |
| 7523 | } |
| 7524 | _ACEOF |
| 7525 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7526 | if { (ac_try="$ac_compile" |
| 7527 | case "(($ac_try" in |
| 7528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7529 | *) ac_try_echo=$ac_try;; |
| 7530 | esac |
| 7531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7532 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7533 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7535 | rm -f conftest.er1 |
| 7536 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7538 | (exit $ac_status); } && { |
| 7539 | test -z "$ac_c_werror_flag" || |
| 7540 | test ! -s conftest.err |
| 7541 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7542 | ac_lo=$ac_mid; break |
| 7543 | else |
| 7544 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7546 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7547 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7548 | if test $ac_mid -le $ac_hi; then |
| 7549 | ac_lo= ac_hi= |
| 7550 | break |
| 7551 | fi |
| 7552 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7553 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7554 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7555 | 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] | 7556 | done |
| 7557 | else |
| 7558 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7560 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7561 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7562 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7563 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7564 | 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] | 7565 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7566 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7567 | 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] | 7568 | # Binary search between lo and hi bounds. |
| 7569 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7570 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7571 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7572 | /* confdefs.h. */ |
| 7573 | _ACEOF |
| 7574 | cat confdefs.h >>conftest.$ac_ext |
| 7575 | cat >>conftest.$ac_ext <<_ACEOF |
| 7576 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7577 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7578 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7579 | int |
| 7580 | main () |
| 7581 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7582 | 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] | 7583 | test_array [0] = 0 |
| 7584 | |
| 7585 | ; |
| 7586 | return 0; |
| 7587 | } |
| 7588 | _ACEOF |
| 7589 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7590 | if { (ac_try="$ac_compile" |
| 7591 | case "(($ac_try" in |
| 7592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7593 | *) ac_try_echo=$ac_try;; |
| 7594 | esac |
| 7595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7596 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7597 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7599 | rm -f conftest.er1 |
| 7600 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7602 | (exit $ac_status); } && { |
| 7603 | test -z "$ac_c_werror_flag" || |
| 7604 | test ! -s conftest.err |
| 7605 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7606 | ac_hi=$ac_mid |
| 7607 | else |
| 7608 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7610 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7611 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7612 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7613 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7614 | 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] | 7615 | done |
| 7616 | case $ac_lo in |
| 7617 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7618 | '') if test "$ac_cv_type_long" = yes; then |
| 7619 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7620 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7621 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7622 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7623 | { (exit 77); exit 77; }; } |
| 7624 | else |
| 7625 | ac_cv_sizeof_long=0 |
| 7626 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7627 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7628 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7629 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7630 | /* confdefs.h. */ |
| 7631 | _ACEOF |
| 7632 | cat confdefs.h >>conftest.$ac_ext |
| 7633 | cat >>conftest.$ac_ext <<_ACEOF |
| 7634 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7635 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7636 | typedef long ac__type_sizeof_; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7637 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7638 | 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] | 7639 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7640 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7641 | int |
| 7642 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7643 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7644 | |
| 7645 | FILE *f = fopen ("conftest.val", "w"); |
| 7646 | if (! f) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7647 | return 1; |
| 7648 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7649 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7650 | long int i = longval (); |
| 7651 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7652 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7653 | fprintf (f, "%ld\n", i); |
| 7654 | } |
| 7655 | else |
| 7656 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7657 | unsigned long int i = ulongval (); |
| 7658 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 7659 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7660 | fprintf (f, "%lu\n", i); |
| 7661 | } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7662 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7663 | |
| 7664 | ; |
| 7665 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7666 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7667 | _ACEOF |
| 7668 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7669 | if { (ac_try="$ac_link" |
| 7670 | case "(($ac_try" in |
| 7671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7672 | *) ac_try_echo=$ac_try;; |
| 7673 | esac |
| 7674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7675 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7676 | ac_status=$? |
| 7677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7678 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7679 | { (case "(($ac_try" in |
| 7680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7681 | *) ac_try_echo=$ac_try;; |
| 7682 | esac |
| 7683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7684 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7685 | ac_status=$? |
| 7686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7687 | (exit $ac_status); }; }; then |
| 7688 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7689 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7690 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7691 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7694 | ( exit $ac_status ) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7695 | if test "$ac_cv_type_long" = yes; then |
| 7696 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7697 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7698 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7699 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7700 | { (exit 77); exit 77; }; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7701 | else |
| 7702 | ac_cv_sizeof_long=0 |
| 7703 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7704 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7705 | 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] | 7706 | fi |
| 7707 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7708 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7709 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 7710 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7711 | |
| 7712 | |
| 7713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7714 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7715 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7716 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7717 | |
| 7718 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7719 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 7720 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7721 | if test "${ac_cv_type_void_p+set}" = set; then |
| 7722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7723 | else |
| 7724 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7725 | /* confdefs.h. */ |
| 7726 | _ACEOF |
| 7727 | cat confdefs.h >>conftest.$ac_ext |
| 7728 | cat >>conftest.$ac_ext <<_ACEOF |
| 7729 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7730 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7731 | typedef void * ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7732 | int |
| 7733 | main () |
| 7734 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7735 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7736 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7737 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7738 | return 0; |
| 7739 | ; |
| 7740 | return 0; |
| 7741 | } |
| 7742 | _ACEOF |
| 7743 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7744 | if { (ac_try="$ac_compile" |
| 7745 | case "(($ac_try" in |
| 7746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7747 | *) ac_try_echo=$ac_try;; |
| 7748 | esac |
| 7749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7750 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7751 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7752 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7753 | rm -f conftest.er1 |
| 7754 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7756 | (exit $ac_status); } && { |
| 7757 | test -z "$ac_c_werror_flag" || |
| 7758 | test ! -s conftest.err |
| 7759 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7760 | ac_cv_type_void_p=yes |
| 7761 | else |
| 7762 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7764 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7765 | ac_cv_type_void_p=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7766 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7767 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7768 | 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] | 7769 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7770 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 7771 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7772 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7773 | # The cast to long int works around a bug in the HP C Compiler |
| 7774 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7775 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7776 | # This bug is HP SR number 8606223364. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7777 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 7778 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7779 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 7780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7781 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7782 | if test "$cross_compiling" = yes; then |
| 7783 | # Depending upon the size, compute the lo and hi bounds. |
| 7784 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7785 | /* confdefs.h. */ |
| 7786 | _ACEOF |
| 7787 | cat confdefs.h >>conftest.$ac_ext |
| 7788 | cat >>conftest.$ac_ext <<_ACEOF |
| 7789 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7790 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7791 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7792 | int |
| 7793 | main () |
| 7794 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7795 | 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] | 7796 | test_array [0] = 0 |
| 7797 | |
| 7798 | ; |
| 7799 | return 0; |
| 7800 | } |
| 7801 | _ACEOF |
| 7802 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7803 | if { (ac_try="$ac_compile" |
| 7804 | case "(($ac_try" in |
| 7805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7806 | *) ac_try_echo=$ac_try;; |
| 7807 | esac |
| 7808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7809 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7810 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7812 | rm -f conftest.er1 |
| 7813 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7815 | (exit $ac_status); } && { |
| 7816 | test -z "$ac_c_werror_flag" || |
| 7817 | test ! -s conftest.err |
| 7818 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7819 | ac_lo=0 ac_mid=0 |
| 7820 | while :; do |
| 7821 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7822 | /* confdefs.h. */ |
| 7823 | _ACEOF |
| 7824 | cat confdefs.h >>conftest.$ac_ext |
| 7825 | cat >>conftest.$ac_ext <<_ACEOF |
| 7826 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7827 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7828 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7829 | int |
| 7830 | main () |
| 7831 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7832 | 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] | 7833 | test_array [0] = 0 |
| 7834 | |
| 7835 | ; |
| 7836 | return 0; |
| 7837 | } |
| 7838 | _ACEOF |
| 7839 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7840 | if { (ac_try="$ac_compile" |
| 7841 | case "(($ac_try" in |
| 7842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7843 | *) ac_try_echo=$ac_try;; |
| 7844 | esac |
| 7845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7846 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7847 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7849 | rm -f conftest.er1 |
| 7850 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7852 | (exit $ac_status); } && { |
| 7853 | test -z "$ac_c_werror_flag" || |
| 7854 | test ! -s conftest.err |
| 7855 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7856 | ac_hi=$ac_mid; break |
| 7857 | else |
| 7858 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7860 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7861 | ac_lo=`expr $ac_mid + 1` |
| 7862 | if test $ac_lo -le $ac_mid; then |
| 7863 | ac_lo= ac_hi= |
| 7864 | break |
| 7865 | fi |
| 7866 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7867 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7868 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7869 | 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] | 7870 | done |
| 7871 | else |
| 7872 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7874 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7875 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7876 | /* confdefs.h. */ |
| 7877 | _ACEOF |
| 7878 | cat confdefs.h >>conftest.$ac_ext |
| 7879 | cat >>conftest.$ac_ext <<_ACEOF |
| 7880 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7881 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7882 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7883 | int |
| 7884 | main () |
| 7885 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7886 | 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] | 7887 | test_array [0] = 0 |
| 7888 | |
| 7889 | ; |
| 7890 | return 0; |
| 7891 | } |
| 7892 | _ACEOF |
| 7893 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7894 | if { (ac_try="$ac_compile" |
| 7895 | case "(($ac_try" in |
| 7896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7897 | *) ac_try_echo=$ac_try;; |
| 7898 | esac |
| 7899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7900 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7901 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7903 | rm -f conftest.er1 |
| 7904 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7906 | (exit $ac_status); } && { |
| 7907 | test -z "$ac_c_werror_flag" || |
| 7908 | test ! -s conftest.err |
| 7909 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7910 | ac_hi=-1 ac_mid=-1 |
| 7911 | while :; do |
| 7912 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7913 | /* confdefs.h. */ |
| 7914 | _ACEOF |
| 7915 | cat confdefs.h >>conftest.$ac_ext |
| 7916 | cat >>conftest.$ac_ext <<_ACEOF |
| 7917 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7918 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7919 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7920 | int |
| 7921 | main () |
| 7922 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7923 | 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] | 7924 | test_array [0] = 0 |
| 7925 | |
| 7926 | ; |
| 7927 | return 0; |
| 7928 | } |
| 7929 | _ACEOF |
| 7930 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7931 | if { (ac_try="$ac_compile" |
| 7932 | case "(($ac_try" in |
| 7933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7934 | *) ac_try_echo=$ac_try;; |
| 7935 | esac |
| 7936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7937 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7938 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7940 | rm -f conftest.er1 |
| 7941 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7943 | (exit $ac_status); } && { |
| 7944 | test -z "$ac_c_werror_flag" || |
| 7945 | test ! -s conftest.err |
| 7946 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7947 | ac_lo=$ac_mid; break |
| 7948 | else |
| 7949 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7951 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7952 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7953 | if test $ac_mid -le $ac_hi; then |
| 7954 | ac_lo= ac_hi= |
| 7955 | break |
| 7956 | fi |
| 7957 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7958 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7959 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7960 | 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] | 7961 | done |
| 7962 | else |
| 7963 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7965 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7966 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7967 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7968 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7969 | 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] | 7970 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7971 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 7972 | 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] | 7973 | # Binary search between lo and hi bounds. |
| 7974 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7975 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7976 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7977 | /* confdefs.h. */ |
| 7978 | _ACEOF |
| 7979 | cat confdefs.h >>conftest.$ac_ext |
| 7980 | cat >>conftest.$ac_ext <<_ACEOF |
| 7981 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7982 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 7983 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7984 | int |
| 7985 | main () |
| 7986 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 7987 | 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] | 7988 | test_array [0] = 0 |
| 7989 | |
| 7990 | ; |
| 7991 | return 0; |
| 7992 | } |
| 7993 | _ACEOF |
| 7994 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 7995 | if { (ac_try="$ac_compile" |
| 7996 | case "(($ac_try" in |
| 7997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7998 | *) ac_try_echo=$ac_try;; |
| 7999 | esac |
| 8000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8001 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8002 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8004 | rm -f conftest.er1 |
| 8005 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8007 | (exit $ac_status); } && { |
| 8008 | test -z "$ac_c_werror_flag" || |
| 8009 | test ! -s conftest.err |
| 8010 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8011 | ac_hi=$ac_mid |
| 8012 | else |
| 8013 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8015 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8016 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8017 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8018 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8019 | 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] | 8020 | done |
| 8021 | case $ac_lo in |
| 8022 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8023 | '') if test "$ac_cv_type_void_p" = yes; then |
| 8024 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8025 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8026 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8027 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8028 | { (exit 77); exit 77; }; } |
| 8029 | else |
| 8030 | ac_cv_sizeof_void_p=0 |
| 8031 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8032 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8033 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8034 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8035 | /* confdefs.h. */ |
| 8036 | _ACEOF |
| 8037 | cat confdefs.h >>conftest.$ac_ext |
| 8038 | cat >>conftest.$ac_ext <<_ACEOF |
| 8039 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8040 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8041 | typedef void * ac__type_sizeof_; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8042 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8043 | 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] | 8044 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8045 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8046 | int |
| 8047 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8048 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8049 | |
| 8050 | FILE *f = fopen ("conftest.val", "w"); |
| 8051 | if (! f) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8052 | return 1; |
| 8053 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8054 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8055 | long int i = longval (); |
| 8056 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8057 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8058 | fprintf (f, "%ld\n", i); |
| 8059 | } |
| 8060 | else |
| 8061 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8062 | unsigned long int i = ulongval (); |
| 8063 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8064 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | fprintf (f, "%lu\n", i); |
| 8066 | } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8067 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8068 | |
| 8069 | ; |
| 8070 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8071 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8072 | _ACEOF |
| 8073 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8074 | if { (ac_try="$ac_link" |
| 8075 | case "(($ac_try" in |
| 8076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8077 | *) ac_try_echo=$ac_try;; |
| 8078 | esac |
| 8079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8080 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8081 | ac_status=$? |
| 8082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8083 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8084 | { (case "(($ac_try" in |
| 8085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8086 | *) ac_try_echo=$ac_try;; |
| 8087 | esac |
| 8088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8089 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8090 | ac_status=$? |
| 8091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8092 | (exit $ac_status); }; }; then |
| 8093 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8094 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8095 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8096 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8099 | ( exit $ac_status ) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8100 | if test "$ac_cv_type_void_p" = yes; then |
| 8101 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8102 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8103 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8104 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8105 | { (exit 77); exit 77; }; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8106 | else |
| 8107 | ac_cv_sizeof_void_p=0 |
| 8108 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8109 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8110 | 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] | 8111 | fi |
| 8112 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8113 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8114 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8115 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8116 | |
| 8117 | |
| 8118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8119 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8120 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8121 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8122 | |
| 8123 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8124 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8125 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8126 | if test "${ac_cv_type_short+set}" = set; then |
| 8127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8128 | else |
| 8129 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8130 | /* confdefs.h. */ |
| 8131 | _ACEOF |
| 8132 | cat confdefs.h >>conftest.$ac_ext |
| 8133 | cat >>conftest.$ac_ext <<_ACEOF |
| 8134 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8135 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8136 | typedef short ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8137 | int |
| 8138 | main () |
| 8139 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8140 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8141 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8142 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8143 | return 0; |
| 8144 | ; |
| 8145 | return 0; |
| 8146 | } |
| 8147 | _ACEOF |
| 8148 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8149 | if { (ac_try="$ac_compile" |
| 8150 | case "(($ac_try" in |
| 8151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8152 | *) ac_try_echo=$ac_try;; |
| 8153 | esac |
| 8154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8155 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8156 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8158 | rm -f conftest.er1 |
| 8159 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8161 | (exit $ac_status); } && { |
| 8162 | test -z "$ac_c_werror_flag" || |
| 8163 | test ! -s conftest.err |
| 8164 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8165 | ac_cv_type_short=yes |
| 8166 | else |
| 8167 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8169 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8170 | ac_cv_type_short=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8171 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8172 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8173 | 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] | 8174 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8175 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8176 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8177 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8178 | # The cast to long int works around a bug in the HP C Compiler |
| 8179 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8180 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8181 | # This bug is HP SR number 8606223364. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8182 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8183 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8184 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 8185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8187 | if test "$cross_compiling" = yes; then |
| 8188 | # Depending upon the size, compute the lo and hi bounds. |
| 8189 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8190 | /* confdefs.h. */ |
| 8191 | _ACEOF |
| 8192 | cat confdefs.h >>conftest.$ac_ext |
| 8193 | cat >>conftest.$ac_ext <<_ACEOF |
| 8194 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8195 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8196 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8197 | int |
| 8198 | main () |
| 8199 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8200 | 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] | 8201 | test_array [0] = 0 |
| 8202 | |
| 8203 | ; |
| 8204 | return 0; |
| 8205 | } |
| 8206 | _ACEOF |
| 8207 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8208 | if { (ac_try="$ac_compile" |
| 8209 | case "(($ac_try" in |
| 8210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8211 | *) ac_try_echo=$ac_try;; |
| 8212 | esac |
| 8213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8214 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8215 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8217 | rm -f conftest.er1 |
| 8218 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8220 | (exit $ac_status); } && { |
| 8221 | test -z "$ac_c_werror_flag" || |
| 8222 | test ! -s conftest.err |
| 8223 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8224 | ac_lo=0 ac_mid=0 |
| 8225 | while :; do |
| 8226 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8227 | /* confdefs.h. */ |
| 8228 | _ACEOF |
| 8229 | cat confdefs.h >>conftest.$ac_ext |
| 8230 | cat >>conftest.$ac_ext <<_ACEOF |
| 8231 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8232 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8233 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8234 | int |
| 8235 | main () |
| 8236 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8237 | 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] | 8238 | test_array [0] = 0 |
| 8239 | |
| 8240 | ; |
| 8241 | return 0; |
| 8242 | } |
| 8243 | _ACEOF |
| 8244 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8245 | if { (ac_try="$ac_compile" |
| 8246 | case "(($ac_try" in |
| 8247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8248 | *) ac_try_echo=$ac_try;; |
| 8249 | esac |
| 8250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8251 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8252 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8254 | rm -f conftest.er1 |
| 8255 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8257 | (exit $ac_status); } && { |
| 8258 | test -z "$ac_c_werror_flag" || |
| 8259 | test ! -s conftest.err |
| 8260 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8261 | ac_hi=$ac_mid; break |
| 8262 | else |
| 8263 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8265 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8266 | ac_lo=`expr $ac_mid + 1` |
| 8267 | if test $ac_lo -le $ac_mid; then |
| 8268 | ac_lo= ac_hi= |
| 8269 | break |
| 8270 | fi |
| 8271 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8272 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8273 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8274 | 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] | 8275 | done |
| 8276 | else |
| 8277 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8279 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8280 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8281 | /* confdefs.h. */ |
| 8282 | _ACEOF |
| 8283 | cat confdefs.h >>conftest.$ac_ext |
| 8284 | cat >>conftest.$ac_ext <<_ACEOF |
| 8285 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8287 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8288 | int |
| 8289 | main () |
| 8290 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8291 | 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] | 8292 | test_array [0] = 0 |
| 8293 | |
| 8294 | ; |
| 8295 | return 0; |
| 8296 | } |
| 8297 | _ACEOF |
| 8298 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8299 | if { (ac_try="$ac_compile" |
| 8300 | case "(($ac_try" in |
| 8301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8302 | *) ac_try_echo=$ac_try;; |
| 8303 | esac |
| 8304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8305 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8306 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8308 | rm -f conftest.er1 |
| 8309 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8311 | (exit $ac_status); } && { |
| 8312 | test -z "$ac_c_werror_flag" || |
| 8313 | test ! -s conftest.err |
| 8314 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8315 | ac_hi=-1 ac_mid=-1 |
| 8316 | while :; do |
| 8317 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8318 | /* confdefs.h. */ |
| 8319 | _ACEOF |
| 8320 | cat confdefs.h >>conftest.$ac_ext |
| 8321 | cat >>conftest.$ac_ext <<_ACEOF |
| 8322 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8323 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8324 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8325 | int |
| 8326 | main () |
| 8327 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8328 | 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] | 8329 | test_array [0] = 0 |
| 8330 | |
| 8331 | ; |
| 8332 | return 0; |
| 8333 | } |
| 8334 | _ACEOF |
| 8335 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8336 | if { (ac_try="$ac_compile" |
| 8337 | case "(($ac_try" in |
| 8338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8339 | *) ac_try_echo=$ac_try;; |
| 8340 | esac |
| 8341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8342 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8343 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8345 | rm -f conftest.er1 |
| 8346 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8348 | (exit $ac_status); } && { |
| 8349 | test -z "$ac_c_werror_flag" || |
| 8350 | test ! -s conftest.err |
| 8351 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8352 | ac_lo=$ac_mid; break |
| 8353 | else |
| 8354 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8356 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8357 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8358 | if test $ac_mid -le $ac_hi; then |
| 8359 | ac_lo= ac_hi= |
| 8360 | break |
| 8361 | fi |
| 8362 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8363 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8364 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8365 | 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] | 8366 | done |
| 8367 | else |
| 8368 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8370 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8371 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8372 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8373 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8374 | 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] | 8375 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8376 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8377 | 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] | 8378 | # Binary search between lo and hi bounds. |
| 8379 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8380 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8381 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8382 | /* confdefs.h. */ |
| 8383 | _ACEOF |
| 8384 | cat confdefs.h >>conftest.$ac_ext |
| 8385 | cat >>conftest.$ac_ext <<_ACEOF |
| 8386 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8387 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8388 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8389 | int |
| 8390 | main () |
| 8391 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8392 | 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] | 8393 | test_array [0] = 0 |
| 8394 | |
| 8395 | ; |
| 8396 | return 0; |
| 8397 | } |
| 8398 | _ACEOF |
| 8399 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8400 | if { (ac_try="$ac_compile" |
| 8401 | case "(($ac_try" in |
| 8402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8403 | *) ac_try_echo=$ac_try;; |
| 8404 | esac |
| 8405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8406 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8407 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8409 | rm -f conftest.er1 |
| 8410 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8412 | (exit $ac_status); } && { |
| 8413 | test -z "$ac_c_werror_flag" || |
| 8414 | test ! -s conftest.err |
| 8415 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8416 | ac_hi=$ac_mid |
| 8417 | else |
| 8418 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8420 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8421 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8422 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8423 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8424 | 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] | 8425 | done |
| 8426 | case $ac_lo in |
| 8427 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8428 | '') if test "$ac_cv_type_short" = yes; then |
| 8429 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8430 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8431 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8432 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8433 | { (exit 77); exit 77; }; } |
| 8434 | else |
| 8435 | ac_cv_sizeof_short=0 |
| 8436 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8437 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8439 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8440 | /* confdefs.h. */ |
| 8441 | _ACEOF |
| 8442 | cat confdefs.h >>conftest.$ac_ext |
| 8443 | cat >>conftest.$ac_ext <<_ACEOF |
| 8444 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8445 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8446 | typedef short ac__type_sizeof_; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8447 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8448 | 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] | 8449 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8450 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8451 | int |
| 8452 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8453 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8454 | |
| 8455 | FILE *f = fopen ("conftest.val", "w"); |
| 8456 | if (! f) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8457 | return 1; |
| 8458 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8459 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8460 | long int i = longval (); |
| 8461 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8462 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8463 | fprintf (f, "%ld\n", i); |
| 8464 | } |
| 8465 | else |
| 8466 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8467 | unsigned long int i = ulongval (); |
| 8468 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8469 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8470 | fprintf (f, "%lu\n", i); |
| 8471 | } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8472 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8473 | |
| 8474 | ; |
| 8475 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8476 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8477 | _ACEOF |
| 8478 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8479 | if { (ac_try="$ac_link" |
| 8480 | case "(($ac_try" in |
| 8481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8482 | *) ac_try_echo=$ac_try;; |
| 8483 | esac |
| 8484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8485 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8486 | ac_status=$? |
| 8487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8488 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8489 | { (case "(($ac_try" in |
| 8490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8491 | *) ac_try_echo=$ac_try;; |
| 8492 | esac |
| 8493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8494 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8495 | ac_status=$? |
| 8496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8497 | (exit $ac_status); }; }; then |
| 8498 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8499 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8500 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8501 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8504 | ( exit $ac_status ) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8505 | if test "$ac_cv_type_short" = yes; then |
| 8506 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8507 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8508 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8509 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8510 | { (exit 77); exit 77; }; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8511 | else |
| 8512 | ac_cv_sizeof_short=0 |
| 8513 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8514 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8515 | 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] | 8516 | fi |
| 8517 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8518 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8519 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 8520 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8521 | |
| 8522 | |
| 8523 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8524 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8525 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8526 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8527 | |
| 8528 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8529 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 8530 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 | if test "${ac_cv_type_float+set}" = set; then |
| 8532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8533 | else |
| 8534 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8535 | /* confdefs.h. */ |
| 8536 | _ACEOF |
| 8537 | cat confdefs.h >>conftest.$ac_ext |
| 8538 | cat >>conftest.$ac_ext <<_ACEOF |
| 8539 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8540 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8541 | typedef float ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8542 | int |
| 8543 | main () |
| 8544 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8545 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8546 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8547 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8548 | return 0; |
| 8549 | ; |
| 8550 | return 0; |
| 8551 | } |
| 8552 | _ACEOF |
| 8553 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8554 | if { (ac_try="$ac_compile" |
| 8555 | case "(($ac_try" in |
| 8556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8557 | *) ac_try_echo=$ac_try;; |
| 8558 | esac |
| 8559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8560 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8561 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8563 | rm -f conftest.er1 |
| 8564 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8566 | (exit $ac_status); } && { |
| 8567 | test -z "$ac_c_werror_flag" || |
| 8568 | test ! -s conftest.err |
| 8569 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | ac_cv_type_float=yes |
| 8571 | else |
| 8572 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8574 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8575 | ac_cv_type_float=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8576 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8577 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8578 | 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] | 8579 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8580 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 8581 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8582 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8583 | # The cast to long int works around a bug in the HP C Compiler |
| 8584 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8585 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8586 | # This bug is HP SR number 8606223364. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8587 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 8588 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8589 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 8590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8591 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8592 | if test "$cross_compiling" = yes; then |
| 8593 | # Depending upon the size, compute the lo and hi bounds. |
| 8594 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8595 | /* confdefs.h. */ |
| 8596 | _ACEOF |
| 8597 | cat confdefs.h >>conftest.$ac_ext |
| 8598 | cat >>conftest.$ac_ext <<_ACEOF |
| 8599 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8600 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8601 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8602 | int |
| 8603 | main () |
| 8604 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8605 | 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] | 8606 | test_array [0] = 0 |
| 8607 | |
| 8608 | ; |
| 8609 | return 0; |
| 8610 | } |
| 8611 | _ACEOF |
| 8612 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8613 | if { (ac_try="$ac_compile" |
| 8614 | case "(($ac_try" in |
| 8615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8616 | *) ac_try_echo=$ac_try;; |
| 8617 | esac |
| 8618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8619 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8622 | rm -f conftest.er1 |
| 8623 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8625 | (exit $ac_status); } && { |
| 8626 | test -z "$ac_c_werror_flag" || |
| 8627 | test ! -s conftest.err |
| 8628 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8629 | ac_lo=0 ac_mid=0 |
| 8630 | while :; do |
| 8631 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8632 | /* confdefs.h. */ |
| 8633 | _ACEOF |
| 8634 | cat confdefs.h >>conftest.$ac_ext |
| 8635 | cat >>conftest.$ac_ext <<_ACEOF |
| 8636 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8637 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8638 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8639 | int |
| 8640 | main () |
| 8641 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8642 | 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] | 8643 | test_array [0] = 0 |
| 8644 | |
| 8645 | ; |
| 8646 | return 0; |
| 8647 | } |
| 8648 | _ACEOF |
| 8649 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8650 | if { (ac_try="$ac_compile" |
| 8651 | case "(($ac_try" in |
| 8652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8653 | *) ac_try_echo=$ac_try;; |
| 8654 | esac |
| 8655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8656 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8657 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8659 | rm -f conftest.er1 |
| 8660 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8662 | (exit $ac_status); } && { |
| 8663 | test -z "$ac_c_werror_flag" || |
| 8664 | test ! -s conftest.err |
| 8665 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8666 | ac_hi=$ac_mid; break |
| 8667 | else |
| 8668 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8670 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8671 | ac_lo=`expr $ac_mid + 1` |
| 8672 | if test $ac_lo -le $ac_mid; then |
| 8673 | ac_lo= ac_hi= |
| 8674 | break |
| 8675 | fi |
| 8676 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8677 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8678 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8679 | 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] | 8680 | done |
| 8681 | else |
| 8682 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8684 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8685 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8686 | /* confdefs.h. */ |
| 8687 | _ACEOF |
| 8688 | cat confdefs.h >>conftest.$ac_ext |
| 8689 | cat >>conftest.$ac_ext <<_ACEOF |
| 8690 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8692 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8693 | int |
| 8694 | main () |
| 8695 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8696 | 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] | 8697 | test_array [0] = 0 |
| 8698 | |
| 8699 | ; |
| 8700 | return 0; |
| 8701 | } |
| 8702 | _ACEOF |
| 8703 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8704 | if { (ac_try="$ac_compile" |
| 8705 | case "(($ac_try" in |
| 8706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8707 | *) ac_try_echo=$ac_try;; |
| 8708 | esac |
| 8709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8710 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8711 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8713 | rm -f conftest.er1 |
| 8714 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8716 | (exit $ac_status); } && { |
| 8717 | test -z "$ac_c_werror_flag" || |
| 8718 | test ! -s conftest.err |
| 8719 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8720 | ac_hi=-1 ac_mid=-1 |
| 8721 | while :; do |
| 8722 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8723 | /* confdefs.h. */ |
| 8724 | _ACEOF |
| 8725 | cat confdefs.h >>conftest.$ac_ext |
| 8726 | cat >>conftest.$ac_ext <<_ACEOF |
| 8727 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8728 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8729 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8730 | int |
| 8731 | main () |
| 8732 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8733 | 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] | 8734 | test_array [0] = 0 |
| 8735 | |
| 8736 | ; |
| 8737 | return 0; |
| 8738 | } |
| 8739 | _ACEOF |
| 8740 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8741 | if { (ac_try="$ac_compile" |
| 8742 | case "(($ac_try" in |
| 8743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8744 | *) ac_try_echo=$ac_try;; |
| 8745 | esac |
| 8746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8747 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8748 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8750 | rm -f conftest.er1 |
| 8751 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8753 | (exit $ac_status); } && { |
| 8754 | test -z "$ac_c_werror_flag" || |
| 8755 | test ! -s conftest.err |
| 8756 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8757 | ac_lo=$ac_mid; break |
| 8758 | else |
| 8759 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8761 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8762 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8763 | if test $ac_mid -le $ac_hi; then |
| 8764 | ac_lo= ac_hi= |
| 8765 | break |
| 8766 | fi |
| 8767 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8768 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8769 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8770 | 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] | 8771 | done |
| 8772 | else |
| 8773 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8775 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8776 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8777 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8778 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8779 | 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] | 8780 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8781 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8782 | 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] | 8783 | # Binary search between lo and hi bounds. |
| 8784 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8785 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8786 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8787 | /* confdefs.h. */ |
| 8788 | _ACEOF |
| 8789 | cat confdefs.h >>conftest.$ac_ext |
| 8790 | cat >>conftest.$ac_ext <<_ACEOF |
| 8791 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8792 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8793 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8794 | int |
| 8795 | main () |
| 8796 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8797 | 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] | 8798 | test_array [0] = 0 |
| 8799 | |
| 8800 | ; |
| 8801 | return 0; |
| 8802 | } |
| 8803 | _ACEOF |
| 8804 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8805 | if { (ac_try="$ac_compile" |
| 8806 | case "(($ac_try" in |
| 8807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8808 | *) ac_try_echo=$ac_try;; |
| 8809 | esac |
| 8810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8811 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8812 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8814 | rm -f conftest.er1 |
| 8815 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8817 | (exit $ac_status); } && { |
| 8818 | test -z "$ac_c_werror_flag" || |
| 8819 | test ! -s conftest.err |
| 8820 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8821 | ac_hi=$ac_mid |
| 8822 | else |
| 8823 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8825 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8826 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8827 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8828 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8829 | 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] | 8830 | done |
| 8831 | case $ac_lo in |
| 8832 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8833 | '') if test "$ac_cv_type_float" = yes; then |
| 8834 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8835 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8836 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8837 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8838 | { (exit 77); exit 77; }; } |
| 8839 | else |
| 8840 | ac_cv_sizeof_float=0 |
| 8841 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8842 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8843 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8844 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8845 | /* confdefs.h. */ |
| 8846 | _ACEOF |
| 8847 | cat confdefs.h >>conftest.$ac_ext |
| 8848 | cat >>conftest.$ac_ext <<_ACEOF |
| 8849 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8850 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8851 | typedef float ac__type_sizeof_; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8852 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8853 | 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] | 8854 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8855 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8856 | int |
| 8857 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8858 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8859 | |
| 8860 | FILE *f = fopen ("conftest.val", "w"); |
| 8861 | if (! f) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8862 | return 1; |
| 8863 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8864 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8865 | long int i = longval (); |
| 8866 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8867 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8868 | fprintf (f, "%ld\n", i); |
| 8869 | } |
| 8870 | else |
| 8871 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8872 | unsigned long int i = ulongval (); |
| 8873 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 8874 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8875 | fprintf (f, "%lu\n", i); |
| 8876 | } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8877 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8878 | |
| 8879 | ; |
| 8880 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8881 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8882 | _ACEOF |
| 8883 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8884 | if { (ac_try="$ac_link" |
| 8885 | case "(($ac_try" in |
| 8886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8887 | *) ac_try_echo=$ac_try;; |
| 8888 | esac |
| 8889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8890 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8891 | ac_status=$? |
| 8892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8893 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8894 | { (case "(($ac_try" in |
| 8895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8896 | *) ac_try_echo=$ac_try;; |
| 8897 | esac |
| 8898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8899 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8900 | ac_status=$? |
| 8901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8902 | (exit $ac_status); }; }; then |
| 8903 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8904 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8905 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8906 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8908 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8909 | ( exit $ac_status ) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8910 | if test "$ac_cv_type_float" = yes; then |
| 8911 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8912 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8913 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8914 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8915 | { (exit 77); exit 77; }; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8916 | else |
| 8917 | ac_cv_sizeof_float=0 |
| 8918 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8919 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8920 | 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] | 8921 | fi |
| 8922 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8923 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8924 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8925 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8926 | |
| 8927 | |
| 8928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8929 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8930 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8931 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8932 | |
| 8933 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8934 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 8935 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8936 | if test "${ac_cv_type_double+set}" = set; then |
| 8937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8938 | else |
| 8939 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8940 | /* confdefs.h. */ |
| 8941 | _ACEOF |
| 8942 | cat confdefs.h >>conftest.$ac_ext |
| 8943 | cat >>conftest.$ac_ext <<_ACEOF |
| 8944 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8945 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8946 | typedef double ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8947 | int |
| 8948 | main () |
| 8949 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8950 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8951 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8952 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8953 | return 0; |
| 8954 | ; |
| 8955 | return 0; |
| 8956 | } |
| 8957 | _ACEOF |
| 8958 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 8959 | if { (ac_try="$ac_compile" |
| 8960 | case "(($ac_try" in |
| 8961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8962 | *) ac_try_echo=$ac_try;; |
| 8963 | esac |
| 8964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8965 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8966 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8968 | rm -f conftest.er1 |
| 8969 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8971 | (exit $ac_status); } && { |
| 8972 | test -z "$ac_c_werror_flag" || |
| 8973 | test ! -s conftest.err |
| 8974 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8975 | ac_cv_type_double=yes |
| 8976 | else |
| 8977 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8979 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8980 | ac_cv_type_double=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8981 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8982 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 8983 | 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] | 8984 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8985 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8986 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8987 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 8988 | # The cast to long int works around a bug in the HP C Compiler |
| 8989 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8990 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8991 | # This bug is HP SR number 8606223364. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8992 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 8993 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8994 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8996 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8997 | if test "$cross_compiling" = yes; then |
| 8998 | # Depending upon the size, compute the lo and hi bounds. |
| 8999 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9000 | /* confdefs.h. */ |
| 9001 | _ACEOF |
| 9002 | cat confdefs.h >>conftest.$ac_ext |
| 9003 | cat >>conftest.$ac_ext <<_ACEOF |
| 9004 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9005 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9006 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9007 | int |
| 9008 | main () |
| 9009 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9010 | 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] | 9011 | test_array [0] = 0 |
| 9012 | |
| 9013 | ; |
| 9014 | return 0; |
| 9015 | } |
| 9016 | _ACEOF |
| 9017 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9018 | if { (ac_try="$ac_compile" |
| 9019 | case "(($ac_try" in |
| 9020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9021 | *) ac_try_echo=$ac_try;; |
| 9022 | esac |
| 9023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9024 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9025 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9026 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9027 | rm -f conftest.er1 |
| 9028 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9030 | (exit $ac_status); } && { |
| 9031 | test -z "$ac_c_werror_flag" || |
| 9032 | test ! -s conftest.err |
| 9033 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9034 | ac_lo=0 ac_mid=0 |
| 9035 | while :; do |
| 9036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9037 | /* confdefs.h. */ |
| 9038 | _ACEOF |
| 9039 | cat confdefs.h >>conftest.$ac_ext |
| 9040 | cat >>conftest.$ac_ext <<_ACEOF |
| 9041 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9042 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9043 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9044 | int |
| 9045 | main () |
| 9046 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9047 | 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] | 9048 | test_array [0] = 0 |
| 9049 | |
| 9050 | ; |
| 9051 | return 0; |
| 9052 | } |
| 9053 | _ACEOF |
| 9054 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9055 | if { (ac_try="$ac_compile" |
| 9056 | case "(($ac_try" in |
| 9057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9058 | *) ac_try_echo=$ac_try;; |
| 9059 | esac |
| 9060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9061 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9062 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9064 | rm -f conftest.er1 |
| 9065 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9067 | (exit $ac_status); } && { |
| 9068 | test -z "$ac_c_werror_flag" || |
| 9069 | test ! -s conftest.err |
| 9070 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9071 | ac_hi=$ac_mid; break |
| 9072 | else |
| 9073 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9075 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9076 | ac_lo=`expr $ac_mid + 1` |
| 9077 | if test $ac_lo -le $ac_mid; then |
| 9078 | ac_lo= ac_hi= |
| 9079 | break |
| 9080 | fi |
| 9081 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9082 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9083 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9084 | 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] | 9085 | done |
| 9086 | else |
| 9087 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9089 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9090 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9091 | /* confdefs.h. */ |
| 9092 | _ACEOF |
| 9093 | cat confdefs.h >>conftest.$ac_ext |
| 9094 | cat >>conftest.$ac_ext <<_ACEOF |
| 9095 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9096 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9097 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9098 | int |
| 9099 | main () |
| 9100 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9101 | 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] | 9102 | test_array [0] = 0 |
| 9103 | |
| 9104 | ; |
| 9105 | return 0; |
| 9106 | } |
| 9107 | _ACEOF |
| 9108 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9109 | if { (ac_try="$ac_compile" |
| 9110 | case "(($ac_try" in |
| 9111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9112 | *) ac_try_echo=$ac_try;; |
| 9113 | esac |
| 9114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9115 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9116 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9118 | rm -f conftest.er1 |
| 9119 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9121 | (exit $ac_status); } && { |
| 9122 | test -z "$ac_c_werror_flag" || |
| 9123 | test ! -s conftest.err |
| 9124 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9125 | ac_hi=-1 ac_mid=-1 |
| 9126 | while :; do |
| 9127 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9128 | /* confdefs.h. */ |
| 9129 | _ACEOF |
| 9130 | cat confdefs.h >>conftest.$ac_ext |
| 9131 | cat >>conftest.$ac_ext <<_ACEOF |
| 9132 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9133 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9134 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9135 | int |
| 9136 | main () |
| 9137 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9138 | 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] | 9139 | test_array [0] = 0 |
| 9140 | |
| 9141 | ; |
| 9142 | return 0; |
| 9143 | } |
| 9144 | _ACEOF |
| 9145 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9146 | if { (ac_try="$ac_compile" |
| 9147 | case "(($ac_try" in |
| 9148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9149 | *) ac_try_echo=$ac_try;; |
| 9150 | esac |
| 9151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9152 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9153 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9155 | rm -f conftest.er1 |
| 9156 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9158 | (exit $ac_status); } && { |
| 9159 | test -z "$ac_c_werror_flag" || |
| 9160 | test ! -s conftest.err |
| 9161 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9162 | ac_lo=$ac_mid; break |
| 9163 | else |
| 9164 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9166 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9167 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9168 | if test $ac_mid -le $ac_hi; then |
| 9169 | ac_lo= ac_hi= |
| 9170 | break |
| 9171 | fi |
| 9172 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9173 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9174 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9175 | 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] | 9176 | done |
| 9177 | else |
| 9178 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9180 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9181 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9182 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9183 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9184 | 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] | 9185 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9186 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9187 | 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] | 9188 | # Binary search between lo and hi bounds. |
| 9189 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9190 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9191 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9192 | /* confdefs.h. */ |
| 9193 | _ACEOF |
| 9194 | cat confdefs.h >>conftest.$ac_ext |
| 9195 | cat >>conftest.$ac_ext <<_ACEOF |
| 9196 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9197 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9198 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9199 | int |
| 9200 | main () |
| 9201 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9202 | 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] | 9203 | test_array [0] = 0 |
| 9204 | |
| 9205 | ; |
| 9206 | return 0; |
| 9207 | } |
| 9208 | _ACEOF |
| 9209 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9210 | if { (ac_try="$ac_compile" |
| 9211 | case "(($ac_try" in |
| 9212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9213 | *) ac_try_echo=$ac_try;; |
| 9214 | esac |
| 9215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9216 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9217 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9219 | rm -f conftest.er1 |
| 9220 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9222 | (exit $ac_status); } && { |
| 9223 | test -z "$ac_c_werror_flag" || |
| 9224 | test ! -s conftest.err |
| 9225 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9226 | ac_hi=$ac_mid |
| 9227 | else |
| 9228 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9230 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9231 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9232 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9233 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9234 | 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] | 9235 | done |
| 9236 | case $ac_lo in |
| 9237 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9238 | '') if test "$ac_cv_type_double" = yes; then |
| 9239 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9240 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9241 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9242 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9243 | { (exit 77); exit 77; }; } |
| 9244 | else |
| 9245 | ac_cv_sizeof_double=0 |
| 9246 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9247 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9249 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9250 | /* confdefs.h. */ |
| 9251 | _ACEOF |
| 9252 | cat confdefs.h >>conftest.$ac_ext |
| 9253 | cat >>conftest.$ac_ext <<_ACEOF |
| 9254 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9255 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9256 | typedef double ac__type_sizeof_; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9257 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9258 | 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] | 9259 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9260 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9261 | int |
| 9262 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9263 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9264 | |
| 9265 | FILE *f = fopen ("conftest.val", "w"); |
| 9266 | if (! f) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9267 | return 1; |
| 9268 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9269 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9270 | long int i = longval (); |
| 9271 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9272 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9273 | fprintf (f, "%ld\n", i); |
| 9274 | } |
| 9275 | else |
| 9276 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9277 | unsigned long int i = ulongval (); |
| 9278 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9279 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9280 | fprintf (f, "%lu\n", i); |
| 9281 | } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9282 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9283 | |
| 9284 | ; |
| 9285 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9286 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9287 | _ACEOF |
| 9288 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9289 | if { (ac_try="$ac_link" |
| 9290 | case "(($ac_try" in |
| 9291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9292 | *) ac_try_echo=$ac_try;; |
| 9293 | esac |
| 9294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9295 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9296 | ac_status=$? |
| 9297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9298 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9299 | { (case "(($ac_try" in |
| 9300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9301 | *) ac_try_echo=$ac_try;; |
| 9302 | esac |
| 9303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9304 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9305 | ac_status=$? |
| 9306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9307 | (exit $ac_status); }; }; then |
| 9308 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9309 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9310 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9311 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9314 | ( exit $ac_status ) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9315 | if test "$ac_cv_type_double" = yes; then |
| 9316 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9317 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9318 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9319 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9320 | { (exit 77); exit 77; }; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9321 | else |
| 9322 | ac_cv_sizeof_double=0 |
| 9323 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9324 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9325 | 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] | 9326 | fi |
| 9327 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9328 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9329 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 9330 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9331 | |
| 9332 | |
| 9333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9334 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9335 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9336 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9337 | |
| 9338 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9339 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 9340 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9341 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 9342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9343 | else |
| 9344 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9345 | /* confdefs.h. */ |
| 9346 | _ACEOF |
| 9347 | cat confdefs.h >>conftest.$ac_ext |
| 9348 | cat >>conftest.$ac_ext <<_ACEOF |
| 9349 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9350 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9351 | typedef fpos_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9352 | int |
| 9353 | main () |
| 9354 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9355 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9356 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9357 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9358 | return 0; |
| 9359 | ; |
| 9360 | return 0; |
| 9361 | } |
| 9362 | _ACEOF |
| 9363 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9364 | if { (ac_try="$ac_compile" |
| 9365 | case "(($ac_try" in |
| 9366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9367 | *) ac_try_echo=$ac_try;; |
| 9368 | esac |
| 9369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9370 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9371 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9373 | rm -f conftest.er1 |
| 9374 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9376 | (exit $ac_status); } && { |
| 9377 | test -z "$ac_c_werror_flag" || |
| 9378 | test ! -s conftest.err |
| 9379 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9380 | ac_cv_type_fpos_t=yes |
| 9381 | else |
| 9382 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9384 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9385 | ac_cv_type_fpos_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9386 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9387 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9388 | 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] | 9389 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9390 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 9391 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9392 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9393 | # The cast to long int works around a bug in the HP C Compiler |
| 9394 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9395 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9396 | # This bug is HP SR number 8606223364. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9397 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 9398 | 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] | 9399 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 9400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9401 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9402 | if test "$cross_compiling" = yes; then |
| 9403 | # Depending upon the size, compute the lo and hi bounds. |
| 9404 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9405 | /* confdefs.h. */ |
| 9406 | _ACEOF |
| 9407 | cat confdefs.h >>conftest.$ac_ext |
| 9408 | cat >>conftest.$ac_ext <<_ACEOF |
| 9409 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9410 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9411 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9412 | int |
| 9413 | main () |
| 9414 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9415 | 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] | 9416 | test_array [0] = 0 |
| 9417 | |
| 9418 | ; |
| 9419 | return 0; |
| 9420 | } |
| 9421 | _ACEOF |
| 9422 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9423 | if { (ac_try="$ac_compile" |
| 9424 | case "(($ac_try" in |
| 9425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9426 | *) ac_try_echo=$ac_try;; |
| 9427 | esac |
| 9428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9429 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9430 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9432 | rm -f conftest.er1 |
| 9433 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9435 | (exit $ac_status); } && { |
| 9436 | test -z "$ac_c_werror_flag" || |
| 9437 | test ! -s conftest.err |
| 9438 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9439 | ac_lo=0 ac_mid=0 |
| 9440 | while :; do |
| 9441 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9442 | /* confdefs.h. */ |
| 9443 | _ACEOF |
| 9444 | cat confdefs.h >>conftest.$ac_ext |
| 9445 | cat >>conftest.$ac_ext <<_ACEOF |
| 9446 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9447 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9448 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9449 | int |
| 9450 | main () |
| 9451 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9452 | 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] | 9453 | test_array [0] = 0 |
| 9454 | |
| 9455 | ; |
| 9456 | return 0; |
| 9457 | } |
| 9458 | _ACEOF |
| 9459 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9460 | if { (ac_try="$ac_compile" |
| 9461 | case "(($ac_try" in |
| 9462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9463 | *) ac_try_echo=$ac_try;; |
| 9464 | esac |
| 9465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9466 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9467 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9469 | rm -f conftest.er1 |
| 9470 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9472 | (exit $ac_status); } && { |
| 9473 | test -z "$ac_c_werror_flag" || |
| 9474 | test ! -s conftest.err |
| 9475 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9476 | ac_hi=$ac_mid; break |
| 9477 | else |
| 9478 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9480 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9481 | ac_lo=`expr $ac_mid + 1` |
| 9482 | if test $ac_lo -le $ac_mid; then |
| 9483 | ac_lo= ac_hi= |
| 9484 | break |
| 9485 | fi |
| 9486 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9487 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9488 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9489 | 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] | 9490 | done |
| 9491 | else |
| 9492 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9494 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9495 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9496 | /* confdefs.h. */ |
| 9497 | _ACEOF |
| 9498 | cat confdefs.h >>conftest.$ac_ext |
| 9499 | cat >>conftest.$ac_ext <<_ACEOF |
| 9500 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9501 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9502 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9503 | int |
| 9504 | main () |
| 9505 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9506 | 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] | 9507 | test_array [0] = 0 |
| 9508 | |
| 9509 | ; |
| 9510 | return 0; |
| 9511 | } |
| 9512 | _ACEOF |
| 9513 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9514 | if { (ac_try="$ac_compile" |
| 9515 | case "(($ac_try" in |
| 9516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9517 | *) ac_try_echo=$ac_try;; |
| 9518 | esac |
| 9519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9520 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9521 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9523 | rm -f conftest.er1 |
| 9524 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9526 | (exit $ac_status); } && { |
| 9527 | test -z "$ac_c_werror_flag" || |
| 9528 | test ! -s conftest.err |
| 9529 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9530 | ac_hi=-1 ac_mid=-1 |
| 9531 | while :; do |
| 9532 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9533 | /* confdefs.h. */ |
| 9534 | _ACEOF |
| 9535 | cat confdefs.h >>conftest.$ac_ext |
| 9536 | cat >>conftest.$ac_ext <<_ACEOF |
| 9537 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9538 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9539 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9540 | int |
| 9541 | main () |
| 9542 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9543 | 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] | 9544 | test_array [0] = 0 |
| 9545 | |
| 9546 | ; |
| 9547 | return 0; |
| 9548 | } |
| 9549 | _ACEOF |
| 9550 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9551 | if { (ac_try="$ac_compile" |
| 9552 | case "(($ac_try" in |
| 9553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9554 | *) ac_try_echo=$ac_try;; |
| 9555 | esac |
| 9556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9557 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9558 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9560 | rm -f conftest.er1 |
| 9561 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9563 | (exit $ac_status); } && { |
| 9564 | test -z "$ac_c_werror_flag" || |
| 9565 | test ! -s conftest.err |
| 9566 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9567 | ac_lo=$ac_mid; break |
| 9568 | else |
| 9569 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9571 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9572 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9573 | if test $ac_mid -le $ac_hi; then |
| 9574 | ac_lo= ac_hi= |
| 9575 | break |
| 9576 | fi |
| 9577 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9578 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9579 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9580 | 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] | 9581 | done |
| 9582 | else |
| 9583 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9585 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9586 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9587 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9588 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9589 | 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] | 9590 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9591 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9592 | 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] | 9593 | # Binary search between lo and hi bounds. |
| 9594 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9595 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9596 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9597 | /* confdefs.h. */ |
| 9598 | _ACEOF |
| 9599 | cat confdefs.h >>conftest.$ac_ext |
| 9600 | cat >>conftest.$ac_ext <<_ACEOF |
| 9601 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9602 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9603 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | int |
| 9605 | main () |
| 9606 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9607 | 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] | 9608 | test_array [0] = 0 |
| 9609 | |
| 9610 | ; |
| 9611 | return 0; |
| 9612 | } |
| 9613 | _ACEOF |
| 9614 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9615 | if { (ac_try="$ac_compile" |
| 9616 | case "(($ac_try" in |
| 9617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9618 | *) ac_try_echo=$ac_try;; |
| 9619 | esac |
| 9620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9621 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9622 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9624 | rm -f conftest.er1 |
| 9625 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9627 | (exit $ac_status); } && { |
| 9628 | test -z "$ac_c_werror_flag" || |
| 9629 | test ! -s conftest.err |
| 9630 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9631 | ac_hi=$ac_mid |
| 9632 | else |
| 9633 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9635 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9636 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9637 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9638 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9639 | 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] | 9640 | done |
| 9641 | case $ac_lo in |
| 9642 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9643 | '') if test "$ac_cv_type_fpos_t" = yes; then |
| 9644 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9645 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9646 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9647 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9648 | { (exit 77); exit 77; }; } |
| 9649 | else |
| 9650 | ac_cv_sizeof_fpos_t=0 |
| 9651 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9652 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9653 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9654 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9655 | /* confdefs.h. */ |
| 9656 | _ACEOF |
| 9657 | cat confdefs.h >>conftest.$ac_ext |
| 9658 | cat >>conftest.$ac_ext <<_ACEOF |
| 9659 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9660 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9661 | typedef fpos_t ac__type_sizeof_; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9662 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9663 | 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] | 9664 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9665 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9666 | int |
| 9667 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9668 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9669 | |
| 9670 | FILE *f = fopen ("conftest.val", "w"); |
| 9671 | if (! f) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9672 | return 1; |
| 9673 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9674 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9675 | long int i = longval (); |
| 9676 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9677 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9678 | fprintf (f, "%ld\n", i); |
| 9679 | } |
| 9680 | else |
| 9681 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9682 | unsigned long int i = ulongval (); |
| 9683 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 9684 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9685 | fprintf (f, "%lu\n", i); |
| 9686 | } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9687 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9688 | |
| 9689 | ; |
| 9690 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9691 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9692 | _ACEOF |
| 9693 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9694 | if { (ac_try="$ac_link" |
| 9695 | case "(($ac_try" in |
| 9696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9697 | *) ac_try_echo=$ac_try;; |
| 9698 | esac |
| 9699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9700 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9701 | ac_status=$? |
| 9702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9703 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9704 | { (case "(($ac_try" in |
| 9705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9706 | *) ac_try_echo=$ac_try;; |
| 9707 | esac |
| 9708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9709 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9710 | ac_status=$? |
| 9711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9712 | (exit $ac_status); }; }; then |
| 9713 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9715 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9716 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9718 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9719 | ( exit $ac_status ) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9720 | if test "$ac_cv_type_fpos_t" = yes; then |
| 9721 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9722 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9723 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9724 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9725 | { (exit 77); exit 77; }; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9726 | else |
| 9727 | ac_cv_sizeof_fpos_t=0 |
| 9728 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9729 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9730 | 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] | 9731 | fi |
| 9732 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9733 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9734 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 9735 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9736 | |
| 9737 | |
| 9738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9739 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9740 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9741 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9742 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9743 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9744 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 9745 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9746 | if test "${ac_cv_type_size_t+set}" = set; then |
| 9747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9748 | else |
| 9749 | cat >conftest.$ac_ext <<_ACEOF |
| 9750 | /* confdefs.h. */ |
| 9751 | _ACEOF |
| 9752 | cat confdefs.h >>conftest.$ac_ext |
| 9753 | cat >>conftest.$ac_ext <<_ACEOF |
| 9754 | /* end confdefs.h. */ |
| 9755 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9756 | typedef size_t ac__type_new_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9757 | int |
| 9758 | main () |
| 9759 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9760 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9761 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9762 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9763 | return 0; |
| 9764 | ; |
| 9765 | return 0; |
| 9766 | } |
| 9767 | _ACEOF |
| 9768 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9769 | if { (ac_try="$ac_compile" |
| 9770 | case "(($ac_try" in |
| 9771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9772 | *) ac_try_echo=$ac_try;; |
| 9773 | esac |
| 9774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9775 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9776 | ac_status=$? |
| 9777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9778 | rm -f conftest.er1 |
| 9779 | cat conftest.err >&5 |
| 9780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9781 | (exit $ac_status); } && { |
| 9782 | test -z "$ac_c_werror_flag" || |
| 9783 | test ! -s conftest.err |
| 9784 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9785 | ac_cv_type_size_t=yes |
| 9786 | else |
| 9787 | echo "$as_me: failed program was:" >&5 |
| 9788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9789 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9790 | ac_cv_type_size_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9791 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9792 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9793 | 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] | 9794 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9795 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 9796 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9797 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9798 | # The cast to long int works around a bug in the HP C Compiler |
| 9799 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9800 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9801 | # This bug is HP SR number 8606223364. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9802 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 9803 | 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] | 9804 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
| 9805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9806 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9807 | if test "$cross_compiling" = yes; then |
| 9808 | # Depending upon the size, compute the lo and hi bounds. |
| 9809 | cat >conftest.$ac_ext <<_ACEOF |
| 9810 | /* confdefs.h. */ |
| 9811 | _ACEOF |
| 9812 | cat confdefs.h >>conftest.$ac_ext |
| 9813 | cat >>conftest.$ac_ext <<_ACEOF |
| 9814 | /* end confdefs.h. */ |
| 9815 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9816 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9817 | int |
| 9818 | main () |
| 9819 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9820 | 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] | 9821 | test_array [0] = 0 |
| 9822 | |
| 9823 | ; |
| 9824 | return 0; |
| 9825 | } |
| 9826 | _ACEOF |
| 9827 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9828 | if { (ac_try="$ac_compile" |
| 9829 | case "(($ac_try" in |
| 9830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9831 | *) ac_try_echo=$ac_try;; |
| 9832 | esac |
| 9833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9834 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9835 | ac_status=$? |
| 9836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9837 | rm -f conftest.er1 |
| 9838 | cat conftest.err >&5 |
| 9839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9840 | (exit $ac_status); } && { |
| 9841 | test -z "$ac_c_werror_flag" || |
| 9842 | test ! -s conftest.err |
| 9843 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9844 | ac_lo=0 ac_mid=0 |
| 9845 | while :; do |
| 9846 | cat >conftest.$ac_ext <<_ACEOF |
| 9847 | /* confdefs.h. */ |
| 9848 | _ACEOF |
| 9849 | cat confdefs.h >>conftest.$ac_ext |
| 9850 | cat >>conftest.$ac_ext <<_ACEOF |
| 9851 | /* end confdefs.h. */ |
| 9852 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9853 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9854 | int |
| 9855 | main () |
| 9856 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9857 | 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] | 9858 | test_array [0] = 0 |
| 9859 | |
| 9860 | ; |
| 9861 | return 0; |
| 9862 | } |
| 9863 | _ACEOF |
| 9864 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9865 | if { (ac_try="$ac_compile" |
| 9866 | case "(($ac_try" in |
| 9867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9868 | *) ac_try_echo=$ac_try;; |
| 9869 | esac |
| 9870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9871 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9872 | ac_status=$? |
| 9873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9874 | rm -f conftest.er1 |
| 9875 | cat conftest.err >&5 |
| 9876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9877 | (exit $ac_status); } && { |
| 9878 | test -z "$ac_c_werror_flag" || |
| 9879 | test ! -s conftest.err |
| 9880 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9881 | ac_hi=$ac_mid; break |
| 9882 | else |
| 9883 | echo "$as_me: failed program was:" >&5 |
| 9884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9885 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9886 | ac_lo=`expr $ac_mid + 1` |
| 9887 | if test $ac_lo -le $ac_mid; then |
| 9888 | ac_lo= ac_hi= |
| 9889 | break |
| 9890 | fi |
| 9891 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9892 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9893 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9894 | 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] | 9895 | done |
| 9896 | else |
| 9897 | echo "$as_me: failed program was:" >&5 |
| 9898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9899 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9900 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9901 | /* confdefs.h. */ |
| 9902 | _ACEOF |
| 9903 | cat confdefs.h >>conftest.$ac_ext |
| 9904 | cat >>conftest.$ac_ext <<_ACEOF |
| 9905 | /* end confdefs.h. */ |
| 9906 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9907 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9908 | int |
| 9909 | main () |
| 9910 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9911 | 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] | 9912 | test_array [0] = 0 |
| 9913 | |
| 9914 | ; |
| 9915 | return 0; |
| 9916 | } |
| 9917 | _ACEOF |
| 9918 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9919 | if { (ac_try="$ac_compile" |
| 9920 | case "(($ac_try" in |
| 9921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9922 | *) ac_try_echo=$ac_try;; |
| 9923 | esac |
| 9924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9925 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9926 | ac_status=$? |
| 9927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9928 | rm -f conftest.er1 |
| 9929 | cat conftest.err >&5 |
| 9930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9931 | (exit $ac_status); } && { |
| 9932 | test -z "$ac_c_werror_flag" || |
| 9933 | test ! -s conftest.err |
| 9934 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9935 | ac_hi=-1 ac_mid=-1 |
| 9936 | while :; do |
| 9937 | cat >conftest.$ac_ext <<_ACEOF |
| 9938 | /* confdefs.h. */ |
| 9939 | _ACEOF |
| 9940 | cat confdefs.h >>conftest.$ac_ext |
| 9941 | cat >>conftest.$ac_ext <<_ACEOF |
| 9942 | /* end confdefs.h. */ |
| 9943 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9944 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9945 | int |
| 9946 | main () |
| 9947 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9948 | 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] | 9949 | test_array [0] = 0 |
| 9950 | |
| 9951 | ; |
| 9952 | return 0; |
| 9953 | } |
| 9954 | _ACEOF |
| 9955 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 9956 | if { (ac_try="$ac_compile" |
| 9957 | case "(($ac_try" in |
| 9958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9959 | *) ac_try_echo=$ac_try;; |
| 9960 | esac |
| 9961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9962 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9963 | ac_status=$? |
| 9964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9965 | rm -f conftest.er1 |
| 9966 | cat conftest.err >&5 |
| 9967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 9968 | (exit $ac_status); } && { |
| 9969 | test -z "$ac_c_werror_flag" || |
| 9970 | test ! -s conftest.err |
| 9971 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9972 | ac_lo=$ac_mid; break |
| 9973 | else |
| 9974 | echo "$as_me: failed program was:" >&5 |
| 9975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9976 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9977 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9978 | if test $ac_mid -le $ac_hi; then |
| 9979 | ac_lo= ac_hi= |
| 9980 | break |
| 9981 | fi |
| 9982 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9983 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9984 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9985 | 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] | 9986 | done |
| 9987 | else |
| 9988 | echo "$as_me: failed program was:" >&5 |
| 9989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9990 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9991 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9992 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9993 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9994 | 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] | 9995 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 9996 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 9997 | 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] | 9998 | # Binary search between lo and hi bounds. |
| 9999 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10000 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10001 | cat >conftest.$ac_ext <<_ACEOF |
| 10002 | /* confdefs.h. */ |
| 10003 | _ACEOF |
| 10004 | cat confdefs.h >>conftest.$ac_ext |
| 10005 | cat >>conftest.$ac_ext <<_ACEOF |
| 10006 | /* end confdefs.h. */ |
| 10007 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10008 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10009 | int |
| 10010 | main () |
| 10011 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10012 | 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] | 10013 | test_array [0] = 0 |
| 10014 | |
| 10015 | ; |
| 10016 | return 0; |
| 10017 | } |
| 10018 | _ACEOF |
| 10019 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10020 | if { (ac_try="$ac_compile" |
| 10021 | case "(($ac_try" in |
| 10022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10023 | *) ac_try_echo=$ac_try;; |
| 10024 | esac |
| 10025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10026 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10027 | ac_status=$? |
| 10028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10029 | rm -f conftest.er1 |
| 10030 | cat conftest.err >&5 |
| 10031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10032 | (exit $ac_status); } && { |
| 10033 | test -z "$ac_c_werror_flag" || |
| 10034 | test ! -s conftest.err |
| 10035 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10036 | ac_hi=$ac_mid |
| 10037 | else |
| 10038 | echo "$as_me: failed program was:" >&5 |
| 10039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10040 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10041 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10042 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10043 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10044 | 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] | 10045 | done |
| 10046 | case $ac_lo in |
| 10047 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10048 | '') if test "$ac_cv_type_size_t" = yes; then |
| 10049 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10050 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10051 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10052 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10053 | { (exit 77); exit 77; }; } |
| 10054 | else |
| 10055 | ac_cv_sizeof_size_t=0 |
| 10056 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10057 | esac |
| 10058 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10059 | cat >conftest.$ac_ext <<_ACEOF |
| 10060 | /* confdefs.h. */ |
| 10061 | _ACEOF |
| 10062 | cat confdefs.h >>conftest.$ac_ext |
| 10063 | cat >>conftest.$ac_ext <<_ACEOF |
| 10064 | /* end confdefs.h. */ |
| 10065 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10066 | typedef size_t ac__type_sizeof_; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10067 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10068 | 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] | 10069 | #include <stdio.h> |
| 10070 | #include <stdlib.h> |
| 10071 | int |
| 10072 | main () |
| 10073 | { |
| 10074 | |
| 10075 | FILE *f = fopen ("conftest.val", "w"); |
| 10076 | if (! f) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10077 | return 1; |
| 10078 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10079 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10080 | long int i = longval (); |
| 10081 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10082 | return 1; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10083 | fprintf (f, "%ld\n", i); |
| 10084 | } |
| 10085 | else |
| 10086 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10087 | unsigned long int i = ulongval (); |
| 10088 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10089 | return 1; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10090 | fprintf (f, "%lu\n", i); |
| 10091 | } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10092 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10093 | |
| 10094 | ; |
| 10095 | return 0; |
| 10096 | } |
| 10097 | _ACEOF |
| 10098 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10099 | if { (ac_try="$ac_link" |
| 10100 | case "(($ac_try" in |
| 10101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10102 | *) ac_try_echo=$ac_try;; |
| 10103 | esac |
| 10104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10105 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10106 | ac_status=$? |
| 10107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10108 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10109 | { (case "(($ac_try" in |
| 10110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10111 | *) ac_try_echo=$ac_try;; |
| 10112 | esac |
| 10113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10114 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10115 | ac_status=$? |
| 10116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10117 | (exit $ac_status); }; }; then |
| 10118 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10119 | else |
| 10120 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10121 | echo "$as_me: failed program was:" >&5 |
| 10122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10123 | |
| 10124 | ( exit $ac_status ) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10125 | if test "$ac_cv_type_size_t" = yes; then |
| 10126 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10127 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10128 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10129 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10130 | { (exit 77); exit 77; }; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10131 | else |
| 10132 | ac_cv_sizeof_size_t=0 |
| 10133 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10134 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10135 | 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] | 10136 | fi |
| 10137 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10138 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10139 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10140 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10141 | |
| 10142 | |
| 10143 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10144 | cat >>confdefs.h <<_ACEOF |
| 10145 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10146 | _ACEOF |
| 10147 | |
| 10148 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10149 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10150 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 10151 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10152 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10153 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10154 | /* confdefs.h. */ |
| 10155 | _ACEOF |
| 10156 | cat confdefs.h >>conftest.$ac_ext |
| 10157 | cat >>conftest.$ac_ext <<_ACEOF |
| 10158 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10160 | int |
| 10161 | main () |
| 10162 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10163 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10164 | ; |
| 10165 | return 0; |
| 10166 | } |
| 10167 | _ACEOF |
| 10168 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10169 | if { (ac_try="$ac_compile" |
| 10170 | case "(($ac_try" in |
| 10171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10172 | *) ac_try_echo=$ac_try;; |
| 10173 | esac |
| 10174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10175 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10176 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10178 | rm -f conftest.er1 |
| 10179 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10181 | (exit $ac_status); } && { |
| 10182 | test -z "$ac_c_werror_flag" || |
| 10183 | test ! -s conftest.err |
| 10184 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10185 | |
| 10186 | |
| 10187 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10188 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10189 | _ACEOF |
| 10190 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10191 | have_long_long=yes |
| 10192 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10194 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10196 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10197 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10198 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10199 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10201 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 10202 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 10203 | if test "$have_long_long" = yes ; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10204 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 10205 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10206 | if test "${ac_cv_type_long_long+set}" = set; then |
| 10207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10208 | else |
| 10209 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10210 | /* confdefs.h. */ |
| 10211 | _ACEOF |
| 10212 | cat confdefs.h >>conftest.$ac_ext |
| 10213 | cat >>conftest.$ac_ext <<_ACEOF |
| 10214 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10215 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10216 | typedef long long ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10217 | int |
| 10218 | main () |
| 10219 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10220 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10221 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10222 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10223 | return 0; |
| 10224 | ; |
| 10225 | return 0; |
| 10226 | } |
| 10227 | _ACEOF |
| 10228 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10229 | if { (ac_try="$ac_compile" |
| 10230 | case "(($ac_try" in |
| 10231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10232 | *) ac_try_echo=$ac_try;; |
| 10233 | esac |
| 10234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10235 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10236 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10238 | rm -f conftest.er1 |
| 10239 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10241 | (exit $ac_status); } && { |
| 10242 | test -z "$ac_c_werror_flag" || |
| 10243 | test ! -s conftest.err |
| 10244 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10245 | ac_cv_type_long_long=yes |
| 10246 | else |
| 10247 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10249 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10250 | ac_cv_type_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10251 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10252 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10253 | 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] | 10254 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10255 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 10256 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10257 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10258 | # The cast to long int works around a bug in the HP C Compiler |
| 10259 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10260 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10261 | # This bug is HP SR number 8606223364. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10262 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 10263 | 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] | 10264 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 10265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10267 | if test "$cross_compiling" = yes; then |
| 10268 | # Depending upon the size, compute the lo and hi bounds. |
| 10269 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10270 | /* confdefs.h. */ |
| 10271 | _ACEOF |
| 10272 | cat confdefs.h >>conftest.$ac_ext |
| 10273 | cat >>conftest.$ac_ext <<_ACEOF |
| 10274 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10275 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10276 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10277 | int |
| 10278 | main () |
| 10279 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10280 | 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] | 10281 | test_array [0] = 0 |
| 10282 | |
| 10283 | ; |
| 10284 | return 0; |
| 10285 | } |
| 10286 | _ACEOF |
| 10287 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10288 | if { (ac_try="$ac_compile" |
| 10289 | case "(($ac_try" in |
| 10290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10291 | *) ac_try_echo=$ac_try;; |
| 10292 | esac |
| 10293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10294 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10295 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10297 | rm -f conftest.er1 |
| 10298 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10300 | (exit $ac_status); } && { |
| 10301 | test -z "$ac_c_werror_flag" || |
| 10302 | test ! -s conftest.err |
| 10303 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10304 | ac_lo=0 ac_mid=0 |
| 10305 | while :; do |
| 10306 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10307 | /* confdefs.h. */ |
| 10308 | _ACEOF |
| 10309 | cat confdefs.h >>conftest.$ac_ext |
| 10310 | cat >>conftest.$ac_ext <<_ACEOF |
| 10311 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10312 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10313 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10314 | int |
| 10315 | main () |
| 10316 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10317 | 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] | 10318 | test_array [0] = 0 |
| 10319 | |
| 10320 | ; |
| 10321 | return 0; |
| 10322 | } |
| 10323 | _ACEOF |
| 10324 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10325 | if { (ac_try="$ac_compile" |
| 10326 | case "(($ac_try" in |
| 10327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10328 | *) ac_try_echo=$ac_try;; |
| 10329 | esac |
| 10330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10331 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10332 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10334 | rm -f conftest.er1 |
| 10335 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10337 | (exit $ac_status); } && { |
| 10338 | test -z "$ac_c_werror_flag" || |
| 10339 | test ! -s conftest.err |
| 10340 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10341 | ac_hi=$ac_mid; break |
| 10342 | else |
| 10343 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10345 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10346 | ac_lo=`expr $ac_mid + 1` |
| 10347 | if test $ac_lo -le $ac_mid; then |
| 10348 | ac_lo= ac_hi= |
| 10349 | break |
| 10350 | fi |
| 10351 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10352 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10353 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10354 | 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] | 10355 | done |
| 10356 | else |
| 10357 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10359 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10360 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10361 | /* confdefs.h. */ |
| 10362 | _ACEOF |
| 10363 | cat confdefs.h >>conftest.$ac_ext |
| 10364 | cat >>conftest.$ac_ext <<_ACEOF |
| 10365 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10366 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10367 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10368 | int |
| 10369 | main () |
| 10370 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10371 | 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] | 10372 | test_array [0] = 0 |
| 10373 | |
| 10374 | ; |
| 10375 | return 0; |
| 10376 | } |
| 10377 | _ACEOF |
| 10378 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10379 | if { (ac_try="$ac_compile" |
| 10380 | case "(($ac_try" in |
| 10381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10382 | *) ac_try_echo=$ac_try;; |
| 10383 | esac |
| 10384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10385 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10386 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10388 | rm -f conftest.er1 |
| 10389 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10391 | (exit $ac_status); } && { |
| 10392 | test -z "$ac_c_werror_flag" || |
| 10393 | test ! -s conftest.err |
| 10394 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10395 | ac_hi=-1 ac_mid=-1 |
| 10396 | while :; do |
| 10397 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10398 | /* confdefs.h. */ |
| 10399 | _ACEOF |
| 10400 | cat confdefs.h >>conftest.$ac_ext |
| 10401 | cat >>conftest.$ac_ext <<_ACEOF |
| 10402 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10403 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10404 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10405 | int |
| 10406 | main () |
| 10407 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10408 | 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] | 10409 | test_array [0] = 0 |
| 10410 | |
| 10411 | ; |
| 10412 | return 0; |
| 10413 | } |
| 10414 | _ACEOF |
| 10415 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10416 | if { (ac_try="$ac_compile" |
| 10417 | case "(($ac_try" in |
| 10418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10419 | *) ac_try_echo=$ac_try;; |
| 10420 | esac |
| 10421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10422 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10423 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10425 | rm -f conftest.er1 |
| 10426 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10428 | (exit $ac_status); } && { |
| 10429 | test -z "$ac_c_werror_flag" || |
| 10430 | test ! -s conftest.err |
| 10431 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10432 | ac_lo=$ac_mid; break |
| 10433 | else |
| 10434 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10436 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10437 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10438 | if test $ac_mid -le $ac_hi; then |
| 10439 | ac_lo= ac_hi= |
| 10440 | break |
| 10441 | fi |
| 10442 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10443 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10444 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10445 | 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] | 10446 | done |
| 10447 | else |
| 10448 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10450 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10451 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10452 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10453 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10454 | 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] | 10455 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10456 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10457 | 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] | 10458 | # Binary search between lo and hi bounds. |
| 10459 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10460 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10461 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10462 | /* confdefs.h. */ |
| 10463 | _ACEOF |
| 10464 | cat confdefs.h >>conftest.$ac_ext |
| 10465 | cat >>conftest.$ac_ext <<_ACEOF |
| 10466 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10467 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10468 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10469 | int |
| 10470 | main () |
| 10471 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10472 | 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] | 10473 | test_array [0] = 0 |
| 10474 | |
| 10475 | ; |
| 10476 | return 0; |
| 10477 | } |
| 10478 | _ACEOF |
| 10479 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10480 | if { (ac_try="$ac_compile" |
| 10481 | case "(($ac_try" in |
| 10482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10483 | *) ac_try_echo=$ac_try;; |
| 10484 | esac |
| 10485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10486 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10487 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10489 | rm -f conftest.er1 |
| 10490 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10492 | (exit $ac_status); } && { |
| 10493 | test -z "$ac_c_werror_flag" || |
| 10494 | test ! -s conftest.err |
| 10495 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10496 | ac_hi=$ac_mid |
| 10497 | else |
| 10498 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10500 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10501 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10502 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10503 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 10504 | 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] | 10505 | done |
| 10506 | case $ac_lo in |
| 10507 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10508 | '') if test "$ac_cv_type_long_long" = yes; then |
| 10509 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10510 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10511 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10512 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10513 | { (exit 77); exit 77; }; } |
| 10514 | else |
| 10515 | ac_cv_sizeof_long_long=0 |
| 10516 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10517 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10519 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10520 | /* confdefs.h. */ |
| 10521 | _ACEOF |
| 10522 | cat confdefs.h >>conftest.$ac_ext |
| 10523 | cat >>conftest.$ac_ext <<_ACEOF |
| 10524 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10525 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10526 | typedef long long ac__type_sizeof_; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10527 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10528 | 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] | 10529 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10530 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10531 | int |
| 10532 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10533 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10534 | |
| 10535 | FILE *f = fopen ("conftest.val", "w"); |
| 10536 | if (! f) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10537 | return 1; |
| 10538 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10539 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10540 | long int i = longval (); |
| 10541 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10542 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10543 | fprintf (f, "%ld\n", i); |
| 10544 | } |
| 10545 | else |
| 10546 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10547 | unsigned long int i = ulongval (); |
| 10548 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 10549 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10550 | fprintf (f, "%lu\n", i); |
| 10551 | } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10552 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10553 | |
| 10554 | ; |
| 10555 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10556 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10557 | _ACEOF |
| 10558 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10559 | if { (ac_try="$ac_link" |
| 10560 | case "(($ac_try" in |
| 10561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10562 | *) ac_try_echo=$ac_try;; |
| 10563 | esac |
| 10564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10565 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10566 | ac_status=$? |
| 10567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10568 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 10569 | { (case "(($ac_try" in |
| 10570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10571 | *) ac_try_echo=$ac_try;; |
| 10572 | esac |
| 10573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10574 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10575 | ac_status=$? |
| 10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10577 | (exit $ac_status); }; }; then |
| 10578 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10579 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10580 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10581 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10584 | ( exit $ac_status ) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10585 | if test "$ac_cv_type_long_long" = yes; then |
| 10586 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10587 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10588 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10589 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10590 | { (exit 77); exit 77; }; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10591 | else |
| 10592 | ac_cv_sizeof_long_long=0 |
| 10593 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10594 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10595 | 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] | 10596 | fi |
| 10597 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10598 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 10599 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 10600 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 10601 | |
| 10602 | |
| 10603 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10604 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10605 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10606 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10607 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10608 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10609 | fi |
| 10610 | |
Thomas Wouters | b213704 | 2007-02-01 18:02:27 +0000 | [diff] [blame] | 10611 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 10612 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
| 10613 | have_c99_bool=no |
| 10614 | cat >conftest.$ac_ext <<_ACEOF |
| 10615 | /* confdefs.h. */ |
| 10616 | _ACEOF |
| 10617 | cat confdefs.h >>conftest.$ac_ext |
| 10618 | cat >>conftest.$ac_ext <<_ACEOF |
| 10619 | /* end confdefs.h. */ |
| 10620 | |
| 10621 | int |
| 10622 | main () |
| 10623 | { |
| 10624 | _Bool x; x = (_Bool)0; |
| 10625 | ; |
| 10626 | return 0; |
| 10627 | } |
| 10628 | _ACEOF |
| 10629 | rm -f conftest.$ac_objext |
| 10630 | if { (ac_try="$ac_compile" |
| 10631 | case "(($ac_try" in |
| 10632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10633 | *) ac_try_echo=$ac_try;; |
| 10634 | esac |
| 10635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10636 | (eval "$ac_compile") 2>conftest.er1 |
| 10637 | ac_status=$? |
| 10638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10639 | rm -f conftest.er1 |
| 10640 | cat conftest.err >&5 |
| 10641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10642 | (exit $ac_status); } && { |
| 10643 | test -z "$ac_c_werror_flag" || |
| 10644 | test ! -s conftest.err |
| 10645 | } && test -s conftest.$ac_objext; then |
| 10646 | |
| 10647 | |
| 10648 | cat >>confdefs.h <<\_ACEOF |
| 10649 | #define HAVE_C99_BOOL 1 |
| 10650 | _ACEOF |
| 10651 | |
| 10652 | have_c99_bool=yes |
| 10653 | |
| 10654 | else |
| 10655 | echo "$as_me: failed program was:" >&5 |
| 10656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10657 | |
| 10658 | |
| 10659 | fi |
| 10660 | |
| 10661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10662 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 10663 | echo "${ECHO_T}$have_c99_bool" >&6; } |
| 10664 | if test "$have_c99_bool" = yes ; then |
| 10665 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 10666 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
| 10667 | if test "${ac_cv_type__Bool+set}" = set; then |
| 10668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10669 | else |
| 10670 | cat >conftest.$ac_ext <<_ACEOF |
| 10671 | /* confdefs.h. */ |
| 10672 | _ACEOF |
| 10673 | cat confdefs.h >>conftest.$ac_ext |
| 10674 | cat >>conftest.$ac_ext <<_ACEOF |
| 10675 | /* end confdefs.h. */ |
| 10676 | $ac_includes_default |
| 10677 | typedef _Bool ac__type_new_; |
| 10678 | int |
| 10679 | main () |
| 10680 | { |
| 10681 | if ((ac__type_new_ *) 0) |
| 10682 | return 0; |
| 10683 | if (sizeof (ac__type_new_)) |
| 10684 | return 0; |
| 10685 | ; |
| 10686 | return 0; |
| 10687 | } |
| 10688 | _ACEOF |
| 10689 | rm -f conftest.$ac_objext |
| 10690 | if { (ac_try="$ac_compile" |
| 10691 | case "(($ac_try" in |
| 10692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10693 | *) ac_try_echo=$ac_try;; |
| 10694 | esac |
| 10695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10696 | (eval "$ac_compile") 2>conftest.er1 |
| 10697 | ac_status=$? |
| 10698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10699 | rm -f conftest.er1 |
| 10700 | cat conftest.err >&5 |
| 10701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10702 | (exit $ac_status); } && { |
| 10703 | test -z "$ac_c_werror_flag" || |
| 10704 | test ! -s conftest.err |
| 10705 | } && test -s conftest.$ac_objext; then |
| 10706 | ac_cv_type__Bool=yes |
| 10707 | else |
| 10708 | echo "$as_me: failed program was:" >&5 |
| 10709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10710 | |
| 10711 | ac_cv_type__Bool=no |
| 10712 | fi |
| 10713 | |
| 10714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10715 | fi |
| 10716 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 10717 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 10718 | |
| 10719 | # The cast to long int works around a bug in the HP C Compiler |
| 10720 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10721 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10722 | # This bug is HP SR number 8606223364. |
| 10723 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 10724 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
| 10725 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
| 10726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10727 | else |
| 10728 | if test "$cross_compiling" = yes; then |
| 10729 | # Depending upon the size, compute the lo and hi bounds. |
| 10730 | cat >conftest.$ac_ext <<_ACEOF |
| 10731 | /* confdefs.h. */ |
| 10732 | _ACEOF |
| 10733 | cat confdefs.h >>conftest.$ac_ext |
| 10734 | cat >>conftest.$ac_ext <<_ACEOF |
| 10735 | /* end confdefs.h. */ |
| 10736 | $ac_includes_default |
| 10737 | typedef _Bool ac__type_sizeof_; |
| 10738 | int |
| 10739 | main () |
| 10740 | { |
| 10741 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 10742 | test_array [0] = 0 |
| 10743 | |
| 10744 | ; |
| 10745 | return 0; |
| 10746 | } |
| 10747 | _ACEOF |
| 10748 | rm -f conftest.$ac_objext |
| 10749 | if { (ac_try="$ac_compile" |
| 10750 | case "(($ac_try" in |
| 10751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10752 | *) ac_try_echo=$ac_try;; |
| 10753 | esac |
| 10754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10755 | (eval "$ac_compile") 2>conftest.er1 |
| 10756 | ac_status=$? |
| 10757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10758 | rm -f conftest.er1 |
| 10759 | cat conftest.err >&5 |
| 10760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10761 | (exit $ac_status); } && { |
| 10762 | test -z "$ac_c_werror_flag" || |
| 10763 | test ! -s conftest.err |
| 10764 | } && test -s conftest.$ac_objext; then |
| 10765 | ac_lo=0 ac_mid=0 |
| 10766 | while :; do |
| 10767 | cat >conftest.$ac_ext <<_ACEOF |
| 10768 | /* confdefs.h. */ |
| 10769 | _ACEOF |
| 10770 | cat confdefs.h >>conftest.$ac_ext |
| 10771 | cat >>conftest.$ac_ext <<_ACEOF |
| 10772 | /* end confdefs.h. */ |
| 10773 | $ac_includes_default |
| 10774 | typedef _Bool ac__type_sizeof_; |
| 10775 | int |
| 10776 | main () |
| 10777 | { |
| 10778 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 10779 | test_array [0] = 0 |
| 10780 | |
| 10781 | ; |
| 10782 | return 0; |
| 10783 | } |
| 10784 | _ACEOF |
| 10785 | rm -f conftest.$ac_objext |
| 10786 | if { (ac_try="$ac_compile" |
| 10787 | case "(($ac_try" in |
| 10788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10789 | *) ac_try_echo=$ac_try;; |
| 10790 | esac |
| 10791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10792 | (eval "$ac_compile") 2>conftest.er1 |
| 10793 | ac_status=$? |
| 10794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10795 | rm -f conftest.er1 |
| 10796 | cat conftest.err >&5 |
| 10797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10798 | (exit $ac_status); } && { |
| 10799 | test -z "$ac_c_werror_flag" || |
| 10800 | test ! -s conftest.err |
| 10801 | } && test -s conftest.$ac_objext; then |
| 10802 | ac_hi=$ac_mid; break |
| 10803 | else |
| 10804 | echo "$as_me: failed program was:" >&5 |
| 10805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10806 | |
| 10807 | ac_lo=`expr $ac_mid + 1` |
| 10808 | if test $ac_lo -le $ac_mid; then |
| 10809 | ac_lo= ac_hi= |
| 10810 | break |
| 10811 | fi |
| 10812 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10813 | fi |
| 10814 | |
| 10815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10816 | done |
| 10817 | else |
| 10818 | echo "$as_me: failed program was:" >&5 |
| 10819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10820 | |
| 10821 | cat >conftest.$ac_ext <<_ACEOF |
| 10822 | /* confdefs.h. */ |
| 10823 | _ACEOF |
| 10824 | cat confdefs.h >>conftest.$ac_ext |
| 10825 | cat >>conftest.$ac_ext <<_ACEOF |
| 10826 | /* end confdefs.h. */ |
| 10827 | $ac_includes_default |
| 10828 | typedef _Bool ac__type_sizeof_; |
| 10829 | int |
| 10830 | main () |
| 10831 | { |
| 10832 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 10833 | test_array [0] = 0 |
| 10834 | |
| 10835 | ; |
| 10836 | return 0; |
| 10837 | } |
| 10838 | _ACEOF |
| 10839 | rm -f conftest.$ac_objext |
| 10840 | if { (ac_try="$ac_compile" |
| 10841 | case "(($ac_try" in |
| 10842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10843 | *) ac_try_echo=$ac_try;; |
| 10844 | esac |
| 10845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10846 | (eval "$ac_compile") 2>conftest.er1 |
| 10847 | ac_status=$? |
| 10848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10849 | rm -f conftest.er1 |
| 10850 | cat conftest.err >&5 |
| 10851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10852 | (exit $ac_status); } && { |
| 10853 | test -z "$ac_c_werror_flag" || |
| 10854 | test ! -s conftest.err |
| 10855 | } && test -s conftest.$ac_objext; then |
| 10856 | ac_hi=-1 ac_mid=-1 |
| 10857 | while :; do |
| 10858 | cat >conftest.$ac_ext <<_ACEOF |
| 10859 | /* confdefs.h. */ |
| 10860 | _ACEOF |
| 10861 | cat confdefs.h >>conftest.$ac_ext |
| 10862 | cat >>conftest.$ac_ext <<_ACEOF |
| 10863 | /* end confdefs.h. */ |
| 10864 | $ac_includes_default |
| 10865 | typedef _Bool ac__type_sizeof_; |
| 10866 | int |
| 10867 | main () |
| 10868 | { |
| 10869 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 10870 | test_array [0] = 0 |
| 10871 | |
| 10872 | ; |
| 10873 | return 0; |
| 10874 | } |
| 10875 | _ACEOF |
| 10876 | rm -f conftest.$ac_objext |
| 10877 | if { (ac_try="$ac_compile" |
| 10878 | case "(($ac_try" in |
| 10879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10880 | *) ac_try_echo=$ac_try;; |
| 10881 | esac |
| 10882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10883 | (eval "$ac_compile") 2>conftest.er1 |
| 10884 | ac_status=$? |
| 10885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10886 | rm -f conftest.er1 |
| 10887 | cat conftest.err >&5 |
| 10888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10889 | (exit $ac_status); } && { |
| 10890 | test -z "$ac_c_werror_flag" || |
| 10891 | test ! -s conftest.err |
| 10892 | } && test -s conftest.$ac_objext; then |
| 10893 | ac_lo=$ac_mid; break |
| 10894 | else |
| 10895 | echo "$as_me: failed program was:" >&5 |
| 10896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10897 | |
| 10898 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10899 | if test $ac_mid -le $ac_hi; then |
| 10900 | ac_lo= ac_hi= |
| 10901 | break |
| 10902 | fi |
| 10903 | ac_mid=`expr 2 '*' $ac_mid` |
| 10904 | fi |
| 10905 | |
| 10906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10907 | done |
| 10908 | else |
| 10909 | echo "$as_me: failed program was:" >&5 |
| 10910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10911 | |
| 10912 | ac_lo= ac_hi= |
| 10913 | fi |
| 10914 | |
| 10915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10916 | fi |
| 10917 | |
| 10918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10919 | # Binary search between lo and hi bounds. |
| 10920 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10921 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10922 | cat >conftest.$ac_ext <<_ACEOF |
| 10923 | /* confdefs.h. */ |
| 10924 | _ACEOF |
| 10925 | cat confdefs.h >>conftest.$ac_ext |
| 10926 | cat >>conftest.$ac_ext <<_ACEOF |
| 10927 | /* end confdefs.h. */ |
| 10928 | $ac_includes_default |
| 10929 | typedef _Bool ac__type_sizeof_; |
| 10930 | int |
| 10931 | main () |
| 10932 | { |
| 10933 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 10934 | test_array [0] = 0 |
| 10935 | |
| 10936 | ; |
| 10937 | return 0; |
| 10938 | } |
| 10939 | _ACEOF |
| 10940 | rm -f conftest.$ac_objext |
| 10941 | if { (ac_try="$ac_compile" |
| 10942 | case "(($ac_try" in |
| 10943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10944 | *) ac_try_echo=$ac_try;; |
| 10945 | esac |
| 10946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10947 | (eval "$ac_compile") 2>conftest.er1 |
| 10948 | ac_status=$? |
| 10949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10950 | rm -f conftest.er1 |
| 10951 | cat conftest.err >&5 |
| 10952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10953 | (exit $ac_status); } && { |
| 10954 | test -z "$ac_c_werror_flag" || |
| 10955 | test ! -s conftest.err |
| 10956 | } && test -s conftest.$ac_objext; then |
| 10957 | ac_hi=$ac_mid |
| 10958 | else |
| 10959 | echo "$as_me: failed program was:" >&5 |
| 10960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10961 | |
| 10962 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 10963 | fi |
| 10964 | |
| 10965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10966 | done |
| 10967 | case $ac_lo in |
| 10968 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
| 10969 | '') if test "$ac_cv_type__Bool" = yes; then |
| 10970 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
| 10971 | See \`config.log' for more details." >&5 |
| 10972 | echo "$as_me: error: cannot compute sizeof (_Bool) |
| 10973 | See \`config.log' for more details." >&2;} |
| 10974 | { (exit 77); exit 77; }; } |
| 10975 | else |
| 10976 | ac_cv_sizeof__Bool=0 |
| 10977 | fi ;; |
| 10978 | esac |
| 10979 | else |
| 10980 | cat >conftest.$ac_ext <<_ACEOF |
| 10981 | /* confdefs.h. */ |
| 10982 | _ACEOF |
| 10983 | cat confdefs.h >>conftest.$ac_ext |
| 10984 | cat >>conftest.$ac_ext <<_ACEOF |
| 10985 | /* end confdefs.h. */ |
| 10986 | $ac_includes_default |
| 10987 | typedef _Bool ac__type_sizeof_; |
| 10988 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10989 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10990 | #include <stdio.h> |
| 10991 | #include <stdlib.h> |
| 10992 | int |
| 10993 | main () |
| 10994 | { |
| 10995 | |
| 10996 | FILE *f = fopen ("conftest.val", "w"); |
| 10997 | if (! f) |
| 10998 | return 1; |
| 10999 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 11000 | { |
| 11001 | long int i = longval (); |
| 11002 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11003 | return 1; |
| 11004 | fprintf (f, "%ld\n", i); |
| 11005 | } |
| 11006 | else |
| 11007 | { |
| 11008 | unsigned long int i = ulongval (); |
| 11009 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11010 | return 1; |
| 11011 | fprintf (f, "%lu\n", i); |
| 11012 | } |
| 11013 | return ferror (f) || fclose (f) != 0; |
| 11014 | |
| 11015 | ; |
| 11016 | return 0; |
| 11017 | } |
| 11018 | _ACEOF |
| 11019 | rm -f conftest$ac_exeext |
| 11020 | if { (ac_try="$ac_link" |
| 11021 | case "(($ac_try" in |
| 11022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11023 | *) ac_try_echo=$ac_try;; |
| 11024 | esac |
| 11025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11026 | (eval "$ac_link") 2>&5 |
| 11027 | ac_status=$? |
| 11028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11029 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11030 | { (case "(($ac_try" in |
| 11031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11032 | *) ac_try_echo=$ac_try;; |
| 11033 | esac |
| 11034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11035 | (eval "$ac_try") 2>&5 |
| 11036 | ac_status=$? |
| 11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11038 | (exit $ac_status); }; }; then |
| 11039 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 11040 | else |
| 11041 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11042 | echo "$as_me: failed program was:" >&5 |
| 11043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11044 | |
| 11045 | ( exit $ac_status ) |
| 11046 | if test "$ac_cv_type__Bool" = yes; then |
| 11047 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
| 11048 | See \`config.log' for more details." >&5 |
| 11049 | echo "$as_me: error: cannot compute sizeof (_Bool) |
| 11050 | See \`config.log' for more details." >&2;} |
| 11051 | { (exit 77); exit 77; }; } |
| 11052 | else |
| 11053 | ac_cv_sizeof__Bool=0 |
| 11054 | fi |
| 11055 | fi |
| 11056 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11057 | fi |
| 11058 | rm -f conftest.val |
| 11059 | fi |
| 11060 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 11061 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
| 11062 | |
| 11063 | |
| 11064 | |
| 11065 | cat >>confdefs.h <<_ACEOF |
| 11066 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 11067 | _ACEOF |
| 11068 | |
| 11069 | |
| 11070 | fi |
| 11071 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11072 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 11073 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 11074 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 11075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11076 | else |
| 11077 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11078 | /* confdefs.h. */ |
| 11079 | _ACEOF |
| 11080 | cat confdefs.h >>conftest.$ac_ext |
| 11081 | cat >>conftest.$ac_ext <<_ACEOF |
| 11082 | /* end confdefs.h. */ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11083 | #ifdef HAVE_STDINT_H |
| 11084 | #include <stdint.h> |
| 11085 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11086 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11087 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11088 | int |
| 11089 | main () |
| 11090 | { |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11091 | if ((ac__type_new_ *) 0) |
| 11092 | return 0; |
| 11093 | if (sizeof (ac__type_new_)) |
| 11094 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11095 | ; |
| 11096 | return 0; |
| 11097 | } |
| 11098 | _ACEOF |
| 11099 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11100 | if { (ac_try="$ac_compile" |
| 11101 | case "(($ac_try" in |
| 11102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11103 | *) ac_try_echo=$ac_try;; |
| 11104 | esac |
| 11105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11106 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11107 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11109 | rm -f conftest.er1 |
| 11110 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11112 | (exit $ac_status); } && { |
| 11113 | test -z "$ac_c_werror_flag" || |
| 11114 | test ! -s conftest.err |
| 11115 | } && test -s conftest.$ac_objext; then |
| 11116 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11117 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11118 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11120 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11121 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11122 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11123 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11125 | fi |
| 11126 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 11127 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 11128 | if test $ac_cv_type_uintptr_t = yes; then |
| 11129 | |
| 11130 | cat >>confdefs.h <<_ACEOF |
| 11131 | #define HAVE_UINTPTR_T 1 |
| 11132 | _ACEOF |
| 11133 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11134 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 11135 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11136 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 11137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11138 | else |
| 11139 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11140 | /* confdefs.h. */ |
| 11141 | _ACEOF |
| 11142 | cat confdefs.h >>conftest.$ac_ext |
| 11143 | cat >>conftest.$ac_ext <<_ACEOF |
| 11144 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11145 | $ac_includes_default |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11146 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11147 | int |
| 11148 | main () |
| 11149 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11150 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11151 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11152 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11153 | return 0; |
| 11154 | ; |
| 11155 | return 0; |
| 11156 | } |
| 11157 | _ACEOF |
| 11158 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11159 | if { (ac_try="$ac_compile" |
| 11160 | case "(($ac_try" in |
| 11161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11162 | *) ac_try_echo=$ac_try;; |
| 11163 | esac |
| 11164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11165 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11166 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11168 | rm -f conftest.er1 |
| 11169 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11171 | (exit $ac_status); } && { |
| 11172 | test -z "$ac_c_werror_flag" || |
| 11173 | test ! -s conftest.err |
| 11174 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11175 | ac_cv_type_uintptr_t=yes |
| 11176 | else |
| 11177 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11179 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11180 | ac_cv_type_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11181 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11182 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11183 | 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] | 11184 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11185 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 11186 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11188 | # The cast to long int works around a bug in the HP C Compiler |
| 11189 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11190 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11191 | # This bug is HP SR number 8606223364. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11192 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 11193 | 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] | 11194 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 11195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | if test "$cross_compiling" = yes; then |
| 11198 | # Depending upon the size, compute the lo and hi bounds. |
| 11199 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11200 | /* confdefs.h. */ |
| 11201 | _ACEOF |
| 11202 | cat confdefs.h >>conftest.$ac_ext |
| 11203 | cat >>conftest.$ac_ext <<_ACEOF |
| 11204 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11205 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11206 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11207 | int |
| 11208 | main () |
| 11209 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11210 | 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] | 11211 | test_array [0] = 0 |
| 11212 | |
| 11213 | ; |
| 11214 | return 0; |
| 11215 | } |
| 11216 | _ACEOF |
| 11217 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11218 | if { (ac_try="$ac_compile" |
| 11219 | case "(($ac_try" in |
| 11220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11221 | *) ac_try_echo=$ac_try;; |
| 11222 | esac |
| 11223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11224 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11225 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11227 | rm -f conftest.er1 |
| 11228 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11230 | (exit $ac_status); } && { |
| 11231 | test -z "$ac_c_werror_flag" || |
| 11232 | test ! -s conftest.err |
| 11233 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11234 | ac_lo=0 ac_mid=0 |
| 11235 | while :; do |
| 11236 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11237 | /* confdefs.h. */ |
| 11238 | _ACEOF |
| 11239 | cat confdefs.h >>conftest.$ac_ext |
| 11240 | cat >>conftest.$ac_ext <<_ACEOF |
| 11241 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11242 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11243 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11244 | int |
| 11245 | main () |
| 11246 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11247 | 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] | 11248 | test_array [0] = 0 |
| 11249 | |
| 11250 | ; |
| 11251 | return 0; |
| 11252 | } |
| 11253 | _ACEOF |
| 11254 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11255 | if { (ac_try="$ac_compile" |
| 11256 | case "(($ac_try" in |
| 11257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11258 | *) ac_try_echo=$ac_try;; |
| 11259 | esac |
| 11260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11261 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11262 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11264 | rm -f conftest.er1 |
| 11265 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11267 | (exit $ac_status); } && { |
| 11268 | test -z "$ac_c_werror_flag" || |
| 11269 | test ! -s conftest.err |
| 11270 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11271 | ac_hi=$ac_mid; break |
| 11272 | else |
| 11273 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11275 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11276 | ac_lo=`expr $ac_mid + 1` |
| 11277 | if test $ac_lo -le $ac_mid; then |
| 11278 | ac_lo= ac_hi= |
| 11279 | break |
| 11280 | fi |
| 11281 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11282 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11283 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11284 | 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] | 11285 | done |
| 11286 | else |
| 11287 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11289 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11290 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11291 | /* confdefs.h. */ |
| 11292 | _ACEOF |
| 11293 | cat confdefs.h >>conftest.$ac_ext |
| 11294 | cat >>conftest.$ac_ext <<_ACEOF |
| 11295 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11296 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11297 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11298 | int |
| 11299 | main () |
| 11300 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11301 | 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] | 11302 | test_array [0] = 0 |
| 11303 | |
| 11304 | ; |
| 11305 | return 0; |
| 11306 | } |
| 11307 | _ACEOF |
| 11308 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11309 | if { (ac_try="$ac_compile" |
| 11310 | case "(($ac_try" in |
| 11311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11312 | *) ac_try_echo=$ac_try;; |
| 11313 | esac |
| 11314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11315 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11316 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11318 | rm -f conftest.er1 |
| 11319 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11321 | (exit $ac_status); } && { |
| 11322 | test -z "$ac_c_werror_flag" || |
| 11323 | test ! -s conftest.err |
| 11324 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11325 | ac_hi=-1 ac_mid=-1 |
| 11326 | while :; do |
| 11327 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11328 | /* confdefs.h. */ |
| 11329 | _ACEOF |
| 11330 | cat confdefs.h >>conftest.$ac_ext |
| 11331 | cat >>conftest.$ac_ext <<_ACEOF |
| 11332 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11333 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11334 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11335 | int |
| 11336 | main () |
| 11337 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11338 | 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] | 11339 | test_array [0] = 0 |
| 11340 | |
| 11341 | ; |
| 11342 | return 0; |
| 11343 | } |
| 11344 | _ACEOF |
| 11345 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11346 | if { (ac_try="$ac_compile" |
| 11347 | case "(($ac_try" in |
| 11348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11349 | *) ac_try_echo=$ac_try;; |
| 11350 | esac |
| 11351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11352 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11353 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11355 | rm -f conftest.er1 |
| 11356 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11358 | (exit $ac_status); } && { |
| 11359 | test -z "$ac_c_werror_flag" || |
| 11360 | test ! -s conftest.err |
| 11361 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11362 | ac_lo=$ac_mid; break |
| 11363 | else |
| 11364 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11366 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11367 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11368 | if test $ac_mid -le $ac_hi; then |
| 11369 | ac_lo= ac_hi= |
| 11370 | break |
| 11371 | fi |
| 11372 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11373 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11374 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11375 | 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] | 11376 | done |
| 11377 | else |
| 11378 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11380 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11381 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11382 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11383 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11384 | 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] | 11385 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11386 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11387 | 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] | 11388 | # Binary search between lo and hi bounds. |
| 11389 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11390 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11391 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11392 | /* confdefs.h. */ |
| 11393 | _ACEOF |
| 11394 | cat confdefs.h >>conftest.$ac_ext |
| 11395 | cat >>conftest.$ac_ext <<_ACEOF |
| 11396 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11397 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11398 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11399 | int |
| 11400 | main () |
| 11401 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11402 | 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] | 11403 | test_array [0] = 0 |
| 11404 | |
| 11405 | ; |
| 11406 | return 0; |
| 11407 | } |
| 11408 | _ACEOF |
| 11409 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11410 | if { (ac_try="$ac_compile" |
| 11411 | case "(($ac_try" in |
| 11412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11413 | *) ac_try_echo=$ac_try;; |
| 11414 | esac |
| 11415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11416 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11417 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11419 | rm -f conftest.er1 |
| 11420 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11422 | (exit $ac_status); } && { |
| 11423 | test -z "$ac_c_werror_flag" || |
| 11424 | test ! -s conftest.err |
| 11425 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11426 | ac_hi=$ac_mid |
| 11427 | else |
| 11428 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11430 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11431 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11432 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11433 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11434 | 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] | 11435 | done |
| 11436 | case $ac_lo in |
| 11437 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11438 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
| 11439 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11440 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11441 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11442 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11443 | { (exit 77); exit 77; }; } |
| 11444 | else |
| 11445 | ac_cv_sizeof_uintptr_t=0 |
| 11446 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11447 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11448 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11449 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11450 | /* confdefs.h. */ |
| 11451 | _ACEOF |
| 11452 | cat confdefs.h >>conftest.$ac_ext |
| 11453 | cat >>conftest.$ac_ext <<_ACEOF |
| 11454 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11455 | $ac_includes_default |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11456 | typedef uintptr_t ac__type_sizeof_; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11457 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11458 | 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] | 11459 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11460 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11461 | int |
| 11462 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11463 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11464 | |
| 11465 | FILE *f = fopen ("conftest.val", "w"); |
| 11466 | if (! f) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11467 | return 1; |
| 11468 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11469 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11470 | long int i = longval (); |
| 11471 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11472 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11473 | fprintf (f, "%ld\n", i); |
| 11474 | } |
| 11475 | else |
| 11476 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11477 | unsigned long int i = ulongval (); |
| 11478 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 11479 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11480 | fprintf (f, "%lu\n", i); |
| 11481 | } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11482 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11483 | |
| 11484 | ; |
| 11485 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11486 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11487 | _ACEOF |
| 11488 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11489 | if { (ac_try="$ac_link" |
| 11490 | case "(($ac_try" in |
| 11491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11492 | *) ac_try_echo=$ac_try;; |
| 11493 | esac |
| 11494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11495 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11496 | ac_status=$? |
| 11497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11498 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11499 | { (case "(($ac_try" in |
| 11500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11501 | *) ac_try_echo=$ac_try;; |
| 11502 | esac |
| 11503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11504 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11505 | ac_status=$? |
| 11506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11507 | (exit $ac_status); }; }; then |
| 11508 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11510 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11511 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11514 | ( exit $ac_status ) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11515 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 11516 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11517 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11518 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11519 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11520 | { (exit 77); exit 77; }; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11521 | else |
| 11522 | ac_cv_sizeof_uintptr_t=0 |
| 11523 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11524 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11525 | 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] | 11526 | fi |
| 11527 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11528 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11529 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 11530 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11531 | |
| 11532 | |
| 11533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11534 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11535 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11536 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11537 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11538 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 11539 | fi |
| 11540 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11541 | |
| 11542 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11543 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11544 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 11545 | 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] | 11546 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 11547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11548 | else |
| 11549 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11550 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11551 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11552 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11553 | /* confdefs.h. */ |
| 11554 | _ACEOF |
| 11555 | cat confdefs.h >>conftest.$ac_ext |
| 11556 | cat >>conftest.$ac_ext <<_ACEOF |
| 11557 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11558 | #include <stdio.h> |
| 11559 | #include <sys/types.h> |
| 11560 | main() |
| 11561 | { |
| 11562 | FILE *f=fopen("conftestval", "w"); |
| 11563 | if (!f) exit(1); |
| 11564 | fprintf(f, "%d\n", sizeof(off_t)); |
| 11565 | exit(0); |
| 11566 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11567 | _ACEOF |
| 11568 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11569 | if { (ac_try="$ac_link" |
| 11570 | case "(($ac_try" in |
| 11571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11572 | *) ac_try_echo=$ac_try;; |
| 11573 | esac |
| 11574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11575 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11576 | ac_status=$? |
| 11577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11578 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11579 | { (case "(($ac_try" in |
| 11580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11581 | *) ac_try_echo=$ac_try;; |
| 11582 | esac |
| 11583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11584 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11585 | ac_status=$? |
| 11586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11587 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11588 | ac_cv_sizeof_off_t=`cat conftestval` |
| 11589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11590 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11591 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11593 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11594 | ( exit $ac_status ) |
| 11595 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11596 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11597 | 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] | 11598 | fi |
| 11599 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11600 | |
| 11601 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11602 | fi |
| 11603 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11604 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 11605 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11606 | |
| 11607 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11608 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11609 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11610 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11611 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11612 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 11613 | 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] | 11614 | if test "$have_long_long" = yes -a \ |
| 11615 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 11616 | "$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] | 11617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11618 | cat >>confdefs.h <<\_ACEOF |
| 11619 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 11620 | _ACEOF |
| 11621 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11622 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11623 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11624 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11625 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11626 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11627 | fi |
| 11628 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11629 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11630 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 11631 | 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] | 11632 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 11633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11634 | else |
| 11635 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11636 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11637 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11638 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11639 | /* confdefs.h. */ |
| 11640 | _ACEOF |
| 11641 | cat confdefs.h >>conftest.$ac_ext |
| 11642 | cat >>conftest.$ac_ext <<_ACEOF |
| 11643 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11644 | #include <stdio.h> |
| 11645 | #include <time.h> |
| 11646 | main() |
| 11647 | { |
| 11648 | FILE *f=fopen("conftestval", "w"); |
| 11649 | if (!f) exit(1); |
| 11650 | fprintf(f, "%d\n", sizeof(time_t)); |
| 11651 | exit(0); |
| 11652 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11653 | _ACEOF |
| 11654 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11655 | if { (ac_try="$ac_link" |
| 11656 | case "(($ac_try" in |
| 11657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11658 | *) ac_try_echo=$ac_try;; |
| 11659 | esac |
| 11660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11661 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11662 | ac_status=$? |
| 11663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11664 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11665 | { (case "(($ac_try" in |
| 11666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11667 | *) ac_try_echo=$ac_try;; |
| 11668 | esac |
| 11669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11670 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11671 | ac_status=$? |
| 11672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11673 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11674 | ac_cv_sizeof_time_t=`cat conftestval` |
| 11675 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11676 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11677 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11679 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11680 | ( exit $ac_status ) |
| 11681 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11682 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11683 | 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] | 11684 | fi |
| 11685 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11686 | |
| 11687 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11688 | fi |
| 11689 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11690 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 11691 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11692 | |
| 11693 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11694 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11695 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 11696 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11697 | |
| 11698 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11699 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 11700 | ac_save_cc="$CC" |
| 11701 | if test "$ac_cv_kpthread" = "yes" |
| 11702 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11703 | elif test "$ac_cv_kthread" = "yes" |
| 11704 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11705 | elif test "$ac_cv_pthread" = "yes" |
| 11706 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 11707 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11708 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 11709 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11710 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11711 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11712 | /* confdefs.h. */ |
| 11713 | _ACEOF |
| 11714 | cat confdefs.h >>conftest.$ac_ext |
| 11715 | cat >>conftest.$ac_ext <<_ACEOF |
| 11716 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11717 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11718 | int |
| 11719 | main () |
| 11720 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 11721 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11722 | ; |
| 11723 | return 0; |
| 11724 | } |
| 11725 | _ACEOF |
| 11726 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11727 | if { (ac_try="$ac_compile" |
| 11728 | case "(($ac_try" in |
| 11729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11730 | *) ac_try_echo=$ac_try;; |
| 11731 | esac |
| 11732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11733 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11734 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11736 | rm -f conftest.er1 |
| 11737 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 11739 | (exit $ac_status); } && { |
| 11740 | test -z "$ac_c_werror_flag" || |
| 11741 | test ! -s conftest.err |
| 11742 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11743 | have_pthread_t=yes |
| 11744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11745 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11747 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11748 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11749 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11750 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 11751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11752 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 11753 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11754 | if test "$have_pthread_t" = yes ; then |
| 11755 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11756 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 11757 | 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] | 11758 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 11759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11760 | else |
| 11761 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11762 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11763 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11764 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11765 | /* confdefs.h. */ |
| 11766 | _ACEOF |
| 11767 | cat confdefs.h >>conftest.$ac_ext |
| 11768 | cat >>conftest.$ac_ext <<_ACEOF |
| 11769 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11770 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11771 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11772 | main() |
| 11773 | { |
| 11774 | FILE *f=fopen("conftestval", "w"); |
| 11775 | if (!f) exit(1); |
| 11776 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 11777 | exit(0); |
| 11778 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11779 | _ACEOF |
| 11780 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11781 | if { (ac_try="$ac_link" |
| 11782 | case "(($ac_try" in |
| 11783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11784 | *) ac_try_echo=$ac_try;; |
| 11785 | esac |
| 11786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11787 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11788 | ac_status=$? |
| 11789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11790 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 11791 | { (case "(($ac_try" in |
| 11792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11793 | *) ac_try_echo=$ac_try;; |
| 11794 | esac |
| 11795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11796 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11797 | ac_status=$? |
| 11798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11799 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11800 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 11801 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11802 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11803 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11805 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11806 | ( exit $ac_status ) |
| 11807 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11808 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11809 | 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] | 11810 | fi |
| 11811 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11812 | |
| 11813 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11814 | fi |
| 11815 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11816 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 11817 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11818 | |
| 11819 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11820 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11821 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11822 | |
| 11823 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 11824 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11825 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11826 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 11827 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; } |
| 11828 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11829 | if test "${enable_toolbox_glue+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11830 | enableval=$enable_toolbox_glue; |
| 11831 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11832 | |
| 11833 | |
| 11834 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11835 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11836 | case $ac_sys_system/$ac_sys_release in |
| 11837 | Darwin/*) |
| 11838 | enable_toolbox_glue="yes";; |
| 11839 | *) |
| 11840 | enable_toolbox_glue="no";; |
| 11841 | esac |
| 11842 | fi |
| 11843 | case "$enable_toolbox_glue" in |
| 11844 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11845 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 11846 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11847 | |
| 11848 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11849 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11850 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11851 | |
| 11852 | ;; |
| 11853 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11854 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 11855 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11856 | ;; |
| 11857 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11858 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 11859 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11860 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11861 | |
| 11862 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 11863 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 11864 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 11865 | ;; |
| 11866 | Darwin/*) |
| 11867 | OTHER_LIBTOOL_OPT="" |
| 11868 | ;; |
| 11869 | esac |
| 11870 | |
| 11871 | |
| 11872 | case $ac_sys_system/$ac_sys_release in |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 11873 | Darwin/[01567]\..*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11874 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 11875 | if test "${enable_universalsdk}"; then |
| 11876 | : |
| 11877 | else |
| 11878 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
| 11879 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 11880 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 11881 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 11882 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 11883 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 11884 | if test ${gcc_version} '<' 4.0 |
| 11885 | then |
| 11886 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 11887 | else |
| 11888 | LIBTOOL_CRUFT="" |
| 11889 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 11890 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 11891 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11892 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11893 | esac |
| 11894 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11895 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 11896 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11897 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11898 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11899 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11900 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11901 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11902 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11903 | cat >>confdefs.h <<\_ACEOF |
| 11904 | #define WITH_NEXT_FRAMEWORK 1 |
| 11905 | _ACEOF |
| 11906 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11907 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 11908 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11909 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11910 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11911 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11912 | fi |
| 11913 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11914 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 11915 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11916 | case $ac_sys_system/$ac_sys_release in |
| 11917 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11918 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11919 | cat >>confdefs.h <<\_ACEOF |
| 11920 | #define WITH_DYLD 1 |
| 11921 | _ACEOF |
| 11922 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11923 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 11924 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11925 | ;; |
| 11926 | *) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11927 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11928 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11929 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 11930 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11931 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11932 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11933 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11934 | |
| 11935 | |
| 11936 | |
| 11937 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11938 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 11939 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11940 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 11941 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11942 | if test -z "$SO" |
| 11943 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11944 | case $ac_sys_system in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11945 | hp*|HP*) |
| 11946 | case `uname -m` in |
| 11947 | ia64) SO=.so;; |
| 11948 | *) SO=.sl;; |
| 11949 | esac |
| 11950 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 11951 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 11952 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11953 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 11954 | else |
| 11955 | # this might also be a termcap variable, see #610332 |
| 11956 | echo |
| 11957 | echo '=====================================================================' |
| 11958 | echo '+ +' |
| 11959 | echo '+ WARNING: You have set SO in your environment. +' |
| 11960 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 11961 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 11962 | echo '+ +' |
| 11963 | echo '=====================================================================' |
| 11964 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11965 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11966 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 11967 | echo "${ECHO_T}$SO" >&6; } |
| 11968 | |
| 11969 | cat >>confdefs.h <<_ACEOF |
| 11970 | #define SHLIB_EXT "$SO" |
| 11971 | _ACEOF |
| 11972 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11973 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 11974 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11975 | # (Shared libraries in this instance are shared modules to be loaded into |
| 11976 | # Python, as opposed to building Python itself as a shared library.) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 11977 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 11978 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11979 | if test -z "$LDSHARED" |
| 11980 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11981 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11982 | AIX*) |
| 11983 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 11984 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11985 | ;; |
| 11986 | BeOS*) |
| 11987 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 11988 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11989 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 11990 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 11991 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11992 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 11993 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 11994 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 11995 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 11996 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11997 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11998 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 11999 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 12000 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 12001 | if test "$enable_framework" ; then |
| 12002 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12003 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 12004 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 12005 | else |
| 12006 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 12007 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 12008 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12009 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12010 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 12011 | if test "$enable_framework" ; then |
| 12012 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12013 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 12014 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12015 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 12016 | # No framework, use the Python app as bundle-loader |
| 12017 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 12018 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12019 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12020 | Darwin/*) |
| 12021 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 12022 | # This allows an extension to be used in any Python |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 12023 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12024 | if test ${cur_target} '>' 10.2; then |
| 12025 | cur_target=10.3 |
| 12026 | fi |
Jack Jansen | c110f86 | 2005-01-07 10:49:32 +0000 | [diff] [blame] | 12027 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12028 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 12029 | if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12030 | then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12031 | if test "${enable_universalsdk}"; then |
| 12032 | LDFLAGS="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
| 12033 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12034 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 12035 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12036 | else |
| 12037 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 12038 | if test "$enable_framework" ; then |
| 12039 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12040 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 12041 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 12042 | else |
| 12043 | # No framework, use the Python app as bundle-loader |
| 12044 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 12045 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 12046 | fi |
| 12047 | fi |
| 12048 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 12049 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 12050 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 12051 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 12052 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 12053 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 12054 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 12055 | else |
| 12056 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 12057 | fi;; |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 12058 | OpenBSD*) |
| 12059 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 12060 | then |
| 12061 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 12062 | else |
| 12063 | case `uname -r` in |
| 12064 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 12065 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 12066 | ;; |
| 12067 | *) |
| 12068 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 12069 | ;; |
| 12070 | esac |
| 12071 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12072 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 12073 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 12074 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 12075 | then LDSHARED='$(CC) -shared' |
| 12076 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 12077 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 12078 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12079 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 12080 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12081 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12082 | *) LDSHARED="ld";; |
| 12083 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12084 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12085 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 12086 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 12087 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12088 | # 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] | 12089 | # library (module) -- this is only needed for a few systems |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12090 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 12091 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12092 | if test -z "$CCSHARED" |
| 12093 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 12094 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 12095 | SunOS*) if test "$GCC" = yes; |
| 12096 | then CCSHARED="-fPIC"; |
Martin v. Löwis | d5845ec | 2005-12-30 12:31:38 +0000 | [diff] [blame] | 12097 | else CCSHARED="-xcode=pic32"; |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 12098 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 12099 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 12100 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 12101 | else CCSHARED="+z"; |
| 12102 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12103 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 12104 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12105 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 12106 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 12107 | if test "$GCC" = "yes" |
| 12108 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12109 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 12110 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 12111 | SCO_SV*) |
| 12112 | if test "$GCC" = "yes" |
| 12113 | then CCSHARED="-fPIC" |
| 12114 | else CCSHARED="-Kpic -belf" |
| 12115 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 12116 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 12117 | IRIX*/6*) case $CC in |
| 12118 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 12119 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 12120 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12121 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12122 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12123 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12124 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 12125 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12126 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12127 | # the python executable -- this is only needed for a few systems |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12128 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 12129 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12130 | if test -z "$LINKFORSHARED" |
| 12131 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 12132 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 12133 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 12134 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12135 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 12136 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 12137 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12138 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 12139 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12140 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 12141 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 12142 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12143 | # not used by the core itself but which needs to be in the core so |
| 12144 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 12145 | # -prebind is no longer used, because it actually seems to give a |
| 12146 | # slowdown in stead of a speedup, maybe due to the large number of |
| 12147 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 12148 | |
| 12149 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12150 | if test "$enable_framework" |
| 12151 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 12152 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12153 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 12154 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 12155 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 12156 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 12157 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 12158 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 12159 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 12160 | then |
| 12161 | LINKFORSHARED="-Wl,--export-dynamic" |
| 12162 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 12163 | SunOS/5*) case $CC in |
| 12164 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 12165 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 12166 | then |
| 12167 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 12168 | fi;; |
| 12169 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 12170 | CYGWIN*) |
| 12171 | if test $enable_shared = "no" |
| 12172 | then |
| 12173 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 12174 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12175 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12176 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12177 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 12178 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 12179 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12180 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12181 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 12182 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 12183 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 12184 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 12185 | case $ac_sys_system in |
| 12186 | CYGWIN*) |
| 12187 | # Cygwin needs CCSHARED when building extension DLLs |
| 12188 | # but not when building the interpreter DLL. |
| 12189 | CFLAGSFORSHARED='';; |
| 12190 | *) |
| 12191 | CFLAGSFORSHARED='$(CCSHARED)' |
| 12192 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 12193 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12194 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 12195 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 12196 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12197 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 12198 | # library (with --enable-shared). |
| 12199 | # 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] | 12200 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 12201 | # if it is not required, since it creates a dependency of the shared library |
| 12202 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 12203 | # don't need to link LIBS explicitly. The default should be only changed |
| 12204 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12205 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12206 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 12207 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12208 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12209 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 12210 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12211 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12212 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 12213 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12214 | |
| 12215 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12216 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12217 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12218 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 12219 | 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] | 12220 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 12221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12222 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12223 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12224 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12225 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12226 | /* confdefs.h. */ |
| 12227 | _ACEOF |
| 12228 | cat confdefs.h >>conftest.$ac_ext |
| 12229 | cat >>conftest.$ac_ext <<_ACEOF |
| 12230 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12231 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12232 | /* Override any GCC internal prototype to avoid an error. |
| 12233 | Use char because int might match the return type of a GCC |
| 12234 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12235 | #ifdef __cplusplus |
| 12236 | extern "C" |
| 12237 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12238 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12239 | int |
| 12240 | main () |
| 12241 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12242 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12243 | ; |
| 12244 | return 0; |
| 12245 | } |
| 12246 | _ACEOF |
| 12247 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 12248 | if { (ac_try="$ac_link" |
| 12249 | case "(($ac_try" in |
| 12250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12251 | *) ac_try_echo=$ac_try;; |
| 12252 | esac |
| 12253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12254 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12255 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12257 | rm -f conftest.er1 |
| 12258 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12260 | (exit $ac_status); } && { |
| 12261 | test -z "$ac_c_werror_flag" || |
| 12262 | test ! -s conftest.err |
| 12263 | } && test -s conftest$ac_exeext && |
| 12264 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12265 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12267 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12269 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12270 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12271 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12272 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12273 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12274 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12275 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12276 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12277 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 12278 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12279 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 12280 | cat >>confdefs.h <<_ACEOF |
| 12281 | #define HAVE_LIBDL 1 |
| 12282 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12283 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12284 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12285 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12286 | fi |
| 12287 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12288 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12289 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 12290 | 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] | 12291 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 12292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12293 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12294 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12295 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12296 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12297 | /* confdefs.h. */ |
| 12298 | _ACEOF |
| 12299 | cat confdefs.h >>conftest.$ac_ext |
| 12300 | cat >>conftest.$ac_ext <<_ACEOF |
| 12301 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12302 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12303 | /* Override any GCC internal prototype to avoid an error. |
| 12304 | Use char because int might match the return type of a GCC |
| 12305 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12306 | #ifdef __cplusplus |
| 12307 | extern "C" |
| 12308 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12309 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12310 | int |
| 12311 | main () |
| 12312 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12313 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12314 | ; |
| 12315 | return 0; |
| 12316 | } |
| 12317 | _ACEOF |
| 12318 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 12319 | if { (ac_try="$ac_link" |
| 12320 | case "(($ac_try" in |
| 12321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12322 | *) ac_try_echo=$ac_try;; |
| 12323 | esac |
| 12324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12325 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12326 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12328 | rm -f conftest.er1 |
| 12329 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12331 | (exit $ac_status); } && { |
| 12332 | test -z "$ac_c_werror_flag" || |
| 12333 | test ! -s conftest.err |
| 12334 | } && test -s conftest$ac_exeext && |
| 12335 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12336 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12337 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12338 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12340 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12341 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12342 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12343 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12344 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12345 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12346 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12347 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12348 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 12349 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12350 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 12351 | cat >>confdefs.h <<_ACEOF |
| 12352 | #define HAVE_LIBDLD 1 |
| 12353 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12354 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12355 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12356 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12357 | fi |
| 12358 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12359 | |
| 12360 | # only check for sem_ini if thread support is requested |
| 12361 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12362 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 12363 | 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] | 12364 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 12366 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 12367 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12368 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12369 | /* confdefs.h. */ |
| 12370 | _ACEOF |
| 12371 | cat confdefs.h >>conftest.$ac_ext |
| 12372 | cat >>conftest.$ac_ext <<_ACEOF |
| 12373 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12374 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12375 | /* Override any GCC internal prototype to avoid an error. |
| 12376 | Use char because int might match the return type of a GCC |
| 12377 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12378 | #ifdef __cplusplus |
| 12379 | extern "C" |
| 12380 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12381 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12382 | int |
| 12383 | main () |
| 12384 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12385 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12386 | ; |
| 12387 | return 0; |
| 12388 | } |
| 12389 | _ACEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12390 | for ac_lib in '' pthread rt posix4; do |
| 12391 | if test -z "$ac_lib"; then |
| 12392 | ac_res="none required" |
| 12393 | else |
| 12394 | ac_res=-l$ac_lib |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 12395 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12396 | fi |
| 12397 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 12398 | if { (ac_try="$ac_link" |
| 12399 | case "(($ac_try" in |
| 12400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12401 | *) ac_try_echo=$ac_try;; |
| 12402 | esac |
| 12403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12404 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 12405 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12407 | rm -f conftest.er1 |
| 12408 | cat conftest.err >&5 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 12409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12410 | (exit $ac_status); } && { |
| 12411 | test -z "$ac_c_werror_flag" || |
| 12412 | test ! -s conftest.err |
| 12413 | } && test -s conftest$ac_exeext && |
| 12414 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12415 | ac_cv_search_sem_init=$ac_res |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 12416 | else |
| 12417 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12419 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12420 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 12421 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12422 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12423 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12424 | conftest$ac_exeext |
| 12425 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 12426 | break |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 12427 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12428 | done |
| 12429 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 12430 | : |
| 12431 | else |
| 12432 | ac_cv_search_sem_init=no |
| 12433 | fi |
| 12434 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 12435 | LIBS=$ac_func_search_save_LIBS |
| 12436 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12437 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 12438 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
| 12439 | ac_res=$ac_cv_search_sem_init |
| 12440 | if test "$ac_res" != no; then |
| 12441 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 12442 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 12443 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 12444 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12445 | # posix4 on Solaris 2.6 |
| 12446 | # pthread (first!) on Linux |
| 12447 | fi |
| 12448 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12449 | # check if we need libintl for locale functions |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12450 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 12451 | 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] | 12452 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 12453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12454 | else |
| 12455 | ac_check_lib_save_LIBS=$LIBS |
| 12456 | LIBS="-lintl $LIBS" |
| 12457 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12458 | /* confdefs.h. */ |
| 12459 | _ACEOF |
| 12460 | cat confdefs.h >>conftest.$ac_ext |
| 12461 | cat >>conftest.$ac_ext <<_ACEOF |
| 12462 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12463 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12464 | /* Override any GCC internal prototype to avoid an error. |
| 12465 | Use char because int might match the return type of a GCC |
| 12466 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12467 | #ifdef __cplusplus |
| 12468 | extern "C" |
| 12469 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12470 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12471 | int |
| 12472 | main () |
| 12473 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12474 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12475 | ; |
| 12476 | return 0; |
| 12477 | } |
| 12478 | _ACEOF |
| 12479 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 12480 | if { (ac_try="$ac_link" |
| 12481 | case "(($ac_try" in |
| 12482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12483 | *) ac_try_echo=$ac_try;; |
| 12484 | esac |
| 12485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12486 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12487 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12489 | rm -f conftest.er1 |
| 12490 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12492 | (exit $ac_status); } && { |
| 12493 | test -z "$ac_c_werror_flag" || |
| 12494 | test ! -s conftest.err |
| 12495 | } && test -s conftest$ac_exeext && |
| 12496 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12497 | ac_cv_lib_intl_textdomain=yes |
| 12498 | else |
| 12499 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12501 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12502 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12503 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12504 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12505 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12506 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12507 | LIBS=$ac_check_lib_save_LIBS |
| 12508 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12509 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 12510 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 12511 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 12512 | |
| 12513 | cat >>confdefs.h <<\_ACEOF |
| 12514 | #define WITH_LIBINTL 1 |
| 12515 | _ACEOF |
| 12516 | |
| 12517 | fi |
| 12518 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12519 | |
| 12520 | # checks for system dependent C++ extensions support |
| 12521 | case "$ac_sys_system" in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12522 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 12523 | 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] | 12524 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12525 | /* confdefs.h. */ |
| 12526 | _ACEOF |
| 12527 | cat confdefs.h >>conftest.$ac_ext |
| 12528 | cat >>conftest.$ac_ext <<_ACEOF |
| 12529 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12530 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12531 | int |
| 12532 | main () |
| 12533 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12534 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12535 | ; |
| 12536 | return 0; |
| 12537 | } |
| 12538 | _ACEOF |
| 12539 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 12540 | if { (ac_try="$ac_link" |
| 12541 | case "(($ac_try" in |
| 12542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12543 | *) ac_try_echo=$ac_try;; |
| 12544 | esac |
| 12545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12546 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12547 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12549 | rm -f conftest.er1 |
| 12550 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12552 | (exit $ac_status); } && { |
| 12553 | test -z "$ac_c_werror_flag" || |
| 12554 | test ! -s conftest.err |
| 12555 | } && test -s conftest$ac_exeext && |
| 12556 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12558 | cat >>confdefs.h <<\_ACEOF |
| 12559 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 12560 | _ACEOF |
| 12561 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12562 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12563 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12564 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12565 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12567 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12568 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12569 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12570 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12571 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12572 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12573 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 12574 | *) ;; |
| 12575 | esac |
| 12576 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 12577 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12578 | # BeOS' sockets are stashed in libnet. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12579 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 12580 | 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] | 12581 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 12582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12583 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12584 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12585 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12586 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12587 | /* confdefs.h. */ |
| 12588 | _ACEOF |
| 12589 | cat confdefs.h >>conftest.$ac_ext |
| 12590 | cat >>conftest.$ac_ext <<_ACEOF |
| 12591 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12592 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12593 | /* Override any GCC internal prototype to avoid an error. |
| 12594 | Use char because int might match the return type of a GCC |
| 12595 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12596 | #ifdef __cplusplus |
| 12597 | extern "C" |
| 12598 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12599 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12600 | int |
| 12601 | main () |
| 12602 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12603 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12604 | ; |
| 12605 | return 0; |
| 12606 | } |
| 12607 | _ACEOF |
| 12608 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 12609 | if { (ac_try="$ac_link" |
| 12610 | case "(($ac_try" in |
| 12611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12612 | *) ac_try_echo=$ac_try;; |
| 12613 | esac |
| 12614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12615 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12616 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12618 | rm -f conftest.er1 |
| 12619 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12621 | (exit $ac_status); } && { |
| 12622 | test -z "$ac_c_werror_flag" || |
| 12623 | test ! -s conftest.err |
| 12624 | } && test -s conftest$ac_exeext && |
| 12625 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12626 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12627 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12628 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12630 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12631 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12632 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12633 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12634 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12635 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12636 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12637 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12638 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 12639 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12640 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12641 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 12642 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 12643 | # SVR4 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12644 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 12645 | 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] | 12646 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 12647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12648 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12649 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12650 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12651 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12652 | /* confdefs.h. */ |
| 12653 | _ACEOF |
| 12654 | cat confdefs.h >>conftest.$ac_ext |
| 12655 | cat >>conftest.$ac_ext <<_ACEOF |
| 12656 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12657 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12658 | /* Override any GCC internal prototype to avoid an error. |
| 12659 | Use char because int might match the return type of a GCC |
| 12660 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12661 | #ifdef __cplusplus |
| 12662 | extern "C" |
| 12663 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12664 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12665 | int |
| 12666 | main () |
| 12667 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12668 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12669 | ; |
| 12670 | return 0; |
| 12671 | } |
| 12672 | _ACEOF |
| 12673 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 12674 | if { (ac_try="$ac_link" |
| 12675 | case "(($ac_try" in |
| 12676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12677 | *) ac_try_echo=$ac_try;; |
| 12678 | esac |
| 12679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12680 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12681 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12683 | rm -f conftest.er1 |
| 12684 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12686 | (exit $ac_status); } && { |
| 12687 | test -z "$ac_c_werror_flag" || |
| 12688 | test ! -s conftest.err |
| 12689 | } && test -s conftest$ac_exeext && |
| 12690 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12691 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12692 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12693 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12695 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12696 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12697 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12698 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12699 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12700 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12701 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12702 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12703 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 12704 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12705 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12706 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12707 | fi |
| 12708 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 12709 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 12710 | case "$ac_sys_system" in |
| 12711 | BeOS*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12712 | { echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 12713 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12714 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 12715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12716 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12717 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12718 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12719 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12720 | /* confdefs.h. */ |
| 12721 | _ACEOF |
| 12722 | cat confdefs.h >>conftest.$ac_ext |
| 12723 | cat >>conftest.$ac_ext <<_ACEOF |
| 12724 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12725 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12726 | /* Override any GCC internal prototype to avoid an error. |
| 12727 | Use char because int might match the return type of a GCC |
| 12728 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12729 | #ifdef __cplusplus |
| 12730 | extern "C" |
| 12731 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12732 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12733 | int |
| 12734 | main () |
| 12735 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12736 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12737 | ; |
| 12738 | return 0; |
| 12739 | } |
| 12740 | _ACEOF |
| 12741 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 12742 | if { (ac_try="$ac_link" |
| 12743 | case "(($ac_try" in |
| 12744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12745 | *) ac_try_echo=$ac_try;; |
| 12746 | esac |
| 12747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12748 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12749 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12751 | rm -f conftest.er1 |
| 12752 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12754 | (exit $ac_status); } && { |
| 12755 | test -z "$ac_c_werror_flag" || |
| 12756 | test ! -s conftest.err |
| 12757 | } && test -s conftest$ac_exeext && |
| 12758 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12759 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12760 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12761 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12763 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12764 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12765 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12766 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 12767 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12768 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12769 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12770 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12771 | { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 12772 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12773 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12774 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12775 | fi |
| 12776 | # BeOS |
| 12777 | ;; |
| 12778 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 12779 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12780 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 12781 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12782 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12783 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 12784 | if test "${with_libs+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12785 | withval=$with_libs; |
| 12786 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 12787 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 12788 | LIBS="$withval $LIBS" |
| 12789 | |
| 12790 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12791 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12792 | echo "${ECHO_T}no" >&6; } |
| 12793 | fi |
| 12794 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12795 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12796 | # Check for use of the system libffi library |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12797 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 12798 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12799 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12800 | # Check whether --with-system_ffi was given. |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12801 | if test "${with_system_ffi+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12802 | withval=$with_system_ffi; |
| 12803 | fi |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12804 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12805 | |
| 12806 | if test -z "$with_system_ffi" |
| 12807 | then with_system_ffi="no" |
| 12808 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12809 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 12810 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 12811 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12812 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 12813 | |
| 12814 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12815 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 12816 | 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] | 12817 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12818 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 12819 | if test "${with_signal_module+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12820 | withval=$with_signal_module; |
| 12821 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 12822 | |
| 12823 | |
| 12824 | if test -z "$with_signal_module" |
| 12825 | then with_signal_module="yes" |
| 12826 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12827 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 12828 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 12829 | |
| 12830 | if test "${with_signal_module}" = "yes"; then |
| 12831 | USE_SIGNAL_MODULE="" |
| 12832 | SIGNAL_OBJS="" |
| 12833 | else |
| 12834 | USE_SIGNAL_MODULE="#" |
| 12835 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 12836 | fi |
| 12837 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 12838 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 12839 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12840 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 12841 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12842 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 12843 | 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] | 12844 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12845 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12846 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12847 | if test "${with_dec_threads+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12848 | withval=$with_dec_threads; |
| 12849 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 12850 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12851 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12852 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12853 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12854 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12855 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12856 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12857 | echo "${ECHO_T}no" >&6; } |
| 12858 | fi |
| 12859 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12860 | |
| 12861 | # Templates for things AC_DEFINEd more than once. |
| 12862 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12863 | |
| 12864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12865 | |
| 12866 | |
| 12867 | |
| 12868 | |
| 12869 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12870 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 12871 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12872 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12873 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12874 | if test "${with_threads+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12875 | withval=$with_threads; |
| 12876 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 12877 | |
| 12878 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12879 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12880 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12881 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12882 | if test "${with_thread+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12883 | withval=$with_thread; with_threads=$with_thread |
| 12884 | fi |
| 12885 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12886 | |
| 12887 | if test -z "$with_threads" |
| 12888 | then with_threads="yes" |
| 12889 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12890 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 12891 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12892 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12893 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 12894 | if test "$with_threads" = "no" |
| 12895 | then |
| 12896 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12897 | elif test "$ac_cv_pthread_is_default" = yes |
| 12898 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12899 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12900 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12902 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12903 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12904 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12905 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12906 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12907 | |
| 12908 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12909 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12910 | elif test "$ac_cv_kpthread" = "yes" |
| 12911 | then |
| 12912 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12913 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 12914 | CXX="$CXX -Kpthread" |
| 12915 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12916 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 12917 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12918 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 12919 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12920 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12921 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 12922 | elif test "$ac_cv_kthread" = "yes" |
| 12923 | then |
| 12924 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12925 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 12926 | CXX="$CXX -Kthread" |
| 12927 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 12928 | cat >>confdefs.h <<\_ACEOF |
| 12929 | #define WITH_THREAD 1 |
| 12930 | _ACEOF |
| 12931 | |
| 12932 | posix_threads=yes |
| 12933 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12934 | elif test "$ac_cv_pthread" = "yes" |
| 12935 | then |
| 12936 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 12937 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 12938 | CXX="$CXX -pthread" |
| 12939 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12940 | cat >>confdefs.h <<\_ACEOF |
| 12941 | #define WITH_THREAD 1 |
| 12942 | _ACEOF |
| 12943 | |
| 12944 | posix_threads=yes |
| 12945 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12946 | else |
| 12947 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 12948 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 12949 | fi |
| 12950 | if test ! -z "$withval" -a -d "$withval" |
| 12951 | then LDFLAGS="$LDFLAGS -L$withval" |
| 12952 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12953 | |
| 12954 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 12955 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 12956 | # (e.g. gnu pth with pthread emulation) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12957 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 12958 | 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] | 12959 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12960 | /* confdefs.h. */ |
| 12961 | _ACEOF |
| 12962 | cat confdefs.h >>conftest.$ac_ext |
| 12963 | cat >>conftest.$ac_ext <<_ACEOF |
| 12964 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12965 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12966 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 12967 | #ifdef _POSIX_THREADS |
| 12968 | yes |
| 12969 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12970 | |
| 12971 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12972 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12973 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12974 | unistd_defines_pthreads=yes |
| 12975 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12976 | unistd_defines_pthreads=no |
| 12977 | fi |
| 12978 | rm -f conftest* |
| 12979 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12980 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 12981 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12983 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 12984 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12985 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 12986 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12987 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12988 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 12989 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12990 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 12991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12992 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12993 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 12994 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12995 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12996 | # Is the header compilable? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12997 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 12998 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12999 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13000 | /* confdefs.h. */ |
| 13001 | _ACEOF |
| 13002 | cat confdefs.h >>conftest.$ac_ext |
| 13003 | cat >>conftest.$ac_ext <<_ACEOF |
| 13004 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13005 | $ac_includes_default |
| 13006 | #include <cthreads.h> |
| 13007 | _ACEOF |
| 13008 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13009 | if { (ac_try="$ac_compile" |
| 13010 | case "(($ac_try" in |
| 13011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13012 | *) ac_try_echo=$ac_try;; |
| 13013 | esac |
| 13014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13015 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13016 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13018 | rm -f conftest.er1 |
| 13019 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13021 | (exit $ac_status); } && { |
| 13022 | test -z "$ac_c_werror_flag" || |
| 13023 | test ! -s conftest.err |
| 13024 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13025 | ac_header_compiler=yes |
| 13026 | else |
| 13027 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13029 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13030 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13031 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13032 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13034 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13035 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13036 | |
| 13037 | # Is the header present? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13038 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 13039 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13040 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13041 | /* confdefs.h. */ |
| 13042 | _ACEOF |
| 13043 | cat confdefs.h >>conftest.$ac_ext |
| 13044 | cat >>conftest.$ac_ext <<_ACEOF |
| 13045 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13046 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13047 | _ACEOF |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13048 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13049 | case "(($ac_try" in |
| 13050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13051 | *) ac_try_echo=$ac_try;; |
| 13052 | esac |
| 13053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13054 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13055 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13056 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13057 | rm -f conftest.er1 |
| 13058 | cat conftest.err >&5 |
| 13059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13060 | (exit $ac_status); } >/dev/null && { |
| 13061 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 13062 | test ! -s conftest.err |
| 13063 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13064 | ac_header_preproc=yes |
| 13065 | else |
| 13066 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13068 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13069 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13070 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13072 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13073 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13074 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13075 | |
| 13076 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13077 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13078 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13079 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13080 | 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] | 13081 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 13082 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 13083 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13084 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13085 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13086 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 13087 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13088 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 13089 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 13090 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 13091 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 13092 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13093 | 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] | 13094 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 13095 | 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] | 13096 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 13097 | echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13098 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13099 | ## ------------------------------------------------ ## |
| 13100 | ## Report this to http://www.python.org/python-bugs ## |
| 13101 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13102 | _ASBOX |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13103 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13104 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13106 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 13107 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13108 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 13109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13110 | else |
| 13111 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13112 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13113 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 13114 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13115 | |
| 13116 | fi |
| 13117 | if test $ac_cv_header_cthreads_h = yes; then |
| 13118 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13119 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13120 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13122 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13123 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13124 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13125 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13126 | |
| 13127 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13128 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13129 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13130 | |
| 13131 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13132 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13133 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13134 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13135 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13136 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 13137 | 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] | 13138 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 13139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13140 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13141 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 13142 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13144 | # Is the header compilable? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13145 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 13146 | 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] | 13147 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13148 | /* confdefs.h. */ |
| 13149 | _ACEOF |
| 13150 | cat confdefs.h >>conftest.$ac_ext |
| 13151 | cat >>conftest.$ac_ext <<_ACEOF |
| 13152 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13153 | $ac_includes_default |
| 13154 | #include <mach/cthreads.h> |
| 13155 | _ACEOF |
| 13156 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13157 | if { (ac_try="$ac_compile" |
| 13158 | case "(($ac_try" in |
| 13159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13160 | *) ac_try_echo=$ac_try;; |
| 13161 | esac |
| 13162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13163 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13164 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13166 | rm -f conftest.er1 |
| 13167 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13169 | (exit $ac_status); } && { |
| 13170 | test -z "$ac_c_werror_flag" || |
| 13171 | test ! -s conftest.err |
| 13172 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13173 | ac_header_compiler=yes |
| 13174 | else |
| 13175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13177 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13178 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13179 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13180 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13182 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13183 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13184 | |
| 13185 | # Is the header present? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13186 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 13187 | 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] | 13188 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13189 | /* confdefs.h. */ |
| 13190 | _ACEOF |
| 13191 | cat confdefs.h >>conftest.$ac_ext |
| 13192 | cat >>conftest.$ac_ext <<_ACEOF |
| 13193 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13194 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13195 | _ACEOF |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13196 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13197 | case "(($ac_try" in |
| 13198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13199 | *) ac_try_echo=$ac_try;; |
| 13200 | esac |
| 13201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13202 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13203 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13204 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13205 | rm -f conftest.er1 |
| 13206 | cat conftest.err >&5 |
| 13207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13208 | (exit $ac_status); } >/dev/null && { |
| 13209 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 13210 | test ! -s conftest.err |
| 13211 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13212 | ac_header_preproc=yes |
| 13213 | else |
| 13214 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13217 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13218 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13219 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13220 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13221 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13222 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13223 | |
| 13224 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13225 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13226 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13227 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13228 | 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] | 13229 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 13230 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 13231 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13232 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13233 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13234 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 13235 | 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] | 13236 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 13237 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 13238 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 13239 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 13240 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13241 | 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] | 13242 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 13243 | 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] | 13244 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 13245 | echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13246 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13247 | ## ------------------------------------------------ ## |
| 13248 | ## Report this to http://www.python.org/python-bugs ## |
| 13249 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13250 | _ASBOX |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13251 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13252 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13253 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13254 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 13255 | 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] | 13256 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 13257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13258 | else |
| 13259 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13260 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13261 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 13262 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13263 | |
| 13264 | fi |
| 13265 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 13266 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13267 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13268 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13270 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13271 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13272 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13273 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13274 | |
| 13275 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13276 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13277 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13278 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13279 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13280 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13281 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13282 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 13283 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13284 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13285 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 13286 | if test "${with_pth+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13287 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 13288 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 13289 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13290 | #define WITH_THREAD 1 |
| 13291 | _ACEOF |
| 13292 | |
| 13293 | |
| 13294 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 13295 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13296 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 13297 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 13298 | LIBS="-lpth $LIBS" |
| 13299 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 13300 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13301 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13302 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13303 | |
| 13304 | # Just looking for pthread_create in libpthread is not enough: |
| 13305 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 13306 | # So we really have to include pthread.h, and then link. |
| 13307 | _libs=$LIBS |
| 13308 | LIBS="$LIBS -lpthread" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13309 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 13310 | 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] | 13311 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13312 | /* confdefs.h. */ |
| 13313 | _ACEOF |
| 13314 | cat confdefs.h >>conftest.$ac_ext |
| 13315 | cat >>conftest.$ac_ext <<_ACEOF |
| 13316 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13317 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 13318 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13319 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13320 | int |
| 13321 | main () |
| 13322 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13323 | |
| 13324 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13325 | ; |
| 13326 | return 0; |
| 13327 | } |
| 13328 | _ACEOF |
| 13329 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13330 | if { (ac_try="$ac_link" |
| 13331 | case "(($ac_try" in |
| 13332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13333 | *) ac_try_echo=$ac_try;; |
| 13334 | esac |
| 13335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13336 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13337 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13339 | rm -f conftest.er1 |
| 13340 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13342 | (exit $ac_status); } && { |
| 13343 | test -z "$ac_c_werror_flag" || |
| 13344 | test ! -s conftest.err |
| 13345 | } && test -s conftest$ac_exeext && |
| 13346 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13347 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13348 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13349 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13350 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 13351 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13352 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 13353 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13354 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13355 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 13356 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13357 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13360 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 13361 | LIBS=$_libs |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13362 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 13363 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13364 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 13365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13366 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13367 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13368 | /* confdefs.h. */ |
| 13369 | _ACEOF |
| 13370 | cat confdefs.h >>conftest.$ac_ext |
| 13371 | cat >>conftest.$ac_ext <<_ACEOF |
| 13372 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13373 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 13374 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13375 | #define pthread_detach innocuous_pthread_detach |
| 13376 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13377 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13378 | which can conflict with char pthread_detach (); below. |
| 13379 | 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] | 13380 | <limits.h> exists even on freestanding compilers. */ |
| 13381 | |
| 13382 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13383 | # include <limits.h> |
| 13384 | #else |
| 13385 | # include <assert.h> |
| 13386 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13387 | |
| 13388 | #undef pthread_detach |
| 13389 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13390 | /* Override any GCC internal prototype to avoid an error. |
| 13391 | Use char because int might match the return type of a GCC |
| 13392 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13393 | #ifdef __cplusplus |
| 13394 | extern "C" |
| 13395 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13396 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13397 | /* The GNU C library defines this for functions which it implements |
| 13398 | to always fail with ENOSYS. Some functions are actually named |
| 13399 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13400 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13401 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13402 | #endif |
| 13403 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13404 | int |
| 13405 | main () |
| 13406 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13407 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13408 | ; |
| 13409 | return 0; |
| 13410 | } |
| 13411 | _ACEOF |
| 13412 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13413 | if { (ac_try="$ac_link" |
| 13414 | case "(($ac_try" in |
| 13415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13416 | *) ac_try_echo=$ac_try;; |
| 13417 | esac |
| 13418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13419 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13420 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13422 | rm -f conftest.er1 |
| 13423 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13425 | (exit $ac_status); } && { |
| 13426 | test -z "$ac_c_werror_flag" || |
| 13427 | test ! -s conftest.err |
| 13428 | } && test -s conftest$ac_exeext && |
| 13429 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13430 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13432 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13434 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13435 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13436 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13437 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13438 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13439 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13440 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13441 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 13442 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13443 | if test $ac_cv_func_pthread_detach = yes; then |
| 13444 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13445 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13446 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13447 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 13448 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13449 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13450 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 13451 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13452 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13453 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 13454 | 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] | 13455 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 13456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13457 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13458 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 13459 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13460 | else |
| 13461 | # Is the header compilable? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13462 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 13463 | 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] | 13464 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13465 | /* confdefs.h. */ |
| 13466 | _ACEOF |
| 13467 | cat confdefs.h >>conftest.$ac_ext |
| 13468 | cat >>conftest.$ac_ext <<_ACEOF |
| 13469 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13470 | $ac_includes_default |
| 13471 | #include <atheos/threads.h> |
| 13472 | _ACEOF |
| 13473 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13474 | if { (ac_try="$ac_compile" |
| 13475 | case "(($ac_try" in |
| 13476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13477 | *) ac_try_echo=$ac_try;; |
| 13478 | esac |
| 13479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13480 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13481 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13483 | rm -f conftest.er1 |
| 13484 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13486 | (exit $ac_status); } && { |
| 13487 | test -z "$ac_c_werror_flag" || |
| 13488 | test ! -s conftest.err |
| 13489 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13490 | ac_header_compiler=yes |
| 13491 | else |
| 13492 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13494 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13495 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13496 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13497 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13499 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13500 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13501 | |
| 13502 | # Is the header present? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13503 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 13504 | 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] | 13505 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13506 | /* confdefs.h. */ |
| 13507 | _ACEOF |
| 13508 | cat confdefs.h >>conftest.$ac_ext |
| 13509 | cat >>conftest.$ac_ext <<_ACEOF |
| 13510 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13511 | #include <atheos/threads.h> |
| 13512 | _ACEOF |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13513 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13520 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13521 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13522 | rm -f conftest.er1 |
| 13523 | cat conftest.err >&5 |
| 13524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13525 | (exit $ac_status); } >/dev/null && { |
| 13526 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 13527 | test ! -s conftest.err |
| 13528 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13529 | ac_header_preproc=yes |
| 13530 | else |
| 13531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13533 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13534 | ac_header_preproc=no |
| 13535 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13536 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13537 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13538 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13539 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13540 | |
| 13541 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13542 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13543 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13544 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13545 | 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] | 13546 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 13547 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 13548 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13549 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13550 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13551 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 13552 | 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] | 13553 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 13554 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 13555 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 13556 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 13557 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13558 | 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] | 13559 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 13560 | 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] | 13561 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 13562 | echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13563 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13564 | ## ------------------------------------------------ ## |
| 13565 | ## Report this to http://www.python.org/python-bugs ## |
| 13566 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13567 | _ASBOX |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13568 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13569 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13570 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13571 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 13572 | 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] | 13573 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 13574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13575 | else |
| 13576 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 13577 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13578 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 13579 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13580 | |
| 13581 | fi |
| 13582 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 13583 | cat >>confdefs.h <<\_ACEOF |
| 13584 | #define WITH_THREAD 1 |
| 13585 | _ACEOF |
| 13586 | |
| 13587 | |
| 13588 | cat >>confdefs.h <<\_ACEOF |
| 13589 | #define ATHEOS_THREADS 1 |
| 13590 | _ACEOF |
| 13591 | |
| 13592 | THREADOBJ="Python/thread.o" |
| 13593 | else |
| 13594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13595 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13596 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 13597 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13598 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 13599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13600 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13601 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 13602 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13603 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13604 | # Is the header compilable? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13605 | { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 13606 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13607 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13608 | /* confdefs.h. */ |
| 13609 | _ACEOF |
| 13610 | cat confdefs.h >>conftest.$ac_ext |
| 13611 | cat >>conftest.$ac_ext <<_ACEOF |
| 13612 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13613 | $ac_includes_default |
| 13614 | #include <kernel/OS.h> |
| 13615 | _ACEOF |
| 13616 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13617 | if { (ac_try="$ac_compile" |
| 13618 | case "(($ac_try" in |
| 13619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13620 | *) ac_try_echo=$ac_try;; |
| 13621 | esac |
| 13622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13623 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13624 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13626 | rm -f conftest.er1 |
| 13627 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13629 | (exit $ac_status); } && { |
| 13630 | test -z "$ac_c_werror_flag" || |
| 13631 | test ! -s conftest.err |
| 13632 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13633 | ac_header_compiler=yes |
| 13634 | else |
| 13635 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13637 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13638 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13639 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13640 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 13641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13642 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13643 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13644 | |
| 13645 | # Is the header present? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13646 | { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 13647 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13648 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13649 | /* confdefs.h. */ |
| 13650 | _ACEOF |
| 13651 | cat confdefs.h >>conftest.$ac_ext |
| 13652 | cat >>conftest.$ac_ext <<_ACEOF |
| 13653 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13654 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13655 | _ACEOF |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13656 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13657 | case "(($ac_try" in |
| 13658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13659 | *) ac_try_echo=$ac_try;; |
| 13660 | esac |
| 13661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13662 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13663 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13664 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13665 | rm -f conftest.er1 |
| 13666 | cat conftest.err >&5 |
| 13667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13668 | (exit $ac_status); } >/dev/null && { |
| 13669 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 13670 | test ! -s conftest.err |
| 13671 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13672 | ac_header_preproc=yes |
| 13673 | else |
| 13674 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13677 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13678 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13679 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13680 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13681 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13682 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13684 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13685 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13686 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13687 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13688 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13689 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 13690 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
| 13691 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13692 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13693 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13694 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 13695 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13696 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 13697 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 13698 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 13699 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 13700 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13701 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 13702 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 13703 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13704 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 13705 | echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13706 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 13707 | ## ------------------------------------------------ ## |
| 13708 | ## Report this to http://www.python.org/python-bugs ## |
| 13709 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13710 | _ASBOX |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13711 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13712 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13713 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13714 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 13715 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13716 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 13717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13718 | else |
| 13719 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 13720 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13721 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 13722 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13723 | |
| 13724 | fi |
| 13725 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 13726 | cat >>confdefs.h <<\_ACEOF |
| 13727 | #define WITH_THREAD 1 |
| 13728 | _ACEOF |
| 13729 | |
| 13730 | |
| 13731 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13732 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13733 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13734 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13735 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13736 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 13737 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13738 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 13739 | 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] | 13740 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 13741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13742 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13743 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13744 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13745 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13746 | /* confdefs.h. */ |
| 13747 | _ACEOF |
| 13748 | cat confdefs.h >>conftest.$ac_ext |
| 13749 | cat >>conftest.$ac_ext <<_ACEOF |
| 13750 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13751 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13752 | /* Override any GCC internal prototype to avoid an error. |
| 13753 | Use char because int might match the return type of a GCC |
| 13754 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13755 | #ifdef __cplusplus |
| 13756 | extern "C" |
| 13757 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13758 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13759 | int |
| 13760 | main () |
| 13761 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13762 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13763 | ; |
| 13764 | return 0; |
| 13765 | } |
| 13766 | _ACEOF |
| 13767 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13768 | if { (ac_try="$ac_link" |
| 13769 | case "(($ac_try" in |
| 13770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13771 | *) ac_try_echo=$ac_try;; |
| 13772 | esac |
| 13773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13774 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13775 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13777 | rm -f conftest.er1 |
| 13778 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13780 | (exit $ac_status); } && { |
| 13781 | test -z "$ac_c_werror_flag" || |
| 13782 | test ! -s conftest.err |
| 13783 | } && test -s conftest$ac_exeext && |
| 13784 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13785 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13787 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13789 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13790 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13791 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13792 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13793 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13794 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13795 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13796 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13797 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 13798 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13799 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 13800 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13801 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13802 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13803 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13804 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13805 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13806 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13807 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13808 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13809 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 13810 | 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] | 13811 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 13812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13814 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 13815 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13816 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13817 | /* confdefs.h. */ |
| 13818 | _ACEOF |
| 13819 | cat confdefs.h >>conftest.$ac_ext |
| 13820 | cat >>conftest.$ac_ext <<_ACEOF |
| 13821 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13822 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13823 | /* Override any GCC internal prototype to avoid an error. |
| 13824 | Use char because int might match the return type of a GCC |
| 13825 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13826 | #ifdef __cplusplus |
| 13827 | extern "C" |
| 13828 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13829 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13830 | int |
| 13831 | main () |
| 13832 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13833 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13834 | ; |
| 13835 | return 0; |
| 13836 | } |
| 13837 | _ACEOF |
| 13838 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13839 | if { (ac_try="$ac_link" |
| 13840 | case "(($ac_try" in |
| 13841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13842 | *) ac_try_echo=$ac_try;; |
| 13843 | esac |
| 13844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13845 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13846 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13848 | rm -f conftest.er1 |
| 13849 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13851 | (exit $ac_status); } && { |
| 13852 | test -z "$ac_c_werror_flag" || |
| 13853 | test ! -s conftest.err |
| 13854 | } && test -s conftest$ac_exeext && |
| 13855 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13856 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13857 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13861 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13862 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13863 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13864 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13865 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13866 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13867 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13868 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 13869 | 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] | 13870 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 13871 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13872 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13873 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13874 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13875 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13876 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13877 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 13878 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 13879 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13880 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 13881 | 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] | 13882 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 13883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13884 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13885 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13886 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13887 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13888 | /* confdefs.h. */ |
| 13889 | _ACEOF |
| 13890 | cat confdefs.h >>conftest.$ac_ext |
| 13891 | cat >>conftest.$ac_ext <<_ACEOF |
| 13892 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13893 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13894 | /* Override any GCC internal prototype to avoid an error. |
| 13895 | Use char because int might match the return type of a GCC |
| 13896 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13897 | #ifdef __cplusplus |
| 13898 | extern "C" |
| 13899 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13900 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13901 | int |
| 13902 | main () |
| 13903 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13904 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13905 | ; |
| 13906 | return 0; |
| 13907 | } |
| 13908 | _ACEOF |
| 13909 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13910 | if { (ac_try="$ac_link" |
| 13911 | case "(($ac_try" in |
| 13912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13913 | *) ac_try_echo=$ac_try;; |
| 13914 | esac |
| 13915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13916 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13917 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13919 | rm -f conftest.er1 |
| 13920 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13922 | (exit $ac_status); } && { |
| 13923 | test -z "$ac_c_werror_flag" || |
| 13924 | test ! -s conftest.err |
| 13925 | } && test -s conftest$ac_exeext && |
| 13926 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13927 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13929 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13931 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13932 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13933 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13934 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13935 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13936 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13937 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13938 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13939 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 13940 | 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] | 13941 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 13942 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13943 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13944 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13945 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13946 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13947 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13948 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13949 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 13950 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13951 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 13952 | 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] | 13953 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 13954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13955 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13956 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13957 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13958 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13959 | /* confdefs.h. */ |
| 13960 | _ACEOF |
| 13961 | cat confdefs.h >>conftest.$ac_ext |
| 13962 | cat >>conftest.$ac_ext <<_ACEOF |
| 13963 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13964 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13965 | /* Override any GCC internal prototype to avoid an error. |
| 13966 | Use char because int might match the return type of a GCC |
| 13967 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13968 | #ifdef __cplusplus |
| 13969 | extern "C" |
| 13970 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13971 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13972 | int |
| 13973 | main () |
| 13974 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 13975 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13976 | ; |
| 13977 | return 0; |
| 13978 | } |
| 13979 | _ACEOF |
| 13980 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 13981 | if { (ac_try="$ac_link" |
| 13982 | case "(($ac_try" in |
| 13983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13984 | *) ac_try_echo=$ac_try;; |
| 13985 | esac |
| 13986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13987 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13988 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13990 | rm -f conftest.er1 |
| 13991 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 13993 | (exit $ac_status); } && { |
| 13994 | test -z "$ac_c_werror_flag" || |
| 13995 | test ! -s conftest.err |
| 13996 | } && test -s conftest$ac_exeext && |
| 13997 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13998 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13999 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14000 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14002 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14003 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14004 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14005 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14006 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14007 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14008 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14009 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14010 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 14011 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14012 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 14013 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14014 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14015 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14016 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14017 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14018 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14019 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14020 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 14021 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14022 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 14023 | fi |
| 14024 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14025 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 14026 | fi |
| 14027 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 14028 | fi |
| 14029 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 14030 | fi |
| 14031 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 14032 | fi |
| 14033 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 14034 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14035 | fi |
| 14036 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14037 | |
| 14038 | fi |
| 14039 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14040 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14041 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14042 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14043 | conftest$ac_exeext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14044 | fi |
| 14045 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14046 | fi |
| 14047 | |
| 14048 | |
| 14049 | fi |
| 14050 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14051 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14052 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14053 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 14054 | 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] | 14055 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 14056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14058 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14059 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14060 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14061 | /* confdefs.h. */ |
| 14062 | _ACEOF |
| 14063 | cat confdefs.h >>conftest.$ac_ext |
| 14064 | cat >>conftest.$ac_ext <<_ACEOF |
| 14065 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14066 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14067 | /* Override any GCC internal prototype to avoid an error. |
| 14068 | Use char because int might match the return type of a GCC |
| 14069 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14070 | #ifdef __cplusplus |
| 14071 | extern "C" |
| 14072 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14073 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14074 | int |
| 14075 | main () |
| 14076 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14077 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14078 | ; |
| 14079 | return 0; |
| 14080 | } |
| 14081 | _ACEOF |
| 14082 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 14083 | if { (ac_try="$ac_link" |
| 14084 | case "(($ac_try" in |
| 14085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14086 | *) ac_try_echo=$ac_try;; |
| 14087 | esac |
| 14088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14089 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14090 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14092 | rm -f conftest.er1 |
| 14093 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14095 | (exit $ac_status); } && { |
| 14096 | test -z "$ac_c_werror_flag" || |
| 14097 | test ! -s conftest.err |
| 14098 | } && test -s conftest$ac_exeext && |
| 14099 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14100 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14102 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14104 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14105 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14106 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14107 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14108 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14109 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14110 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14111 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14112 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 14113 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14114 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 14115 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14116 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14117 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14118 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14119 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14120 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14121 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14122 | fi |
| 14123 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14124 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 14125 | if test "$posix_threads" != "yes"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14126 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 14127 | 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] | 14128 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 14129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14130 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14131 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14132 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14133 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14134 | /* confdefs.h. */ |
| 14135 | _ACEOF |
| 14136 | cat confdefs.h >>conftest.$ac_ext |
| 14137 | cat >>conftest.$ac_ext <<_ACEOF |
| 14138 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14139 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14140 | /* Override any GCC internal prototype to avoid an error. |
| 14141 | Use char because int might match the return type of a GCC |
| 14142 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14143 | #ifdef __cplusplus |
| 14144 | extern "C" |
| 14145 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14146 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14147 | int |
| 14148 | main () |
| 14149 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14150 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14151 | ; |
| 14152 | return 0; |
| 14153 | } |
| 14154 | _ACEOF |
| 14155 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 14156 | if { (ac_try="$ac_link" |
| 14157 | case "(($ac_try" in |
| 14158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14159 | *) ac_try_echo=$ac_try;; |
| 14160 | esac |
| 14161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14162 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14163 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14165 | rm -f conftest.er1 |
| 14166 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14168 | (exit $ac_status); } && { |
| 14169 | test -z "$ac_c_werror_flag" || |
| 14170 | test ! -s conftest.err |
| 14171 | } && test -s conftest$ac_exeext && |
| 14172 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14173 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14174 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14177 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14178 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14179 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14180 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14181 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14182 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14183 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14184 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14185 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 14186 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14187 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 14188 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14189 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14190 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14191 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14192 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 14193 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14194 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14195 | fi |
| 14196 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 14197 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14198 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14199 | if test "$USE_THREAD_MODULE" != "#" |
| 14200 | then |
| 14201 | # If the above checks didn't disable threads, (at least) OSF1 |
| 14202 | # needs this '-threads' argument during linking. |
| 14203 | case $ac_sys_system in |
| 14204 | OSF1) LDLAST=-threads;; |
| 14205 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 14206 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14207 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14208 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14209 | if test "$posix_threads" = "yes"; then |
| 14210 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14211 | |
| 14212 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14213 | #define _POSIX_THREADS 1 |
| 14214 | _ACEOF |
| 14215 | |
| 14216 | fi |
| 14217 | |
| 14218 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 14219 | case $ac_sys_system/$ac_sys_release in |
| 14220 | SunOS/5.6) |
| 14221 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14222 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 14223 | _ACEOF |
| 14224 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14225 | ;; |
| 14226 | SunOS/5.8) |
| 14227 | cat >>confdefs.h <<\_ACEOF |
| 14228 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 14229 | _ACEOF |
| 14230 | |
| 14231 | ;; |
| 14232 | esac |
| 14233 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14234 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 14235 | 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] | 14236 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 14237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14238 | else |
| 14239 | if test "$cross_compiling" = yes; then |
| 14240 | ac_cv_pthread_system_supported=no |
| 14241 | else |
| 14242 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14243 | /* confdefs.h. */ |
| 14244 | _ACEOF |
| 14245 | cat confdefs.h >>conftest.$ac_ext |
| 14246 | cat >>conftest.$ac_ext <<_ACEOF |
| 14247 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14248 | #include <pthread.h> |
| 14249 | void *foo(void *parm) { |
| 14250 | return NULL; |
| 14251 | } |
| 14252 | main() { |
| 14253 | pthread_attr_t attr; |
| 14254 | pthread_t id; |
| 14255 | if (pthread_attr_init(&attr)) exit(-1); |
| 14256 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 14257 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 14258 | exit(0); |
| 14259 | } |
| 14260 | _ACEOF |
| 14261 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 14262 | if { (ac_try="$ac_link" |
| 14263 | case "(($ac_try" in |
| 14264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14265 | *) ac_try_echo=$ac_try;; |
| 14266 | esac |
| 14267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14268 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14269 | ac_status=$? |
| 14270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14271 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 14272 | { (case "(($ac_try" in |
| 14273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14274 | *) ac_try_echo=$ac_try;; |
| 14275 | esac |
| 14276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14277 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14278 | ac_status=$? |
| 14279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14280 | (exit $ac_status); }; }; then |
| 14281 | ac_cv_pthread_system_supported=yes |
| 14282 | else |
| 14283 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14284 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14286 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14287 | ( exit $ac_status ) |
| 14288 | ac_cv_pthread_system_supported=no |
| 14289 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14290 | 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] | 14291 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 14292 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14293 | |
| 14294 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14295 | fi |
| 14296 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14297 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 14298 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14299 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 14300 | |
| 14301 | cat >>confdefs.h <<\_ACEOF |
| 14302 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 14303 | _ACEOF |
| 14304 | |
| 14305 | fi |
| 14306 | |
| 14307 | for ac_func in pthread_sigmask |
| 14308 | do |
| 14309 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14310 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14311 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14312 | 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] | 14313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14314 | else |
| 14315 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14316 | /* confdefs.h. */ |
| 14317 | _ACEOF |
| 14318 | cat confdefs.h >>conftest.$ac_ext |
| 14319 | cat >>conftest.$ac_ext <<_ACEOF |
| 14320 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14321 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14322 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14323 | #define $ac_func innocuous_$ac_func |
| 14324 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14325 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14326 | which can conflict with char $ac_func (); below. |
| 14327 | 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] | 14328 | <limits.h> exists even on freestanding compilers. */ |
| 14329 | |
| 14330 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14331 | # include <limits.h> |
| 14332 | #else |
| 14333 | # include <assert.h> |
| 14334 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14335 | |
| 14336 | #undef $ac_func |
| 14337 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14338 | /* Override any GCC internal prototype to avoid an error. |
| 14339 | Use char because int might match the return type of a GCC |
| 14340 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14341 | #ifdef __cplusplus |
| 14342 | extern "C" |
| 14343 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14344 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14345 | /* The GNU C library defines this for functions which it implements |
| 14346 | to always fail with ENOSYS. Some functions are actually named |
| 14347 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14348 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14349 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14350 | #endif |
| 14351 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14352 | int |
| 14353 | main () |
| 14354 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14355 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14356 | ; |
| 14357 | return 0; |
| 14358 | } |
| 14359 | _ACEOF |
| 14360 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 14361 | if { (ac_try="$ac_link" |
| 14362 | case "(($ac_try" in |
| 14363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14364 | *) ac_try_echo=$ac_try;; |
| 14365 | esac |
| 14366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14367 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14368 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14370 | rm -f conftest.er1 |
| 14371 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14373 | (exit $ac_status); } && { |
| 14374 | test -z "$ac_c_werror_flag" || |
| 14375 | test ! -s conftest.err |
| 14376 | } && test -s conftest$ac_exeext && |
| 14377 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14378 | eval "$as_ac_var=yes" |
| 14379 | else |
| 14380 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14382 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14383 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14384 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14385 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14386 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14387 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14388 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14389 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14390 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14391 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14392 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14393 | cat >>confdefs.h <<_ACEOF |
| 14394 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14395 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 14396 | case $ac_sys_system in |
| 14397 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14398 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 14399 | cat >>confdefs.h <<\_ACEOF |
| 14400 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 14401 | _ACEOF |
| 14402 | |
| 14403 | ;; |
| 14404 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14405 | fi |
| 14406 | done |
| 14407 | |
| 14408 | fi |
| 14409 | |
| 14410 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14411 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14412 | |
| 14413 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14414 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 14415 | echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; } |
| 14416 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14417 | if test "${enable_ipv6+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14418 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14419 | no) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14420 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14421 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14422 | ipv6=no |
| 14423 | ;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14424 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 14425 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14426 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14427 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14428 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14429 | |
| 14430 | ipv6=yes |
| 14431 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14432 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14433 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14434 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14435 | if test "$cross_compiling" = yes; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14436 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14437 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14438 | ipv6=no |
| 14439 | |
| 14440 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14441 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14442 | /* confdefs.h. */ |
| 14443 | _ACEOF |
| 14444 | cat confdefs.h >>conftest.$ac_ext |
| 14445 | cat >>conftest.$ac_ext <<_ACEOF |
| 14446 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14447 | /* AF_INET6 available check */ |
| 14448 | #include <sys/types.h> |
| 14449 | #include <sys/socket.h> |
| 14450 | main() |
| 14451 | { |
| 14452 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 14453 | exit(1); |
| 14454 | else |
| 14455 | exit(0); |
| 14456 | } |
| 14457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14458 | _ACEOF |
| 14459 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 14460 | if { (ac_try="$ac_link" |
| 14461 | case "(($ac_try" in |
| 14462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14463 | *) ac_try_echo=$ac_try;; |
| 14464 | esac |
| 14465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14466 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14467 | ac_status=$? |
| 14468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14469 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 14470 | { (case "(($ac_try" in |
| 14471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14472 | *) ac_try_echo=$ac_try;; |
| 14473 | esac |
| 14474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14475 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14476 | ac_status=$? |
| 14477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14478 | (exit $ac_status); }; }; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14479 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14480 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14481 | ipv6=yes |
| 14482 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14483 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14484 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14487 | ( exit $ac_status ) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14488 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14489 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14490 | ipv6=no |
| 14491 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14492 | 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] | 14493 | fi |
| 14494 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14495 | |
| 14496 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14497 | if test "$ipv6" = "yes"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14498 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 14499 | 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] | 14500 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14501 | /* confdefs.h. */ |
| 14502 | _ACEOF |
| 14503 | cat confdefs.h >>conftest.$ac_ext |
| 14504 | cat >>conftest.$ac_ext <<_ACEOF |
| 14505 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14506 | #include <sys/types.h> |
| 14507 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14508 | int |
| 14509 | main () |
| 14510 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14511 | struct sockaddr_in6 x; |
| 14512 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14513 | ; |
| 14514 | return 0; |
| 14515 | } |
| 14516 | _ACEOF |
| 14517 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 14518 | if { (ac_try="$ac_compile" |
| 14519 | case "(($ac_try" in |
| 14520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14521 | *) ac_try_echo=$ac_try;; |
| 14522 | esac |
| 14523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14524 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14525 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14527 | rm -f conftest.er1 |
| 14528 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14530 | (exit $ac_status); } && { |
| 14531 | test -z "$ac_c_werror_flag" || |
| 14532 | test ! -s conftest.err |
| 14533 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14534 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14535 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14536 | ipv6=yes |
| 14537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14538 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14540 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14541 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14542 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14543 | ipv6=no |
| 14544 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14545 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 14546 | 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] | 14547 | fi |
| 14548 | |
| 14549 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14550 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14551 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14552 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 14553 | |
| 14554 | fi |
| 14555 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14556 | fi |
| 14557 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14558 | |
| 14559 | ipv6type=unknown |
| 14560 | ipv6lib=none |
| 14561 | ipv6trylibc=no |
| 14562 | |
| 14563 | if test "$ipv6" = "yes"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14564 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 14565 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 14566 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 14567 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14568 | case $i in |
| 14569 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14570 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14571 | /* confdefs.h. */ |
| 14572 | _ACEOF |
| 14573 | cat confdefs.h >>conftest.$ac_ext |
| 14574 | cat >>conftest.$ac_ext <<_ACEOF |
| 14575 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14576 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14577 | #include <netinet/in.h> |
| 14578 | #ifdef IPV6_INRIA_VERSION |
| 14579 | yes |
| 14580 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14581 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14582 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14583 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 14584 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14585 | fi |
| 14586 | rm -f conftest* |
| 14587 | |
| 14588 | ;; |
| 14589 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14590 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14591 | /* confdefs.h. */ |
| 14592 | _ACEOF |
| 14593 | cat confdefs.h >>conftest.$ac_ext |
| 14594 | cat >>conftest.$ac_ext <<_ACEOF |
| 14595 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14596 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14597 | #include <netinet/in.h> |
| 14598 | #ifdef __KAME__ |
| 14599 | yes |
| 14600 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14601 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14603 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14604 | ipv6type=$i; |
| 14605 | ipv6lib=inet6 |
| 14606 | ipv6libdir=/usr/local/v6/lib |
| 14607 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14608 | fi |
| 14609 | rm -f conftest* |
| 14610 | |
| 14611 | ;; |
| 14612 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14613 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14614 | /* confdefs.h. */ |
| 14615 | _ACEOF |
| 14616 | cat confdefs.h >>conftest.$ac_ext |
| 14617 | cat >>conftest.$ac_ext <<_ACEOF |
| 14618 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14619 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14620 | #include <features.h> |
| 14621 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 14622 | yes |
| 14623 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14624 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14626 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14627 | ipv6type=$i; |
| 14628 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14629 | fi |
| 14630 | rm -f conftest* |
| 14631 | |
| 14632 | ;; |
| 14633 | linux-inet6) |
| 14634 | if test -d /usr/inet6; then |
| 14635 | ipv6type=$i |
| 14636 | ipv6lib=inet6 |
| 14637 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14638 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14639 | fi |
| 14640 | ;; |
| 14641 | solaris) |
| 14642 | if test -f /etc/netconfig; then |
| 14643 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 14644 | ipv6type=$i |
| 14645 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14646 | fi |
| 14647 | fi |
| 14648 | ;; |
| 14649 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14650 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14651 | /* confdefs.h. */ |
| 14652 | _ACEOF |
| 14653 | cat confdefs.h >>conftest.$ac_ext |
| 14654 | cat >>conftest.$ac_ext <<_ACEOF |
| 14655 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14656 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14657 | #include <sys/param.h> |
| 14658 | #ifdef _TOSHIBA_INET6 |
| 14659 | yes |
| 14660 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14661 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14662 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14663 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14664 | ipv6type=$i; |
| 14665 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 14666 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14667 | fi |
| 14668 | rm -f conftest* |
| 14669 | |
| 14670 | ;; |
| 14671 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14672 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14673 | /* confdefs.h. */ |
| 14674 | _ACEOF |
| 14675 | cat confdefs.h >>conftest.$ac_ext |
| 14676 | cat >>conftest.$ac_ext <<_ACEOF |
| 14677 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14678 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14679 | #include </usr/local/v6/include/sys/v6config.h> |
| 14680 | #ifdef __V6D__ |
| 14681 | yes |
| 14682 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14683 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14684 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14685 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14686 | ipv6type=$i; |
| 14687 | ipv6lib=v6; |
| 14688 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14689 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14690 | fi |
| 14691 | rm -f conftest* |
| 14692 | |
| 14693 | ;; |
| 14694 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14695 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14696 | /* confdefs.h. */ |
| 14697 | _ACEOF |
| 14698 | cat confdefs.h >>conftest.$ac_ext |
| 14699 | cat >>conftest.$ac_ext <<_ACEOF |
| 14700 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 14701 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14702 | #include <sys/param.h> |
| 14703 | #ifdef _ZETA_MINAMI_INET6 |
| 14704 | yes |
| 14705 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14706 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14707 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14708 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14709 | ipv6type=$i; |
| 14710 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 14711 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14712 | fi |
| 14713 | rm -f conftest* |
| 14714 | |
| 14715 | ;; |
| 14716 | esac |
| 14717 | if test "$ipv6type" != "unknown"; then |
| 14718 | break |
| 14719 | fi |
| 14720 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14721 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 14722 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 14723 | fi |
| 14724 | |
| 14725 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 14726 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 14727 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 14728 | echo "using lib$ipv6lib" |
| 14729 | else |
| 14730 | if test $ipv6trylibc = "yes"; then |
| 14731 | echo "using libc" |
| 14732 | else |
| 14733 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 14734 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 14735 | echo 'ipv6 kit and compile beforehand.' |
| 14736 | exit 1 |
| 14737 | fi |
| 14738 | fi |
| 14739 | fi |
| 14740 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14741 | # Check for --with-doc-strings |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14742 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 14743 | 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] | 14744 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14745 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14746 | if test "${with_doc_strings+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14747 | withval=$with_doc_strings; |
| 14748 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14749 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14750 | |
| 14751 | if test -z "$with_doc_strings" |
| 14752 | then with_doc_strings="yes" |
| 14753 | fi |
| 14754 | if test "$with_doc_strings" != "no" |
| 14755 | then |
| 14756 | |
| 14757 | cat >>confdefs.h <<\_ACEOF |
| 14758 | #define WITH_DOC_STRINGS 1 |
| 14759 | _ACEOF |
| 14760 | |
| 14761 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14762 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 14763 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 14764 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 14765 | # Check for Python-specific malloc support |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14766 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 14767 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 14768 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14769 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 14770 | if test "${with_tsc+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14771 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 14772 | if test "$withval" != no |
| 14773 | then |
| 14774 | |
| 14775 | cat >>confdefs.h <<\_ACEOF |
| 14776 | #define WITH_TSC 1 |
| 14777 | _ACEOF |
| 14778 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14779 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14780 | echo "${ECHO_T}yes" >&6; } |
| 14781 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 14782 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 14783 | fi |
| 14784 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14785 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14786 | echo "${ECHO_T}no" >&6; } |
| 14787 | fi |
| 14788 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 14789 | |
| 14790 | # Check for Python-specific malloc support |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14791 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 14792 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14793 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14794 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 14795 | if test "${with_pymalloc+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14796 | withval=$with_pymalloc; |
| 14797 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14798 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 14799 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 14800 | if test -z "$with_pymalloc" |
| 14801 | then with_pymalloc="yes" |
| 14802 | fi |
| 14803 | if test "$with_pymalloc" != "no" |
| 14804 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14805 | |
| 14806 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 14807 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14808 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 14809 | |
| 14810 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14811 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 14812 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 14813 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14814 | # Check for --with-wctype-functions |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14815 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 14816 | 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] | 14817 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14818 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14819 | if test "${with_wctype_functions+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14820 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14821 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14822 | then |
| 14823 | |
| 14824 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14825 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14826 | _ACEOF |
| 14827 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14828 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14829 | echo "${ECHO_T}yes" >&6; } |
| 14830 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 14831 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14832 | fi |
| 14833 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14834 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14835 | echo "${ECHO_T}no" >&6; } |
| 14836 | fi |
| 14837 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 14838 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14839 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14840 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 14841 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14842 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14843 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 14844 | # 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] | 14845 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14846 | for ac_func in dlopen |
| 14847 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14848 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14849 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14850 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14851 | 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] | 14852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14854 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14855 | /* confdefs.h. */ |
| 14856 | _ACEOF |
| 14857 | cat confdefs.h >>conftest.$ac_ext |
| 14858 | cat >>conftest.$ac_ext <<_ACEOF |
| 14859 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14860 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14861 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14862 | #define $ac_func innocuous_$ac_func |
| 14863 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14864 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14865 | which can conflict with char $ac_func (); below. |
| 14866 | 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] | 14867 | <limits.h> exists even on freestanding compilers. */ |
| 14868 | |
| 14869 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14870 | # include <limits.h> |
| 14871 | #else |
| 14872 | # include <assert.h> |
| 14873 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14874 | |
| 14875 | #undef $ac_func |
| 14876 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14877 | /* Override any GCC internal prototype to avoid an error. |
| 14878 | Use char because int might match the return type of a GCC |
| 14879 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14880 | #ifdef __cplusplus |
| 14881 | extern "C" |
| 14882 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14883 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14884 | /* The GNU C library defines this for functions which it implements |
| 14885 | to always fail with ENOSYS. Some functions are actually named |
| 14886 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14887 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14888 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14889 | #endif |
| 14890 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14891 | int |
| 14892 | main () |
| 14893 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14894 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14895 | ; |
| 14896 | return 0; |
| 14897 | } |
| 14898 | _ACEOF |
| 14899 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 14900 | if { (ac_try="$ac_link" |
| 14901 | case "(($ac_try" in |
| 14902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14903 | *) ac_try_echo=$ac_try;; |
| 14904 | esac |
| 14905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14906 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14907 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14909 | rm -f conftest.er1 |
| 14910 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14912 | (exit $ac_status); } && { |
| 14913 | test -z "$ac_c_werror_flag" || |
| 14914 | test ! -s conftest.err |
| 14915 | } && test -s conftest$ac_exeext && |
| 14916 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14917 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14918 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14919 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14921 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14922 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14923 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14924 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 14925 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14926 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14927 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14928 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14929 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14930 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14931 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14932 | cat >>confdefs.h <<_ACEOF |
| 14933 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14934 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14935 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14936 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14937 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14938 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14939 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14940 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 14941 | # loading of modules. |
| 14942 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14943 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 14944 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14945 | if test -z "$DYNLOADFILE" |
| 14946 | then |
| 14947 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 14948 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 14949 | if test "$ac_cv_func_dlopen" = yes |
| 14950 | then DYNLOADFILE="dynload_shlib.o" |
| 14951 | else DYNLOADFILE="dynload_aix.o" |
| 14952 | fi |
| 14953 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14954 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 14955 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14956 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 14957 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14958 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14959 | *) |
| 14960 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 14961 | # out any dynamic loading |
| 14962 | if test "$ac_cv_func_dlopen" = yes |
| 14963 | then DYNLOADFILE="dynload_shlib.o" |
| 14964 | else DYNLOADFILE="dynload_stub.o" |
| 14965 | fi |
| 14966 | ;; |
| 14967 | esac |
| 14968 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14969 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 14970 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14971 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 14972 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14973 | |
| 14974 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14975 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14976 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14977 | |
| 14978 | fi |
| 14979 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14980 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 14981 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14982 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14983 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 14984 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14985 | if test -z "$MACHDEP_OBJS" |
| 14986 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14987 | MACHDEP_OBJS=$extra_machdep_objs |
| 14988 | else |
| 14989 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14990 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 14991 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 14992 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14993 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14994 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14995 | |
| 14996 | |
| 14997 | |
| 14998 | |
| 14999 | |
| 15000 | |
| 15001 | |
| 15002 | |
| 15003 | |
| 15004 | |
| 15005 | |
| 15006 | |
| 15007 | |
| 15008 | |
| 15009 | |
| 15010 | |
| 15011 | |
| 15012 | |
| 15013 | |
| 15014 | |
| 15015 | |
| 15016 | |
| 15017 | |
| 15018 | |
| 15019 | |
| 15020 | |
| 15021 | |
| 15022 | |
| 15023 | |
| 15024 | |
| 15025 | |
| 15026 | |
| 15027 | |
| 15028 | |
| 15029 | |
| 15030 | |
| 15031 | |
| 15032 | |
| 15033 | |
| 15034 | |
| 15035 | |
| 15036 | |
| 15037 | |
| 15038 | |
| 15039 | |
| 15040 | |
| 15041 | |
| 15042 | |
| 15043 | |
| 15044 | |
| 15045 | |
| 15046 | |
| 15047 | |
| 15048 | |
| 15049 | |
| 15050 | |
| 15051 | |
| 15052 | |
| 15053 | |
| 15054 | |
| 15055 | |
| 15056 | |
| 15057 | |
| 15058 | |
| 15059 | |
| 15060 | |
| 15061 | |
| 15062 | |
| 15063 | |
| 15064 | |
| 15065 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 15066 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 15067 | |
| 15068 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15069 | |
| 15070 | |
Thomas Wouters | cf297e4 | 2007-02-23 15:07:44 +0000 | [diff] [blame] | 15071 | |
| 15072 | |
| 15073 | for ac_func in alarm bind_textdomain_codeset chflags chown clock confstr \ |
| 15074 | ctermid execv fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 15075 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 15076 | getpriority getpwent getspnam getspent getsid getwd \ |
Thomas Wouters | cf297e4 | 2007-02-23 15:07:44 +0000 | [diff] [blame] | 15077 | kill killpg lchflags lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 15078 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 15079 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15080 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 15081 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 15082 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 15083 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15084 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15085 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15086 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15087 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15088 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 15089 | 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] | 15090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15091 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15092 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15093 | /* confdefs.h. */ |
| 15094 | _ACEOF |
| 15095 | cat confdefs.h >>conftest.$ac_ext |
| 15096 | cat >>conftest.$ac_ext <<_ACEOF |
| 15097 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15098 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15099 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15100 | #define $ac_func innocuous_$ac_func |
| 15101 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15102 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15103 | which can conflict with char $ac_func (); below. |
| 15104 | 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] | 15105 | <limits.h> exists even on freestanding compilers. */ |
| 15106 | |
| 15107 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15108 | # include <limits.h> |
| 15109 | #else |
| 15110 | # include <assert.h> |
| 15111 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15112 | |
| 15113 | #undef $ac_func |
| 15114 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15115 | /* Override any GCC internal prototype to avoid an error. |
| 15116 | Use char because int might match the return type of a GCC |
| 15117 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15118 | #ifdef __cplusplus |
| 15119 | extern "C" |
| 15120 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15121 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15122 | /* The GNU C library defines this for functions which it implements |
| 15123 | to always fail with ENOSYS. Some functions are actually named |
| 15124 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15125 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15126 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15127 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15128 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15129 | int |
| 15130 | main () |
| 15131 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15132 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15133 | ; |
| 15134 | return 0; |
| 15135 | } |
| 15136 | _ACEOF |
| 15137 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15138 | if { (ac_try="$ac_link" |
| 15139 | case "(($ac_try" in |
| 15140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15141 | *) ac_try_echo=$ac_try;; |
| 15142 | esac |
| 15143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15144 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15145 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15147 | rm -f conftest.er1 |
| 15148 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15150 | (exit $ac_status); } && { |
| 15151 | test -z "$ac_c_werror_flag" || |
| 15152 | test ! -s conftest.err |
| 15153 | } && test -s conftest$ac_exeext && |
| 15154 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15155 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15156 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15157 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15159 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15160 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15161 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15162 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15163 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15164 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15165 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15166 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15167 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15168 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15169 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15170 | cat >>confdefs.h <<_ACEOF |
| 15171 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15172 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15173 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15174 | fi |
| 15175 | done |
| 15176 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15177 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15178 | # For some functions, having a definition is not sufficient, since |
| 15179 | # we want to take their address. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15180 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 15181 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15182 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15183 | /* confdefs.h. */ |
| 15184 | _ACEOF |
| 15185 | cat confdefs.h >>conftest.$ac_ext |
| 15186 | cat >>conftest.$ac_ext <<_ACEOF |
| 15187 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15188 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15189 | int |
| 15190 | main () |
| 15191 | { |
| 15192 | void *x=chroot |
| 15193 | ; |
| 15194 | return 0; |
| 15195 | } |
| 15196 | _ACEOF |
| 15197 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15198 | if { (ac_try="$ac_compile" |
| 15199 | case "(($ac_try" in |
| 15200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15201 | *) ac_try_echo=$ac_try;; |
| 15202 | esac |
| 15203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15204 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15205 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15207 | rm -f conftest.er1 |
| 15208 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15210 | (exit $ac_status); } && { |
| 15211 | test -z "$ac_c_werror_flag" || |
| 15212 | test ! -s conftest.err |
| 15213 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15214 | |
| 15215 | cat >>confdefs.h <<\_ACEOF |
| 15216 | #define HAVE_CHROOT 1 |
| 15217 | _ACEOF |
| 15218 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15219 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15220 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15221 | else |
| 15222 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15224 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15225 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15226 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15227 | |
| 15228 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15229 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15231 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 15232 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15233 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15234 | /* confdefs.h. */ |
| 15235 | _ACEOF |
| 15236 | cat confdefs.h >>conftest.$ac_ext |
| 15237 | cat >>conftest.$ac_ext <<_ACEOF |
| 15238 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15239 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15240 | int |
| 15241 | main () |
| 15242 | { |
| 15243 | void *x=link |
| 15244 | ; |
| 15245 | return 0; |
| 15246 | } |
| 15247 | _ACEOF |
| 15248 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15249 | if { (ac_try="$ac_compile" |
| 15250 | case "(($ac_try" in |
| 15251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15252 | *) ac_try_echo=$ac_try;; |
| 15253 | esac |
| 15254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15255 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15256 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15258 | rm -f conftest.er1 |
| 15259 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15261 | (exit $ac_status); } && { |
| 15262 | test -z "$ac_c_werror_flag" || |
| 15263 | test ! -s conftest.err |
| 15264 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15265 | |
| 15266 | cat >>confdefs.h <<\_ACEOF |
| 15267 | #define HAVE_LINK 1 |
| 15268 | _ACEOF |
| 15269 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15270 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15271 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15272 | else |
| 15273 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15275 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15276 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15277 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15278 | |
| 15279 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15280 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15282 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 15283 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15284 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15285 | /* confdefs.h. */ |
| 15286 | _ACEOF |
| 15287 | cat confdefs.h >>conftest.$ac_ext |
| 15288 | cat >>conftest.$ac_ext <<_ACEOF |
| 15289 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15290 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15291 | int |
| 15292 | main () |
| 15293 | { |
| 15294 | void *x=symlink |
| 15295 | ; |
| 15296 | return 0; |
| 15297 | } |
| 15298 | _ACEOF |
| 15299 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15300 | if { (ac_try="$ac_compile" |
| 15301 | case "(($ac_try" in |
| 15302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15303 | *) ac_try_echo=$ac_try;; |
| 15304 | esac |
| 15305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15306 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15307 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15309 | rm -f conftest.er1 |
| 15310 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15312 | (exit $ac_status); } && { |
| 15313 | test -z "$ac_c_werror_flag" || |
| 15314 | test ! -s conftest.err |
| 15315 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15316 | |
| 15317 | cat >>confdefs.h <<\_ACEOF |
| 15318 | #define HAVE_SYMLINK 1 |
| 15319 | _ACEOF |
| 15320 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15321 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15322 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15323 | else |
| 15324 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15326 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15327 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15328 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15329 | |
| 15330 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15331 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15333 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 15334 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15335 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15336 | /* confdefs.h. */ |
| 15337 | _ACEOF |
| 15338 | cat confdefs.h >>conftest.$ac_ext |
| 15339 | cat >>conftest.$ac_ext <<_ACEOF |
| 15340 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15341 | #include <unistd.h> |
| 15342 | int |
| 15343 | main () |
| 15344 | { |
| 15345 | void *x=fchdir |
| 15346 | ; |
| 15347 | return 0; |
| 15348 | } |
| 15349 | _ACEOF |
| 15350 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15351 | if { (ac_try="$ac_compile" |
| 15352 | case "(($ac_try" in |
| 15353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15354 | *) ac_try_echo=$ac_try;; |
| 15355 | esac |
| 15356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15357 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15358 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15360 | rm -f conftest.er1 |
| 15361 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15363 | (exit $ac_status); } && { |
| 15364 | test -z "$ac_c_werror_flag" || |
| 15365 | test ! -s conftest.err |
| 15366 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15367 | |
| 15368 | cat >>confdefs.h <<\_ACEOF |
| 15369 | #define HAVE_FCHDIR 1 |
| 15370 | _ACEOF |
| 15371 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15372 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15373 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15374 | else |
| 15375 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15377 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15378 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15379 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15380 | |
| 15381 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15382 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15384 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 15385 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +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 | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15392 | #include <unistd.h> |
| 15393 | int |
| 15394 | main () |
| 15395 | { |
| 15396 | void *x=fsync |
| 15397 | ; |
| 15398 | return 0; |
| 15399 | } |
| 15400 | _ACEOF |
| 15401 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15402 | if { (ac_try="$ac_compile" |
| 15403 | case "(($ac_try" in |
| 15404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15405 | *) ac_try_echo=$ac_try;; |
| 15406 | esac |
| 15407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15408 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15409 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15411 | rm -f conftest.er1 |
| 15412 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15414 | (exit $ac_status); } && { |
| 15415 | test -z "$ac_c_werror_flag" || |
| 15416 | test ! -s conftest.err |
| 15417 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15418 | |
| 15419 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15420 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15421 | _ACEOF |
| 15422 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15423 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15424 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15425 | else |
| 15426 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15428 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15429 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15430 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15431 | |
| 15432 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15433 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15435 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 15436 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15437 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15438 | /* confdefs.h. */ |
| 15439 | _ACEOF |
| 15440 | cat confdefs.h >>conftest.$ac_ext |
| 15441 | cat >>conftest.$ac_ext <<_ACEOF |
| 15442 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15443 | #include <unistd.h> |
| 15444 | int |
| 15445 | main () |
| 15446 | { |
| 15447 | void *x=fdatasync |
| 15448 | ; |
| 15449 | return 0; |
| 15450 | } |
| 15451 | _ACEOF |
| 15452 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15453 | if { (ac_try="$ac_compile" |
| 15454 | case "(($ac_try" in |
| 15455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15456 | *) ac_try_echo=$ac_try;; |
| 15457 | esac |
| 15458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15459 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15460 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15462 | rm -f conftest.er1 |
| 15463 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15465 | (exit $ac_status); } && { |
| 15466 | test -z "$ac_c_werror_flag" || |
| 15467 | test ! -s conftest.err |
| 15468 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15469 | |
| 15470 | cat >>confdefs.h <<\_ACEOF |
| 15471 | #define HAVE_FDATASYNC 1 |
| 15472 | _ACEOF |
| 15473 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15474 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15475 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15476 | else |
| 15477 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15479 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15480 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15481 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 15482 | |
| 15483 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15484 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 15486 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15487 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 15488 | # functions ctermid_r, setgroups in the library, but no prototype |
| 15489 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 15490 | # address to avoid compiler warnings and potential miscompilations |
| 15491 | # because of the missing prototypes. |
| 15492 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15493 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 15494 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15495 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15496 | /* confdefs.h. */ |
| 15497 | _ACEOF |
| 15498 | cat confdefs.h >>conftest.$ac_ext |
| 15499 | cat >>conftest.$ac_ext <<_ACEOF |
| 15500 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15501 | |
| 15502 | #include "confdefs.h" |
| 15503 | #include <stdio.h> |
| 15504 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15505 | int |
| 15506 | main () |
| 15507 | { |
| 15508 | void* p = ctermid_r |
| 15509 | ; |
| 15510 | return 0; |
| 15511 | } |
| 15512 | _ACEOF |
| 15513 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15514 | if { (ac_try="$ac_compile" |
| 15515 | case "(($ac_try" in |
| 15516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15517 | *) ac_try_echo=$ac_try;; |
| 15518 | esac |
| 15519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15520 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15521 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15523 | rm -f conftest.er1 |
| 15524 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15526 | (exit $ac_status); } && { |
| 15527 | test -z "$ac_c_werror_flag" || |
| 15528 | test ! -s conftest.err |
| 15529 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15530 | |
| 15531 | cat >>confdefs.h <<\_ACEOF |
| 15532 | #define HAVE_CTERMID_R 1 |
| 15533 | _ACEOF |
| 15534 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15535 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15536 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15537 | else |
| 15538 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15540 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15541 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15542 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15543 | |
| 15544 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15545 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15546 | 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] | 15547 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15548 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 15549 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15550 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15551 | /* confdefs.h. */ |
| 15552 | _ACEOF |
| 15553 | cat confdefs.h >>conftest.$ac_ext |
| 15554 | cat >>conftest.$ac_ext <<_ACEOF |
| 15555 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15556 | |
| 15557 | #include "confdefs.h" |
| 15558 | #include <sys/file.h> |
| 15559 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15560 | int |
| 15561 | main () |
| 15562 | { |
| 15563 | void* p = flock |
| 15564 | ; |
| 15565 | return 0; |
| 15566 | } |
| 15567 | _ACEOF |
| 15568 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15569 | if { (ac_try="$ac_compile" |
| 15570 | case "(($ac_try" in |
| 15571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15572 | *) ac_try_echo=$ac_try;; |
| 15573 | esac |
| 15574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15575 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15576 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15578 | rm -f conftest.er1 |
| 15579 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15581 | (exit $ac_status); } && { |
| 15582 | test -z "$ac_c_werror_flag" || |
| 15583 | test ! -s conftest.err |
| 15584 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15585 | |
| 15586 | cat >>confdefs.h <<\_ACEOF |
| 15587 | #define HAVE_FLOCK 1 |
| 15588 | _ACEOF |
| 15589 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15590 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15591 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15592 | else |
| 15593 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15595 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15596 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15597 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15598 | |
| 15599 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15600 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15601 | 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] | 15602 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15603 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 15604 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15605 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15606 | /* confdefs.h. */ |
| 15607 | _ACEOF |
| 15608 | cat confdefs.h >>conftest.$ac_ext |
| 15609 | cat >>conftest.$ac_ext <<_ACEOF |
| 15610 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15611 | |
| 15612 | #include "confdefs.h" |
| 15613 | #include <unistd.h> |
| 15614 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15615 | int |
| 15616 | main () |
| 15617 | { |
| 15618 | void* p = getpagesize |
| 15619 | ; |
| 15620 | return 0; |
| 15621 | } |
| 15622 | _ACEOF |
| 15623 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15624 | if { (ac_try="$ac_compile" |
| 15625 | case "(($ac_try" in |
| 15626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15627 | *) ac_try_echo=$ac_try;; |
| 15628 | esac |
| 15629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15630 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15631 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15633 | rm -f conftest.er1 |
| 15634 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15636 | (exit $ac_status); } && { |
| 15637 | test -z "$ac_c_werror_flag" || |
| 15638 | test ! -s conftest.err |
| 15639 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15640 | |
| 15641 | cat >>confdefs.h <<\_ACEOF |
| 15642 | #define HAVE_GETPAGESIZE 1 |
| 15643 | _ACEOF |
| 15644 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15645 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15646 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15647 | else |
| 15648 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15650 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15651 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15652 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 15653 | |
| 15654 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15655 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15656 | 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] | 15657 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15658 | for ac_prog in true |
| 15659 | do |
| 15660 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 15661 | set dummy $ac_prog; ac_word=$2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15662 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15664 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 15665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15666 | else |
| 15667 | if test -n "$TRUE"; then |
| 15668 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 15669 | else |
| 15670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15671 | for as_dir in $PATH |
| 15672 | do |
| 15673 | IFS=$as_save_IFS |
| 15674 | test -z "$as_dir" && as_dir=. |
| 15675 | for ac_exec_ext in '' $ac_executable_extensions; do |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15676 | 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] | 15677 | ac_cv_prog_TRUE="$ac_prog" |
| 15678 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15679 | break 2 |
| 15680 | fi |
| 15681 | done |
| 15682 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15683 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15684 | |
| 15685 | fi |
| 15686 | fi |
| 15687 | TRUE=$ac_cv_prog_TRUE |
| 15688 | if test -n "$TRUE"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15689 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 15690 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15691 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15692 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15693 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15694 | fi |
| 15695 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15696 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15697 | test -n "$TRUE" && break |
| 15698 | done |
| 15699 | test -n "$TRUE" || TRUE="/bin/true" |
| 15700 | |
| 15701 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15702 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 15703 | 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] | 15704 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 15705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15706 | else |
| 15707 | ac_check_lib_save_LIBS=$LIBS |
| 15708 | LIBS="-lc $LIBS" |
| 15709 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15710 | /* confdefs.h. */ |
| 15711 | _ACEOF |
| 15712 | cat confdefs.h >>conftest.$ac_ext |
| 15713 | cat >>conftest.$ac_ext <<_ACEOF |
| 15714 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15715 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15716 | /* Override any GCC internal prototype to avoid an error. |
| 15717 | Use char because int might match the return type of a GCC |
| 15718 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15719 | #ifdef __cplusplus |
| 15720 | extern "C" |
| 15721 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15722 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15723 | int |
| 15724 | main () |
| 15725 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15726 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15727 | ; |
| 15728 | return 0; |
| 15729 | } |
| 15730 | _ACEOF |
| 15731 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15732 | if { (ac_try="$ac_link" |
| 15733 | case "(($ac_try" in |
| 15734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15735 | *) ac_try_echo=$ac_try;; |
| 15736 | esac |
| 15737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15738 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15739 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15741 | rm -f conftest.er1 |
| 15742 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15744 | (exit $ac_status); } && { |
| 15745 | test -z "$ac_c_werror_flag" || |
| 15746 | test ! -s conftest.err |
| 15747 | } && test -s conftest$ac_exeext && |
| 15748 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15749 | ac_cv_lib_c_inet_aton=yes |
| 15750 | else |
| 15751 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15753 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15754 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15755 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15756 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15757 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15758 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15759 | LIBS=$ac_check_lib_save_LIBS |
| 15760 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15761 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 15762 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15763 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15764 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15765 | else |
| 15766 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15767 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 15768 | 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] | 15769 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 15770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15771 | else |
| 15772 | ac_check_lib_save_LIBS=$LIBS |
| 15773 | LIBS="-lresolv $LIBS" |
| 15774 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15775 | /* confdefs.h. */ |
| 15776 | _ACEOF |
| 15777 | cat confdefs.h >>conftest.$ac_ext |
| 15778 | cat >>conftest.$ac_ext <<_ACEOF |
| 15779 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15780 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15781 | /* Override any GCC internal prototype to avoid an error. |
| 15782 | Use char because int might match the return type of a GCC |
| 15783 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15784 | #ifdef __cplusplus |
| 15785 | extern "C" |
| 15786 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15787 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15788 | int |
| 15789 | main () |
| 15790 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15791 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15792 | ; |
| 15793 | return 0; |
| 15794 | } |
| 15795 | _ACEOF |
| 15796 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15797 | if { (ac_try="$ac_link" |
| 15798 | case "(($ac_try" in |
| 15799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15800 | *) ac_try_echo=$ac_try;; |
| 15801 | esac |
| 15802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15803 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15804 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15806 | rm -f conftest.er1 |
| 15807 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15809 | (exit $ac_status); } && { |
| 15810 | test -z "$ac_c_werror_flag" || |
| 15811 | test ! -s conftest.err |
| 15812 | } && test -s conftest$ac_exeext && |
| 15813 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15814 | ac_cv_lib_resolv_inet_aton=yes |
| 15815 | else |
| 15816 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15818 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15819 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15820 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15821 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15822 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15823 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15824 | LIBS=$ac_check_lib_save_LIBS |
| 15825 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15826 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 15827 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15828 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 15829 | cat >>confdefs.h <<_ACEOF |
| 15830 | #define HAVE_LIBRESOLV 1 |
| 15831 | _ACEOF |
| 15832 | |
| 15833 | LIBS="-lresolv $LIBS" |
| 15834 | |
| 15835 | fi |
| 15836 | |
| 15837 | |
| 15838 | fi |
| 15839 | |
| 15840 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15841 | case $ac_sys_system/$ac_sys_release in |
| 15842 | Darwin/*) |
| 15843 | _CUR_CFLAGS="${CFLAGS}" |
| 15844 | _CUR_LDFLAGS="${LDFLAGS}" |
| 15845 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 15846 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 15847 | ;; |
| 15848 | esac |
| 15849 | |
| 15850 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 15851 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
| 15852 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
| 15853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15854 | else |
| 15855 | ac_check_lib_save_LIBS=$LIBS |
| 15856 | LIBS="-lz $LIBS" |
| 15857 | cat >conftest.$ac_ext <<_ACEOF |
| 15858 | /* confdefs.h. */ |
| 15859 | _ACEOF |
| 15860 | cat confdefs.h >>conftest.$ac_ext |
| 15861 | cat >>conftest.$ac_ext <<_ACEOF |
| 15862 | /* end confdefs.h. */ |
| 15863 | |
| 15864 | /* Override any GCC internal prototype to avoid an error. |
| 15865 | Use char because int might match the return type of a GCC |
| 15866 | builtin and then its argument prototype would still apply. */ |
| 15867 | #ifdef __cplusplus |
| 15868 | extern "C" |
| 15869 | #endif |
| 15870 | char inflateCopy (); |
| 15871 | int |
| 15872 | main () |
| 15873 | { |
| 15874 | return inflateCopy (); |
| 15875 | ; |
| 15876 | return 0; |
| 15877 | } |
| 15878 | _ACEOF |
| 15879 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15880 | if { (ac_try="$ac_link" |
| 15881 | case "(($ac_try" in |
| 15882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15883 | *) ac_try_echo=$ac_try;; |
| 15884 | esac |
| 15885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15886 | (eval "$ac_link") 2>conftest.er1 |
| 15887 | ac_status=$? |
| 15888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15889 | rm -f conftest.er1 |
| 15890 | cat conftest.err >&5 |
| 15891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15892 | (exit $ac_status); } && { |
| 15893 | test -z "$ac_c_werror_flag" || |
| 15894 | test ! -s conftest.err |
| 15895 | } && test -s conftest$ac_exeext && |
| 15896 | $as_test_x conftest$ac_exeext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15897 | ac_cv_lib_z_inflateCopy=yes |
| 15898 | else |
| 15899 | echo "$as_me: failed program was:" >&5 |
| 15900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15901 | |
| 15902 | ac_cv_lib_z_inflateCopy=no |
| 15903 | fi |
| 15904 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15905 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 15906 | conftest$ac_exeext conftest.$ac_ext |
| 15907 | LIBS=$ac_check_lib_save_LIBS |
| 15908 | fi |
| 15909 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 15910 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
| 15911 | if test $ac_cv_lib_z_inflateCopy = yes; then |
| 15912 | |
| 15913 | cat >>confdefs.h <<\_ACEOF |
| 15914 | #define HAVE_ZLIB_COPY 1 |
| 15915 | _ACEOF |
| 15916 | |
| 15917 | fi |
| 15918 | |
| 15919 | |
| 15920 | case $ac_sys_system/$ac_sys_release in |
| 15921 | Darwin/*) |
| 15922 | CFLAGS="${_CUR_CFLAGS}" |
| 15923 | LDFLAGS="${_CUR_LDFLAGS}" |
| 15924 | ;; |
| 15925 | esac |
| 15926 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15927 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 15928 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15929 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15930 | /* confdefs.h. */ |
| 15931 | _ACEOF |
| 15932 | cat confdefs.h >>conftest.$ac_ext |
| 15933 | cat >>conftest.$ac_ext <<_ACEOF |
| 15934 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15935 | |
| 15936 | #include "confdefs.h" |
| 15937 | #include <netdb.h> |
| 15938 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15939 | int |
| 15940 | main () |
| 15941 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15942 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15943 | ; |
| 15944 | return 0; |
| 15945 | } |
| 15946 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 15947 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 15948 | if { (ac_try="$ac_link" |
| 15949 | case "(($ac_try" in |
| 15950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15951 | *) ac_try_echo=$ac_try;; |
| 15952 | esac |
| 15953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15954 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15955 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15957 | rm -f conftest.er1 |
| 15958 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15960 | (exit $ac_status); } && { |
| 15961 | test -z "$ac_c_werror_flag" || |
| 15962 | test ! -s conftest.err |
| 15963 | } && test -s conftest$ac_exeext && |
| 15964 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15965 | |
| 15966 | cat >>confdefs.h <<\_ACEOF |
| 15967 | #define HAVE_HSTRERROR 1 |
| 15968 | _ACEOF |
| 15969 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15970 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15971 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15972 | else |
| 15973 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15975 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15976 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15977 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15978 | |
| 15979 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15980 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 15981 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15982 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15983 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 15984 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 15985 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15986 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15987 | /* confdefs.h. */ |
| 15988 | _ACEOF |
| 15989 | cat confdefs.h >>conftest.$ac_ext |
| 15990 | cat >>conftest.$ac_ext <<_ACEOF |
| 15991 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15992 | |
| 15993 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 15994 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15995 | #include <sys/socket.h> |
| 15996 | #include <netinet/in.h> |
| 15997 | #include <arpa/inet.h> |
| 15998 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15999 | int |
| 16000 | main () |
| 16001 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16002 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16003 | ; |
| 16004 | return 0; |
| 16005 | } |
| 16006 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 16007 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 16008 | if { (ac_try="$ac_link" |
| 16009 | case "(($ac_try" in |
| 16010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16011 | *) ac_try_echo=$ac_try;; |
| 16012 | esac |
| 16013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16014 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16015 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16017 | rm -f conftest.er1 |
| 16018 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16020 | (exit $ac_status); } && { |
| 16021 | test -z "$ac_c_werror_flag" || |
| 16022 | test ! -s conftest.err |
| 16023 | } && test -s conftest$ac_exeext && |
| 16024 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16025 | |
| 16026 | cat >>confdefs.h <<\_ACEOF |
| 16027 | #define HAVE_INET_ATON 1 |
| 16028 | _ACEOF |
| 16029 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16030 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16031 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16032 | else |
| 16033 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16035 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16036 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16037 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16038 | |
| 16039 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16040 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16041 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16042 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16043 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16044 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 16045 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16046 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16047 | /* confdefs.h. */ |
| 16048 | _ACEOF |
| 16049 | cat confdefs.h >>conftest.$ac_ext |
| 16050 | cat >>conftest.$ac_ext <<_ACEOF |
| 16051 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16052 | |
| 16053 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 16054 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16055 | #include <sys/socket.h> |
| 16056 | #include <netinet/in.h> |
| 16057 | #include <arpa/inet.h> |
| 16058 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16059 | int |
| 16060 | main () |
| 16061 | { |
| 16062 | void* p = inet_pton |
| 16063 | ; |
| 16064 | return 0; |
| 16065 | } |
| 16066 | _ACEOF |
| 16067 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 16068 | if { (ac_try="$ac_compile" |
| 16069 | case "(($ac_try" in |
| 16070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16071 | *) ac_try_echo=$ac_try;; |
| 16072 | esac |
| 16073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16074 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16075 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16077 | rm -f conftest.er1 |
| 16078 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16080 | (exit $ac_status); } && { |
| 16081 | test -z "$ac_c_werror_flag" || |
| 16082 | test ! -s conftest.err |
| 16083 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16084 | |
| 16085 | cat >>confdefs.h <<\_ACEOF |
| 16086 | #define HAVE_INET_PTON 1 |
| 16087 | _ACEOF |
| 16088 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16089 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16090 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16091 | else |
| 16092 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16094 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16095 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16096 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 16097 | |
| 16098 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16099 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16100 | 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] | 16101 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 16102 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16103 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 16104 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16105 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16106 | /* confdefs.h. */ |
| 16107 | _ACEOF |
| 16108 | cat confdefs.h >>conftest.$ac_ext |
| 16109 | cat >>conftest.$ac_ext <<_ACEOF |
| 16110 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16111 | |
| 16112 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 16113 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 16114 | #ifdef HAVE_GRP_H |
| 16115 | #include <grp.h> |
| 16116 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16117 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16118 | int |
| 16119 | main () |
| 16120 | { |
| 16121 | void* p = setgroups |
| 16122 | ; |
| 16123 | return 0; |
| 16124 | } |
| 16125 | _ACEOF |
| 16126 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 16127 | if { (ac_try="$ac_compile" |
| 16128 | case "(($ac_try" in |
| 16129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16130 | *) ac_try_echo=$ac_try;; |
| 16131 | esac |
| 16132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16133 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16134 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16136 | rm -f conftest.er1 |
| 16137 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16139 | (exit $ac_status); } && { |
| 16140 | test -z "$ac_c_werror_flag" || |
| 16141 | test ! -s conftest.err |
| 16142 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16143 | |
| 16144 | cat >>confdefs.h <<\_ACEOF |
| 16145 | #define HAVE_SETGROUPS 1 |
| 16146 | _ACEOF |
| 16147 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16148 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16149 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16150 | else |
| 16151 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16153 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16154 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16155 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 16156 | |
| 16157 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16158 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16159 | 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] | 16160 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16161 | # check for openpty and forkpty |
| 16162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16163 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16164 | for ac_func in openpty |
| 16165 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16166 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16167 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16168 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16169 | 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] | 16170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16171 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16172 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16173 | /* confdefs.h. */ |
| 16174 | _ACEOF |
| 16175 | cat confdefs.h >>conftest.$ac_ext |
| 16176 | cat >>conftest.$ac_ext <<_ACEOF |
| 16177 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16178 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16179 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16180 | #define $ac_func innocuous_$ac_func |
| 16181 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16182 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16183 | which can conflict with char $ac_func (); below. |
| 16184 | 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] | 16185 | <limits.h> exists even on freestanding compilers. */ |
| 16186 | |
| 16187 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16188 | # include <limits.h> |
| 16189 | #else |
| 16190 | # include <assert.h> |
| 16191 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16192 | |
| 16193 | #undef $ac_func |
| 16194 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16195 | /* Override any GCC internal prototype to avoid an error. |
| 16196 | Use char because int might match the return type of a GCC |
| 16197 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16198 | #ifdef __cplusplus |
| 16199 | extern "C" |
| 16200 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16201 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16202 | /* The GNU C library defines this for functions which it implements |
| 16203 | to always fail with ENOSYS. Some functions are actually named |
| 16204 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16205 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16206 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16207 | #endif |
| 16208 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16209 | int |
| 16210 | main () |
| 16211 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16212 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16213 | ; |
| 16214 | return 0; |
| 16215 | } |
| 16216 | _ACEOF |
| 16217 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 16218 | if { (ac_try="$ac_link" |
| 16219 | case "(($ac_try" in |
| 16220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16221 | *) ac_try_echo=$ac_try;; |
| 16222 | esac |
| 16223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16224 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16225 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16227 | rm -f conftest.er1 |
| 16228 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16230 | (exit $ac_status); } && { |
| 16231 | test -z "$ac_c_werror_flag" || |
| 16232 | test ! -s conftest.err |
| 16233 | } && test -s conftest$ac_exeext && |
| 16234 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16235 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16237 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16239 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16240 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16241 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16242 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16243 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16244 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16245 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16246 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16247 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16248 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16249 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16250 | cat >>confdefs.h <<_ACEOF |
| 16251 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16252 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16253 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16254 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16255 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 16256 | 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] | 16257 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 16258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16259 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16260 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16261 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16262 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16263 | /* confdefs.h. */ |
| 16264 | _ACEOF |
| 16265 | cat confdefs.h >>conftest.$ac_ext |
| 16266 | cat >>conftest.$ac_ext <<_ACEOF |
| 16267 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16268 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16269 | /* Override any GCC internal prototype to avoid an error. |
| 16270 | Use char because int might match the return type of a GCC |
| 16271 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16272 | #ifdef __cplusplus |
| 16273 | extern "C" |
| 16274 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16275 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16276 | int |
| 16277 | main () |
| 16278 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16279 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16280 | ; |
| 16281 | return 0; |
| 16282 | } |
| 16283 | _ACEOF |
| 16284 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 16285 | if { (ac_try="$ac_link" |
| 16286 | case "(($ac_try" in |
| 16287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16288 | *) ac_try_echo=$ac_try;; |
| 16289 | esac |
| 16290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16291 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16292 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16294 | rm -f conftest.er1 |
| 16295 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16297 | (exit $ac_status); } && { |
| 16298 | test -z "$ac_c_werror_flag" || |
| 16299 | test ! -s conftest.err |
| 16300 | } && test -s conftest$ac_exeext && |
| 16301 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16302 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16304 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16306 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16307 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16308 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16309 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16310 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16311 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16312 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16313 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16314 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 16315 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16316 | if test $ac_cv_lib_util_openpty = yes; then |
| 16317 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16318 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16319 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16320 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16321 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16322 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 16323 | 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] | 16324 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
| 16325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16326 | else |
| 16327 | ac_check_lib_save_LIBS=$LIBS |
| 16328 | LIBS="-lbsd $LIBS" |
| 16329 | cat >conftest.$ac_ext <<_ACEOF |
| 16330 | /* confdefs.h. */ |
| 16331 | _ACEOF |
| 16332 | cat confdefs.h >>conftest.$ac_ext |
| 16333 | cat >>conftest.$ac_ext <<_ACEOF |
| 16334 | /* end confdefs.h. */ |
| 16335 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16336 | /* Override any GCC internal prototype to avoid an error. |
| 16337 | Use char because int might match the return type of a GCC |
| 16338 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16339 | #ifdef __cplusplus |
| 16340 | extern "C" |
| 16341 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16342 | char openpty (); |
| 16343 | int |
| 16344 | main () |
| 16345 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16346 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16347 | ; |
| 16348 | return 0; |
| 16349 | } |
| 16350 | _ACEOF |
| 16351 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 16352 | if { (ac_try="$ac_link" |
| 16353 | case "(($ac_try" in |
| 16354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16355 | *) ac_try_echo=$ac_try;; |
| 16356 | esac |
| 16357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16358 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16359 | ac_status=$? |
| 16360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16361 | rm -f conftest.er1 |
| 16362 | cat conftest.err >&5 |
| 16363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16364 | (exit $ac_status); } && { |
| 16365 | test -z "$ac_c_werror_flag" || |
| 16366 | test ! -s conftest.err |
| 16367 | } && test -s conftest$ac_exeext && |
| 16368 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16369 | ac_cv_lib_bsd_openpty=yes |
| 16370 | else |
| 16371 | echo "$as_me: failed program was:" >&5 |
| 16372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16373 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16374 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16375 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16376 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16377 | 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] | 16378 | conftest$ac_exeext conftest.$ac_ext |
| 16379 | LIBS=$ac_check_lib_save_LIBS |
| 16380 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16381 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 16382 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16383 | if test $ac_cv_lib_bsd_openpty = yes; then |
| 16384 | cat >>confdefs.h <<\_ACEOF |
| 16385 | #define HAVE_OPENPTY 1 |
| 16386 | _ACEOF |
| 16387 | LIBS="$LIBS -lbsd" |
| 16388 | fi |
| 16389 | |
| 16390 | |
| 16391 | fi |
| 16392 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16393 | |
| 16394 | fi |
| 16395 | done |
| 16396 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16397 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16398 | for ac_func in forkpty |
| 16399 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16400 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16401 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16402 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16403 | 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] | 16404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16405 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16406 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16407 | /* confdefs.h. */ |
| 16408 | _ACEOF |
| 16409 | cat confdefs.h >>conftest.$ac_ext |
| 16410 | cat >>conftest.$ac_ext <<_ACEOF |
| 16411 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16412 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16413 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16414 | #define $ac_func innocuous_$ac_func |
| 16415 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16416 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16417 | which can conflict with char $ac_func (); below. |
| 16418 | 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] | 16419 | <limits.h> exists even on freestanding compilers. */ |
| 16420 | |
| 16421 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16422 | # include <limits.h> |
| 16423 | #else |
| 16424 | # include <assert.h> |
| 16425 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16426 | |
| 16427 | #undef $ac_func |
| 16428 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16429 | /* Override any GCC internal prototype to avoid an error. |
| 16430 | Use char because int might match the return type of a GCC |
| 16431 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16432 | #ifdef __cplusplus |
| 16433 | extern "C" |
| 16434 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16435 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16436 | /* The GNU C library defines this for functions which it implements |
| 16437 | to always fail with ENOSYS. Some functions are actually named |
| 16438 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16439 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16440 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16441 | #endif |
| 16442 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16443 | int |
| 16444 | main () |
| 16445 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16446 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16447 | ; |
| 16448 | return 0; |
| 16449 | } |
| 16450 | _ACEOF |
| 16451 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 16452 | if { (ac_try="$ac_link" |
| 16453 | case "(($ac_try" in |
| 16454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16455 | *) ac_try_echo=$ac_try;; |
| 16456 | esac |
| 16457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16458 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16459 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16461 | rm -f conftest.er1 |
| 16462 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16464 | (exit $ac_status); } && { |
| 16465 | test -z "$ac_c_werror_flag" || |
| 16466 | test ! -s conftest.err |
| 16467 | } && test -s conftest$ac_exeext && |
| 16468 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16469 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16470 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16471 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16473 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16474 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16475 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16476 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16477 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16478 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16479 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16480 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16481 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16482 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16483 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16484 | cat >>confdefs.h <<_ACEOF |
| 16485 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16486 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16487 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16488 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16489 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 16490 | 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] | 16491 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 16492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16493 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16494 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16495 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16496 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16497 | /* confdefs.h. */ |
| 16498 | _ACEOF |
| 16499 | cat confdefs.h >>conftest.$ac_ext |
| 16500 | cat >>conftest.$ac_ext <<_ACEOF |
| 16501 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16502 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16503 | /* Override any GCC internal prototype to avoid an error. |
| 16504 | Use char because int might match the return type of a GCC |
| 16505 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16506 | #ifdef __cplusplus |
| 16507 | extern "C" |
| 16508 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16509 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16510 | int |
| 16511 | main () |
| 16512 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16513 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16514 | ; |
| 16515 | return 0; |
| 16516 | } |
| 16517 | _ACEOF |
| 16518 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 16519 | if { (ac_try="$ac_link" |
| 16520 | case "(($ac_try" in |
| 16521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16522 | *) ac_try_echo=$ac_try;; |
| 16523 | esac |
| 16524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16525 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16526 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16528 | rm -f conftest.er1 |
| 16529 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16531 | (exit $ac_status); } && { |
| 16532 | test -z "$ac_c_werror_flag" || |
| 16533 | test ! -s conftest.err |
| 16534 | } && test -s conftest$ac_exeext && |
| 16535 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16536 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16538 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16540 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16541 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16542 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16543 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16544 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16545 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16546 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16547 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16548 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 16549 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16550 | if test $ac_cv_lib_util_forkpty = yes; then |
| 16551 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16552 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16553 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16554 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16555 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16556 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 16557 | 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] | 16558 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
| 16559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16560 | else |
| 16561 | ac_check_lib_save_LIBS=$LIBS |
| 16562 | LIBS="-lbsd $LIBS" |
| 16563 | cat >conftest.$ac_ext <<_ACEOF |
| 16564 | /* confdefs.h. */ |
| 16565 | _ACEOF |
| 16566 | cat confdefs.h >>conftest.$ac_ext |
| 16567 | cat >>conftest.$ac_ext <<_ACEOF |
| 16568 | /* end confdefs.h. */ |
| 16569 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16570 | /* Override any GCC internal prototype to avoid an error. |
| 16571 | Use char because int might match the return type of a GCC |
| 16572 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16573 | #ifdef __cplusplus |
| 16574 | extern "C" |
| 16575 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16576 | char forkpty (); |
| 16577 | int |
| 16578 | main () |
| 16579 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16580 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16581 | ; |
| 16582 | return 0; |
| 16583 | } |
| 16584 | _ACEOF |
| 16585 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 16586 | if { (ac_try="$ac_link" |
| 16587 | case "(($ac_try" in |
| 16588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16589 | *) ac_try_echo=$ac_try;; |
| 16590 | esac |
| 16591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16592 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16593 | ac_status=$? |
| 16594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16595 | rm -f conftest.er1 |
| 16596 | cat conftest.err >&5 |
| 16597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16598 | (exit $ac_status); } && { |
| 16599 | test -z "$ac_c_werror_flag" || |
| 16600 | test ! -s conftest.err |
| 16601 | } && test -s conftest$ac_exeext && |
| 16602 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16603 | ac_cv_lib_bsd_forkpty=yes |
| 16604 | else |
| 16605 | echo "$as_me: failed program was:" >&5 |
| 16606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16607 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16608 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16609 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16610 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16611 | 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] | 16612 | conftest$ac_exeext conftest.$ac_ext |
| 16613 | LIBS=$ac_check_lib_save_LIBS |
| 16614 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16615 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 16616 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 16617 | if test $ac_cv_lib_bsd_forkpty = yes; then |
| 16618 | cat >>confdefs.h <<\_ACEOF |
| 16619 | #define HAVE_FORKPTY 1 |
| 16620 | _ACEOF |
| 16621 | LIBS="$LIBS -lbsd" |
| 16622 | fi |
| 16623 | |
| 16624 | |
| 16625 | fi |
| 16626 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16627 | |
| 16628 | fi |
| 16629 | done |
| 16630 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16631 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16632 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16633 | |
| 16634 | |
| 16635 | |
| 16636 | |
| 16637 | |
| 16638 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 16639 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 16640 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16641 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16642 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16643 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16644 | 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] | 16645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16646 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16647 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16648 | /* confdefs.h. */ |
| 16649 | _ACEOF |
| 16650 | cat confdefs.h >>conftest.$ac_ext |
| 16651 | cat >>conftest.$ac_ext <<_ACEOF |
| 16652 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16653 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16654 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16655 | #define $ac_func innocuous_$ac_func |
| 16656 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16657 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16658 | which can conflict with char $ac_func (); below. |
| 16659 | 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] | 16660 | <limits.h> exists even on freestanding compilers. */ |
| 16661 | |
| 16662 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16663 | # include <limits.h> |
| 16664 | #else |
| 16665 | # include <assert.h> |
| 16666 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16667 | |
| 16668 | #undef $ac_func |
| 16669 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16670 | /* Override any GCC internal prototype to avoid an error. |
| 16671 | Use char because int might match the return type of a GCC |
| 16672 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16673 | #ifdef __cplusplus |
| 16674 | extern "C" |
| 16675 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16676 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16677 | /* The GNU C library defines this for functions which it implements |
| 16678 | to always fail with ENOSYS. Some functions are actually named |
| 16679 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16680 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16681 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 16682 | #endif |
| 16683 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16684 | int |
| 16685 | main () |
| 16686 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16687 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16688 | ; |
| 16689 | return 0; |
| 16690 | } |
| 16691 | _ACEOF |
| 16692 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 16693 | if { (ac_try="$ac_link" |
| 16694 | case "(($ac_try" in |
| 16695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16696 | *) ac_try_echo=$ac_try;; |
| 16697 | esac |
| 16698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16699 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16700 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16702 | rm -f conftest.er1 |
| 16703 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16705 | (exit $ac_status); } && { |
| 16706 | test -z "$ac_c_werror_flag" || |
| 16707 | test ! -s conftest.err |
| 16708 | } && test -s conftest$ac_exeext && |
| 16709 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16710 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16712 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16714 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16715 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16716 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16717 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16718 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16719 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16720 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16721 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16722 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16723 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16724 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16725 | cat >>confdefs.h <<_ACEOF |
| 16726 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16727 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16728 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16729 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16730 | done |
| 16731 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16733 | |
| 16734 | |
| 16735 | |
| 16736 | |
| 16737 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16738 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16739 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16740 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16741 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16742 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16743 | 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] | 16744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16746 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16747 | /* confdefs.h. */ |
| 16748 | _ACEOF |
| 16749 | cat confdefs.h >>conftest.$ac_ext |
| 16750 | cat >>conftest.$ac_ext <<_ACEOF |
| 16751 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16752 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16753 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16754 | #define $ac_func innocuous_$ac_func |
| 16755 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16756 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16757 | which can conflict with char $ac_func (); below. |
| 16758 | 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] | 16759 | <limits.h> exists even on freestanding compilers. */ |
| 16760 | |
| 16761 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16762 | # include <limits.h> |
| 16763 | #else |
| 16764 | # include <assert.h> |
| 16765 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16766 | |
| 16767 | #undef $ac_func |
| 16768 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16769 | /* Override any GCC internal prototype to avoid an error. |
| 16770 | Use char because int might match the return type of a GCC |
| 16771 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16772 | #ifdef __cplusplus |
| 16773 | extern "C" |
| 16774 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16775 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16776 | /* The GNU C library defines this for functions which it implements |
| 16777 | to always fail with ENOSYS. Some functions are actually named |
| 16778 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16779 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16780 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16781 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16782 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16783 | int |
| 16784 | main () |
| 16785 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16786 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16787 | ; |
| 16788 | return 0; |
| 16789 | } |
| 16790 | _ACEOF |
| 16791 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 16792 | if { (ac_try="$ac_link" |
| 16793 | case "(($ac_try" in |
| 16794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16795 | *) ac_try_echo=$ac_try;; |
| 16796 | esac |
| 16797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16798 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16799 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16801 | rm -f conftest.er1 |
| 16802 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16804 | (exit $ac_status); } && { |
| 16805 | test -z "$ac_c_werror_flag" || |
| 16806 | test ! -s conftest.err |
| 16807 | } && test -s conftest$ac_exeext && |
| 16808 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16809 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16810 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16811 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16813 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16814 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16815 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16816 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16817 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16818 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16819 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16820 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16821 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16822 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16823 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16824 | cat >>confdefs.h <<_ACEOF |
| 16825 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16826 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16827 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16828 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16829 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16830 | *" $ac_func.$ac_objext "* ) ;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16831 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 16832 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16833 | esac |
| 16834 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16835 | fi |
| 16836 | done |
| 16837 | |
| 16838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16839 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16840 | for ac_func in getpgrp |
| 16841 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16842 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16843 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16844 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16845 | 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] | 16846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16847 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16848 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16849 | /* confdefs.h. */ |
| 16850 | _ACEOF |
| 16851 | cat confdefs.h >>conftest.$ac_ext |
| 16852 | cat >>conftest.$ac_ext <<_ACEOF |
| 16853 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16854 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16855 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16856 | #define $ac_func innocuous_$ac_func |
| 16857 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16858 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16859 | which can conflict with char $ac_func (); below. |
| 16860 | 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] | 16861 | <limits.h> exists even on freestanding compilers. */ |
| 16862 | |
| 16863 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16864 | # include <limits.h> |
| 16865 | #else |
| 16866 | # include <assert.h> |
| 16867 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16868 | |
| 16869 | #undef $ac_func |
| 16870 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16871 | /* Override any GCC internal prototype to avoid an error. |
| 16872 | Use char because int might match the return type of a GCC |
| 16873 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16874 | #ifdef __cplusplus |
| 16875 | extern "C" |
| 16876 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16877 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16878 | /* The GNU C library defines this for functions which it implements |
| 16879 | to always fail with ENOSYS. Some functions are actually named |
| 16880 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16881 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16882 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 16883 | #endif |
| 16884 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16885 | int |
| 16886 | main () |
| 16887 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16888 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16889 | ; |
| 16890 | return 0; |
| 16891 | } |
| 16892 | _ACEOF |
| 16893 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 16894 | if { (ac_try="$ac_link" |
| 16895 | case "(($ac_try" in |
| 16896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16897 | *) ac_try_echo=$ac_try;; |
| 16898 | esac |
| 16899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16900 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16901 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16903 | rm -f conftest.er1 |
| 16904 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16906 | (exit $ac_status); } && { |
| 16907 | test -z "$ac_c_werror_flag" || |
| 16908 | test ! -s conftest.err |
| 16909 | } && test -s conftest$ac_exeext && |
| 16910 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16911 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16912 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16913 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16915 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16916 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16917 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16918 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16919 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16920 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16921 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16922 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16923 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16924 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16925 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16926 | cat >>confdefs.h <<_ACEOF |
| 16927 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16928 | _ACEOF |
| 16929 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16930 | /* confdefs.h. */ |
| 16931 | _ACEOF |
| 16932 | cat confdefs.h >>conftest.$ac_ext |
| 16933 | cat >>conftest.$ac_ext <<_ACEOF |
| 16934 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16935 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16936 | int |
| 16937 | main () |
| 16938 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16939 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16940 | ; |
| 16941 | return 0; |
| 16942 | } |
| 16943 | _ACEOF |
| 16944 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 16945 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 16957 | (exit $ac_status); } && { |
| 16958 | test -z "$ac_c_werror_flag" || |
| 16959 | test ! -s conftest.err |
| 16960 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16961 | |
| 16962 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16963 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16964 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16966 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16967 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16968 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16970 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16971 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16972 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16973 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 16974 | 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] | 16975 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16976 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16977 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16978 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16979 | |
| 16980 | for ac_func in setpgrp |
| 16981 | do |
| 16982 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 16983 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16984 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16985 | 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] | 16986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16987 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16988 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16989 | /* confdefs.h. */ |
| 16990 | _ACEOF |
| 16991 | cat confdefs.h >>conftest.$ac_ext |
| 16992 | cat >>conftest.$ac_ext <<_ACEOF |
| 16993 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16994 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16995 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16996 | #define $ac_func innocuous_$ac_func |
| 16997 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16998 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16999 | which can conflict with char $ac_func (); below. |
| 17000 | 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] | 17001 | <limits.h> exists even on freestanding compilers. */ |
| 17002 | |
| 17003 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17004 | # include <limits.h> |
| 17005 | #else |
| 17006 | # include <assert.h> |
| 17007 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17008 | |
| 17009 | #undef $ac_func |
| 17010 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17011 | /* Override any GCC internal prototype to avoid an error. |
| 17012 | Use char because int might match the return type of a GCC |
| 17013 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17014 | #ifdef __cplusplus |
| 17015 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17016 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17017 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17018 | /* The GNU C library defines this for functions which it implements |
| 17019 | to always fail with ENOSYS. Some functions are actually named |
| 17020 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17021 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17022 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17023 | #endif |
| 17024 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17025 | int |
| 17026 | main () |
| 17027 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17028 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17029 | ; |
| 17030 | return 0; |
| 17031 | } |
| 17032 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17033 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17034 | if { (ac_try="$ac_link" |
| 17035 | case "(($ac_try" in |
| 17036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17037 | *) ac_try_echo=$ac_try;; |
| 17038 | esac |
| 17039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17040 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17041 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17043 | rm -f conftest.er1 |
| 17044 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17046 | (exit $ac_status); } && { |
| 17047 | test -z "$ac_c_werror_flag" || |
| 17048 | test ! -s conftest.err |
| 17049 | } && test -s conftest$ac_exeext && |
| 17050 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17051 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17052 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17053 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17055 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17056 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17057 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17058 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17059 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17060 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17061 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17062 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17063 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17064 | echo "${ECHO_T}$ac_res" >&6; } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17065 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17066 | cat >>confdefs.h <<_ACEOF |
| 17067 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17068 | _ACEOF |
| 17069 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17070 | /* confdefs.h. */ |
| 17071 | _ACEOF |
| 17072 | cat confdefs.h >>conftest.$ac_ext |
| 17073 | cat >>conftest.$ac_ext <<_ACEOF |
| 17074 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17075 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17076 | int |
| 17077 | main () |
| 17078 | { |
| 17079 | setpgrp(0,0); |
| 17080 | ; |
| 17081 | return 0; |
| 17082 | } |
| 17083 | _ACEOF |
| 17084 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17085 | if { (ac_try="$ac_compile" |
| 17086 | case "(($ac_try" in |
| 17087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17088 | *) ac_try_echo=$ac_try;; |
| 17089 | esac |
| 17090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17091 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17092 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17094 | rm -f conftest.er1 |
| 17095 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17097 | (exit $ac_status); } && { |
| 17098 | test -z "$ac_c_werror_flag" || |
| 17099 | test ! -s conftest.err |
| 17100 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17101 | |
| 17102 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17103 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17104 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 17105 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17106 | |
| 17107 | else |
| 17108 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17110 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17111 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 17112 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17113 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 17115 | |
| 17116 | fi |
| 17117 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 17118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17119 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17120 | for ac_func in gettimeofday |
| 17121 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17122 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17123 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17124 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17125 | 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] | 17126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17128 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17129 | /* confdefs.h. */ |
| 17130 | _ACEOF |
| 17131 | cat confdefs.h >>conftest.$ac_ext |
| 17132 | cat >>conftest.$ac_ext <<_ACEOF |
| 17133 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17134 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17135 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17136 | #define $ac_func innocuous_$ac_func |
| 17137 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17138 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17139 | which can conflict with char $ac_func (); below. |
| 17140 | 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] | 17141 | <limits.h> exists even on freestanding compilers. */ |
| 17142 | |
| 17143 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17144 | # include <limits.h> |
| 17145 | #else |
| 17146 | # include <assert.h> |
| 17147 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17148 | |
| 17149 | #undef $ac_func |
| 17150 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17151 | /* Override any GCC internal prototype to avoid an error. |
| 17152 | Use char because int might match the return type of a GCC |
| 17153 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17154 | #ifdef __cplusplus |
| 17155 | extern "C" |
| 17156 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17157 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17158 | /* The GNU C library defines this for functions which it implements |
| 17159 | to always fail with ENOSYS. Some functions are actually named |
| 17160 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17161 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17162 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17163 | #endif |
| 17164 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17165 | int |
| 17166 | main () |
| 17167 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17168 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17169 | ; |
| 17170 | return 0; |
| 17171 | } |
| 17172 | _ACEOF |
| 17173 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17174 | if { (ac_try="$ac_link" |
| 17175 | case "(($ac_try" in |
| 17176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17177 | *) ac_try_echo=$ac_try;; |
| 17178 | esac |
| 17179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17180 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17181 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17183 | rm -f conftest.er1 |
| 17184 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17186 | (exit $ac_status); } && { |
| 17187 | test -z "$ac_c_werror_flag" || |
| 17188 | test ! -s conftest.err |
| 17189 | } && test -s conftest$ac_exeext && |
| 17190 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17191 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17192 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17193 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17195 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17196 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17197 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17198 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17199 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17200 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17201 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17202 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17203 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17204 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17205 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17206 | cat >>confdefs.h <<_ACEOF |
| 17207 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17208 | _ACEOF |
| 17209 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17210 | /* confdefs.h. */ |
| 17211 | _ACEOF |
| 17212 | cat confdefs.h >>conftest.$ac_ext |
| 17213 | cat >>conftest.$ac_ext <<_ACEOF |
| 17214 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17215 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17216 | int |
| 17217 | main () |
| 17218 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17219 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17220 | ; |
| 17221 | return 0; |
| 17222 | } |
| 17223 | _ACEOF |
| 17224 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17225 | if { (ac_try="$ac_compile" |
| 17226 | case "(($ac_try" in |
| 17227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17228 | *) ac_try_echo=$ac_try;; |
| 17229 | esac |
| 17230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17231 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17232 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17234 | rm -f conftest.er1 |
| 17235 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17237 | (exit $ac_status); } && { |
| 17238 | test -z "$ac_c_werror_flag" || |
| 17239 | test ! -s conftest.err |
| 17240 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17241 | : |
| 17242 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17243 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17246 | |
| 17247 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17248 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17249 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17251 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17252 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17253 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17254 | 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] | 17255 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17256 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17257 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17258 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17259 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17260 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 17261 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17262 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17263 | /* confdefs.h. */ |
| 17264 | _ACEOF |
| 17265 | cat confdefs.h >>conftest.$ac_ext |
| 17266 | cat >>conftest.$ac_ext <<_ACEOF |
| 17267 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17268 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 17269 | #if defined(MAJOR_IN_MKDEV) |
| 17270 | #include <sys/mkdev.h> |
| 17271 | #elif defined(MAJOR_IN_SYSMACROS) |
| 17272 | #include <sys/sysmacros.h> |
| 17273 | #else |
| 17274 | #include <sys/types.h> |
| 17275 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17276 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17277 | int |
| 17278 | main () |
| 17279 | { |
| 17280 | |
| 17281 | makedev(major(0),minor(0)); |
| 17282 | |
| 17283 | ; |
| 17284 | return 0; |
| 17285 | } |
| 17286 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 17287 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17288 | if { (ac_try="$ac_link" |
| 17289 | case "(($ac_try" in |
| 17290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17291 | *) ac_try_echo=$ac_try;; |
| 17292 | esac |
| 17293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17294 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17295 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17297 | rm -f conftest.er1 |
| 17298 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17300 | (exit $ac_status); } && { |
| 17301 | test -z "$ac_c_werror_flag" || |
| 17302 | test ! -s conftest.err |
| 17303 | } && test -s conftest$ac_exeext && |
| 17304 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17305 | |
| 17306 | |
| 17307 | cat >>confdefs.h <<\_ACEOF |
| 17308 | #define HAVE_DEVICE_MACROS 1 |
| 17309 | _ACEOF |
| 17310 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17311 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17312 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17313 | |
| 17314 | else |
| 17315 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17317 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17318 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17319 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17320 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 17321 | |
| 17322 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17323 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17324 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17325 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17326 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17327 | # 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] | 17328 | # for [no]getaddrinfo in netdb.h. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17329 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 17330 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17331 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17332 | /* confdefs.h. */ |
| 17333 | _ACEOF |
| 17334 | cat confdefs.h >>conftest.$ac_ext |
| 17335 | cat >>conftest.$ac_ext <<_ACEOF |
| 17336 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17337 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 17338 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17339 | #include <sys/socket.h> |
| 17340 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 17341 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17343 | int |
| 17344 | main () |
| 17345 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17346 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17347 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17348 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17349 | ; |
| 17350 | return 0; |
| 17351 | } |
| 17352 | _ACEOF |
| 17353 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17354 | if { (ac_try="$ac_link" |
| 17355 | case "(($ac_try" in |
| 17356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17357 | *) ac_try_echo=$ac_try;; |
| 17358 | esac |
| 17359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17360 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17361 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17363 | rm -f conftest.er1 |
| 17364 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17366 | (exit $ac_status); } && { |
| 17367 | test -z "$ac_c_werror_flag" || |
| 17368 | test ! -s conftest.err |
| 17369 | } && test -s conftest$ac_exeext && |
| 17370 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17371 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17372 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17373 | echo "${ECHO_T}yes" >&6; } |
| 17374 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 17375 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17376 | if test "$cross_compiling" = yes; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17377 | { echo "$as_me:$LINENO: result: buggy" >&5 |
| 17378 | echo "${ECHO_T}buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17379 | buggygetaddrinfo=yes |
| 17380 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17381 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17382 | /* confdefs.h. */ |
| 17383 | _ACEOF |
| 17384 | cat confdefs.h >>conftest.$ac_ext |
| 17385 | cat >>conftest.$ac_ext <<_ACEOF |
| 17386 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17387 | |
| 17388 | #include <sys/types.h> |
| 17389 | #include <netdb.h> |
| 17390 | #include <string.h> |
| 17391 | #include <sys/socket.h> |
| 17392 | #include <netinet/in.h> |
| 17393 | |
| 17394 | main() |
| 17395 | { |
| 17396 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 17397 | struct addrinfo hints, *ai, *aitop; |
| 17398 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 17399 | |
| 17400 | for (passive = 0; passive <= 1; passive++) { |
| 17401 | memset(&hints, 0, sizeof(hints)); |
| 17402 | hints.ai_family = AF_UNSPEC; |
| 17403 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 17404 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 17405 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17406 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 17407 | (void)gai_strerror(gaierr); |
| 17408 | goto bad; |
| 17409 | } |
| 17410 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 17411 | if (ai->ai_addr == NULL || |
| 17412 | ai->ai_addrlen == 0 || |
| 17413 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 17414 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 17415 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 17416 | goto bad; |
| 17417 | } |
| 17418 | switch (ai->ai_family) { |
| 17419 | case AF_INET: |
| 17420 | if (strcmp(strport, "54321") != 0) { |
| 17421 | goto bad; |
| 17422 | } |
| 17423 | if (passive) { |
| 17424 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 17425 | goto bad; |
| 17426 | } |
| 17427 | } else { |
| 17428 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 17429 | goto bad; |
| 17430 | } |
| 17431 | } |
| 17432 | inet4++; |
| 17433 | break; |
| 17434 | case AF_INET6: |
| 17435 | if (strcmp(strport, "54321") != 0) { |
| 17436 | goto bad; |
| 17437 | } |
| 17438 | if (passive) { |
| 17439 | if (strcmp(straddr, "::") != 0) { |
| 17440 | goto bad; |
| 17441 | } |
| 17442 | } else { |
| 17443 | if (strcmp(straddr, "::1") != 0) { |
| 17444 | goto bad; |
| 17445 | } |
| 17446 | } |
| 17447 | inet6++; |
| 17448 | break; |
| 17449 | case AF_UNSPEC: |
| 17450 | goto bad; |
| 17451 | break; |
| 17452 | default: |
| 17453 | /* another family support? */ |
| 17454 | break; |
| 17455 | } |
| 17456 | } |
| 17457 | } |
| 17458 | |
| 17459 | if (!(inet4 == 0 || inet4 == 2)) |
| 17460 | goto bad; |
| 17461 | if (!(inet6 == 0 || inet6 == 2)) |
| 17462 | goto bad; |
| 17463 | |
| 17464 | if (aitop) |
| 17465 | freeaddrinfo(aitop); |
| 17466 | exit(0); |
| 17467 | |
| 17468 | bad: |
| 17469 | if (aitop) |
| 17470 | freeaddrinfo(aitop); |
| 17471 | exit(1); |
| 17472 | } |
| 17473 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17474 | _ACEOF |
| 17475 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17476 | if { (ac_try="$ac_link" |
| 17477 | case "(($ac_try" in |
| 17478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17479 | *) ac_try_echo=$ac_try;; |
| 17480 | esac |
| 17481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17482 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17483 | ac_status=$? |
| 17484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17485 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17486 | { (case "(($ac_try" in |
| 17487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17488 | *) ac_try_echo=$ac_try;; |
| 17489 | esac |
| 17490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17491 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17492 | ac_status=$? |
| 17493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17494 | (exit $ac_status); }; }; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17495 | { echo "$as_me:$LINENO: result: good" >&5 |
| 17496 | echo "${ECHO_T}good" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17497 | buggygetaddrinfo=no |
| 17498 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17499 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17500 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17503 | ( exit $ac_status ) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17504 | { echo "$as_me:$LINENO: result: buggy" >&5 |
| 17505 | echo "${ECHO_T}buggy" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17506 | buggygetaddrinfo=yes |
| 17507 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17508 | 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] | 17509 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17510 | |
| 17511 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17512 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17513 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17516 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17517 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17518 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17519 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17520 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17521 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17522 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17523 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17524 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17525 | |
| 17526 | if test "$buggygetaddrinfo" = "yes"; then |
| 17527 | if test "$ipv6" = "yes"; then |
| 17528 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 17529 | echo ' or you can specify "--disable-ipv6"'. |
| 17530 | exit 1 |
| 17531 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17532 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17533 | |
| 17534 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17535 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17536 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 17537 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17538 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17539 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 17540 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17541 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17542 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17543 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17544 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17545 | 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] | 17546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17548 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17549 | /* confdefs.h. */ |
| 17550 | _ACEOF |
| 17551 | cat confdefs.h >>conftest.$ac_ext |
| 17552 | cat >>conftest.$ac_ext <<_ACEOF |
| 17553 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17554 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17555 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17556 | #define $ac_func innocuous_$ac_func |
| 17557 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17558 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17559 | which can conflict with char $ac_func (); below. |
| 17560 | 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] | 17561 | <limits.h> exists even on freestanding compilers. */ |
| 17562 | |
| 17563 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17564 | # include <limits.h> |
| 17565 | #else |
| 17566 | # include <assert.h> |
| 17567 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17568 | |
| 17569 | #undef $ac_func |
| 17570 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17571 | /* Override any GCC internal prototype to avoid an error. |
| 17572 | Use char because int might match the return type of a GCC |
| 17573 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17574 | #ifdef __cplusplus |
| 17575 | extern "C" |
| 17576 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17577 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17578 | /* The GNU C library defines this for functions which it implements |
| 17579 | to always fail with ENOSYS. Some functions are actually named |
| 17580 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17581 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17582 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17583 | #endif |
| 17584 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17585 | int |
| 17586 | main () |
| 17587 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17588 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17589 | ; |
| 17590 | return 0; |
| 17591 | } |
| 17592 | _ACEOF |
| 17593 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17594 | if { (ac_try="$ac_link" |
| 17595 | case "(($ac_try" in |
| 17596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17597 | *) ac_try_echo=$ac_try;; |
| 17598 | esac |
| 17599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17600 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17601 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17603 | rm -f conftest.er1 |
| 17604 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17606 | (exit $ac_status); } && { |
| 17607 | test -z "$ac_c_werror_flag" || |
| 17608 | test ! -s conftest.err |
| 17609 | } && test -s conftest$ac_exeext && |
| 17610 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17611 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17613 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17615 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17616 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17617 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17618 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17619 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17620 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17621 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17622 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17623 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17624 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17625 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17626 | cat >>confdefs.h <<_ACEOF |
| 17627 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17628 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17629 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17630 | fi |
| 17631 | done |
| 17632 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17633 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17634 | # checks for structures |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17635 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 17636 | 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] | 17637 | if test "${ac_cv_header_time+set}" = set; then |
| 17638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17640 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17641 | /* confdefs.h. */ |
| 17642 | _ACEOF |
| 17643 | cat confdefs.h >>conftest.$ac_ext |
| 17644 | cat >>conftest.$ac_ext <<_ACEOF |
| 17645 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17646 | #include <sys/types.h> |
| 17647 | #include <sys/time.h> |
| 17648 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17650 | int |
| 17651 | main () |
| 17652 | { |
| 17653 | if ((struct tm *) 0) |
| 17654 | return 0; |
| 17655 | ; |
| 17656 | return 0; |
| 17657 | } |
| 17658 | _ACEOF |
| 17659 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17660 | if { (ac_try="$ac_compile" |
| 17661 | case "(($ac_try" in |
| 17662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17663 | *) ac_try_echo=$ac_try;; |
| 17664 | esac |
| 17665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17666 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17667 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17669 | rm -f conftest.er1 |
| 17670 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17672 | (exit $ac_status); } && { |
| 17673 | test -z "$ac_c_werror_flag" || |
| 17674 | test ! -s conftest.err |
| 17675 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17676 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17678 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17680 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17681 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17682 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17683 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17685 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17686 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 17687 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17688 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17689 | |
| 17690 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17691 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17692 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17693 | |
| 17694 | fi |
| 17695 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17696 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 17697 | 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] | 17698 | if test "${ac_cv_struct_tm+set}" = set; then |
| 17699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17700 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17701 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17702 | /* confdefs.h. */ |
| 17703 | _ACEOF |
| 17704 | cat confdefs.h >>conftest.$ac_ext |
| 17705 | cat >>conftest.$ac_ext <<_ACEOF |
| 17706 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17707 | #include <sys/types.h> |
| 17708 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17710 | int |
| 17711 | main () |
| 17712 | { |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17713 | struct tm tm; |
| 17714 | int *p = &tm.tm_sec; |
| 17715 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17716 | ; |
| 17717 | return 0; |
| 17718 | } |
| 17719 | _ACEOF |
| 17720 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17721 | if { (ac_try="$ac_compile" |
| 17722 | case "(($ac_try" in |
| 17723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17724 | *) ac_try_echo=$ac_try;; |
| 17725 | esac |
| 17726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17727 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17728 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17730 | rm -f conftest.er1 |
| 17731 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17733 | (exit $ac_status); } && { |
| 17734 | test -z "$ac_c_werror_flag" || |
| 17735 | test ! -s conftest.err |
| 17736 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17737 | ac_cv_struct_tm=time.h |
| 17738 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17739 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17741 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17742 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17743 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17744 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17746 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17747 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17748 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17749 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17750 | |
| 17751 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17752 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17753 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17754 | |
| 17755 | fi |
| 17756 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17757 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 17758 | 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] | 17759 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 17760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17761 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17762 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17763 | /* confdefs.h. */ |
| 17764 | _ACEOF |
| 17765 | cat confdefs.h >>conftest.$ac_ext |
| 17766 | cat >>conftest.$ac_ext <<_ACEOF |
| 17767 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17768 | #include <sys/types.h> |
| 17769 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17770 | |
| 17771 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17772 | int |
| 17773 | main () |
| 17774 | { |
| 17775 | static struct tm ac_aggr; |
| 17776 | if (ac_aggr.tm_zone) |
| 17777 | return 0; |
| 17778 | ; |
| 17779 | return 0; |
| 17780 | } |
| 17781 | _ACEOF |
| 17782 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17783 | if { (ac_try="$ac_compile" |
| 17784 | case "(($ac_try" in |
| 17785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17786 | *) ac_try_echo=$ac_try;; |
| 17787 | esac |
| 17788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17789 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17790 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17792 | rm -f conftest.er1 |
| 17793 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17795 | (exit $ac_status); } && { |
| 17796 | test -z "$ac_c_werror_flag" || |
| 17797 | test ! -s conftest.err |
| 17798 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17799 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17801 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17803 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17804 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17805 | /* confdefs.h. */ |
| 17806 | _ACEOF |
| 17807 | cat confdefs.h >>conftest.$ac_ext |
| 17808 | cat >>conftest.$ac_ext <<_ACEOF |
| 17809 | /* end confdefs.h. */ |
| 17810 | #include <sys/types.h> |
| 17811 | #include <$ac_cv_struct_tm> |
| 17812 | |
| 17813 | |
| 17814 | int |
| 17815 | main () |
| 17816 | { |
| 17817 | static struct tm ac_aggr; |
| 17818 | if (sizeof ac_aggr.tm_zone) |
| 17819 | return 0; |
| 17820 | ; |
| 17821 | return 0; |
| 17822 | } |
| 17823 | _ACEOF |
| 17824 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17825 | if { (ac_try="$ac_compile" |
| 17826 | case "(($ac_try" in |
| 17827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17828 | *) ac_try_echo=$ac_try;; |
| 17829 | esac |
| 17830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17831 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17832 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17834 | rm -f conftest.er1 |
| 17835 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17837 | (exit $ac_status); } && { |
| 17838 | test -z "$ac_c_werror_flag" || |
| 17839 | test ! -s conftest.err |
| 17840 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17841 | ac_cv_member_struct_tm_tm_zone=yes |
| 17842 | else |
| 17843 | echo "$as_me: failed program was:" >&5 |
| 17844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17845 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17846 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17847 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17848 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17849 | 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] | 17850 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17851 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17853 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17854 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 17855 | 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] | 17856 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 17857 | |
| 17858 | cat >>confdefs.h <<_ACEOF |
| 17859 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 17860 | _ACEOF |
| 17861 | |
| 17862 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17863 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17865 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 17866 | |
| 17867 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17868 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17869 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17870 | |
| 17871 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17872 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 17873 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
| 17874 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
| 17875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17876 | else |
| 17877 | cat >conftest.$ac_ext <<_ACEOF |
| 17878 | /* confdefs.h. */ |
| 17879 | _ACEOF |
| 17880 | cat confdefs.h >>conftest.$ac_ext |
| 17881 | cat >>conftest.$ac_ext <<_ACEOF |
| 17882 | /* end confdefs.h. */ |
| 17883 | #include <time.h> |
| 17884 | |
| 17885 | int |
| 17886 | main () |
| 17887 | { |
| 17888 | #ifndef tzname |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17889 | (void) tzname; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17890 | #endif |
| 17891 | |
| 17892 | ; |
| 17893 | return 0; |
| 17894 | } |
| 17895 | _ACEOF |
| 17896 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17897 | if { (ac_try="$ac_compile" |
| 17898 | case "(($ac_try" in |
| 17899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17900 | *) ac_try_echo=$ac_try;; |
| 17901 | esac |
| 17902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17903 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17904 | ac_status=$? |
| 17905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17906 | rm -f conftest.er1 |
| 17907 | cat conftest.err >&5 |
| 17908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17909 | (exit $ac_status); } && { |
| 17910 | test -z "$ac_c_werror_flag" || |
| 17911 | test ! -s conftest.err |
| 17912 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17913 | ac_cv_have_decl_tzname=yes |
| 17914 | else |
| 17915 | echo "$as_me: failed program was:" >&5 |
| 17916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17917 | |
| 17918 | ac_cv_have_decl_tzname=no |
| 17919 | fi |
| 17920 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 17921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17922 | fi |
| 17923 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 17924 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 17925 | if test $ac_cv_have_decl_tzname = yes; then |
| 17926 | |
| 17927 | cat >>confdefs.h <<_ACEOF |
| 17928 | #define HAVE_DECL_TZNAME 1 |
| 17929 | _ACEOF |
| 17930 | |
| 17931 | |
| 17932 | else |
| 17933 | cat >>confdefs.h <<_ACEOF |
| 17934 | #define HAVE_DECL_TZNAME 0 |
| 17935 | _ACEOF |
| 17936 | |
| 17937 | |
| 17938 | fi |
| 17939 | |
| 17940 | |
| 17941 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 17942 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17943 | if test "${ac_cv_var_tzname+set}" = set; then |
| 17944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17945 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17946 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17947 | /* confdefs.h. */ |
| 17948 | _ACEOF |
| 17949 | cat confdefs.h >>conftest.$ac_ext |
| 17950 | cat >>conftest.$ac_ext <<_ACEOF |
| 17951 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17952 | #include <time.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17953 | #if !HAVE_DECL_TZNAME |
| 17954 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17955 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17957 | int |
| 17958 | main () |
| 17959 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17960 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17961 | ; |
| 17962 | return 0; |
| 17963 | } |
| 17964 | _ACEOF |
| 17965 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 17966 | if { (ac_try="$ac_link" |
| 17967 | case "(($ac_try" in |
| 17968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17969 | *) ac_try_echo=$ac_try;; |
| 17970 | esac |
| 17971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17972 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17973 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17974 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17975 | rm -f conftest.er1 |
| 17976 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17978 | (exit $ac_status); } && { |
| 17979 | test -z "$ac_c_werror_flag" || |
| 17980 | test ! -s conftest.err |
| 17981 | } && test -s conftest$ac_exeext && |
| 17982 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17983 | ac_cv_var_tzname=yes |
| 17984 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17985 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17987 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17988 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17989 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17990 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 17991 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17992 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17993 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 17994 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 17995 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17996 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17997 | |
| 17998 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17999 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18000 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18001 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18002 | fi |
| 18003 | fi |
| 18004 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18005 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 18006 | 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] | 18007 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 18008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18009 | else |
| 18010 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18011 | /* confdefs.h. */ |
| 18012 | _ACEOF |
| 18013 | cat confdefs.h >>conftest.$ac_ext |
| 18014 | cat >>conftest.$ac_ext <<_ACEOF |
| 18015 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18016 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18017 | int |
| 18018 | main () |
| 18019 | { |
| 18020 | static struct stat ac_aggr; |
| 18021 | if (ac_aggr.st_rdev) |
| 18022 | return 0; |
| 18023 | ; |
| 18024 | return 0; |
| 18025 | } |
| 18026 | _ACEOF |
| 18027 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18028 | if { (ac_try="$ac_compile" |
| 18029 | case "(($ac_try" in |
| 18030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18031 | *) ac_try_echo=$ac_try;; |
| 18032 | esac |
| 18033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18034 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18035 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18037 | rm -f conftest.er1 |
| 18038 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18040 | (exit $ac_status); } && { |
| 18041 | test -z "$ac_c_werror_flag" || |
| 18042 | test ! -s conftest.err |
| 18043 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18044 | ac_cv_member_struct_stat_st_rdev=yes |
| 18045 | else |
| 18046 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18048 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18049 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18050 | /* confdefs.h. */ |
| 18051 | _ACEOF |
| 18052 | cat confdefs.h >>conftest.$ac_ext |
| 18053 | cat >>conftest.$ac_ext <<_ACEOF |
| 18054 | /* end confdefs.h. */ |
| 18055 | $ac_includes_default |
| 18056 | int |
| 18057 | main () |
| 18058 | { |
| 18059 | static struct stat ac_aggr; |
| 18060 | if (sizeof ac_aggr.st_rdev) |
| 18061 | return 0; |
| 18062 | ; |
| 18063 | return 0; |
| 18064 | } |
| 18065 | _ACEOF |
| 18066 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18067 | if { (ac_try="$ac_compile" |
| 18068 | case "(($ac_try" in |
| 18069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18070 | *) ac_try_echo=$ac_try;; |
| 18071 | esac |
| 18072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18073 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18074 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18076 | rm -f conftest.er1 |
| 18077 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18079 | (exit $ac_status); } && { |
| 18080 | test -z "$ac_c_werror_flag" || |
| 18081 | test ! -s conftest.err |
| 18082 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18083 | ac_cv_member_struct_stat_st_rdev=yes |
| 18084 | else |
| 18085 | echo "$as_me: failed program was:" >&5 |
| 18086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18087 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18088 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18089 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18090 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18091 | 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] | 18092 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18093 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18095 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18096 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 18097 | 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] | 18098 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 18099 | |
| 18100 | cat >>confdefs.h <<_ACEOF |
| 18101 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 18102 | _ACEOF |
| 18103 | |
| 18104 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18105 | fi |
| 18106 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18107 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 18108 | 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] | 18109 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 18110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18112 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18113 | /* confdefs.h. */ |
| 18114 | _ACEOF |
| 18115 | cat confdefs.h >>conftest.$ac_ext |
| 18116 | cat >>conftest.$ac_ext <<_ACEOF |
| 18117 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18118 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18119 | int |
| 18120 | main () |
| 18121 | { |
| 18122 | static struct stat ac_aggr; |
| 18123 | if (ac_aggr.st_blksize) |
| 18124 | return 0; |
| 18125 | ; |
| 18126 | return 0; |
| 18127 | } |
| 18128 | _ACEOF |
| 18129 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18130 | if { (ac_try="$ac_compile" |
| 18131 | case "(($ac_try" in |
| 18132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18133 | *) ac_try_echo=$ac_try;; |
| 18134 | esac |
| 18135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18136 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18137 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18139 | rm -f conftest.er1 |
| 18140 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18142 | (exit $ac_status); } && { |
| 18143 | test -z "$ac_c_werror_flag" || |
| 18144 | test ! -s conftest.err |
| 18145 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18146 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18147 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18148 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18150 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18151 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18152 | /* confdefs.h. */ |
| 18153 | _ACEOF |
| 18154 | cat confdefs.h >>conftest.$ac_ext |
| 18155 | cat >>conftest.$ac_ext <<_ACEOF |
| 18156 | /* end confdefs.h. */ |
| 18157 | $ac_includes_default |
| 18158 | int |
| 18159 | main () |
| 18160 | { |
| 18161 | static struct stat ac_aggr; |
| 18162 | if (sizeof ac_aggr.st_blksize) |
| 18163 | return 0; |
| 18164 | ; |
| 18165 | return 0; |
| 18166 | } |
| 18167 | _ACEOF |
| 18168 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18169 | if { (ac_try="$ac_compile" |
| 18170 | case "(($ac_try" in |
| 18171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18172 | *) ac_try_echo=$ac_try;; |
| 18173 | esac |
| 18174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18175 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18176 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18178 | rm -f conftest.er1 |
| 18179 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18181 | (exit $ac_status); } && { |
| 18182 | test -z "$ac_c_werror_flag" || |
| 18183 | test ! -s conftest.err |
| 18184 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18185 | ac_cv_member_struct_stat_st_blksize=yes |
| 18186 | else |
| 18187 | echo "$as_me: failed program was:" >&5 |
| 18188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18189 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18190 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18191 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18192 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18194 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18195 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18197 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18198 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 18199 | 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] | 18200 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18202 | cat >>confdefs.h <<_ACEOF |
| 18203 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 18204 | _ACEOF |
| 18205 | |
| 18206 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18207 | fi |
| 18208 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18209 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 18210 | 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] | 18211 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
| 18212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18213 | else |
| 18214 | cat >conftest.$ac_ext <<_ACEOF |
| 18215 | /* confdefs.h. */ |
| 18216 | _ACEOF |
| 18217 | cat confdefs.h >>conftest.$ac_ext |
| 18218 | cat >>conftest.$ac_ext <<_ACEOF |
| 18219 | /* end confdefs.h. */ |
| 18220 | $ac_includes_default |
| 18221 | int |
| 18222 | main () |
| 18223 | { |
| 18224 | static struct stat ac_aggr; |
| 18225 | if (ac_aggr.st_flags) |
| 18226 | return 0; |
| 18227 | ; |
| 18228 | return 0; |
| 18229 | } |
| 18230 | _ACEOF |
| 18231 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18232 | if { (ac_try="$ac_compile" |
| 18233 | case "(($ac_try" in |
| 18234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18235 | *) ac_try_echo=$ac_try;; |
| 18236 | esac |
| 18237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18238 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18239 | ac_status=$? |
| 18240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18241 | rm -f conftest.er1 |
| 18242 | cat conftest.err >&5 |
| 18243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18244 | (exit $ac_status); } && { |
| 18245 | test -z "$ac_c_werror_flag" || |
| 18246 | test ! -s conftest.err |
| 18247 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18248 | ac_cv_member_struct_stat_st_flags=yes |
| 18249 | else |
| 18250 | echo "$as_me: failed program was:" >&5 |
| 18251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18252 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18253 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18254 | /* confdefs.h. */ |
| 18255 | _ACEOF |
| 18256 | cat confdefs.h >>conftest.$ac_ext |
| 18257 | cat >>conftest.$ac_ext <<_ACEOF |
| 18258 | /* end confdefs.h. */ |
| 18259 | $ac_includes_default |
| 18260 | int |
| 18261 | main () |
| 18262 | { |
| 18263 | static struct stat ac_aggr; |
| 18264 | if (sizeof ac_aggr.st_flags) |
| 18265 | return 0; |
| 18266 | ; |
| 18267 | return 0; |
| 18268 | } |
| 18269 | _ACEOF |
| 18270 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18271 | if { (ac_try="$ac_compile" |
| 18272 | case "(($ac_try" in |
| 18273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18274 | *) ac_try_echo=$ac_try;; |
| 18275 | esac |
| 18276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18277 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18278 | ac_status=$? |
| 18279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18280 | rm -f conftest.er1 |
| 18281 | cat conftest.err >&5 |
| 18282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18283 | (exit $ac_status); } && { |
| 18284 | test -z "$ac_c_werror_flag" || |
| 18285 | test ! -s conftest.err |
| 18286 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18287 | ac_cv_member_struct_stat_st_flags=yes |
| 18288 | else |
| 18289 | echo "$as_me: failed program was:" >&5 |
| 18290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18291 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18292 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18293 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18294 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18296 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18297 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18299 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18300 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 18301 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 18302 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
| 18303 | |
| 18304 | cat >>confdefs.h <<_ACEOF |
| 18305 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 18306 | _ACEOF |
| 18307 | |
| 18308 | |
| 18309 | fi |
| 18310 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18311 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 18312 | 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] | 18313 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
| 18314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18315 | else |
| 18316 | cat >conftest.$ac_ext <<_ACEOF |
| 18317 | /* confdefs.h. */ |
| 18318 | _ACEOF |
| 18319 | cat confdefs.h >>conftest.$ac_ext |
| 18320 | cat >>conftest.$ac_ext <<_ACEOF |
| 18321 | /* end confdefs.h. */ |
| 18322 | $ac_includes_default |
| 18323 | int |
| 18324 | main () |
| 18325 | { |
| 18326 | static struct stat ac_aggr; |
| 18327 | if (ac_aggr.st_gen) |
| 18328 | return 0; |
| 18329 | ; |
| 18330 | return 0; |
| 18331 | } |
| 18332 | _ACEOF |
| 18333 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18334 | if { (ac_try="$ac_compile" |
| 18335 | case "(($ac_try" in |
| 18336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18337 | *) ac_try_echo=$ac_try;; |
| 18338 | esac |
| 18339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18340 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18341 | ac_status=$? |
| 18342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18343 | rm -f conftest.er1 |
| 18344 | cat conftest.err >&5 |
| 18345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18346 | (exit $ac_status); } && { |
| 18347 | test -z "$ac_c_werror_flag" || |
| 18348 | test ! -s conftest.err |
| 18349 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18350 | ac_cv_member_struct_stat_st_gen=yes |
| 18351 | else |
| 18352 | echo "$as_me: failed program was:" >&5 |
| 18353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18354 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18355 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18356 | /* confdefs.h. */ |
| 18357 | _ACEOF |
| 18358 | cat confdefs.h >>conftest.$ac_ext |
| 18359 | cat >>conftest.$ac_ext <<_ACEOF |
| 18360 | /* end confdefs.h. */ |
| 18361 | $ac_includes_default |
| 18362 | int |
| 18363 | main () |
| 18364 | { |
| 18365 | static struct stat ac_aggr; |
| 18366 | if (sizeof ac_aggr.st_gen) |
| 18367 | return 0; |
| 18368 | ; |
| 18369 | return 0; |
| 18370 | } |
| 18371 | _ACEOF |
| 18372 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18373 | if { (ac_try="$ac_compile" |
| 18374 | case "(($ac_try" in |
| 18375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18376 | *) ac_try_echo=$ac_try;; |
| 18377 | esac |
| 18378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18379 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18380 | ac_status=$? |
| 18381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18382 | rm -f conftest.er1 |
| 18383 | cat conftest.err >&5 |
| 18384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18385 | (exit $ac_status); } && { |
| 18386 | test -z "$ac_c_werror_flag" || |
| 18387 | test ! -s conftest.err |
| 18388 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18389 | ac_cv_member_struct_stat_st_gen=yes |
| 18390 | else |
| 18391 | echo "$as_me: failed program was:" >&5 |
| 18392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18393 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18394 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18395 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18396 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18397 | 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] | 18398 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18399 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18400 | 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] | 18401 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18402 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 18403 | 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] | 18404 | if test $ac_cv_member_struct_stat_st_gen = yes; then |
| 18405 | |
| 18406 | cat >>confdefs.h <<_ACEOF |
| 18407 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 18408 | _ACEOF |
| 18409 | |
| 18410 | |
| 18411 | fi |
| 18412 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18413 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 18414 | 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] | 18415 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
| 18416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18417 | else |
| 18418 | cat >conftest.$ac_ext <<_ACEOF |
| 18419 | /* confdefs.h. */ |
| 18420 | _ACEOF |
| 18421 | cat confdefs.h >>conftest.$ac_ext |
| 18422 | cat >>conftest.$ac_ext <<_ACEOF |
| 18423 | /* end confdefs.h. */ |
| 18424 | $ac_includes_default |
| 18425 | int |
| 18426 | main () |
| 18427 | { |
| 18428 | static struct stat ac_aggr; |
| 18429 | if (ac_aggr.st_birthtime) |
| 18430 | return 0; |
| 18431 | ; |
| 18432 | return 0; |
| 18433 | } |
| 18434 | _ACEOF |
| 18435 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18436 | if { (ac_try="$ac_compile" |
| 18437 | case "(($ac_try" in |
| 18438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18439 | *) ac_try_echo=$ac_try;; |
| 18440 | esac |
| 18441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18442 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18443 | ac_status=$? |
| 18444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18445 | rm -f conftest.er1 |
| 18446 | cat conftest.err >&5 |
| 18447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18448 | (exit $ac_status); } && { |
| 18449 | test -z "$ac_c_werror_flag" || |
| 18450 | test ! -s conftest.err |
| 18451 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18452 | ac_cv_member_struct_stat_st_birthtime=yes |
| 18453 | else |
| 18454 | echo "$as_me: failed program was:" >&5 |
| 18455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18456 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18457 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18458 | /* confdefs.h. */ |
| 18459 | _ACEOF |
| 18460 | cat confdefs.h >>conftest.$ac_ext |
| 18461 | cat >>conftest.$ac_ext <<_ACEOF |
| 18462 | /* end confdefs.h. */ |
| 18463 | $ac_includes_default |
| 18464 | int |
| 18465 | main () |
| 18466 | { |
| 18467 | static struct stat ac_aggr; |
| 18468 | if (sizeof ac_aggr.st_birthtime) |
| 18469 | return 0; |
| 18470 | ; |
| 18471 | return 0; |
| 18472 | } |
| 18473 | _ACEOF |
| 18474 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18475 | if { (ac_try="$ac_compile" |
| 18476 | case "(($ac_try" in |
| 18477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18478 | *) ac_try_echo=$ac_try;; |
| 18479 | esac |
| 18480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18481 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18482 | ac_status=$? |
| 18483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18484 | rm -f conftest.er1 |
| 18485 | cat conftest.err >&5 |
| 18486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18487 | (exit $ac_status); } && { |
| 18488 | test -z "$ac_c_werror_flag" || |
| 18489 | test ! -s conftest.err |
| 18490 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18491 | ac_cv_member_struct_stat_st_birthtime=yes |
| 18492 | else |
| 18493 | echo "$as_me: failed program was:" >&5 |
| 18494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18495 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18496 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 18497 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18498 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18499 | 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] | 18500 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18501 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18502 | 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] | 18503 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18504 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 18505 | 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] | 18506 | if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
| 18507 | |
| 18508 | cat >>confdefs.h <<_ACEOF |
| 18509 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 18510 | _ACEOF |
| 18511 | |
| 18512 | |
| 18513 | fi |
| 18514 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18515 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 18516 | 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] | 18517 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 18518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18519 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18520 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18521 | /* confdefs.h. */ |
| 18522 | _ACEOF |
| 18523 | cat confdefs.h >>conftest.$ac_ext |
| 18524 | cat >>conftest.$ac_ext <<_ACEOF |
| 18525 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18526 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18527 | int |
| 18528 | main () |
| 18529 | { |
| 18530 | static struct stat ac_aggr; |
| 18531 | if (ac_aggr.st_blocks) |
| 18532 | return 0; |
| 18533 | ; |
| 18534 | return 0; |
| 18535 | } |
| 18536 | _ACEOF |
| 18537 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18538 | if { (ac_try="$ac_compile" |
| 18539 | case "(($ac_try" in |
| 18540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18541 | *) ac_try_echo=$ac_try;; |
| 18542 | esac |
| 18543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18544 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18545 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18546 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18547 | rm -f conftest.er1 |
| 18548 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18550 | (exit $ac_status); } && { |
| 18551 | test -z "$ac_c_werror_flag" || |
| 18552 | test ! -s conftest.err |
| 18553 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18554 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18555 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18556 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18558 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18559 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18560 | /* confdefs.h. */ |
| 18561 | _ACEOF |
| 18562 | cat confdefs.h >>conftest.$ac_ext |
| 18563 | cat >>conftest.$ac_ext <<_ACEOF |
| 18564 | /* end confdefs.h. */ |
| 18565 | $ac_includes_default |
| 18566 | int |
| 18567 | main () |
| 18568 | { |
| 18569 | static struct stat ac_aggr; |
| 18570 | if (sizeof ac_aggr.st_blocks) |
| 18571 | return 0; |
| 18572 | ; |
| 18573 | return 0; |
| 18574 | } |
| 18575 | _ACEOF |
| 18576 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18577 | if { (ac_try="$ac_compile" |
| 18578 | case "(($ac_try" in |
| 18579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18580 | *) ac_try_echo=$ac_try;; |
| 18581 | esac |
| 18582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18583 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18584 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18586 | rm -f conftest.er1 |
| 18587 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18589 | (exit $ac_status); } && { |
| 18590 | test -z "$ac_c_werror_flag" || |
| 18591 | test ! -s conftest.err |
| 18592 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18593 | ac_cv_member_struct_stat_st_blocks=yes |
| 18594 | else |
| 18595 | echo "$as_me: failed program was:" >&5 |
| 18596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18597 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18598 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18599 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18600 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18602 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18603 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18605 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18606 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 18607 | 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] | 18608 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18610 | cat >>confdefs.h <<_ACEOF |
| 18611 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 18612 | _ACEOF |
| 18613 | |
| 18614 | |
| 18615 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18616 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18617 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18618 | |
| 18619 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18620 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18621 | *" fileblocks.$ac_objext "* ) ;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18622 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 18623 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18624 | esac |
| 18625 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 18626 | fi |
| 18627 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18629 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18630 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 18631 | 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] | 18632 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 18633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18634 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18635 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18636 | /* confdefs.h. */ |
| 18637 | _ACEOF |
| 18638 | cat confdefs.h >>conftest.$ac_ext |
| 18639 | cat >>conftest.$ac_ext <<_ACEOF |
| 18640 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18641 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18642 | int |
| 18643 | main () |
| 18644 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18645 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18646 | ; |
| 18647 | return 0; |
| 18648 | } |
| 18649 | _ACEOF |
| 18650 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18651 | if { (ac_try="$ac_compile" |
| 18652 | case "(($ac_try" in |
| 18653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18654 | *) ac_try_echo=$ac_try;; |
| 18655 | esac |
| 18656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18657 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18658 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18660 | rm -f conftest.er1 |
| 18661 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18663 | (exit $ac_status); } && { |
| 18664 | test -z "$ac_c_werror_flag" || |
| 18665 | test ! -s conftest.err |
| 18666 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18667 | ac_cv_header_time_altzone=yes |
| 18668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18669 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18671 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18672 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18673 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18674 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18676 | fi |
| 18677 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18678 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 18679 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18680 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18681 | |
| 18682 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18683 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18684 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18685 | |
| 18686 | fi |
| 18687 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18688 | was_it_defined=no |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18689 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 18690 | 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] | 18691 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18692 | /* confdefs.h. */ |
| 18693 | _ACEOF |
| 18694 | cat confdefs.h >>conftest.$ac_ext |
| 18695 | cat >>conftest.$ac_ext <<_ACEOF |
| 18696 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18697 | |
| 18698 | #include <sys/types.h> |
| 18699 | #include <sys/select.h> |
| 18700 | #include <sys/time.h> |
| 18701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18702 | int |
| 18703 | main () |
| 18704 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18705 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18706 | ; |
| 18707 | return 0; |
| 18708 | } |
| 18709 | _ACEOF |
| 18710 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18711 | if { (ac_try="$ac_compile" |
| 18712 | case "(($ac_try" in |
| 18713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18714 | *) ac_try_echo=$ac_try;; |
| 18715 | esac |
| 18716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18717 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18718 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18720 | rm -f conftest.er1 |
| 18721 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18723 | (exit $ac_status); } && { |
| 18724 | test -z "$ac_c_werror_flag" || |
| 18725 | test ! -s conftest.err |
| 18726 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18727 | |
| 18728 | |
| 18729 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18730 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18731 | _ACEOF |
| 18732 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18733 | was_it_defined=yes |
| 18734 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18736 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18738 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18739 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18740 | fi |
| 18741 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18743 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 18744 | echo "${ECHO_T}$was_it_defined" >&6; } |
| 18745 | |
| 18746 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 18747 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18748 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 18749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18750 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18751 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18752 | /* confdefs.h. */ |
| 18753 | _ACEOF |
| 18754 | cat confdefs.h >>conftest.$ac_ext |
| 18755 | cat >>conftest.$ac_ext <<_ACEOF |
| 18756 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18757 | |
| 18758 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18759 | int |
| 18760 | main () |
| 18761 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18762 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18763 | ; |
| 18764 | return 0; |
| 18765 | } |
| 18766 | _ACEOF |
| 18767 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18768 | if { (ac_try="$ac_compile" |
| 18769 | case "(($ac_try" in |
| 18770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18771 | *) ac_try_echo=$ac_try;; |
| 18772 | esac |
| 18773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18774 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18775 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18777 | rm -f conftest.er1 |
| 18778 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18780 | (exit $ac_status); } && { |
| 18781 | test -z "$ac_c_werror_flag" || |
| 18782 | test ! -s conftest.err |
| 18783 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18784 | ac_cv_struct_addrinfo=yes |
| 18785 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18786 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18788 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18789 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18790 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18791 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18792 | 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] | 18793 | fi |
| 18794 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18795 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 18796 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18797 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18798 | |
| 18799 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18800 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18801 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18802 | |
| 18803 | fi |
| 18804 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18805 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 18806 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18807 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 18808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18809 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18810 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18811 | /* confdefs.h. */ |
| 18812 | _ACEOF |
| 18813 | cat confdefs.h >>conftest.$ac_ext |
| 18814 | cat >>conftest.$ac_ext <<_ACEOF |
| 18815 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18816 | |
| 18817 | # include <sys/types.h> |
| 18818 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18819 | int |
| 18820 | main () |
| 18821 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18822 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18823 | ; |
| 18824 | return 0; |
| 18825 | } |
| 18826 | _ACEOF |
| 18827 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18828 | if { (ac_try="$ac_compile" |
| 18829 | case "(($ac_try" in |
| 18830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18831 | *) ac_try_echo=$ac_try;; |
| 18832 | esac |
| 18833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18834 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18835 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18837 | rm -f conftest.er1 |
| 18838 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18840 | (exit $ac_status); } && { |
| 18841 | test -z "$ac_c_werror_flag" || |
| 18842 | test ! -s conftest.err |
| 18843 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18844 | ac_cv_struct_sockaddr_storage=yes |
| 18845 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18846 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18848 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18849 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18850 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18851 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18852 | 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] | 18853 | fi |
| 18854 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18855 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 18856 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18857 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18858 | |
| 18859 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18860 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18861 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18862 | |
| 18863 | fi |
| 18864 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18865 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18866 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18867 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18868 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 18869 | 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] | 18870 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 18871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18873 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18874 | /* confdefs.h. */ |
| 18875 | _ACEOF |
| 18876 | cat confdefs.h >>conftest.$ac_ext |
| 18877 | cat >>conftest.$ac_ext <<_ACEOF |
| 18878 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18879 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18880 | int |
| 18881 | main () |
| 18882 | { |
| 18883 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 18884 | test_array [0] = 0 |
| 18885 | |
| 18886 | ; |
| 18887 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18888 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18889 | _ACEOF |
| 18890 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18891 | if { (ac_try="$ac_compile" |
| 18892 | case "(($ac_try" in |
| 18893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18894 | *) ac_try_echo=$ac_try;; |
| 18895 | esac |
| 18896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18897 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18898 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18900 | rm -f conftest.er1 |
| 18901 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18903 | (exit $ac_status); } && { |
| 18904 | test -z "$ac_c_werror_flag" || |
| 18905 | test ! -s conftest.err |
| 18906 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18907 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18908 | else |
| 18909 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18911 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18912 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18913 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18914 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 18915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18916 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18917 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 18918 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18919 | 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] | 18920 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18921 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18922 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18923 | |
| 18924 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18925 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18926 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 18927 | 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] | 18928 | if test "${ac_cv_c_const+set}" = set; then |
| 18929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18930 | else |
| 18931 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18932 | /* confdefs.h. */ |
| 18933 | _ACEOF |
| 18934 | cat confdefs.h >>conftest.$ac_ext |
| 18935 | cat >>conftest.$ac_ext <<_ACEOF |
| 18936 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18937 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18938 | int |
| 18939 | main () |
| 18940 | { |
| 18941 | /* FIXME: Include the comments suggested by Paul. */ |
| 18942 | #ifndef __cplusplus |
| 18943 | /* Ultrix mips cc rejects this. */ |
| 18944 | typedef int charset[2]; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18945 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18946 | /* SunOS 4.1.1 cc rejects this. */ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18947 | char const *const *pcpcc; |
| 18948 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18949 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 18950 | struct point {int x, y;}; |
| 18951 | static struct point const zero = {0,0}; |
| 18952 | /* AIX XL C 1.02.0.0 rejects this. |
| 18953 | It does not let you subtract one const X* pointer from another in |
| 18954 | an arm of an if-expression whose if-part is not a constant |
| 18955 | expression */ |
| 18956 | const char *g = "string"; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18957 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18958 | /* HPUX 7.0 cc rejects these. */ |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18959 | ++pcpcc; |
| 18960 | ppc = (char**) pcpcc; |
| 18961 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18962 | { /* SCO 3.2v4 cc rejects this. */ |
| 18963 | char *t; |
| 18964 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18966 | *t++ = 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18967 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18968 | } |
| 18969 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 18970 | int x[] = {25, 17}; |
| 18971 | const int *foo = &x[0]; |
| 18972 | ++foo; |
| 18973 | } |
| 18974 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 18975 | typedef const int *iptr; |
| 18976 | iptr p = 0; |
| 18977 | ++p; |
| 18978 | } |
| 18979 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 18980 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 18981 | struct s { int j; const int *ap[3]; }; |
| 18982 | struct s *b; b->j = 5; |
| 18983 | } |
| 18984 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 18985 | const int foo = 10; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 18986 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18987 | } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 18988 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18989 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18990 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18991 | ; |
| 18992 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18993 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18994 | _ACEOF |
| 18995 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 18996 | if { (ac_try="$ac_compile" |
| 18997 | case "(($ac_try" in |
| 18998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18999 | *) ac_try_echo=$ac_try;; |
| 19000 | esac |
| 19001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19002 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19003 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19005 | rm -f conftest.er1 |
| 19006 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19008 | (exit $ac_status); } && { |
| 19009 | test -z "$ac_c_werror_flag" || |
| 19010 | test ! -s conftest.err |
| 19011 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19012 | ac_cv_c_const=yes |
| 19013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19014 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19016 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19017 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19018 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19019 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 19020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19021 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19022 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 19023 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19024 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19025 | |
| 19026 | cat >>confdefs.h <<\_ACEOF |
| 19027 | #define const |
| 19028 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19029 | |
| 19030 | fi |
| 19031 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19032 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19033 | works=no |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19034 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 19035 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19037 | /* confdefs.h. */ |
| 19038 | _ACEOF |
| 19039 | cat confdefs.h >>conftest.$ac_ext |
| 19040 | cat >>conftest.$ac_ext <<_ACEOF |
| 19041 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19043 | int |
| 19044 | main () |
| 19045 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19046 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19047 | ; |
| 19048 | return 0; |
| 19049 | } |
| 19050 | _ACEOF |
| 19051 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19052 | if { (ac_try="$ac_compile" |
| 19053 | case "(($ac_try" in |
| 19054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19055 | *) ac_try_echo=$ac_try;; |
| 19056 | esac |
| 19057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19058 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19059 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19061 | rm -f conftest.er1 |
| 19062 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19064 | (exit $ac_status); } && { |
| 19065 | test -z "$ac_c_werror_flag" || |
| 19066 | test ! -s conftest.err |
| 19067 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19068 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19069 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19070 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19073 | |
| 19074 | cat >>confdefs.h <<\_ACEOF |
| 19075 | #define volatile |
| 19076 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19077 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19078 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19079 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19080 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 19081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19082 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 19083 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19084 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19085 | works=no |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19086 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 19087 | 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] | 19088 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19089 | /* confdefs.h. */ |
| 19090 | _ACEOF |
| 19091 | cat confdefs.h >>conftest.$ac_ext |
| 19092 | cat >>conftest.$ac_ext <<_ACEOF |
| 19093 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 19094 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19095 | int |
| 19096 | main () |
| 19097 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19098 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19099 | ; |
| 19100 | return 0; |
| 19101 | } |
| 19102 | _ACEOF |
| 19103 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19104 | if { (ac_try="$ac_compile" |
| 19105 | case "(($ac_try" in |
| 19106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19107 | *) ac_try_echo=$ac_try;; |
| 19108 | esac |
| 19109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19110 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19111 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19113 | rm -f conftest.er1 |
| 19114 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19116 | (exit $ac_status); } && { |
| 19117 | test -z "$ac_c_werror_flag" || |
| 19118 | test ! -s conftest.err |
| 19119 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19120 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 19121 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19122 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19125 | |
| 19126 | cat >>confdefs.h <<\_ACEOF |
| 19127 | #define signed |
| 19128 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19129 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19130 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19131 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19132 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 19133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19134 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 19135 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19136 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19137 | have_prototypes=no |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19138 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 19139 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19140 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19141 | /* confdefs.h. */ |
| 19142 | _ACEOF |
| 19143 | cat confdefs.h >>conftest.$ac_ext |
| 19144 | cat >>conftest.$ac_ext <<_ACEOF |
| 19145 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19146 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19147 | int |
| 19148 | main () |
| 19149 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19150 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19151 | ; |
| 19152 | return 0; |
| 19153 | } |
| 19154 | _ACEOF |
| 19155 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19156 | if { (ac_try="$ac_compile" |
| 19157 | case "(($ac_try" in |
| 19158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19159 | *) ac_try_echo=$ac_try;; |
| 19160 | esac |
| 19161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19162 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19163 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19165 | rm -f conftest.er1 |
| 19166 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19168 | (exit $ac_status); } && { |
| 19169 | test -z "$ac_c_werror_flag" || |
| 19170 | test ! -s conftest.err |
| 19171 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19172 | |
| 19173 | |
| 19174 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19175 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19176 | _ACEOF |
| 19177 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19178 | have_prototypes=yes |
| 19179 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 19180 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19181 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19183 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19184 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19185 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19186 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 19187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19188 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 19189 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19190 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19191 | works=no |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19192 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 19193 | 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] | 19194 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19195 | /* confdefs.h. */ |
| 19196 | _ACEOF |
| 19197 | cat confdefs.h >>conftest.$ac_ext |
| 19198 | cat >>conftest.$ac_ext <<_ACEOF |
| 19199 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19200 | |
| 19201 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 19202 | int foo(int x, ...) { |
| 19203 | va_list va; |
| 19204 | va_start(va, x); |
| 19205 | va_arg(va, int); |
| 19206 | va_arg(va, char *); |
| 19207 | va_arg(va, double); |
| 19208 | return 0; |
| 19209 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19211 | int |
| 19212 | main () |
| 19213 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 19214 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19215 | ; |
| 19216 | return 0; |
| 19217 | } |
| 19218 | _ACEOF |
| 19219 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19220 | if { (ac_try="$ac_compile" |
| 19221 | case "(($ac_try" in |
| 19222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19223 | *) ac_try_echo=$ac_try;; |
| 19224 | esac |
| 19225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19226 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19227 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19229 | rm -f conftest.er1 |
| 19230 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19232 | (exit $ac_status); } && { |
| 19233 | test -z "$ac_c_werror_flag" || |
| 19234 | test ! -s conftest.err |
| 19235 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19236 | |
| 19237 | |
| 19238 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19239 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19240 | _ACEOF |
| 19241 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19242 | works=yes |
| 19243 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 19244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19245 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19247 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19248 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19249 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19250 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 19251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19252 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 19253 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19254 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19255 | # check for socketpair |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19256 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 19257 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19258 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19259 | /* confdefs.h. */ |
| 19260 | _ACEOF |
| 19261 | cat confdefs.h >>conftest.$ac_ext |
| 19262 | cat >>conftest.$ac_ext <<_ACEOF |
| 19263 | /* end confdefs.h. */ |
| 19264 | |
| 19265 | #include <sys/types.h> |
| 19266 | #include <sys/socket.h> |
| 19267 | |
| 19268 | int |
| 19269 | main () |
| 19270 | { |
| 19271 | void *x=socketpair |
| 19272 | ; |
| 19273 | return 0; |
| 19274 | } |
| 19275 | _ACEOF |
| 19276 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19277 | if { (ac_try="$ac_compile" |
| 19278 | case "(($ac_try" in |
| 19279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19280 | *) ac_try_echo=$ac_try;; |
| 19281 | esac |
| 19282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19283 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19284 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19286 | rm -f conftest.er1 |
| 19287 | cat conftest.err >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19289 | (exit $ac_status); } && { |
| 19290 | test -z "$ac_c_werror_flag" || |
| 19291 | test ! -s conftest.err |
| 19292 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19293 | |
| 19294 | cat >>confdefs.h <<\_ACEOF |
| 19295 | #define HAVE_SOCKETPAIR 1 |
| 19296 | _ACEOF |
| 19297 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19298 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19299 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19300 | else |
| 19301 | echo "$as_me: failed program was:" >&5 |
| 19302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19303 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19304 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19305 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 19306 | |
| 19307 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19308 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 19309 | 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] | 19310 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19311 | # check if sockaddr has sa_len member |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19312 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 19313 | 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] | 19314 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19315 | /* confdefs.h. */ |
| 19316 | _ACEOF |
| 19317 | cat confdefs.h >>conftest.$ac_ext |
| 19318 | cat >>conftest.$ac_ext <<_ACEOF |
| 19319 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19320 | #include <sys/types.h> |
| 19321 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19322 | int |
| 19323 | main () |
| 19324 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19325 | struct sockaddr x; |
| 19326 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19327 | ; |
| 19328 | return 0; |
| 19329 | } |
| 19330 | _ACEOF |
| 19331 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19332 | if { (ac_try="$ac_compile" |
| 19333 | case "(($ac_try" in |
| 19334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19335 | *) ac_try_echo=$ac_try;; |
| 19336 | esac |
| 19337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19338 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19339 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19341 | rm -f conftest.er1 |
| 19342 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19344 | (exit $ac_status); } && { |
| 19345 | test -z "$ac_c_werror_flag" || |
| 19346 | test ! -s conftest.err |
| 19347 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19348 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19349 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19350 | |
| 19351 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19352 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19353 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19354 | |
| 19355 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19356 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19358 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19359 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19360 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 19361 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19362 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 19363 | 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] | 19364 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19365 | va_list_is_array=no |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19366 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 19367 | 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] | 19368 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19369 | /* confdefs.h. */ |
| 19370 | _ACEOF |
| 19371 | cat confdefs.h >>conftest.$ac_ext |
| 19372 | cat >>conftest.$ac_ext <<_ACEOF |
| 19373 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19374 | |
| 19375 | #ifdef HAVE_STDARG_PROTOTYPES |
| 19376 | #include <stdarg.h> |
| 19377 | #else |
| 19378 | #include <varargs.h> |
| 19379 | #endif |
| 19380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19381 | int |
| 19382 | main () |
| 19383 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19384 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19385 | ; |
| 19386 | return 0; |
| 19387 | } |
| 19388 | _ACEOF |
| 19389 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19390 | if { (ac_try="$ac_compile" |
| 19391 | case "(($ac_try" in |
| 19392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19393 | *) ac_try_echo=$ac_try;; |
| 19394 | esac |
| 19395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19396 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19397 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19399 | rm -f conftest.er1 |
| 19400 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19402 | (exit $ac_status); } && { |
| 19403 | test -z "$ac_c_werror_flag" || |
| 19404 | test ! -s conftest.err |
| 19405 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19406 | : |
| 19407 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19408 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19411 | |
| 19412 | |
| 19413 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19414 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19415 | _ACEOF |
| 19416 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 19417 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19418 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19419 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19420 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 19421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19422 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 19423 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19424 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19425 | # 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] | 19426 | |
| 19427 | |
| 19428 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19429 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 19430 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19431 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 19432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19433 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19434 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19435 | /* confdefs.h. */ |
| 19436 | _ACEOF |
| 19437 | cat confdefs.h >>conftest.$ac_ext |
| 19438 | cat >>conftest.$ac_ext <<_ACEOF |
| 19439 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19440 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 19441 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19442 | #define gethostbyname_r innocuous_gethostbyname_r |
| 19443 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19444 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19445 | which can conflict with char gethostbyname_r (); below. |
| 19446 | 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] | 19447 | <limits.h> exists even on freestanding compilers. */ |
| 19448 | |
| 19449 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19450 | # include <limits.h> |
| 19451 | #else |
| 19452 | # include <assert.h> |
| 19453 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19454 | |
| 19455 | #undef gethostbyname_r |
| 19456 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19457 | /* Override any GCC internal prototype to avoid an error. |
| 19458 | Use char because int might match the return type of a GCC |
| 19459 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19460 | #ifdef __cplusplus |
| 19461 | extern "C" |
| 19462 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19463 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19464 | /* The GNU C library defines this for functions which it implements |
| 19465 | to always fail with ENOSYS. Some functions are actually named |
| 19466 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19467 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19468 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19469 | #endif |
| 19470 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19471 | int |
| 19472 | main () |
| 19473 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19474 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19475 | ; |
| 19476 | return 0; |
| 19477 | } |
| 19478 | _ACEOF |
| 19479 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19480 | if { (ac_try="$ac_link" |
| 19481 | case "(($ac_try" in |
| 19482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19483 | *) ac_try_echo=$ac_try;; |
| 19484 | esac |
| 19485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19486 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19487 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19489 | rm -f conftest.er1 |
| 19490 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19492 | (exit $ac_status); } && { |
| 19493 | test -z "$ac_c_werror_flag" || |
| 19494 | test ! -s conftest.err |
| 19495 | } && test -s conftest$ac_exeext && |
| 19496 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19497 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19498 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19499 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19501 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19502 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19503 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19504 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19505 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19506 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19507 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19508 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 19509 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19510 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19512 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19513 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19514 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19515 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19516 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 19517 | 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] | 19518 | OLD_CFLAGS=$CFLAGS |
| 19519 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19520 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19521 | /* confdefs.h. */ |
| 19522 | _ACEOF |
| 19523 | cat confdefs.h >>conftest.$ac_ext |
| 19524 | cat >>conftest.$ac_ext <<_ACEOF |
| 19525 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19526 | |
| 19527 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19528 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19529 | int |
| 19530 | main () |
| 19531 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19532 | |
| 19533 | char *name; |
| 19534 | struct hostent *he, *res; |
| 19535 | char buffer[2048]; |
| 19536 | int buflen = 2048; |
| 19537 | int h_errnop; |
| 19538 | |
| 19539 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19540 | |
| 19541 | ; |
| 19542 | return 0; |
| 19543 | } |
| 19544 | _ACEOF |
| 19545 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19546 | if { (ac_try="$ac_compile" |
| 19547 | case "(($ac_try" in |
| 19548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19549 | *) ac_try_echo=$ac_try;; |
| 19550 | esac |
| 19551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19552 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19553 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19555 | rm -f conftest.er1 |
| 19556 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19558 | (exit $ac_status); } && { |
| 19559 | test -z "$ac_c_werror_flag" || |
| 19560 | test ! -s conftest.err |
| 19561 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19562 | |
| 19563 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19564 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19565 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19567 | |
| 19568 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19569 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19570 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19571 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19572 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19573 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19574 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19575 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19576 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19579 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19580 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19581 | echo "${ECHO_T}no" >&6; } |
| 19582 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 19583 | 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] | 19584 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19585 | /* confdefs.h. */ |
| 19586 | _ACEOF |
| 19587 | cat confdefs.h >>conftest.$ac_ext |
| 19588 | cat >>conftest.$ac_ext <<_ACEOF |
| 19589 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19590 | |
| 19591 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19593 | int |
| 19594 | main () |
| 19595 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19596 | |
| 19597 | char *name; |
| 19598 | struct hostent *he; |
| 19599 | char buffer[2048]; |
| 19600 | int buflen = 2048; |
| 19601 | int h_errnop; |
| 19602 | |
| 19603 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19604 | |
| 19605 | ; |
| 19606 | return 0; |
| 19607 | } |
| 19608 | _ACEOF |
| 19609 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19610 | if { (ac_try="$ac_compile" |
| 19611 | case "(($ac_try" in |
| 19612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19613 | *) ac_try_echo=$ac_try;; |
| 19614 | esac |
| 19615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19616 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19617 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19619 | rm -f conftest.er1 |
| 19620 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19622 | (exit $ac_status); } && { |
| 19623 | test -z "$ac_c_werror_flag" || |
| 19624 | test ! -s conftest.err |
| 19625 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19626 | |
| 19627 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19628 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19629 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19631 | |
| 19632 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19633 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19634 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19635 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19636 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19637 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19638 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19640 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19643 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19644 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19645 | echo "${ECHO_T}no" >&6; } |
| 19646 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 19647 | 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] | 19648 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19649 | /* confdefs.h. */ |
| 19650 | _ACEOF |
| 19651 | cat confdefs.h >>conftest.$ac_ext |
| 19652 | cat >>conftest.$ac_ext <<_ACEOF |
| 19653 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19654 | |
| 19655 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19657 | int |
| 19658 | main () |
| 19659 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19660 | |
| 19661 | char *name; |
| 19662 | struct hostent *he; |
| 19663 | struct hostent_data data; |
| 19664 | |
| 19665 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19666 | |
| 19667 | ; |
| 19668 | return 0; |
| 19669 | } |
| 19670 | _ACEOF |
| 19671 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19672 | if { (ac_try="$ac_compile" |
| 19673 | case "(($ac_try" in |
| 19674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19675 | *) ac_try_echo=$ac_try;; |
| 19676 | esac |
| 19677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19678 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19679 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19681 | rm -f conftest.er1 |
| 19682 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19684 | (exit $ac_status); } && { |
| 19685 | test -z "$ac_c_werror_flag" || |
| 19686 | test ! -s conftest.err |
| 19687 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19688 | |
| 19689 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19690 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19691 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 19692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19693 | |
| 19694 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19695 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19696 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19697 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19698 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19699 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19700 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19701 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19702 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19704 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19705 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19706 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19707 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19708 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19709 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19710 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 19711 | 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] | 19712 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19713 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19714 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 19715 | 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] | 19716 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19717 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19718 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 19719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19720 | CFLAGS=$OLD_CFLAGS |
| 19721 | |
| 19722 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19723 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19724 | |
| 19725 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19726 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19727 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19728 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19729 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19730 | 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] | 19731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19732 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19733 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19734 | /* confdefs.h. */ |
| 19735 | _ACEOF |
| 19736 | cat confdefs.h >>conftest.$ac_ext |
| 19737 | cat >>conftest.$ac_ext <<_ACEOF |
| 19738 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19739 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19740 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19741 | #define $ac_func innocuous_$ac_func |
| 19742 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19743 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19744 | which can conflict with char $ac_func (); below. |
| 19745 | 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] | 19746 | <limits.h> exists even on freestanding compilers. */ |
| 19747 | |
| 19748 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19749 | # include <limits.h> |
| 19750 | #else |
| 19751 | # include <assert.h> |
| 19752 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19753 | |
| 19754 | #undef $ac_func |
| 19755 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19756 | /* Override any GCC internal prototype to avoid an error. |
| 19757 | Use char because int might match the return type of a GCC |
| 19758 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19759 | #ifdef __cplusplus |
| 19760 | extern "C" |
| 19761 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19762 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19763 | /* The GNU C library defines this for functions which it implements |
| 19764 | to always fail with ENOSYS. Some functions are actually named |
| 19765 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19766 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19767 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19768 | #endif |
| 19769 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19770 | int |
| 19771 | main () |
| 19772 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19773 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19774 | ; |
| 19775 | return 0; |
| 19776 | } |
| 19777 | _ACEOF |
| 19778 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19779 | if { (ac_try="$ac_link" |
| 19780 | case "(($ac_try" in |
| 19781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19782 | *) ac_try_echo=$ac_try;; |
| 19783 | esac |
| 19784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19785 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19786 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19788 | rm -f conftest.er1 |
| 19789 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19791 | (exit $ac_status); } && { |
| 19792 | test -z "$ac_c_werror_flag" || |
| 19793 | test ! -s conftest.err |
| 19794 | } && test -s conftest$ac_exeext && |
| 19795 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19796 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19797 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19798 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19800 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19801 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19802 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19803 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19804 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19805 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19806 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19807 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19808 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19809 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19810 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 19811 | cat >>confdefs.h <<_ACEOF |
| 19812 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 19813 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19814 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19815 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 19816 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19817 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19818 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 19819 | fi |
| 19820 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19821 | |
| 19822 | |
| 19823 | |
| 19824 | |
| 19825 | |
| 19826 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19827 | # checks for system services |
| 19828 | # (none yet) |
| 19829 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19830 | # Linux requires this for correct f.p. operations |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19831 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 19832 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19833 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 19834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19835 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19836 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19837 | /* confdefs.h. */ |
| 19838 | _ACEOF |
| 19839 | cat confdefs.h >>conftest.$ac_ext |
| 19840 | cat >>conftest.$ac_ext <<_ACEOF |
| 19841 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19842 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 19843 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19844 | #define __fpu_control innocuous___fpu_control |
| 19845 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19846 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19847 | which can conflict with char __fpu_control (); below. |
| 19848 | 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] | 19849 | <limits.h> exists even on freestanding compilers. */ |
| 19850 | |
| 19851 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19852 | # include <limits.h> |
| 19853 | #else |
| 19854 | # include <assert.h> |
| 19855 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19856 | |
| 19857 | #undef __fpu_control |
| 19858 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19859 | /* Override any GCC internal prototype to avoid an error. |
| 19860 | Use char because int might match the return type of a GCC |
| 19861 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19862 | #ifdef __cplusplus |
| 19863 | extern "C" |
| 19864 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19865 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19866 | /* The GNU C library defines this for functions which it implements |
| 19867 | to always fail with ENOSYS. Some functions are actually named |
| 19868 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19869 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19870 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19871 | #endif |
| 19872 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19873 | int |
| 19874 | main () |
| 19875 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19876 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19877 | ; |
| 19878 | return 0; |
| 19879 | } |
| 19880 | _ACEOF |
| 19881 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19882 | if { (ac_try="$ac_link" |
| 19883 | case "(($ac_try" in |
| 19884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19885 | *) ac_try_echo=$ac_try;; |
| 19886 | esac |
| 19887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19888 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19889 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19891 | rm -f conftest.er1 |
| 19892 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19894 | (exit $ac_status); } && { |
| 19895 | test -z "$ac_c_werror_flag" || |
| 19896 | test ! -s conftest.err |
| 19897 | } && test -s conftest$ac_exeext && |
| 19898 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19899 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19903 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19904 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19905 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19906 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19907 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19908 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19909 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19910 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 19911 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19912 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19913 | : |
| 19914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19915 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19916 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 19917 | 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] | 19918 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 19919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19920 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19921 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19922 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19923 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19924 | /* confdefs.h. */ |
| 19925 | _ACEOF |
| 19926 | cat confdefs.h >>conftest.$ac_ext |
| 19927 | cat >>conftest.$ac_ext <<_ACEOF |
| 19928 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19929 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19930 | /* Override any GCC internal prototype to avoid an error. |
| 19931 | Use char because int might match the return type of a GCC |
| 19932 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19933 | #ifdef __cplusplus |
| 19934 | extern "C" |
| 19935 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19936 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19937 | int |
| 19938 | main () |
| 19939 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19940 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19941 | ; |
| 19942 | return 0; |
| 19943 | } |
| 19944 | _ACEOF |
| 19945 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 19946 | if { (ac_try="$ac_link" |
| 19947 | case "(($ac_try" in |
| 19948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19949 | *) ac_try_echo=$ac_try;; |
| 19950 | esac |
| 19951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19952 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19953 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19954 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19955 | rm -f conftest.er1 |
| 19956 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19958 | (exit $ac_status); } && { |
| 19959 | test -z "$ac_c_werror_flag" || |
| 19960 | test ! -s conftest.err |
| 19961 | } && test -s conftest$ac_exeext && |
| 19962 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19963 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19964 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19965 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19967 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19968 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19969 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19970 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 19971 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19972 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19973 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19974 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19975 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 19976 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19977 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 19978 | cat >>confdefs.h <<_ACEOF |
| 19979 | #define HAVE_LIBIEEE 1 |
| 19980 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19981 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19982 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19983 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19984 | fi |
| 19985 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19986 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19987 | fi |
| 19988 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19989 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19990 | # Check for --with-fpectl |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19991 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 19992 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19993 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19994 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19995 | if test "${with_fpectl+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 19996 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19997 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19998 | then |
| 19999 | |
| 20000 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20001 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20002 | _ACEOF |
| 20003 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20004 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20005 | echo "${ECHO_T}yes" >&6; } |
| 20006 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 20007 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20008 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20009 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20010 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20011 | echo "${ECHO_T}no" >&6; } |
| 20012 | fi |
| 20013 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20014 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20015 | # check for --with-libm=... |
| 20016 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 20017 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 20018 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 20019 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 20020 | *) LIBM=-lm |
| 20021 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20022 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 20023 | 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] | 20024 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20025 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 20026 | if test "${with_libm+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20027 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20028 | if test "$withval" = no |
| 20029 | then LIBM= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20030 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 20031 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20032 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20033 | then LIBM=$withval |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20034 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 20035 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20036 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 20037 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 20038 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20039 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20040 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20041 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 20042 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
| 20043 | fi |
| 20044 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20045 | |
| 20046 | # check for --with-libc=... |
| 20047 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20048 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 20049 | 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] | 20050 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20051 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 20052 | if test "${with_libc+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20053 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20054 | if test "$withval" = no |
| 20055 | then LIBC= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20056 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 20057 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20058 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20059 | then LIBC=$withval |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20060 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 20061 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20062 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 20063 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 20064 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20065 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 20066 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20067 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 20068 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
| 20069 | fi |
| 20070 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20071 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20072 | # check for hypot() in math library |
| 20073 | LIBS_SAVE=$LIBS |
| 20074 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20075 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20076 | for ac_func in hypot |
| 20077 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20078 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20079 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20080 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20081 | 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] | 20082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20084 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20085 | /* confdefs.h. */ |
| 20086 | _ACEOF |
| 20087 | cat confdefs.h >>conftest.$ac_ext |
| 20088 | cat >>conftest.$ac_ext <<_ACEOF |
| 20089 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20090 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20091 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20092 | #define $ac_func innocuous_$ac_func |
| 20093 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20094 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20095 | which can conflict with char $ac_func (); below. |
| 20096 | 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] | 20097 | <limits.h> exists even on freestanding compilers. */ |
| 20098 | |
| 20099 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20100 | # include <limits.h> |
| 20101 | #else |
| 20102 | # include <assert.h> |
| 20103 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20104 | |
| 20105 | #undef $ac_func |
| 20106 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20107 | /* Override any GCC internal prototype to avoid an error. |
| 20108 | Use char because int might match the return type of a GCC |
| 20109 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20110 | #ifdef __cplusplus |
| 20111 | extern "C" |
| 20112 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20113 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20114 | /* The GNU C library defines this for functions which it implements |
| 20115 | to always fail with ENOSYS. Some functions are actually named |
| 20116 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20117 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20118 | choke me |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20119 | #endif |
| 20120 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20121 | int |
| 20122 | main () |
| 20123 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20124 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20125 | ; |
| 20126 | return 0; |
| 20127 | } |
| 20128 | _ACEOF |
| 20129 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20130 | if { (ac_try="$ac_link" |
| 20131 | case "(($ac_try" in |
| 20132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20133 | *) ac_try_echo=$ac_try;; |
| 20134 | esac |
| 20135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20136 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20137 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20139 | rm -f conftest.er1 |
| 20140 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20142 | (exit $ac_status); } && { |
| 20143 | test -z "$ac_c_werror_flag" || |
| 20144 | test ! -s conftest.err |
| 20145 | } && test -s conftest$ac_exeext && |
| 20146 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20147 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 20148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20149 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20151 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20152 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20153 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20154 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20155 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20156 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20157 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20158 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20159 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20160 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20161 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 20162 | cat >>confdefs.h <<_ACEOF |
| 20163 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20164 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20165 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20166 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20167 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20168 | *" $ac_func.$ac_objext "* ) ;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20169 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 20170 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20171 | esac |
| 20172 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 20173 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 20174 | done |
| 20175 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20176 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 20177 | LIBS=$LIBS_SAVE |
| 20178 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20179 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20180 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20181 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 20182 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20183 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 20184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20185 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20186 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 20187 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20188 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20189 | # Is the header compilable? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20190 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 20191 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20192 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20193 | /* confdefs.h. */ |
| 20194 | _ACEOF |
| 20195 | cat confdefs.h >>conftest.$ac_ext |
| 20196 | cat >>conftest.$ac_ext <<_ACEOF |
| 20197 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20198 | $ac_includes_default |
| 20199 | #include <wchar.h> |
| 20200 | _ACEOF |
| 20201 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20202 | if { (ac_try="$ac_compile" |
| 20203 | case "(($ac_try" in |
| 20204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20205 | *) ac_try_echo=$ac_try;; |
| 20206 | esac |
| 20207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20208 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20209 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20211 | rm -f conftest.er1 |
| 20212 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20214 | (exit $ac_status); } && { |
| 20215 | test -z "$ac_c_werror_flag" || |
| 20216 | test ! -s conftest.err |
| 20217 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20218 | ac_header_compiler=yes |
| 20219 | else |
| 20220 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20222 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20223 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20224 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20225 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 20226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20227 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20228 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20229 | |
| 20230 | # Is the header present? |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20231 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 20232 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20233 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20234 | /* confdefs.h. */ |
| 20235 | _ACEOF |
| 20236 | cat confdefs.h >>conftest.$ac_ext |
| 20237 | cat >>conftest.$ac_ext <<_ACEOF |
| 20238 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20239 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20240 | _ACEOF |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20241 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 20242 | case "(($ac_try" in |
| 20243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20244 | *) ac_try_echo=$ac_try;; |
| 20245 | esac |
| 20246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20247 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20248 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20249 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20250 | rm -f conftest.er1 |
| 20251 | cat conftest.err >&5 |
| 20252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20253 | (exit $ac_status); } >/dev/null && { |
| 20254 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 20255 | test ! -s conftest.err |
| 20256 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20257 | ac_header_preproc=yes |
| 20258 | else |
| 20259 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20261 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20262 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20263 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20265 | rm -f conftest.err conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20266 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20267 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20268 | |
| 20269 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20270 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20271 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20272 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20273 | 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] | 20274 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 20275 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 20276 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20277 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20278 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20279 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 20280 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20281 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 20282 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 20283 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 20284 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 20285 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 20286 | 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] | 20287 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 20288 | 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] | 20289 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 20290 | echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20291 | ( cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20292 | ## ------------------------------------------------ ## |
| 20293 | ## Report this to http://www.python.org/python-bugs ## |
| 20294 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20295 | _ASBOX |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20296 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20297 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20298 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20299 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 20300 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20301 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 20302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20303 | else |
| 20304 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20305 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20306 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 20307 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20308 | |
| 20309 | fi |
| 20310 | if test $ac_cv_header_wchar_h = yes; then |
| 20311 | |
| 20312 | |
| 20313 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20314 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20315 | _ACEOF |
| 20316 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 20317 | wchar_h="yes" |
| 20318 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20319 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20320 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20321 | |
| 20322 | fi |
| 20323 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20324 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20325 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20326 | # determine wchar_t size |
| 20327 | if test "$wchar_h" = yes |
| 20328 | then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20329 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 20330 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20331 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 20332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20333 | else |
| 20334 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20335 | /* confdefs.h. */ |
| 20336 | _ACEOF |
| 20337 | cat confdefs.h >>conftest.$ac_ext |
| 20338 | cat >>conftest.$ac_ext <<_ACEOF |
| 20339 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20340 | #include <wchar.h> |
| 20341 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20342 | typedef wchar_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20343 | int |
| 20344 | main () |
| 20345 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20346 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20347 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20348 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20349 | return 0; |
| 20350 | ; |
| 20351 | return 0; |
| 20352 | } |
| 20353 | _ACEOF |
| 20354 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20355 | if { (ac_try="$ac_compile" |
| 20356 | case "(($ac_try" in |
| 20357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20358 | *) ac_try_echo=$ac_try;; |
| 20359 | esac |
| 20360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20361 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20362 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20364 | rm -f conftest.er1 |
| 20365 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20367 | (exit $ac_status); } && { |
| 20368 | test -z "$ac_c_werror_flag" || |
| 20369 | test ! -s conftest.err |
| 20370 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20371 | ac_cv_type_wchar_t=yes |
| 20372 | else |
| 20373 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20375 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20376 | ac_cv_type_wchar_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20377 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20378 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 20379 | 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] | 20380 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20381 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 20382 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20383 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20384 | # The cast to long int works around a bug in the HP C Compiler |
| 20385 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20386 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20387 | # This bug is HP SR number 8606223364. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20388 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 20389 | 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] | 20390 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 20391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20392 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20393 | if test "$cross_compiling" = yes; then |
| 20394 | # Depending upon the size, compute the lo and hi bounds. |
| 20395 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20396 | /* confdefs.h. */ |
| 20397 | _ACEOF |
| 20398 | cat confdefs.h >>conftest.$ac_ext |
| 20399 | cat >>conftest.$ac_ext <<_ACEOF |
| 20400 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20401 | #include <wchar.h> |
| 20402 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20403 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20404 | int |
| 20405 | main () |
| 20406 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20407 | 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] | 20408 | test_array [0] = 0 |
| 20409 | |
| 20410 | ; |
| 20411 | return 0; |
| 20412 | } |
| 20413 | _ACEOF |
| 20414 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20415 | if { (ac_try="$ac_compile" |
| 20416 | case "(($ac_try" in |
| 20417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20418 | *) ac_try_echo=$ac_try;; |
| 20419 | esac |
| 20420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20421 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20422 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20424 | rm -f conftest.er1 |
| 20425 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20427 | (exit $ac_status); } && { |
| 20428 | test -z "$ac_c_werror_flag" || |
| 20429 | test ! -s conftest.err |
| 20430 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20431 | ac_lo=0 ac_mid=0 |
| 20432 | while :; do |
| 20433 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20434 | /* confdefs.h. */ |
| 20435 | _ACEOF |
| 20436 | cat confdefs.h >>conftest.$ac_ext |
| 20437 | cat >>conftest.$ac_ext <<_ACEOF |
| 20438 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20439 | #include <wchar.h> |
| 20440 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20441 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20442 | int |
| 20443 | main () |
| 20444 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20445 | 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] | 20446 | test_array [0] = 0 |
| 20447 | |
| 20448 | ; |
| 20449 | return 0; |
| 20450 | } |
| 20451 | _ACEOF |
| 20452 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20453 | if { (ac_try="$ac_compile" |
| 20454 | case "(($ac_try" in |
| 20455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20456 | *) ac_try_echo=$ac_try;; |
| 20457 | esac |
| 20458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20459 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20460 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20462 | rm -f conftest.er1 |
| 20463 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20465 | (exit $ac_status); } && { |
| 20466 | test -z "$ac_c_werror_flag" || |
| 20467 | test ! -s conftest.err |
| 20468 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20469 | ac_hi=$ac_mid; break |
| 20470 | else |
| 20471 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20473 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20474 | ac_lo=`expr $ac_mid + 1` |
| 20475 | if test $ac_lo -le $ac_mid; then |
| 20476 | ac_lo= ac_hi= |
| 20477 | break |
| 20478 | fi |
| 20479 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20480 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20481 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 20482 | 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] | 20483 | done |
| 20484 | else |
| 20485 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20487 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20488 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20489 | /* confdefs.h. */ |
| 20490 | _ACEOF |
| 20491 | cat confdefs.h >>conftest.$ac_ext |
| 20492 | cat >>conftest.$ac_ext <<_ACEOF |
| 20493 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20494 | #include <wchar.h> |
| 20495 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20496 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20497 | int |
| 20498 | main () |
| 20499 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20500 | 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] | 20501 | test_array [0] = 0 |
| 20502 | |
| 20503 | ; |
| 20504 | return 0; |
| 20505 | } |
| 20506 | _ACEOF |
| 20507 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20508 | if { (ac_try="$ac_compile" |
| 20509 | case "(($ac_try" in |
| 20510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20511 | *) ac_try_echo=$ac_try;; |
| 20512 | esac |
| 20513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20514 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20515 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20517 | rm -f conftest.er1 |
| 20518 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20520 | (exit $ac_status); } && { |
| 20521 | test -z "$ac_c_werror_flag" || |
| 20522 | test ! -s conftest.err |
| 20523 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20524 | ac_hi=-1 ac_mid=-1 |
| 20525 | while :; do |
| 20526 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20527 | /* confdefs.h. */ |
| 20528 | _ACEOF |
| 20529 | cat confdefs.h >>conftest.$ac_ext |
| 20530 | cat >>conftest.$ac_ext <<_ACEOF |
| 20531 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20532 | #include <wchar.h> |
| 20533 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20534 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20535 | int |
| 20536 | main () |
| 20537 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20538 | 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] | 20539 | test_array [0] = 0 |
| 20540 | |
| 20541 | ; |
| 20542 | return 0; |
| 20543 | } |
| 20544 | _ACEOF |
| 20545 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20546 | if { (ac_try="$ac_compile" |
| 20547 | case "(($ac_try" in |
| 20548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20549 | *) ac_try_echo=$ac_try;; |
| 20550 | esac |
| 20551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20552 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20553 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20555 | rm -f conftest.er1 |
| 20556 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20558 | (exit $ac_status); } && { |
| 20559 | test -z "$ac_c_werror_flag" || |
| 20560 | test ! -s conftest.err |
| 20561 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20562 | ac_lo=$ac_mid; break |
| 20563 | else |
| 20564 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20566 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20567 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 20568 | if test $ac_mid -le $ac_hi; then |
| 20569 | ac_lo= ac_hi= |
| 20570 | break |
| 20571 | fi |
| 20572 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20573 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20574 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 20575 | 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] | 20576 | done |
| 20577 | else |
| 20578 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20580 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20581 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20582 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20583 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 20584 | 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] | 20585 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20586 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 20587 | 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] | 20588 | # Binary search between lo and hi bounds. |
| 20589 | while test "x$ac_lo" != "x$ac_hi"; do |
| 20590 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 20591 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20592 | /* confdefs.h. */ |
| 20593 | _ACEOF |
| 20594 | cat confdefs.h >>conftest.$ac_ext |
| 20595 | cat >>conftest.$ac_ext <<_ACEOF |
| 20596 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20597 | #include <wchar.h> |
| 20598 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20599 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20600 | int |
| 20601 | main () |
| 20602 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20603 | 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] | 20604 | test_array [0] = 0 |
| 20605 | |
| 20606 | ; |
| 20607 | return 0; |
| 20608 | } |
| 20609 | _ACEOF |
| 20610 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20611 | if { (ac_try="$ac_compile" |
| 20612 | case "(($ac_try" in |
| 20613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20614 | *) ac_try_echo=$ac_try;; |
| 20615 | esac |
| 20616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20617 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20618 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20620 | rm -f conftest.er1 |
| 20621 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20623 | (exit $ac_status); } && { |
| 20624 | test -z "$ac_c_werror_flag" || |
| 20625 | test ! -s conftest.err |
| 20626 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20627 | ac_hi=$ac_mid |
| 20628 | else |
| 20629 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20631 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20632 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20633 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20634 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 20635 | 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] | 20636 | done |
| 20637 | case $ac_lo in |
| 20638 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20639 | '') if test "$ac_cv_type_wchar_t" = yes; then |
| 20640 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20641 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20642 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20643 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20644 | { (exit 77); exit 77; }; } |
| 20645 | else |
| 20646 | ac_cv_sizeof_wchar_t=0 |
| 20647 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20648 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20650 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20651 | /* confdefs.h. */ |
| 20652 | _ACEOF |
| 20653 | cat confdefs.h >>conftest.$ac_ext |
| 20654 | cat >>conftest.$ac_ext <<_ACEOF |
| 20655 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20656 | #include <wchar.h> |
| 20657 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20658 | typedef wchar_t ac__type_sizeof_; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20659 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 20660 | 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] | 20661 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20662 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20663 | int |
| 20664 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20665 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20666 | |
| 20667 | FILE *f = fopen ("conftest.val", "w"); |
| 20668 | if (! f) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20669 | return 1; |
| 20670 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20671 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20672 | long int i = longval (); |
| 20673 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 20674 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20675 | fprintf (f, "%ld\n", i); |
| 20676 | } |
| 20677 | else |
| 20678 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20679 | unsigned long int i = ulongval (); |
| 20680 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 20681 | return 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20682 | fprintf (f, "%lu\n", i); |
| 20683 | } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20684 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20685 | |
| 20686 | ; |
| 20687 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20688 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20689 | _ACEOF |
| 20690 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20691 | if { (ac_try="$ac_link" |
| 20692 | case "(($ac_try" in |
| 20693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20694 | *) ac_try_echo=$ac_try;; |
| 20695 | esac |
| 20696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20697 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20698 | ac_status=$? |
| 20699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20700 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20701 | { (case "(($ac_try" in |
| 20702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20703 | *) ac_try_echo=$ac_try;; |
| 20704 | esac |
| 20705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20706 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20707 | ac_status=$? |
| 20708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20709 | (exit $ac_status); }; }; then |
| 20710 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20712 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20713 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20716 | ( exit $ac_status ) |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20717 | if test "$ac_cv_type_wchar_t" = yes; then |
| 20718 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20719 | See \`config.log' for more details." >&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20720 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20721 | See \`config.log' for more details." >&2;} |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20722 | { (exit 77); exit 77; }; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20723 | else |
| 20724 | ac_cv_sizeof_wchar_t=0 |
| 20725 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20726 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20727 | 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] | 20728 | fi |
| 20729 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20730 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20731 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 20732 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20733 | |
| 20734 | |
| 20735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20736 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20737 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20738 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20739 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20740 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20741 | fi |
| 20742 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20743 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 20744 | 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] | 20745 | have_ucs4_tcl=no |
| 20746 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20747 | /* confdefs.h. */ |
| 20748 | _ACEOF |
| 20749 | cat confdefs.h >>conftest.$ac_ext |
| 20750 | cat >>conftest.$ac_ext <<_ACEOF |
| 20751 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20752 | |
| 20753 | #include <tcl.h> |
| 20754 | #if TCL_UTF_MAX != 6 |
| 20755 | # error "NOT UCS4_TCL" |
| 20756 | #endif |
| 20757 | int |
| 20758 | main () |
| 20759 | { |
| 20760 | |
| 20761 | ; |
| 20762 | return 0; |
| 20763 | } |
| 20764 | _ACEOF |
| 20765 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20766 | if { (ac_try="$ac_compile" |
| 20767 | case "(($ac_try" in |
| 20768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20769 | *) ac_try_echo=$ac_try;; |
| 20770 | esac |
| 20771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20772 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20773 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20775 | rm -f conftest.er1 |
| 20776 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20778 | (exit $ac_status); } && { |
| 20779 | test -z "$ac_c_werror_flag" || |
| 20780 | test ! -s conftest.err |
| 20781 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20782 | |
| 20783 | |
| 20784 | cat >>confdefs.h <<\_ACEOF |
| 20785 | #define HAVE_UCS4_TCL 1 |
| 20786 | _ACEOF |
| 20787 | |
| 20788 | have_ucs4_tcl=yes |
| 20789 | |
| 20790 | else |
| 20791 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20793 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20794 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20795 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20796 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 20797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20798 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 20799 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20800 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20801 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20802 | if test "$wchar_h" = yes |
| 20803 | then |
| 20804 | # check whether wchar_t is signed or not |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20805 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 20806 | 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] | 20807 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 20808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20809 | else |
| 20810 | |
| 20811 | if test "$cross_compiling" = yes; then |
| 20812 | ac_cv_wchar_t_signed=yes |
| 20813 | else |
| 20814 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20815 | /* confdefs.h. */ |
| 20816 | _ACEOF |
| 20817 | cat confdefs.h >>conftest.$ac_ext |
| 20818 | cat >>conftest.$ac_ext <<_ACEOF |
| 20819 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20820 | |
| 20821 | #include <wchar.h> |
| 20822 | int main() |
| 20823 | { |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 20824 | /* Success: exit code 0 */ |
| 20825 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20826 | } |
| 20827 | |
| 20828 | _ACEOF |
| 20829 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20830 | if { (ac_try="$ac_link" |
| 20831 | case "(($ac_try" in |
| 20832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20833 | *) ac_try_echo=$ac_try;; |
| 20834 | esac |
| 20835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20836 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20837 | ac_status=$? |
| 20838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20839 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20840 | { (case "(($ac_try" in |
| 20841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20842 | *) ac_try_echo=$ac_try;; |
| 20843 | esac |
| 20844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20845 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20846 | ac_status=$? |
| 20847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20848 | (exit $ac_status); }; }; then |
| 20849 | ac_cv_wchar_t_signed=yes |
| 20850 | else |
| 20851 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20852 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20854 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20855 | ( exit $ac_status ) |
| 20856 | ac_cv_wchar_t_signed=no |
| 20857 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20858 | 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] | 20859 | fi |
| 20860 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20861 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20862 | fi |
| 20863 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20864 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 20865 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
| 20866 | fi |
| 20867 | |
| 20868 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 20869 | echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; } |
| 20870 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20871 | if test "${enable_unicode+set}" = set; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20872 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20873 | else |
| 20874 | enable_unicode=yes |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20875 | fi |
| 20876 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20877 | |
| 20878 | if test $enable_unicode = yes |
| 20879 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 20880 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20881 | case "$have_ucs4_tcl" in |
| 20882 | yes) enable_unicode="ucs4" |
| 20883 | ;; |
| 20884 | *) enable_unicode="ucs2" |
| 20885 | ;; |
| 20886 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20887 | fi |
| 20888 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 20889 | |
| 20890 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20891 | case "$enable_unicode" in |
| 20892 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20893 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20894 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20895 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20896 | |
| 20897 | ;; |
| 20898 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20899 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20900 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20901 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20902 | |
| 20903 | ;; |
| 20904 | esac |
| 20905 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20907 | |
| 20908 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 20909 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20910 | if test "$enable_unicode" = "no" |
| 20911 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 20912 | UNICODE_OBJS="" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20913 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 20914 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20915 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 20916 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20917 | |
| 20918 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20919 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20920 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20921 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20922 | |
| 20923 | # wchar_t is only usable if it maps to an unsigned type |
| 20924 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 20925 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20926 | then |
| 20927 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20929 | cat >>confdefs.h <<\_ACEOF |
| 20930 | #define HAVE_USABLE_WCHAR_T 1 |
| 20931 | _ACEOF |
| 20932 | |
| 20933 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20934 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20935 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20936 | |
| 20937 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 20938 | then |
| 20939 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20940 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20941 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20942 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20943 | |
| 20944 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 20945 | then |
| 20946 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20947 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20948 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20949 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20950 | |
| 20951 | else |
| 20952 | PY_UNICODE_TYPE="no type found" |
| 20953 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20954 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 20955 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20956 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20957 | |
| 20958 | # check for endianness |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 20959 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 20960 | 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] | 20961 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 20962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20963 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20964 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 20965 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20966 | /* confdefs.h. */ |
| 20967 | _ACEOF |
| 20968 | cat confdefs.h >>conftest.$ac_ext |
| 20969 | cat >>conftest.$ac_ext <<_ACEOF |
| 20970 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20971 | #include <sys/types.h> |
| 20972 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20973 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20974 | int |
| 20975 | main () |
| 20976 | { |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20977 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 20978 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20979 | bogus endian macros |
| 20980 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20981 | |
| 20982 | ; |
| 20983 | return 0; |
| 20984 | } |
| 20985 | _ACEOF |
| 20986 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 20987 | if { (ac_try="$ac_compile" |
| 20988 | case "(($ac_try" in |
| 20989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20990 | *) ac_try_echo=$ac_try;; |
| 20991 | esac |
| 20992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20993 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20994 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20996 | rm -f conftest.er1 |
| 20997 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 20999 | (exit $ac_status); } && { |
| 21000 | test -z "$ac_c_werror_flag" || |
| 21001 | test ! -s conftest.err |
| 21002 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21003 | # 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] | 21004 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21005 | /* confdefs.h. */ |
| 21006 | _ACEOF |
| 21007 | cat confdefs.h >>conftest.$ac_ext |
| 21008 | cat >>conftest.$ac_ext <<_ACEOF |
| 21009 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21010 | #include <sys/types.h> |
| 21011 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21013 | int |
| 21014 | main () |
| 21015 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21016 | #if BYTE_ORDER != BIG_ENDIAN |
| 21017 | not big endian |
| 21018 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21019 | |
| 21020 | ; |
| 21021 | return 0; |
| 21022 | } |
| 21023 | _ACEOF |
| 21024 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21025 | if { (ac_try="$ac_compile" |
| 21026 | case "(($ac_try" in |
| 21027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21028 | *) ac_try_echo=$ac_try;; |
| 21029 | esac |
| 21030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21031 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21032 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21034 | rm -f conftest.er1 |
| 21035 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21037 | (exit $ac_status); } && { |
| 21038 | test -z "$ac_c_werror_flag" || |
| 21039 | test ! -s conftest.err |
| 21040 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21041 | ac_cv_c_bigendian=yes |
| 21042 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21043 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21045 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21046 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21047 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21048 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 21049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21050 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21051 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21053 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21054 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21055 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21056 | # 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] | 21057 | ac_cv_c_bigendian=unknown |
| 21058 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21059 | /* confdefs.h. */ |
| 21060 | _ACEOF |
| 21061 | cat confdefs.h >>conftest.$ac_ext |
| 21062 | cat >>conftest.$ac_ext <<_ACEOF |
| 21063 | /* end confdefs.h. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21064 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 21065 | 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] | 21066 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21067 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 21068 | 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] | 21069 | 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] | 21070 | int |
| 21071 | main () |
| 21072 | { |
| 21073 | _ascii (); _ebcdic (); |
| 21074 | ; |
| 21075 | return 0; |
| 21076 | } |
| 21077 | _ACEOF |
| 21078 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21079 | if { (ac_try="$ac_compile" |
| 21080 | case "(($ac_try" in |
| 21081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21082 | *) ac_try_echo=$ac_try;; |
| 21083 | esac |
| 21084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21085 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21086 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21088 | rm -f conftest.er1 |
| 21089 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21091 | (exit $ac_status); } && { |
| 21092 | test -z "$ac_c_werror_flag" || |
| 21093 | test ! -s conftest.err |
| 21094 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21095 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21096 | ac_cv_c_bigendian=yes |
| 21097 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21098 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21099 | if test "$ac_cv_c_bigendian" = unknown; then |
| 21100 | ac_cv_c_bigendian=no |
| 21101 | else |
| 21102 | # finding both strings is unlikely to happen, but who knows? |
| 21103 | ac_cv_c_bigendian=unknown |
| 21104 | fi |
| 21105 | fi |
| 21106 | else |
| 21107 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21109 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21111 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21112 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 21113 | 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] | 21114 | else |
| 21115 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21116 | /* confdefs.h. */ |
| 21117 | _ACEOF |
| 21118 | cat confdefs.h >>conftest.$ac_ext |
| 21119 | cat >>conftest.$ac_ext <<_ACEOF |
| 21120 | /* end confdefs.h. */ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21121 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21122 | int |
| 21123 | main () |
| 21124 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21125 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21126 | /* Are we little or big endian? From Harbison&Steele. */ |
| 21127 | union |
| 21128 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21129 | long int l; |
| 21130 | char c[sizeof (long int)]; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21131 | } u; |
| 21132 | u.l = 1; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21133 | return u.c[sizeof (long int) - 1] == 1; |
| 21134 | |
| 21135 | ; |
| 21136 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21137 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21138 | _ACEOF |
| 21139 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21147 | ac_status=$? |
| 21148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21149 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21156 | ac_status=$? |
| 21157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21158 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21159 | ac_cv_c_bigendian=no |
| 21160 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21161 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21162 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21164 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21165 | ( exit $ac_status ) |
| 21166 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21167 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21168 | 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] | 21169 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21170 | |
| 21171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21172 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21173 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 21174 | 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] | 21175 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21176 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 21177 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21178 | case $ac_cv_c_bigendian in |
| 21179 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21180 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21181 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21182 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21183 | _ACEOF |
| 21184 | ;; |
| 21185 | no) |
| 21186 | ;; |
| 21187 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21188 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21189 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21190 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21191 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 21192 | { (exit 1); exit 1; }; } ;; |
| 21193 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 21194 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21195 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21196 | |
| 21197 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21198 | # Check whether right shifting a negative integer extends the sign bit |
| 21199 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21200 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 21201 | 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] | 21202 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 21203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21204 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21205 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21206 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 21207 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21208 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21209 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21210 | /* confdefs.h. */ |
| 21211 | _ACEOF |
| 21212 | cat confdefs.h >>conftest.$ac_ext |
| 21213 | cat >>conftest.$ac_ext <<_ACEOF |
| 21214 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21215 | |
| 21216 | int main() |
| 21217 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21218 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21219 | } |
| 21220 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21221 | _ACEOF |
| 21222 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21223 | if { (ac_try="$ac_link" |
| 21224 | case "(($ac_try" in |
| 21225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21226 | *) ac_try_echo=$ac_try;; |
| 21227 | esac |
| 21228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21229 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21230 | ac_status=$? |
| 21231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21232 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21233 | { (case "(($ac_try" in |
| 21234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21235 | *) ac_try_echo=$ac_try;; |
| 21236 | esac |
| 21237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21238 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21239 | ac_status=$? |
| 21240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21241 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21242 | ac_cv_rshift_extends_sign=yes |
| 21243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21244 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21245 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21247 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21248 | ( exit $ac_status ) |
| 21249 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21250 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21251 | 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] | 21252 | fi |
| 21253 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21254 | |
| 21255 | fi |
| 21256 | |
| 21257 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 21258 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 21259 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21260 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21261 | |
| 21262 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21263 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21264 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21265 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21266 | fi |
| 21267 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21268 | # check for getc_unlocked and related locking functions |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21269 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 21270 | 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] | 21271 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 21272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21273 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21274 | |
| 21275 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21276 | /* confdefs.h. */ |
| 21277 | _ACEOF |
| 21278 | cat confdefs.h >>conftest.$ac_ext |
| 21279 | cat >>conftest.$ac_ext <<_ACEOF |
| 21280 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21281 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21282 | int |
| 21283 | main () |
| 21284 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21285 | |
| 21286 | FILE *f = fopen("/dev/null", "r"); |
| 21287 | flockfile(f); |
| 21288 | getc_unlocked(f); |
| 21289 | funlockfile(f); |
| 21290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21291 | ; |
| 21292 | return 0; |
| 21293 | } |
| 21294 | _ACEOF |
| 21295 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21296 | if { (ac_try="$ac_link" |
| 21297 | case "(($ac_try" in |
| 21298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21299 | *) ac_try_echo=$ac_try;; |
| 21300 | esac |
| 21301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21302 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21303 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21305 | rm -f conftest.er1 |
| 21306 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21308 | (exit $ac_status); } && { |
| 21309 | test -z "$ac_c_werror_flag" || |
| 21310 | test ! -s conftest.err |
| 21311 | } && test -s conftest$ac_exeext && |
| 21312 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21313 | ac_cv_have_getc_unlocked=yes |
| 21314 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21315 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21317 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21318 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21319 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21320 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21321 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21322 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21323 | fi |
| 21324 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21325 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 21326 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21327 | if test "$ac_cv_have_getc_unlocked" = yes |
| 21328 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21329 | |
| 21330 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21331 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21332 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 21333 | |
| 21334 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 21335 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21336 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 21337 | # save the value of LIBS so we don't actually link Python with readline |
| 21338 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21339 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21340 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 21341 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21342 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
| 21343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21344 | else |
| 21345 | ac_check_lib_save_LIBS=$LIBS |
| 21346 | LIBS="-lreadline $LIBS" |
| 21347 | cat >conftest.$ac_ext <<_ACEOF |
| 21348 | /* confdefs.h. */ |
| 21349 | _ACEOF |
| 21350 | cat confdefs.h >>conftest.$ac_ext |
| 21351 | cat >>conftest.$ac_ext <<_ACEOF |
| 21352 | /* end confdefs.h. */ |
| 21353 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21354 | /* Override any GCC internal prototype to avoid an error. |
| 21355 | Use char because int might match the return type of a GCC |
| 21356 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21357 | #ifdef __cplusplus |
| 21358 | extern "C" |
| 21359 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21360 | char readline (); |
| 21361 | int |
| 21362 | main () |
| 21363 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21364 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21365 | ; |
| 21366 | return 0; |
| 21367 | } |
| 21368 | _ACEOF |
| 21369 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21370 | if { (ac_try="$ac_link" |
| 21371 | case "(($ac_try" in |
| 21372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21373 | *) ac_try_echo=$ac_try;; |
| 21374 | esac |
| 21375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21376 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21377 | ac_status=$? |
| 21378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21379 | rm -f conftest.er1 |
| 21380 | cat conftest.err >&5 |
| 21381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21382 | (exit $ac_status); } && { |
| 21383 | test -z "$ac_c_werror_flag" || |
| 21384 | test ! -s conftest.err |
| 21385 | } && test -s conftest$ac_exeext && |
| 21386 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21387 | ac_cv_lib_readline_readline=yes |
| 21388 | else |
| 21389 | echo "$as_me: failed program was:" >&5 |
| 21390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21391 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21392 | ac_cv_lib_readline_readline=no |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21393 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21394 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21395 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21396 | conftest$ac_exeext conftest.$ac_ext |
| 21397 | LIBS=$ac_check_lib_save_LIBS |
| 21398 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21399 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 21400 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21401 | if test $ac_cv_lib_readline_readline = yes; then |
| 21402 | cat >>confdefs.h <<_ACEOF |
| 21403 | #define HAVE_LIBREADLINE 1 |
| 21404 | _ACEOF |
| 21405 | |
| 21406 | LIBS="-lreadline $LIBS" |
| 21407 | |
| 21408 | fi |
| 21409 | |
| 21410 | if test "$ac_cv_have_readline_readline" = no |
| 21411 | then |
| 21412 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21413 | { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5 |
| 21414 | echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21415 | if test "${ac_cv_lib_termcap_readline+set}" = set; then |
| 21416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21417 | else |
| 21418 | ac_check_lib_save_LIBS=$LIBS |
| 21419 | LIBS="-ltermcap $LIBS" |
| 21420 | cat >conftest.$ac_ext <<_ACEOF |
| 21421 | /* confdefs.h. */ |
| 21422 | _ACEOF |
| 21423 | cat confdefs.h >>conftest.$ac_ext |
| 21424 | cat >>conftest.$ac_ext <<_ACEOF |
| 21425 | /* end confdefs.h. */ |
| 21426 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21427 | /* Override any GCC internal prototype to avoid an error. |
| 21428 | Use char because int might match the return type of a GCC |
| 21429 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21430 | #ifdef __cplusplus |
| 21431 | extern "C" |
| 21432 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21433 | char readline (); |
| 21434 | int |
| 21435 | main () |
| 21436 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21437 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21438 | ; |
| 21439 | return 0; |
| 21440 | } |
| 21441 | _ACEOF |
| 21442 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21443 | if { (ac_try="$ac_link" |
| 21444 | case "(($ac_try" in |
| 21445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21446 | *) ac_try_echo=$ac_try;; |
| 21447 | esac |
| 21448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21449 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21450 | ac_status=$? |
| 21451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21452 | rm -f conftest.er1 |
| 21453 | cat conftest.err >&5 |
| 21454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21455 | (exit $ac_status); } && { |
| 21456 | test -z "$ac_c_werror_flag" || |
| 21457 | test ! -s conftest.err |
| 21458 | } && test -s conftest$ac_exeext && |
| 21459 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21460 | ac_cv_lib_termcap_readline=yes |
| 21461 | else |
| 21462 | echo "$as_me: failed program was:" >&5 |
| 21463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21464 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21465 | ac_cv_lib_termcap_readline=no |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21466 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21467 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21468 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21469 | conftest$ac_exeext conftest.$ac_ext |
| 21470 | LIBS=$ac_check_lib_save_LIBS |
| 21471 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21472 | { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5 |
| 21473 | echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; } |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21474 | if test $ac_cv_lib_termcap_readline = yes; then |
| 21475 | cat >>confdefs.h <<_ACEOF |
| 21476 | #define HAVE_LIBTERMCAP 1 |
| 21477 | _ACEOF |
| 21478 | |
| 21479 | LIBS="-ltermcap $LIBS" |
| 21480 | |
| 21481 | fi |
| 21482 | |
| 21483 | fi |
| 21484 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21485 | # check for readline 2.1 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21486 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 21487 | 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] | 21488 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| 21489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21490 | else |
| 21491 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21492 | LIBS="-lreadline $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21493 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21494 | /* confdefs.h. */ |
| 21495 | _ACEOF |
| 21496 | cat confdefs.h >>conftest.$ac_ext |
| 21497 | cat >>conftest.$ac_ext <<_ACEOF |
| 21498 | /* end confdefs.h. */ |
| 21499 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21500 | /* Override any GCC internal prototype to avoid an error. |
| 21501 | Use char because int might match the return type of a GCC |
| 21502 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21503 | #ifdef __cplusplus |
| 21504 | extern "C" |
| 21505 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21506 | char rl_callback_handler_install (); |
| 21507 | int |
| 21508 | main () |
| 21509 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21510 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21511 | ; |
| 21512 | return 0; |
| 21513 | } |
| 21514 | _ACEOF |
| 21515 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21516 | if { (ac_try="$ac_link" |
| 21517 | case "(($ac_try" in |
| 21518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21519 | *) ac_try_echo=$ac_try;; |
| 21520 | esac |
| 21521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21522 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21523 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21525 | rm -f conftest.er1 |
| 21526 | cat conftest.err >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21528 | (exit $ac_status); } && { |
| 21529 | test -z "$ac_c_werror_flag" || |
| 21530 | test ! -s conftest.err |
| 21531 | } && test -s conftest$ac_exeext && |
| 21532 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21533 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 21534 | else |
| 21535 | echo "$as_me: failed program was:" >&5 |
| 21536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21537 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21538 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21539 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21540 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21541 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21542 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21543 | LIBS=$ac_check_lib_save_LIBS |
| 21544 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21545 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 21546 | 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] | 21547 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| 21548 | |
| 21549 | cat >>confdefs.h <<\_ACEOF |
| 21550 | #define HAVE_RL_CALLBACK 1 |
| 21551 | _ACEOF |
| 21552 | |
| 21553 | fi |
| 21554 | |
| 21555 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21556 | # check for readline 2.2 |
| 21557 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21558 | /* confdefs.h. */ |
| 21559 | _ACEOF |
| 21560 | cat confdefs.h >>conftest.$ac_ext |
| 21561 | cat >>conftest.$ac_ext <<_ACEOF |
| 21562 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21563 | #include <readline/readline.h> |
| 21564 | _ACEOF |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21565 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21566 | case "(($ac_try" in |
| 21567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21568 | *) ac_try_echo=$ac_try;; |
| 21569 | esac |
| 21570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21571 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21572 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21573 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21574 | rm -f conftest.er1 |
| 21575 | cat conftest.err >&5 |
| 21576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21577 | (exit $ac_status); } >/dev/null && { |
| 21578 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 21579 | test ! -s conftest.err |
| 21580 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21581 | have_readline=yes |
| 21582 | else |
| 21583 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21585 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21586 | have_readline=no |
| 21587 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21588 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21589 | rm -f conftest.err conftest.$ac_ext |
| 21590 | if test $have_readline = yes |
| 21591 | then |
| 21592 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21593 | /* confdefs.h. */ |
| 21594 | _ACEOF |
| 21595 | cat confdefs.h >>conftest.$ac_ext |
| 21596 | cat >>conftest.$ac_ext <<_ACEOF |
| 21597 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 21598 | #include <readline/readline.h> |
| 21599 | |
| 21600 | _ACEOF |
| 21601 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21602 | $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] | 21603 | |
| 21604 | cat >>confdefs.h <<\_ACEOF |
| 21605 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 21606 | _ACEOF |
| 21607 | |
| 21608 | fi |
| 21609 | rm -f conftest* |
| 21610 | |
| 21611 | fi |
| 21612 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21613 | # check for readline 4.0 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21614 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 21615 | 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] | 21616 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 21617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21618 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21619 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21620 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21621 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21622 | /* confdefs.h. */ |
| 21623 | _ACEOF |
| 21624 | cat confdefs.h >>conftest.$ac_ext |
| 21625 | cat >>conftest.$ac_ext <<_ACEOF |
| 21626 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21627 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21628 | /* Override any GCC internal prototype to avoid an error. |
| 21629 | Use char because int might match the return type of a GCC |
| 21630 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21631 | #ifdef __cplusplus |
| 21632 | extern "C" |
| 21633 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21634 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21635 | int |
| 21636 | main () |
| 21637 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21638 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21639 | ; |
| 21640 | return 0; |
| 21641 | } |
| 21642 | _ACEOF |
| 21643 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21644 | if { (ac_try="$ac_link" |
| 21645 | case "(($ac_try" in |
| 21646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21647 | *) ac_try_echo=$ac_try;; |
| 21648 | esac |
| 21649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21650 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21651 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21653 | rm -f conftest.er1 |
| 21654 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21656 | (exit $ac_status); } && { |
| 21657 | test -z "$ac_c_werror_flag" || |
| 21658 | test ! -s conftest.err |
| 21659 | } && test -s conftest$ac_exeext && |
| 21660 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21661 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21662 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21663 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21665 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21666 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21667 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21668 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21669 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21670 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21671 | LIBS=$ac_check_lib_save_LIBS |
| 21672 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21673 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 21674 | 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] | 21675 | 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] | 21676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21677 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21678 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21679 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21680 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21681 | fi |
| 21682 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21683 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21684 | # check for readline 4.2 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21685 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 21686 | 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] | 21687 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 21688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 21689 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21690 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 21691 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21692 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21693 | /* confdefs.h. */ |
| 21694 | _ACEOF |
| 21695 | cat confdefs.h >>conftest.$ac_ext |
| 21696 | cat >>conftest.$ac_ext <<_ACEOF |
| 21697 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21698 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21699 | /* Override any GCC internal prototype to avoid an error. |
| 21700 | Use char because int might match the return type of a GCC |
| 21701 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21702 | #ifdef __cplusplus |
| 21703 | extern "C" |
| 21704 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21705 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21706 | int |
| 21707 | main () |
| 21708 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21709 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21710 | ; |
| 21711 | return 0; |
| 21712 | } |
| 21713 | _ACEOF |
| 21714 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21715 | if { (ac_try="$ac_link" |
| 21716 | case "(($ac_try" in |
| 21717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21718 | *) ac_try_echo=$ac_try;; |
| 21719 | esac |
| 21720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21721 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21722 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21724 | rm -f conftest.er1 |
| 21725 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21727 | (exit $ac_status); } && { |
| 21728 | test -z "$ac_c_werror_flag" || |
| 21729 | test ! -s conftest.err |
| 21730 | } && test -s conftest$ac_exeext && |
| 21731 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21732 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21734 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21736 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21737 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21738 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21739 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21740 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21741 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21742 | LIBS=$ac_check_lib_save_LIBS |
| 21743 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21744 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 21745 | 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] | 21746 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21748 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21749 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21750 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21751 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 21752 | fi |
| 21753 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21754 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21755 | # also in readline 4.2 |
| 21756 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21757 | /* confdefs.h. */ |
| 21758 | _ACEOF |
| 21759 | cat confdefs.h >>conftest.$ac_ext |
| 21760 | cat >>conftest.$ac_ext <<_ACEOF |
| 21761 | /* end confdefs.h. */ |
| 21762 | #include <readline/readline.h> |
| 21763 | _ACEOF |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21764 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21765 | case "(($ac_try" in |
| 21766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21767 | *) ac_try_echo=$ac_try;; |
| 21768 | esac |
| 21769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21770 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21771 | ac_status=$? |
| 21772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21773 | rm -f conftest.er1 |
| 21774 | cat conftest.err >&5 |
| 21775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 21776 | (exit $ac_status); } >/dev/null && { |
| 21777 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 21778 | test ! -s conftest.err |
| 21779 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21780 | have_readline=yes |
| 21781 | else |
| 21782 | echo "$as_me: failed program was:" >&5 |
| 21783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21784 | |
| 21785 | have_readline=no |
| 21786 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21787 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21788 | rm -f conftest.err conftest.$ac_ext |
| 21789 | if test $have_readline = yes |
| 21790 | then |
| 21791 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 21792 | /* confdefs.h. */ |
| 21793 | _ACEOF |
| 21794 | cat confdefs.h >>conftest.$ac_ext |
| 21795 | cat >>conftest.$ac_ext <<_ACEOF |
| 21796 | /* end confdefs.h. */ |
| 21797 | #include <readline/readline.h> |
| 21798 | |
| 21799 | _ACEOF |
| 21800 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21801 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 21802 | |
| 21803 | cat >>confdefs.h <<\_ACEOF |
| 21804 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 21805 | _ACEOF |
| 21806 | |
| 21807 | fi |
| 21808 | rm -f conftest* |
| 21809 | |
| 21810 | fi |
| 21811 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 21812 | # End of readline checks: restore LIBS |
| 21813 | LIBS=$LIBS_no_readline |
| 21814 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21815 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 21816 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21817 | if test "${ac_cv_broken_nice+set}" = set; then |
| 21818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21819 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21820 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21821 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 21822 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21823 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21824 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21825 | /* confdefs.h. */ |
| 21826 | _ACEOF |
| 21827 | cat confdefs.h >>conftest.$ac_ext |
| 21828 | cat >>conftest.$ac_ext <<_ACEOF |
| 21829 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21830 | |
| 21831 | int main() |
| 21832 | { |
| 21833 | int val1 = nice(1); |
| 21834 | if (val1 != -1 && val1 == nice(2)) |
| 21835 | exit(0); |
| 21836 | exit(1); |
| 21837 | } |
| 21838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21839 | _ACEOF |
| 21840 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21841 | if { (ac_try="$ac_link" |
| 21842 | case "(($ac_try" in |
| 21843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21844 | *) ac_try_echo=$ac_try;; |
| 21845 | esac |
| 21846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21847 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21848 | ac_status=$? |
| 21849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21850 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21851 | { (case "(($ac_try" in |
| 21852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21853 | *) ac_try_echo=$ac_try;; |
| 21854 | esac |
| 21855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21856 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21857 | ac_status=$? |
| 21858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21859 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21860 | ac_cv_broken_nice=yes |
| 21861 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21862 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21863 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21866 | ( exit $ac_status ) |
| 21867 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21868 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21869 | 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] | 21870 | fi |
| 21871 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21872 | |
| 21873 | fi |
| 21874 | |
| 21875 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 21876 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21877 | if test "$ac_cv_broken_nice" = yes |
| 21878 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21879 | |
| 21880 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21881 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21882 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21883 | |
| 21884 | fi |
| 21885 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21886 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 21887 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 21888 | if test "$cross_compiling" = yes; then |
| 21889 | ac_cv_broken_poll=no |
| 21890 | else |
| 21891 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 21892 | /* confdefs.h. */ |
| 21893 | _ACEOF |
| 21894 | cat confdefs.h >>conftest.$ac_ext |
| 21895 | cat >>conftest.$ac_ext <<_ACEOF |
| 21896 | /* end confdefs.h. */ |
| 21897 | |
| 21898 | #include <poll.h> |
| 21899 | |
| 21900 | int main (void) |
| 21901 | { |
| 21902 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 21903 | |
| 21904 | close (42); |
| 21905 | |
| 21906 | int poll_test = poll (&poll_struct, 1, 0); |
| 21907 | |
| 21908 | if (poll_test < 0) |
| 21909 | { |
| 21910 | exit(0); |
| 21911 | } |
| 21912 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 21913 | { |
| 21914 | exit(0); |
| 21915 | } |
| 21916 | else |
| 21917 | { |
| 21918 | exit(1); |
| 21919 | } |
| 21920 | } |
| 21921 | |
| 21922 | _ACEOF |
| 21923 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21924 | if { (ac_try="$ac_link" |
| 21925 | case "(($ac_try" in |
| 21926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21927 | *) ac_try_echo=$ac_try;; |
| 21928 | esac |
| 21929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21930 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 21931 | ac_status=$? |
| 21932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21933 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21934 | { (case "(($ac_try" in |
| 21935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21936 | *) ac_try_echo=$ac_try;; |
| 21937 | esac |
| 21938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21939 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 21940 | ac_status=$? |
| 21941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21942 | (exit $ac_status); }; }; then |
| 21943 | ac_cv_broken_poll=yes |
| 21944 | else |
| 21945 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21946 | echo "$as_me: failed program was:" >&5 |
| 21947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21948 | |
| 21949 | ( exit $ac_status ) |
| 21950 | ac_cv_broken_poll=no |
| 21951 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21952 | 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] | 21953 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21954 | |
| 21955 | |
| 21956 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 21957 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 21958 | if test "$ac_cv_broken_poll" = yes |
| 21959 | then |
| 21960 | |
| 21961 | cat >>confdefs.h <<\_ACEOF |
| 21962 | #define HAVE_BROKEN_POLL 1 |
| 21963 | _ACEOF |
| 21964 | |
| 21965 | fi |
| 21966 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21967 | # 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] | 21968 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 21969 | # tzname[] |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 21970 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 21971 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21972 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 21973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21974 | else |
| 21975 | cat >conftest.$ac_ext <<_ACEOF |
| 21976 | /* confdefs.h. */ |
| 21977 | _ACEOF |
| 21978 | cat confdefs.h >>conftest.$ac_ext |
| 21979 | cat >>conftest.$ac_ext <<_ACEOF |
| 21980 | /* end confdefs.h. */ |
| 21981 | #include <sys/types.h> |
| 21982 | #include <$ac_cv_struct_tm> |
| 21983 | |
| 21984 | |
| 21985 | int |
| 21986 | main () |
| 21987 | { |
| 21988 | static struct tm ac_aggr; |
| 21989 | if (ac_aggr.tm_zone) |
| 21990 | return 0; |
| 21991 | ; |
| 21992 | return 0; |
| 21993 | } |
| 21994 | _ACEOF |
| 21995 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 21996 | if { (ac_try="$ac_compile" |
| 21997 | case "(($ac_try" in |
| 21998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21999 | *) ac_try_echo=$ac_try;; |
| 22000 | esac |
| 22001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22002 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22003 | ac_status=$? |
| 22004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22005 | rm -f conftest.er1 |
| 22006 | cat conftest.err >&5 |
| 22007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22008 | (exit $ac_status); } && { |
| 22009 | test -z "$ac_c_werror_flag" || |
| 22010 | test ! -s conftest.err |
| 22011 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22012 | ac_cv_member_struct_tm_tm_zone=yes |
| 22013 | else |
| 22014 | echo "$as_me: failed program was:" >&5 |
| 22015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22016 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22017 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22018 | /* confdefs.h. */ |
| 22019 | _ACEOF |
| 22020 | cat confdefs.h >>conftest.$ac_ext |
| 22021 | cat >>conftest.$ac_ext <<_ACEOF |
| 22022 | /* end confdefs.h. */ |
| 22023 | #include <sys/types.h> |
| 22024 | #include <$ac_cv_struct_tm> |
| 22025 | |
| 22026 | |
| 22027 | int |
| 22028 | main () |
| 22029 | { |
| 22030 | static struct tm ac_aggr; |
| 22031 | if (sizeof ac_aggr.tm_zone) |
| 22032 | return 0; |
| 22033 | ; |
| 22034 | return 0; |
| 22035 | } |
| 22036 | _ACEOF |
| 22037 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 22038 | if { (ac_try="$ac_compile" |
| 22039 | case "(($ac_try" in |
| 22040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22041 | *) ac_try_echo=$ac_try;; |
| 22042 | esac |
| 22043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22044 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22045 | ac_status=$? |
| 22046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22047 | rm -f conftest.er1 |
| 22048 | cat conftest.err >&5 |
| 22049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22050 | (exit $ac_status); } && { |
| 22051 | test -z "$ac_c_werror_flag" || |
| 22052 | test ! -s conftest.err |
| 22053 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22054 | ac_cv_member_struct_tm_tm_zone=yes |
| 22055 | else |
| 22056 | echo "$as_me: failed program was:" >&5 |
| 22057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22058 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22059 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22060 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22061 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22063 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22064 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22066 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22067 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 22068 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22069 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 22070 | |
| 22071 | cat >>confdefs.h <<_ACEOF |
| 22072 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 22073 | _ACEOF |
| 22074 | |
| 22075 | |
| 22076 | fi |
| 22077 | |
| 22078 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 22079 | |
| 22080 | cat >>confdefs.h <<\_ACEOF |
| 22081 | #define HAVE_TM_ZONE 1 |
| 22082 | _ACEOF |
| 22083 | |
| 22084 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22085 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 22086 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
| 22087 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
| 22088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22089 | else |
| 22090 | cat >conftest.$ac_ext <<_ACEOF |
| 22091 | /* confdefs.h. */ |
| 22092 | _ACEOF |
| 22093 | cat confdefs.h >>conftest.$ac_ext |
| 22094 | cat >>conftest.$ac_ext <<_ACEOF |
| 22095 | /* end confdefs.h. */ |
| 22096 | #include <time.h> |
| 22097 | |
| 22098 | int |
| 22099 | main () |
| 22100 | { |
| 22101 | #ifndef tzname |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22102 | (void) tzname; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22103 | #endif |
| 22104 | |
| 22105 | ; |
| 22106 | return 0; |
| 22107 | } |
| 22108 | _ACEOF |
| 22109 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 22110 | if { (ac_try="$ac_compile" |
| 22111 | case "(($ac_try" in |
| 22112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22113 | *) ac_try_echo=$ac_try;; |
| 22114 | esac |
| 22115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22116 | (eval "$ac_compile") 2>conftest.er1 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22117 | ac_status=$? |
| 22118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22119 | rm -f conftest.er1 |
| 22120 | cat conftest.err >&5 |
| 22121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22122 | (exit $ac_status); } && { |
| 22123 | test -z "$ac_c_werror_flag" || |
| 22124 | test ! -s conftest.err |
| 22125 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22126 | ac_cv_have_decl_tzname=yes |
| 22127 | else |
| 22128 | echo "$as_me: failed program was:" >&5 |
| 22129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22130 | |
| 22131 | ac_cv_have_decl_tzname=no |
| 22132 | fi |
| 22133 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22135 | fi |
| 22136 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 22137 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 22138 | if test $ac_cv_have_decl_tzname = yes; then |
| 22139 | |
| 22140 | cat >>confdefs.h <<_ACEOF |
| 22141 | #define HAVE_DECL_TZNAME 1 |
| 22142 | _ACEOF |
| 22143 | |
| 22144 | |
| 22145 | else |
| 22146 | cat >>confdefs.h <<_ACEOF |
| 22147 | #define HAVE_DECL_TZNAME 0 |
| 22148 | _ACEOF |
| 22149 | |
| 22150 | |
| 22151 | fi |
| 22152 | |
| 22153 | |
| 22154 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 22155 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22156 | if test "${ac_cv_var_tzname+set}" = set; then |
| 22157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22158 | else |
| 22159 | cat >conftest.$ac_ext <<_ACEOF |
| 22160 | /* confdefs.h. */ |
| 22161 | _ACEOF |
| 22162 | cat confdefs.h >>conftest.$ac_ext |
| 22163 | cat >>conftest.$ac_ext <<_ACEOF |
| 22164 | /* end confdefs.h. */ |
| 22165 | #include <time.h> |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22166 | #if !HAVE_DECL_TZNAME |
| 22167 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22168 | #endif |
| 22169 | |
| 22170 | int |
| 22171 | main () |
| 22172 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22173 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22174 | ; |
| 22175 | return 0; |
| 22176 | } |
| 22177 | _ACEOF |
| 22178 | rm -f conftest.$ac_objext conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 22179 | if { (ac_try="$ac_link" |
| 22180 | case "(($ac_try" in |
| 22181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22182 | *) ac_try_echo=$ac_try;; |
| 22183 | esac |
| 22184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22185 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22186 | ac_status=$? |
| 22187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22188 | rm -f conftest.er1 |
| 22189 | cat conftest.err >&5 |
| 22190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22191 | (exit $ac_status); } && { |
| 22192 | test -z "$ac_c_werror_flag" || |
| 22193 | test ! -s conftest.err |
| 22194 | } && test -s conftest$ac_exeext && |
| 22195 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22196 | ac_cv_var_tzname=yes |
| 22197 | else |
| 22198 | echo "$as_me: failed program was:" >&5 |
| 22199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22200 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22201 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22202 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22203 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22204 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22205 | conftest$ac_exeext conftest.$ac_ext |
| 22206 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22207 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 22208 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22209 | if test $ac_cv_var_tzname = yes; then |
| 22210 | |
| 22211 | cat >>confdefs.h <<\_ACEOF |
| 22212 | #define HAVE_TZNAME 1 |
| 22213 | _ACEOF |
| 22214 | |
| 22215 | fi |
| 22216 | fi |
| 22217 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 22218 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22219 | # check tzset(3) exists and works like we expect it to |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22220 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 22221 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22222 | if test "${ac_cv_working_tzset+set}" = set; then |
| 22223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22224 | else |
| 22225 | |
| 22226 | if test "$cross_compiling" = yes; then |
| 22227 | ac_cv_working_tzset=no |
| 22228 | else |
| 22229 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22230 | /* confdefs.h. */ |
| 22231 | _ACEOF |
| 22232 | cat confdefs.h >>conftest.$ac_ext |
| 22233 | cat >>conftest.$ac_ext <<_ACEOF |
| 22234 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22235 | |
| 22236 | #include <stdlib.h> |
| 22237 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22238 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22239 | |
| 22240 | #if HAVE_TZNAME |
| 22241 | extern char *tzname[]; |
| 22242 | #endif |
| 22243 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22244 | int main() |
| 22245 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22246 | /* Note that we need to ensure that not only does tzset(3) |
| 22247 | do 'something' with localtime, but it works as documented |
| 22248 | 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] | 22249 | This includes making sure that tzname is set properly if |
| 22250 | tm->tm_zone does not exist since it is the alternative way |
| 22251 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22252 | |
| 22253 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22254 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22255 | */ |
| 22256 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 22257 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22258 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 22259 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 22260 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22261 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22262 | if (localtime(&groundhogday)->tm_hour != 0) |
| 22263 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22264 | #if HAVE_TZNAME |
| 22265 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 22266 | if (strcmp(tzname[0], "UTC") || |
| 22267 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 22268 | exit(1); |
| 22269 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22270 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 22271 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22272 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22273 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22274 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22275 | #if HAVE_TZNAME |
| 22276 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 22277 | exit(1); |
| 22278 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22279 | |
| 22280 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 22281 | tzset(); |
| 22282 | if (localtime(&groundhogday)->tm_hour != 11) |
| 22283 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22284 | #if HAVE_TZNAME |
| 22285 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 22286 | exit(1); |
| 22287 | #endif |
| 22288 | |
| 22289 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22290 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 22291 | exit(1); |
| 22292 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 22293 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22294 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 22295 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22296 | exit(0); |
| 22297 | } |
| 22298 | |
| 22299 | _ACEOF |
| 22300 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 22301 | if { (ac_try="$ac_link" |
| 22302 | case "(($ac_try" in |
| 22303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22304 | *) ac_try_echo=$ac_try;; |
| 22305 | esac |
| 22306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22307 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22308 | ac_status=$? |
| 22309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22310 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 22311 | { (case "(($ac_try" in |
| 22312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22313 | *) ac_try_echo=$ac_try;; |
| 22314 | esac |
| 22315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22316 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22317 | ac_status=$? |
| 22318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22319 | (exit $ac_status); }; }; then |
| 22320 | ac_cv_working_tzset=yes |
| 22321 | else |
| 22322 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22323 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22325 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22326 | ( exit $ac_status ) |
| 22327 | ac_cv_working_tzset=no |
| 22328 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22329 | 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] | 22330 | fi |
| 22331 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22332 | |
| 22333 | fi |
| 22334 | |
| 22335 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 22336 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 22337 | if test "$ac_cv_working_tzset" = yes |
| 22338 | then |
| 22339 | |
| 22340 | cat >>confdefs.h <<\_ACEOF |
| 22341 | #define HAVE_WORKING_TZSET 1 |
| 22342 | _ACEOF |
| 22343 | |
| 22344 | fi |
| 22345 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22346 | # Look for subsecond timestamps in struct stat |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22347 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 22348 | 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] | 22349 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 22350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22351 | else |
| 22352 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22353 | /* confdefs.h. */ |
| 22354 | _ACEOF |
| 22355 | cat confdefs.h >>conftest.$ac_ext |
| 22356 | cat >>conftest.$ac_ext <<_ACEOF |
| 22357 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22358 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22359 | int |
| 22360 | main () |
| 22361 | { |
| 22362 | |
| 22363 | struct stat st; |
| 22364 | st.st_mtim.tv_nsec = 1; |
| 22365 | |
| 22366 | ; |
| 22367 | return 0; |
| 22368 | } |
| 22369 | _ACEOF |
| 22370 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 22371 | if { (ac_try="$ac_compile" |
| 22372 | case "(($ac_try" in |
| 22373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22374 | *) ac_try_echo=$ac_try;; |
| 22375 | esac |
| 22376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22377 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22378 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22380 | rm -f conftest.er1 |
| 22381 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22383 | (exit $ac_status); } && { |
| 22384 | test -z "$ac_c_werror_flag" || |
| 22385 | test ! -s conftest.err |
| 22386 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 22387 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22388 | else |
| 22389 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22391 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22392 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22393 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22394 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22396 | fi |
| 22397 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22398 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 22399 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 22400 | if test "$ac_cv_stat_tv_nsec" = yes |
| 22401 | then |
| 22402 | |
| 22403 | cat >>confdefs.h <<\_ACEOF |
| 22404 | #define HAVE_STAT_TV_NSEC 1 |
| 22405 | _ACEOF |
| 22406 | |
| 22407 | fi |
| 22408 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22409 | # Look for BSD style subsecond timestamps in struct stat |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22410 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 22411 | 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] | 22412 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
| 22413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22414 | else |
| 22415 | cat >conftest.$ac_ext <<_ACEOF |
| 22416 | /* confdefs.h. */ |
| 22417 | _ACEOF |
| 22418 | cat confdefs.h >>conftest.$ac_ext |
| 22419 | cat >>conftest.$ac_ext <<_ACEOF |
| 22420 | /* end confdefs.h. */ |
| 22421 | #include <sys/stat.h> |
| 22422 | int |
| 22423 | main () |
| 22424 | { |
| 22425 | |
| 22426 | struct stat st; |
| 22427 | st.st_mtimespec.tv_nsec = 1; |
| 22428 | |
| 22429 | ; |
| 22430 | return 0; |
| 22431 | } |
| 22432 | _ACEOF |
| 22433 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 22434 | if { (ac_try="$ac_compile" |
| 22435 | case "(($ac_try" in |
| 22436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22437 | *) ac_try_echo=$ac_try;; |
| 22438 | esac |
| 22439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22440 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22441 | ac_status=$? |
| 22442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22443 | rm -f conftest.er1 |
| 22444 | cat conftest.err >&5 |
| 22445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22446 | (exit $ac_status); } && { |
| 22447 | test -z "$ac_c_werror_flag" || |
| 22448 | test ! -s conftest.err |
| 22449 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22450 | ac_cv_stat_tv_nsec2=yes |
| 22451 | else |
| 22452 | echo "$as_me: failed program was:" >&5 |
| 22453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22454 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22455 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22456 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22457 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22458 | 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] | 22459 | fi |
| 22460 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22461 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 22462 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22463 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 22464 | then |
| 22465 | |
| 22466 | cat >>confdefs.h <<\_ACEOF |
| 22467 | #define HAVE_STAT_TV_NSEC2 1 |
| 22468 | _ACEOF |
| 22469 | |
| 22470 | fi |
| 22471 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22472 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22473 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 22474 | 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] | 22475 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 22476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22477 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22478 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22479 | /* confdefs.h. */ |
| 22480 | _ACEOF |
| 22481 | cat confdefs.h >>conftest.$ac_ext |
| 22482 | cat >>conftest.$ac_ext <<_ACEOF |
| 22483 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22484 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22485 | int |
| 22486 | main () |
| 22487 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22488 | |
| 22489 | int rtn; |
| 22490 | rtn = mvwdelch(0,0,0); |
| 22491 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22492 | ; |
| 22493 | return 0; |
| 22494 | } |
| 22495 | _ACEOF |
| 22496 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 22497 | if { (ac_try="$ac_compile" |
| 22498 | case "(($ac_try" in |
| 22499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22500 | *) ac_try_echo=$ac_try;; |
| 22501 | esac |
| 22502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22503 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22504 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22506 | rm -f conftest.er1 |
| 22507 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22509 | (exit $ac_status); } && { |
| 22510 | test -z "$ac_c_werror_flag" || |
| 22511 | test ! -s conftest.err |
| 22512 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22513 | ac_cv_mvwdelch_is_expression=yes |
| 22514 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22515 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22517 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22518 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22519 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22520 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22522 | fi |
| 22523 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22524 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 22525 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22526 | |
| 22527 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 22528 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22529 | |
| 22530 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22531 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22532 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22533 | |
| 22534 | fi |
| 22535 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22536 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 22537 | 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] | 22538 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 22539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22541 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22542 | /* confdefs.h. */ |
| 22543 | _ACEOF |
| 22544 | cat confdefs.h >>conftest.$ac_ext |
| 22545 | cat >>conftest.$ac_ext <<_ACEOF |
| 22546 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22547 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22548 | int |
| 22549 | main () |
| 22550 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22551 | |
| 22552 | WINDOW *w; |
| 22553 | w->_flags = 0; |
| 22554 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22555 | ; |
| 22556 | return 0; |
| 22557 | } |
| 22558 | _ACEOF |
| 22559 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 22560 | if { (ac_try="$ac_compile" |
| 22561 | case "(($ac_try" in |
| 22562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22563 | *) ac_try_echo=$ac_try;; |
| 22564 | esac |
| 22565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22566 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22567 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22569 | rm -f conftest.er1 |
| 22570 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22572 | (exit $ac_status); } && { |
| 22573 | test -z "$ac_c_werror_flag" || |
| 22574 | test ! -s conftest.err |
| 22575 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22576 | ac_cv_window_has_flags=yes |
| 22577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22578 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22580 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22581 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22582 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22583 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22585 | fi |
| 22586 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22587 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 22588 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22589 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22590 | |
| 22591 | if test "$ac_cv_window_has_flags" = yes |
| 22592 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22593 | |
| 22594 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22595 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22596 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 22597 | |
| 22598 | fi |
| 22599 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22600 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 22601 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
| 22602 | cat >conftest.$ac_ext <<_ACEOF |
| 22603 | /* confdefs.h. */ |
| 22604 | _ACEOF |
| 22605 | cat confdefs.h >>conftest.$ac_ext |
| 22606 | cat >>conftest.$ac_ext <<_ACEOF |
| 22607 | /* end confdefs.h. */ |
| 22608 | #include <curses.h> |
| 22609 | int |
| 22610 | main () |
| 22611 | { |
| 22612 | void *x=is_term_resized |
| 22613 | ; |
| 22614 | return 0; |
| 22615 | } |
| 22616 | _ACEOF |
| 22617 | rm -f conftest.$ac_objext |
| 22618 | if { (ac_try="$ac_compile" |
| 22619 | case "(($ac_try" in |
| 22620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22621 | *) ac_try_echo=$ac_try;; |
| 22622 | esac |
| 22623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22624 | (eval "$ac_compile") 2>conftest.er1 |
| 22625 | ac_status=$? |
| 22626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22627 | rm -f conftest.er1 |
| 22628 | cat conftest.err >&5 |
| 22629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22630 | (exit $ac_status); } && { |
| 22631 | test -z "$ac_c_werror_flag" || |
| 22632 | test ! -s conftest.err |
| 22633 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 22634 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22635 | cat >>confdefs.h <<\_ACEOF |
| 22636 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 22637 | _ACEOF |
| 22638 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22639 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22640 | echo "${ECHO_T}yes" >&6; } |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22641 | else |
| 22642 | echo "$as_me: failed program was:" >&5 |
| 22643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22644 | |
| 22645 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22646 | echo "${ECHO_T}no" >&6; } |
| 22647 | |
| 22648 | fi |
| 22649 | |
| 22650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22651 | |
| 22652 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 22653 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
| 22654 | cat >conftest.$ac_ext <<_ACEOF |
| 22655 | /* confdefs.h. */ |
| 22656 | _ACEOF |
| 22657 | cat confdefs.h >>conftest.$ac_ext |
| 22658 | cat >>conftest.$ac_ext <<_ACEOF |
| 22659 | /* end confdefs.h. */ |
| 22660 | #include <curses.h> |
| 22661 | int |
| 22662 | main () |
| 22663 | { |
| 22664 | void *x=resize_term |
| 22665 | ; |
| 22666 | return 0; |
| 22667 | } |
| 22668 | _ACEOF |
| 22669 | rm -f conftest.$ac_objext |
| 22670 | if { (ac_try="$ac_compile" |
| 22671 | case "(($ac_try" in |
| 22672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22673 | *) ac_try_echo=$ac_try;; |
| 22674 | esac |
| 22675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22676 | (eval "$ac_compile") 2>conftest.er1 |
| 22677 | ac_status=$? |
| 22678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22679 | rm -f conftest.er1 |
| 22680 | cat conftest.err >&5 |
| 22681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22682 | (exit $ac_status); } && { |
| 22683 | test -z "$ac_c_werror_flag" || |
| 22684 | test ! -s conftest.err |
| 22685 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22686 | |
| 22687 | cat >>confdefs.h <<\_ACEOF |
| 22688 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 22689 | _ACEOF |
| 22690 | |
| 22691 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22692 | echo "${ECHO_T}yes" >&6; } |
| 22693 | else |
| 22694 | echo "$as_me: failed program was:" >&5 |
| 22695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22696 | |
| 22697 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22698 | echo "${ECHO_T}no" >&6; } |
| 22699 | |
| 22700 | fi |
| 22701 | |
| 22702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22703 | |
| 22704 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 22705 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
| 22706 | cat >conftest.$ac_ext <<_ACEOF |
| 22707 | /* confdefs.h. */ |
| 22708 | _ACEOF |
| 22709 | cat confdefs.h >>conftest.$ac_ext |
| 22710 | cat >>conftest.$ac_ext <<_ACEOF |
| 22711 | /* end confdefs.h. */ |
| 22712 | #include <curses.h> |
| 22713 | int |
| 22714 | main () |
| 22715 | { |
| 22716 | void *x=resizeterm |
| 22717 | ; |
| 22718 | return 0; |
| 22719 | } |
| 22720 | _ACEOF |
| 22721 | rm -f conftest.$ac_objext |
| 22722 | if { (ac_try="$ac_compile" |
| 22723 | case "(($ac_try" in |
| 22724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22725 | *) ac_try_echo=$ac_try;; |
| 22726 | esac |
| 22727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22728 | (eval "$ac_compile") 2>conftest.er1 |
| 22729 | ac_status=$? |
| 22730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22731 | rm -f conftest.er1 |
| 22732 | cat conftest.err >&5 |
| 22733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22734 | (exit $ac_status); } && { |
| 22735 | test -z "$ac_c_werror_flag" || |
| 22736 | test ! -s conftest.err |
| 22737 | } && test -s conftest.$ac_objext; then |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22738 | |
| 22739 | cat >>confdefs.h <<\_ACEOF |
| 22740 | #define HAVE_CURSES_RESIZETERM 1 |
| 22741 | _ACEOF |
| 22742 | |
| 22743 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22744 | echo "${ECHO_T}yes" >&6; } |
| 22745 | else |
| 22746 | echo "$as_me: failed program was:" >&5 |
| 22747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22748 | |
| 22749 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22750 | echo "${ECHO_T}no" >&6; } |
| 22751 | |
| 22752 | fi |
| 22753 | |
| 22754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22755 | |
| 22756 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 22757 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22758 | |
| 22759 | if test -r /dev/ptmx |
| 22760 | then |
| 22761 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22762 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 22763 | |
| 22764 | cat >>confdefs.h <<\_ACEOF |
| 22765 | #define HAVE_DEV_PTMX 1 |
| 22766 | _ACEOF |
| 22767 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22768 | else |
| 22769 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22770 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 22771 | fi |
| 22772 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22773 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 22774 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22775 | |
| 22776 | if test -r /dev/ptc |
| 22777 | then |
| 22778 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22779 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 22780 | |
| 22781 | cat >>confdefs.h <<\_ACEOF |
| 22782 | #define HAVE_DEV_PTC 1 |
| 22783 | _ACEOF |
| 22784 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22785 | else |
| 22786 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22787 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 22788 | fi |
| 22789 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22790 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 22791 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
| 22792 | if test "$cross_compiling" = yes; then |
| 22793 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 22794 | See \`config.log' for more details." >&5 |
| 22795 | echo "$as_me: error: cannot run test program while cross compiling |
| 22796 | See \`config.log' for more details." >&2;} |
| 22797 | { (exit 1); exit 1; }; } |
| 22798 | else |
| 22799 | cat >conftest.$ac_ext <<_ACEOF |
| 22800 | /* confdefs.h. */ |
| 22801 | _ACEOF |
| 22802 | cat confdefs.h >>conftest.$ac_ext |
| 22803 | cat >>conftest.$ac_ext <<_ACEOF |
| 22804 | /* end confdefs.h. */ |
| 22805 | #include <stdio.h> |
| 22806 | #include <stddef.h> |
| 22807 | #include <string.h> |
| 22808 | |
| 22809 | int main() |
| 22810 | { |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22811 | char buffer[256]; |
| 22812 | |
| 22813 | #ifdef HAVE_SSIZE_T |
| 22814 | typedef ssize_t Py_ssize_t; |
| 22815 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 22816 | typedef long Py_ssize_t; |
| 22817 | #else |
| 22818 | typedef int Py_ssize_t; |
| 22819 | #endif |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22820 | |
| 22821 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 22822 | return 1; |
| 22823 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22824 | if (strcmp(buffer, "123")) |
| 22825 | return 1; |
| 22826 | |
| 22827 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 22828 | return 1; |
| 22829 | |
| 22830 | if (strcmp(buffer, "-123")) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22831 | return 1; |
| 22832 | |
| 22833 | return 0; |
| 22834 | } |
| 22835 | _ACEOF |
| 22836 | rm -f conftest$ac_exeext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 22837 | if { (ac_try="$ac_link" |
| 22838 | case "(($ac_try" in |
| 22839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22840 | *) ac_try_echo=$ac_try;; |
| 22841 | esac |
| 22842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22843 | (eval "$ac_link") 2>&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22844 | ac_status=$? |
| 22845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22846 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 22847 | { (case "(($ac_try" in |
| 22848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22849 | *) ac_try_echo=$ac_try;; |
| 22850 | esac |
| 22851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22852 | (eval "$ac_try") 2>&5 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22853 | ac_status=$? |
| 22854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22855 | (exit $ac_status); }; }; then |
| 22856 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22857 | echo "${ECHO_T}yes" >&6; } |
| 22858 | |
| 22859 | cat >>confdefs.h <<\_ACEOF |
| 22860 | #define PY_FORMAT_SIZE_T "z" |
| 22861 | _ACEOF |
| 22862 | |
| 22863 | else |
| 22864 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22865 | echo "$as_me: failed program was:" >&5 |
| 22866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22867 | |
| 22868 | ( exit $ac_status ) |
| 22869 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22870 | echo "${ECHO_T}no" >&6; } |
| 22871 | fi |
| 22872 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22873 | fi |
| 22874 | |
| 22875 | |
| 22876 | |
| 22877 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 22878 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22879 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 22880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22881 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22882 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22883 | /* confdefs.h. */ |
| 22884 | _ACEOF |
| 22885 | cat confdefs.h >>conftest.$ac_ext |
| 22886 | cat >>conftest.$ac_ext <<_ACEOF |
| 22887 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 22888 | |
| 22889 | #ifdef HAVE_SYS_TYPES_H |
| 22890 | #include <sys/types.h> |
| 22891 | #endif |
| 22892 | #ifdef HAVE_SYS_SOCKET_H |
| 22893 | #include <sys/socket.h> |
| 22894 | #endif |
| 22895 | |
| 22896 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22897 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22898 | int |
| 22899 | main () |
| 22900 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22901 | if ((ac__type_new_ *) 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22902 | return 0; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22903 | if (sizeof (ac__type_new_)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22904 | return 0; |
| 22905 | ; |
| 22906 | return 0; |
| 22907 | } |
| 22908 | _ACEOF |
| 22909 | rm -f conftest.$ac_objext |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 22910 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22917 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22919 | rm -f conftest.er1 |
| 22920 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 22922 | (exit $ac_status); } && { |
| 22923 | test -z "$ac_c_werror_flag" || |
| 22924 | test ! -s conftest.err |
| 22925 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 22926 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22928 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22930 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22931 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22932 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22933 | |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 22934 | 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] | 22935 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22936 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 22937 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22938 | if test $ac_cv_type_socklen_t = yes; then |
| 22939 | : |
| 22940 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22941 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 22942 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22943 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22944 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 22945 | |
| 22946 | fi |
| 22947 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22948 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22949 | |
| 22950 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 22951 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 22952 | do |
| 22953 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 22954 | done |
| 22955 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22956 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 22957 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22958 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 22959 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 22960 | for dir in $SRCDIRS; do |
| 22961 | if test ! -d $dir; then |
| 22962 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 22963 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 22964 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22965 | { echo "$as_me:$LINENO: result: done" >&5 |
| 22966 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 22967 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22968 | # generate output files |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22969 | 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] | 22970 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22971 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22972 | # This file is a shell script that caches the results of configure |
| 22973 | # 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] | 22974 | # scripts and configure runs, see configure's option --config-cache. |
| 22975 | # It is not useful on other systems. If it contains results you don't |
| 22976 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22977 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22978 | # config.status only pays attention to the cache file if you give it |
| 22979 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22980 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22981 | # `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] | 22982 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 22983 | # following values. |
| 22984 | |
| 22985 | _ACEOF |
| 22986 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22987 | # The following way of writing the cache mishandles newlines in values, |
| 22988 | # but we know of no workaround that is simple, portable, and efficient. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22989 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 22990 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 22991 | # and sets the high bit in the cache file unless we assign to the vars. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 22992 | ( |
| 22993 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 22994 | eval ac_val=\$$ac_var |
| 22995 | case $ac_val in #( |
| 22996 | *${as_nl}*) |
| 22997 | case $ac_var in #( |
| 22998 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 22999 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 23000 | esac |
| 23001 | case $ac_var in #( |
| 23002 | _ | IFS | as_nl) ;; #( |
| 23003 | *) $as_unset $ac_var ;; |
| 23004 | esac ;; |
| 23005 | esac |
| 23006 | done |
| 23007 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23008 | (set) 2>&1 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23009 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 23010 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23011 | # `set' does not quote correctly, so add quotes (double-quote |
| 23012 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 23013 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23014 | "s/'/'\\\\''/g; |
| 23015 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23016 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23017 | *) |
| 23018 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23019 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23020 | ;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23021 | esac | |
| 23022 | sort |
| 23023 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23024 | sed ' |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23025 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23026 | t clear |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23027 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23028 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 23029 | t end |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23030 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 23031 | :end' >>confcache |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 23032 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 23033 | if test -w "$cache_file"; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23034 | test "x$cache_file" != "x/dev/null" && |
| 23035 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 23036 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23037 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23038 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23039 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 23040 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23041 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23042 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23043 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 23044 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23045 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 23046 | # Let make expand exec_prefix. |
| 23047 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 23048 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23049 | DEFS=-DHAVE_CONFIG_H |
| 23050 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23051 | ac_libobjs= |
| 23052 | ac_ltlibobjs= |
| 23053 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 23054 | # 1. Remove the extension, and $U if already installed. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23055 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 23056 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 23057 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 23058 | # will be set to the directory where LIBOBJS objects are built. |
| 23059 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 23060 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23061 | done |
| 23062 | LIBOBJS=$ac_libobjs |
| 23063 | |
| 23064 | LTLIBOBJS=$ac_ltlibobjs |
| 23065 | |
| 23066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23067 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23068 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23069 | ac_clean_files_save=$ac_clean_files |
| 23070 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 23071 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 23072 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 23073 | cat >$CONFIG_STATUS <<_ACEOF |
| 23074 | #! $SHELL |
| 23075 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23076 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23077 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23078 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23080 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23081 | ac_cs_recheck=false |
| 23082 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23083 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 23084 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23085 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23086 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23087 | ## --------------------- ## |
| 23088 | ## M4sh Initialization. ## |
| 23089 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23090 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23091 | # Be more Bourne compatible |
| 23092 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23093 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 23094 | emulate sh |
| 23095 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23096 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 23097 | # is contrary to our usage. Disable this feature. |
| 23098 | alias -g '${1+"$@"}'='"$@"' |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23099 | setopt NO_GLOB_SUBST |
| 23100 | else |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23101 | case `(set -o) 2>/dev/null` in |
| 23102 | *posix*) set -o posix ;; |
| 23103 | esac |
| 23104 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23105 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23106 | |
| 23107 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23108 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23109 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23110 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23111 | # Avoid depending upon Character Ranges. |
| 23112 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 23113 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 23114 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 23115 | as_cr_digits='0123456789' |
| 23116 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 23117 | |
| 23118 | # The user is always right. |
| 23119 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23120 | echo "#! /bin/sh" >conf$$.sh |
| 23121 | echo "exit 0" >>conf$$.sh |
| 23122 | chmod +x conf$$.sh |
| 23123 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23124 | PATH_SEPARATOR=';' |
| 23125 | else |
| 23126 | PATH_SEPARATOR=: |
| 23127 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23128 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23129 | fi |
| 23130 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23131 | # Support unset when possible. |
| 23132 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 23133 | as_unset=unset |
| 23134 | else |
| 23135 | as_unset=false |
| 23136 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23137 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23138 | |
| 23139 | # IFS |
| 23140 | # We need space, tab and new line, in precisely that order. Quoting is |
| 23141 | # there to prevent editors from complaining about space-tab. |
| 23142 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 23143 | # splitting by setting IFS to empty value.) |
| 23144 | as_nl=' |
| 23145 | ' |
| 23146 | IFS=" "" $as_nl" |
| 23147 | |
| 23148 | # Find who we are. Look in the path if we contain no directory separator. |
| 23149 | case $0 in |
| 23150 | *[\\/]* ) as_myself=$0 ;; |
| 23151 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23152 | for as_dir in $PATH |
| 23153 | do |
| 23154 | IFS=$as_save_IFS |
| 23155 | test -z "$as_dir" && as_dir=. |
| 23156 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 23157 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23158 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23159 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23160 | ;; |
| 23161 | esac |
| 23162 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 23163 | # in which case we are not to be found in the path. |
| 23164 | if test "x$as_myself" = x; then |
| 23165 | as_myself=$0 |
| 23166 | fi |
| 23167 | if test ! -f "$as_myself"; then |
| 23168 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 23169 | { (exit 1); exit 1; } |
| 23170 | fi |
| 23171 | |
| 23172 | # Work around bugs in pre-3.0 UWIN ksh. |
| 23173 | for as_var in ENV MAIL MAILPATH |
| 23174 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 23175 | done |
| 23176 | PS1='$ ' |
| 23177 | PS2='> ' |
| 23178 | PS4='+ ' |
| 23179 | |
| 23180 | # NLS nuisances. |
| 23181 | for as_var in \ |
| 23182 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 23183 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 23184 | LC_TELEPHONE LC_TIME |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23185 | do |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23186 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 23187 | eval $as_var=C; export $as_var |
| 23188 | else |
| 23189 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 23190 | fi |
| 23191 | done |
| 23192 | |
| 23193 | # Required to use basename. |
| 23194 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 23195 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 23196 | as_expr=expr |
| 23197 | else |
| 23198 | as_expr=false |
| 23199 | fi |
| 23200 | |
| 23201 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 23202 | as_basename=basename |
| 23203 | else |
| 23204 | as_basename=false |
| 23205 | fi |
| 23206 | |
| 23207 | |
| 23208 | # Name of the executable. |
| 23209 | as_me=`$as_basename -- "$0" || |
| 23210 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 23211 | X"$0" : 'X\(//\)$' \| \ |
| 23212 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 23213 | echo X/"$0" | |
| 23214 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 23215 | s//\1/ |
| 23216 | q |
| 23217 | } |
| 23218 | /^X\/\(\/\/\)$/{ |
| 23219 | s//\1/ |
| 23220 | q |
| 23221 | } |
| 23222 | /^X\/\(\/\).*/{ |
| 23223 | s//\1/ |
| 23224 | q |
| 23225 | } |
| 23226 | s/.*/./; q'` |
| 23227 | |
| 23228 | # CDPATH. |
| 23229 | $as_unset CDPATH |
| 23230 | |
| 23231 | |
| 23232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23233 | as_lineno_1=$LINENO |
| 23234 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23235 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23236 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 23237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23238 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 23239 | # uniformly replaced by the line number. The first 'sed' inserts a |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23240 | # line-number line after each line using $LINENO; the second 'sed' |
| 23241 | # does the real work. The second script uses 'N' to pair each |
| 23242 | # line-number line with the line containing $LINENO, and appends |
| 23243 | # trailing '-' during substitution so that $LINENO is not a special |
| 23244 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23245 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23246 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 23247 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 23248 | sed -n ' |
| 23249 | p |
| 23250 | /[$]LINENO/= |
| 23251 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23252 | sed ' |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23253 | s/[$]LINENO.*/&-/ |
| 23254 | t lineno |
| 23255 | b |
| 23256 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23257 | N |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23258 | :loop |
| 23259 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23260 | t loop |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23261 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23262 | ' >$as_me.lineno && |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23263 | chmod +x "$as_me.lineno" || |
| 23264 | { 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] | 23265 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23267 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 23268 | # (the dirname of $[0] is not the place where we might find the |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23269 | # original and so on. Autoconf is especially sensitive to this). |
| 23270 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23271 | # Exit status is that of the last command. |
| 23272 | exit |
| 23273 | } |
| 23274 | |
| 23275 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 23276 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23277 | as_dirname=dirname |
| 23278 | else |
| 23279 | as_dirname=false |
| 23280 | fi |
| 23281 | |
| 23282 | ECHO_C= ECHO_N= ECHO_T= |
| 23283 | case `echo -n x` in |
| 23284 | -n*) |
| 23285 | case `echo 'x\c'` in |
| 23286 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 23287 | *) ECHO_C='\c';; |
| 23288 | esac;; |
| 23289 | *) |
| 23290 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23291 | esac |
| 23292 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23293 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 23294 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23295 | as_expr=expr |
| 23296 | else |
| 23297 | as_expr=false |
| 23298 | fi |
| 23299 | |
| 23300 | rm -f conf$$ conf$$.exe conf$$.file |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23301 | if test -d conf$$.dir; then |
| 23302 | rm -f conf$$.dir/conf$$.file |
| 23303 | else |
| 23304 | rm -f conf$$.dir |
| 23305 | mkdir conf$$.dir |
| 23306 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23307 | echo >conf$$.file |
| 23308 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23309 | as_ln_s='ln -s' |
| 23310 | # ... but there are two gotchas: |
| 23311 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 23312 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 23313 | # In both cases, we have to default to `cp -p'. |
| 23314 | 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] | 23315 | as_ln_s='cp -p' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23316 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 23317 | as_ln_s=ln |
| 23318 | else |
| 23319 | as_ln_s='cp -p' |
| 23320 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23321 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 23322 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23323 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23324 | if mkdir -p . 2>/dev/null; then |
| 23325 | as_mkdir_p=: |
| 23326 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23327 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23328 | as_mkdir_p=false |
| 23329 | fi |
| 23330 | |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23331 | if test -x / >/dev/null 2>&1; then |
| 23332 | as_test_x='test -x' |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23333 | else |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23334 | if ls -dL / >/dev/null 2>&1; then |
| 23335 | as_ls_L_option=L |
| 23336 | else |
| 23337 | as_ls_L_option= |
| 23338 | fi |
| 23339 | as_test_x=' |
| 23340 | eval sh -c '\'' |
| 23341 | if test -d "$1"; then |
| 23342 | test -d "$1/."; |
| 23343 | else |
| 23344 | case $1 in |
| 23345 | -*)set "./$1";; |
| 23346 | esac; |
| 23347 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 23348 | ???[sx]*):;;*)false;;esac;fi |
| 23349 | '\'' sh |
| 23350 | ' |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23351 | fi |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23352 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23353 | |
| 23354 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23355 | 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] | 23356 | |
| 23357 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23358 | 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] | 23359 | |
| 23360 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23361 | exec 6>&1 |
| 23362 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23363 | # 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] | 23364 | # report actual input values of CONFIG_FILES etc. instead of their |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23365 | # values after options handling. |
| 23366 | ac_log=" |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 23367 | This file was extended by python $as_me 3.0, which was |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23368 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23369 | |
| 23370 | CONFIG_FILES = $CONFIG_FILES |
| 23371 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 23372 | CONFIG_LINKS = $CONFIG_LINKS |
| 23373 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 23374 | $ $0 $@ |
| 23375 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23376 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 23377 | " |
| 23378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23379 | _ACEOF |
| 23380 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23381 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23382 | # Files that config.status was made for. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23383 | config_files="$ac_config_files" |
| 23384 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23385 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23386 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23387 | |
| 23388 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23389 | ac_cs_usage="\ |
| 23390 | \`$as_me' instantiates files from templates according to the |
| 23391 | current configuration. |
| 23392 | |
| 23393 | Usage: $0 [OPTIONS] [FILE]... |
| 23394 | |
| 23395 | -h, --help print this help, then exit |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23396 | -V, --version print version number and configuration settings, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23397 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23398 | -d, --debug don't remove temporary files |
| 23399 | --recheck update $as_me by reconfiguring in the same conditions |
| 23400 | --file=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23401 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23402 | --header=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23403 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23404 | |
| 23405 | Configuration files: |
| 23406 | $config_files |
| 23407 | |
| 23408 | Configuration headers: |
| 23409 | $config_headers |
| 23410 | |
| 23411 | Report bugs to <bug-autoconf@gnu.org>." |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23412 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23413 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23414 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23415 | ac_cs_version="\\ |
Guido van Rossum | 0c4eb62 | 2006-03-30 16:19:24 +0000 | [diff] [blame] | 23416 | python config.status 3.0 |
Thomas Wouters | 89f507f | 2006-12-13 04:49:30 +0000 | [diff] [blame] | 23417 | configured by $0, generated by GNU Autoconf 2.61, |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 23418 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23419 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23420 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23421 | This config.status script is free software; the Free Software Foundation |
| 23422 | gives unlimited permission to copy, distribute and modify it." |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23423 | |
| 23424 | ac_pwd='$ac_pwd' |
| 23425 | srcdir='$srcdir' |
| 23426 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23427 | _ACEOF |
| 23428 | |
| 23429 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23430 | # If no file are specified by the user, then we need to provide default |
| 23431 | # value. By we need to know if files were specified by the user. |
| 23432 | ac_need_defaults=: |
| 23433 | while test $# != 0 |
| 23434 | do |
| 23435 | case $1 in |
| 23436 | --*=*) |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23437 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 23438 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23439 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23440 | ;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23441 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23442 | ac_option=$1 |
| 23443 | ac_optarg=$2 |
| 23444 | ac_shift=shift |
| 23445 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23446 | esac |
| 23447 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23448 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23449 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23450 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 23451 | ac_cs_recheck=: ;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23452 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 23453 | echo "$ac_cs_version"; exit ;; |
| 23454 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23455 | debug=: ;; |
| 23456 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23457 | $ac_shift |
| 23458 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23459 | ac_need_defaults=false;; |
| 23460 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23461 | $ac_shift |
| 23462 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23463 | ac_need_defaults=false;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23464 | --he | --h) |
| 23465 | # Conflict between --help and --header |
| 23466 | { echo "$as_me: error: ambiguous option: $1 |
| 23467 | Try \`$0 --help' for more information." >&2 |
| 23468 | { (exit 1); exit 1; }; };; |
| 23469 | --help | --hel | -h ) |
| 23470 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23471 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 23472 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 23473 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23474 | |
| 23475 | # This is an error. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23476 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 23477 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23478 | { (exit 1); exit 1; }; } ;; |
| 23479 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23480 | *) ac_config_targets="$ac_config_targets $1" |
| 23481 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23482 | |
| 23483 | esac |
| 23484 | shift |
| 23485 | done |
| 23486 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23487 | ac_configure_extra_args= |
| 23488 | |
| 23489 | if $ac_cs_silent; then |
| 23490 | exec 6>/dev/null |
| 23491 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 23492 | fi |
| 23493 | |
| 23494 | _ACEOF |
| 23495 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23496 | if \$ac_cs_recheck; then |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 23497 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23498 | CONFIG_SHELL=$SHELL |
| 23499 | export CONFIG_SHELL |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 23500 | 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] | 23501 | fi |
| 23502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23503 | _ACEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23504 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23505 | exec 5>>config.log |
| 23506 | { |
| 23507 | echo |
| 23508 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 23509 | ## Running $as_me. ## |
| 23510 | _ASBOX |
| 23511 | echo "$ac_log" |
| 23512 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23513 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23514 | _ACEOF |
| 23515 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23516 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23517 | |
| 23518 | cat >>$CONFIG_STATUS <<\_ACEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23519 | |
| 23520 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23521 | for ac_config_target in $ac_config_targets |
| 23522 | do |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23523 | case $ac_config_target in |
| 23524 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 23525 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 23526 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 23527 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23528 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 23529 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 23530 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23531 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 23532 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 23533 | { (exit 1); exit 1; }; };; |
| 23534 | esac |
| 23535 | done |
| 23536 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23538 | # If the user did not use the arguments to specify the items to instantiate, |
| 23539 | # then the envvar interface is used. Set only those that are not. |
| 23540 | # We use the long form for the default assignment because of an extremely |
| 23541 | # bizarre bug on SunOS 4.1.3. |
| 23542 | if $ac_need_defaults; then |
| 23543 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 23544 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 23545 | fi |
| 23546 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23547 | # Have a temporary directory for convenience. Make it in the build tree |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23548 | # 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] | 23549 | # creating and moving files from /tmp can sometimes cause problems. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23550 | # Hook for its removal unless debugging. |
| 23551 | # Note that there is a small window in which the directory will not be cleaned: |
| 23552 | # 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] | 23553 | $debug || |
| 23554 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23555 | tmp= |
| 23556 | trap 'exit_status=$? |
| 23557 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 23558 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23559 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 23560 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23561 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23563 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23564 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23565 | test -n "$tmp" && test -d "$tmp" |
| 23566 | } || |
| 23567 | { |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23568 | tmp=./conf$$-$RANDOM |
| 23569 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23570 | } || |
| 23571 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23572 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23573 | { (exit 1); exit 1; } |
| 23574 | } |
| 23575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23576 | # |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23577 | # Set up the sed scripts for CONFIG_FILES section. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23578 | # |
| 23579 | |
| 23580 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 23581 | # This happens for instance when ./config.status config.h |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23582 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23583 | |
| 23584 | _ACEOF |
| 23585 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23586 | |
| 23587 | |
| 23588 | ac_delim='%!_!# ' |
| 23589 | for ac_last_try in false false false false false :; do |
| 23590 | cat >conf$$subs.sed <<_ACEOF |
| 23591 | SHELL!$SHELL$ac_delim |
| 23592 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 23593 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 23594 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 23595 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 23596 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 23597 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 23598 | exec_prefix!$exec_prefix$ac_delim |
| 23599 | prefix!$prefix$ac_delim |
| 23600 | program_transform_name!$program_transform_name$ac_delim |
| 23601 | bindir!$bindir$ac_delim |
| 23602 | sbindir!$sbindir$ac_delim |
| 23603 | libexecdir!$libexecdir$ac_delim |
| 23604 | datarootdir!$datarootdir$ac_delim |
| 23605 | datadir!$datadir$ac_delim |
| 23606 | sysconfdir!$sysconfdir$ac_delim |
| 23607 | sharedstatedir!$sharedstatedir$ac_delim |
| 23608 | localstatedir!$localstatedir$ac_delim |
| 23609 | includedir!$includedir$ac_delim |
| 23610 | oldincludedir!$oldincludedir$ac_delim |
| 23611 | docdir!$docdir$ac_delim |
| 23612 | infodir!$infodir$ac_delim |
| 23613 | htmldir!$htmldir$ac_delim |
| 23614 | dvidir!$dvidir$ac_delim |
| 23615 | pdfdir!$pdfdir$ac_delim |
| 23616 | psdir!$psdir$ac_delim |
| 23617 | libdir!$libdir$ac_delim |
| 23618 | localedir!$localedir$ac_delim |
| 23619 | mandir!$mandir$ac_delim |
| 23620 | DEFS!$DEFS$ac_delim |
| 23621 | ECHO_C!$ECHO_C$ac_delim |
| 23622 | ECHO_N!$ECHO_N$ac_delim |
| 23623 | ECHO_T!$ECHO_T$ac_delim |
| 23624 | LIBS!$LIBS$ac_delim |
| 23625 | build_alias!$build_alias$ac_delim |
| 23626 | host_alias!$host_alias$ac_delim |
| 23627 | target_alias!$target_alias$ac_delim |
| 23628 | VERSION!$VERSION$ac_delim |
| 23629 | SOVERSION!$SOVERSION$ac_delim |
| 23630 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 23631 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 23632 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 23633 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 23634 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 23635 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 23636 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 23637 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 23638 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 23639 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 23640 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23641 | MACHDEP!$MACHDEP$ac_delim |
| 23642 | SGI_ABI!$SGI_ABI$ac_delim |
| 23643 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 23644 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 23645 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 23646 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 23647 | CC!$CC$ac_delim |
| 23648 | CFLAGS!$CFLAGS$ac_delim |
| 23649 | LDFLAGS!$LDFLAGS$ac_delim |
| 23650 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 23651 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 23652 | EXEEXT!$EXEEXT$ac_delim |
| 23653 | OBJEXT!$OBJEXT$ac_delim |
| 23654 | CXX!$CXX$ac_delim |
| 23655 | MAINCC!$MAINCC$ac_delim |
| 23656 | CPP!$CPP$ac_delim |
| 23657 | GREP!$GREP$ac_delim |
| 23658 | EGREP!$EGREP$ac_delim |
| 23659 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 23660 | LIBRARY!$LIBRARY$ac_delim |
| 23661 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 23662 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 23663 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 23664 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 23665 | INSTSONAME!$INSTSONAME$ac_delim |
| 23666 | RUNSHARED!$RUNSHARED$ac_delim |
| 23667 | LINKCC!$LINKCC$ac_delim |
| 23668 | RANLIB!$RANLIB$ac_delim |
| 23669 | AR!$AR$ac_delim |
| 23670 | SVNVERSION!$SVNVERSION$ac_delim |
| 23671 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 23672 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 23673 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 23674 | LN!$LN$ac_delim |
| 23675 | OPT!$OPT$ac_delim |
| 23676 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 23677 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 23678 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 23679 | SO!$SO$ac_delim |
| 23680 | LDSHARED!$LDSHARED$ac_delim |
| 23681 | BLDSHARED!$BLDSHARED$ac_delim |
| 23682 | CCSHARED!$CCSHARED$ac_delim |
| 23683 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 23684 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 23685 | SHLIBS!$SHLIBS$ac_delim |
| 23686 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 23687 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23688 | _ACEOF |
| 23689 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 23690 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23691 | break |
| 23692 | elif $ac_last_try; then |
| 23693 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 23694 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 23695 | { (exit 1); exit 1; }; } |
| 23696 | else |
| 23697 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23698 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23699 | done |
| 23700 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 23701 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 23702 | if test -n "$ac_eof"; then |
| 23703 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 23704 | ac_eof=`expr $ac_eof + 1` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23705 | fi |
| 23706 | |
| 23707 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23708 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 23709 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 23710 | _ACEOF |
| 23711 | sed ' |
| 23712 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 23713 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 23714 | :n |
| 23715 | t n |
| 23716 | s/'"$ac_delim"'$/,g/; t |
| 23717 | s/$/\\/; p |
| 23718 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 23719 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 23720 | rm -f conf$$subs.sed |
| 23721 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23722 | CEOF$ac_eof |
| 23723 | _ACEOF |
| 23724 | |
| 23725 | |
| 23726 | ac_delim='%!_!# ' |
| 23727 | for ac_last_try in false false false false false :; do |
| 23728 | cat >conf$$subs.sed <<_ACEOF |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 23729 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 23730 | LDLAST!$LDLAST$ac_delim |
| 23731 | THREADOBJ!$THREADOBJ$ac_delim |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23732 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 23733 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 23734 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 23735 | TRUE!$TRUE$ac_delim |
| 23736 | LIBOBJS!$LIBOBJS$ac_delim |
| 23737 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 23738 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 23739 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 23740 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 23741 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 23742 | LIBM!$LIBM$ac_delim |
| 23743 | LIBC!$LIBC$ac_delim |
| 23744 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 23745 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 23746 | SRCDIRS!$SRCDIRS$ac_delim |
| 23747 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 23748 | _ACEOF |
| 23749 | |
Thomas Wouters | 73e5a5b | 2006-06-08 15:35:45 +0000 | [diff] [blame] | 23750 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23751 | break |
| 23752 | elif $ac_last_try; then |
| 23753 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 23754 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 23755 | { (exit 1); exit 1; }; } |
| 23756 | else |
| 23757 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 23758 | fi |
| 23759 | done |
| 23760 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 23761 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 23762 | if test -n "$ac_eof"; then |
| 23763 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 23764 | ac_eof=`expr $ac_eof + 1` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23765 | fi |
| 23766 | |
| 23767 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23768 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 23769 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 23770 | _ACEOF |
| 23771 | sed ' |
| 23772 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 23773 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 23774 | :n |
| 23775 | t n |
| 23776 | s/'"$ac_delim"'$/,g/; t |
| 23777 | s/$/\\/; p |
| 23778 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 23779 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 23780 | rm -f conf$$subs.sed |
| 23781 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23782 | :end |
| 23783 | s/|#_!!_#|//g |
| 23784 | CEOF$ac_eof |
| 23785 | _ACEOF |
| 23786 | |
| 23787 | |
| 23788 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 23789 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 23790 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 23791 | # (actually we leave an empty line to preserve line numbers). |
| 23792 | if test "x$srcdir" = x.; then |
| 23793 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 23794 | s/:*\$(srcdir):*/:/ |
| 23795 | s/:*\${srcdir}:*/:/ |
| 23796 | s/:*@srcdir@:*/:/ |
| 23797 | s/^\([^=]*=[ ]*\):*/\1/ |
| 23798 | s/:*$// |
| 23799 | s/^[^=]*=[ ]*$// |
| 23800 | }' |
| 23801 | fi |
| 23802 | |
| 23803 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23804 | fi # test -n "$CONFIG_FILES" |
| 23805 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23806 | |
| 23807 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
| 23808 | do |
| 23809 | case $ac_tag in |
| 23810 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 23811 | esac |
| 23812 | case $ac_mode$ac_tag in |
| 23813 | :[FHL]*:*);; |
| 23814 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 23815 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 23816 | { (exit 1); exit 1; }; };; |
| 23817 | :[FH]-) ac_tag=-:-;; |
| 23818 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 23819 | esac |
| 23820 | ac_save_IFS=$IFS |
| 23821 | IFS=: |
| 23822 | set x $ac_tag |
| 23823 | IFS=$ac_save_IFS |
| 23824 | shift |
| 23825 | ac_file=$1 |
| 23826 | shift |
| 23827 | |
| 23828 | case $ac_mode in |
| 23829 | :L) ac_source=$1;; |
| 23830 | :[FH]) |
| 23831 | ac_file_inputs= |
| 23832 | for ac_f |
| 23833 | do |
| 23834 | case $ac_f in |
| 23835 | -) ac_f="$tmp/stdin";; |
| 23836 | *) # Look for the file first in the build tree, then in the source tree |
| 23837 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 23838 | # because $ac_f cannot contain `:'. |
| 23839 | test -f "$ac_f" || |
| 23840 | case $ac_f in |
| 23841 | [\\/$]*) false;; |
| 23842 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 23843 | esac || |
| 23844 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 23845 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 23846 | { (exit 1); exit 1; }; };; |
| 23847 | esac |
| 23848 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 23849 | done |
| 23850 | |
| 23851 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23852 | # use $as_me), people would be surprised to read: |
| 23853 | # /* config.h. Generated by config.status. */ |
| 23854 | configure_input="Generated from "`IFS=: |
| 23855 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 23856 | if test x"$ac_file" != x-; then |
| 23857 | configure_input="$ac_file. $configure_input" |
| 23858 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23859 | echo "$as_me: creating $ac_file" >&6;} |
| 23860 | fi |
| 23861 | |
| 23862 | case $ac_tag in |
| 23863 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 23864 | esac |
| 23865 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23866 | esac |
| 23867 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23868 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23869 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23870 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23871 | X"$ac_file" : 'X\(//\)$' \| \ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23872 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23873 | echo X"$ac_file" | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23874 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 23875 | s//\1/ |
| 23876 | q |
| 23877 | } |
| 23878 | /^X\(\/\/\)[^/].*/{ |
| 23879 | s//\1/ |
| 23880 | q |
| 23881 | } |
| 23882 | /^X\(\/\/\)$/{ |
| 23883 | s//\1/ |
| 23884 | q |
| 23885 | } |
| 23886 | /^X\(\/\).*/{ |
| 23887 | s//\1/ |
| 23888 | q |
| 23889 | } |
| 23890 | s/.*/./; q'` |
| 23891 | { as_dir="$ac_dir" |
| 23892 | case $as_dir in #( |
| 23893 | -*) as_dir=./$as_dir;; |
| 23894 | esac |
| 23895 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23896 | as_dirs= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23897 | while :; do |
| 23898 | case $as_dir in #( |
| 23899 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 23900 | *) as_qdir=$as_dir;; |
| 23901 | esac |
| 23902 | as_dirs="'$as_qdir' $as_dirs" |
| 23903 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23904 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23905 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23906 | X"$as_dir" : 'X\(//\)$' \| \ |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23907 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23908 | echo X"$as_dir" | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23909 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 23910 | s//\1/ |
| 23911 | q |
| 23912 | } |
| 23913 | /^X\(\/\/\)[^/].*/{ |
| 23914 | s//\1/ |
| 23915 | q |
| 23916 | } |
| 23917 | /^X\(\/\/\)$/{ |
| 23918 | s//\1/ |
| 23919 | q |
| 23920 | } |
| 23921 | /^X\(\/\).*/{ |
| 23922 | s//\1/ |
| 23923 | q |
| 23924 | } |
| 23925 | s/.*/./; q'` |
| 23926 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23927 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23928 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 23929 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 23930 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23931 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23932 | ac_builddir=. |
| 23933 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23934 | case "$ac_dir" in |
| 23935 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 23936 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23937 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23938 | # A ".." for each directory in $ac_dir_suffix. |
| 23939 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 23940 | case $ac_top_builddir_sub in |
| 23941 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 23942 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 23943 | esac ;; |
| 23944 | esac |
| 23945 | ac_abs_top_builddir=$ac_pwd |
| 23946 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 23947 | # for backward compatibility: |
| 23948 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23949 | |
| 23950 | case $srcdir in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23951 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23952 | ac_srcdir=. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23953 | ac_top_srcdir=$ac_top_builddir_sub |
| 23954 | ac_abs_top_srcdir=$ac_pwd ;; |
| 23955 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23956 | ac_srcdir=$srcdir$ac_dir_suffix; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23957 | ac_top_srcdir=$srcdir |
| 23958 | ac_abs_top_srcdir=$srcdir ;; |
| 23959 | *) # Relative name. |
| 23960 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 23961 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 23962 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23963 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23964 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23966 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23967 | case $ac_mode in |
| 23968 | :F) |
| 23969 | # |
| 23970 | # CONFIG_FILE |
| 23971 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23972 | |
| 23973 | case $INSTALL in |
| 23974 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23975 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23976 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23977 | _ACEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23978 | |
| 23979 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23980 | # If the template does not know about datarootdir, expand it. |
| 23981 | # FIXME: This hack should be removed a few years after 2.60. |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 23982 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23983 | |
| 23984 | case `sed -n '/datarootdir/ { |
| 23985 | p |
| 23986 | q |
| 23987 | } |
| 23988 | /@datadir@/p |
| 23989 | /@docdir@/p |
| 23990 | /@infodir@/p |
| 23991 | /@localedir@/p |
| 23992 | /@mandir@/p |
| 23993 | ' $ac_file_inputs` in |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 23994 | *datarootdir*) ac_datarootdir_seen=yes;; |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 23995 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 23996 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 23997 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 23998 | _ACEOF |
| 23999 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24000 | ac_datarootdir_hack=' |
| 24001 | s&@datadir@&$datadir&g |
| 24002 | s&@docdir@&$docdir&g |
| 24003 | s&@infodir@&$infodir&g |
| 24004 | s&@localedir@&$localedir&g |
| 24005 | s&@mandir@&$mandir&g |
| 24006 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 24007 | esac |
| 24008 | _ACEOF |
| 24009 | |
| 24010 | # Neutralize VPATH when `$srcdir' = `.'. |
| 24011 | # Shell code in configure.ac might set extrasub. |
| 24012 | # FIXME: do we really want to maintain this feature? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24013 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24014 | sed "$ac_vpsub |
| 24015 | $extrasub |
| 24016 | _ACEOF |
| 24017 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24018 | :t |
| 24019 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24020 | s&@configure_input@&$configure_input&;t t |
| 24021 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 24022 | s&@srcdir@&$ac_srcdir&;t t |
| 24023 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 24024 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 24025 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 24026 | s&@builddir@&$ac_builddir&;t t |
| 24027 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 24028 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 24029 | s&@INSTALL@&$ac_INSTALL&;t t |
| 24030 | $ac_datarootdir_hack |
| 24031 | " $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] | 24032 | |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 24033 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 24034 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 24035 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 24036 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 24037 | which seems to be undefined. Please make sure it is defined." >&5 |
| 24038 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 24039 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 24040 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24041 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24042 | case $ac_file in |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24043 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 24044 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24045 | esac |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24046 | ;; |
| 24047 | :H) |
| 24048 | # |
| 24049 | # CONFIG_HEADER |
| 24050 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24051 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24052 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24053 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 24054 | # substitutes the proper values into config.h.in to produce config.h. |
| 24055 | rm -f conftest.defines conftest.tail |
| 24056 | # First, append a space to every undef/define line, to ease matching. |
| 24057 | echo 's/$/ /' >conftest.defines |
| 24058 | # Then, protect against being on the right side of a sed subst, or in |
| 24059 | # an unquoted here document, in config.status. If some macros were |
| 24060 | # called several times there might be several #defines for the same |
| 24061 | # symbol, which is useless. But do not sort them, since the last |
| 24062 | # AC_DEFINE must be honored. |
| 24063 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 24064 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 24065 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 24066 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 24067 | # just an empty string. |
| 24068 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 24069 | ac_dB='\\)[ (].*,\\1define\\2' |
| 24070 | ac_dC=' ' |
| 24071 | ac_dD=' ,' |
| 24072 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24073 | uniq confdefs.h | |
| 24074 | sed -n ' |
| 24075 | t rset |
| 24076 | :rset |
| 24077 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 24078 | t ok |
| 24079 | d |
| 24080 | :ok |
| 24081 | s/[\\&,]/\\&/g |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 24082 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 24083 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24084 | ' >>conftest.defines |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24085 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24086 | # Remove the space that was appended to ease matching. |
| 24087 | # Then replace #undef with comments. This is necessary, for |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24088 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 24089 | # on some systems where configure will not decide to define it. |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24090 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 24091 | echo 's/ $// |
| 24092 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24093 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24094 | # Break up conftest.defines: |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 24095 | ac_max_sed_lines=50 |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24096 | |
| 24097 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 24098 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 24099 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 24100 | # et cetera. |
| 24101 | ac_in='$ac_file_inputs' |
| 24102 | ac_out='"$tmp/out1"' |
| 24103 | ac_nxt='"$tmp/out2"' |
| 24104 | |
| 24105 | while : |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24106 | do |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24107 | # Write a here document: |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 24108 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24109 | # First, check the format of the line: |
| 24110 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 24111 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 24112 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24113 | b |
Thomas Wouters | 1ba5b3b | 2006-06-08 14:52:47 +0000 | [diff] [blame] | 24114 | :def |
| 24115 | _ACEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24116 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24117 | echo 'CEOF |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24118 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 24119 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 24120 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 24121 | grep . conftest.tail >/dev/null || break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24122 | rm -f conftest.defines |
| 24123 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24124 | done |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24125 | rm -f conftest.defines conftest.tail |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 24126 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24127 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24128 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24129 | if test x"$ac_file" != x-; then |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24130 | echo "/* $configure_input */" >"$tmp/config.h" |
| 24131 | cat "$ac_result" >>"$tmp/config.h" |
| 24132 | 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] | 24133 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 24134 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 24135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24136 | rm -f $ac_file |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24137 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24138 | fi |
| 24139 | else |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24140 | echo "/* $configure_input */" |
| 24141 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24142 | fi |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24143 | rm -f "$tmp/out12" |
| 24144 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 24145 | |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 24146 | |
| 24147 | esac |
| 24148 | |
| 24149 | done # for ac_tag |
| 24150 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 24151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24152 | { (exit 0); exit 0; } |
| 24153 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24154 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24155 | ac_clean_files=$ac_clean_files_save |
| 24156 | |
| 24157 | |
| 24158 | # configure is writing to config.log, and then calls config.status. |
| 24159 | # config.status does its own redirection, appending to config.log. |
| 24160 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 24161 | # by configure, so config.status won't be able to write to it; its |
| 24162 | # output is simply discarded. So we exec the FD to /dev/null, |
| 24163 | # effectively closing config.log, so it can be properly (re)opened and |
| 24164 | # appended to by config.status. When coming back to configure, we |
| 24165 | # need to make the FD available again. |
| 24166 | if test "$no_create" != yes; then |
| 24167 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24168 | ac_config_status_args= |
| 24169 | test "$silent" = yes && |
| 24170 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24171 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24172 | $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] | 24173 | exec 5>>config.log |
| 24174 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 24175 | # would make configure fail if this is the last instruction. |
| 24176 | $ac_cs_success || { (exit 1); exit 1; } |
| 24177 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 24178 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 24179 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 24180 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 24181 | if test ! -f Modules/Setup |
| 24182 | then |
| 24183 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 24184 | fi |
| 24185 | |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 24186 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 24187 | if test ! -f Modules/Setup.local |
| 24188 | then |
| 24189 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 24190 | fi |
| 24191 | |
| 24192 | echo "creating Makefile" |
| 24193 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 24194 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 24195 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 24196 | mv config.c Modules |