Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 78154 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.61 for python 2.7. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6 | # Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 7 | # |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16 | # Be more Bourne compatible |
| 17 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 25 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in |
| 27 | *posix*) set -o posix ;; |
| 28 | esac |
| 29 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 33 | |
| 34 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 35 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 36 | # Avoid depending upon Character Ranges. |
| 37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 40 | as_cr_digits='0123456789' |
| 41 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 42 | |
| 43 | # The user is always right. |
| 44 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +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 |
| 49 | PATH_SEPARATOR=';' |
| 50 | else |
| 51 | PATH_SEPARATOR=: |
| 52 | fi |
| 53 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 54 | fi |
| 55 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 56 | # Support unset when possible. |
| 57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 58 | as_unset=unset |
| 59 | else |
| 60 | as_unset=false |
| 61 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 62 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 63 | |
| 64 | # IFS |
| 65 | # We need space, tab and new line, in precisely that order. Quoting is |
| 66 | # there to prevent editors from complaining about space-tab. |
| 67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 68 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 69 | as_nl=' |
| 70 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 71 | IFS=" "" $as_nl" |
| 72 | |
| 73 | # Find who we are. Look in the path if we contain no directory separator. |
| 74 | case $0 in |
| 75 | *[\\/]* ) as_myself=$0 ;; |
| 76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 77 | for as_dir in $PATH |
| 78 | do |
| 79 | IFS=$as_save_IFS |
| 80 | test -z "$as_dir" && as_dir=. |
| 81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 82 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 83 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 84 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 85 | ;; |
| 86 | esac |
| 87 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 88 | # in which case we are not to be found in the path. |
| 89 | if test "x$as_myself" = x; then |
| 90 | as_myself=$0 |
| 91 | fi |
| 92 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 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. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 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 |
| 115 | fi |
| 116 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 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 || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 138 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 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 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 164 | if test $as_have_required = yes && (eval ": |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 165 | (as_func_return () { |
| 166 | (exit \$1) |
| 167 | } |
| 168 | as_func_success () { |
| 169 | as_func_return 0 |
| 170 | } |
| 171 | as_func_failure () { |
| 172 | as_func_return 1 |
| 173 | } |
| 174 | as_func_ret_success () { |
| 175 | return 0 |
| 176 | } |
| 177 | as_func_ret_failure () { |
| 178 | return 1 |
| 179 | } |
| 180 | |
| 181 | exitcode=0 |
| 182 | if as_func_success; then |
| 183 | : |
| 184 | else |
| 185 | exitcode=1 |
| 186 | echo as_func_success failed. |
| 187 | fi |
| 188 | |
| 189 | if as_func_failure; then |
| 190 | exitcode=1 |
| 191 | echo as_func_failure succeeded. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_success; then |
| 195 | : |
| 196 | else |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_success failed. |
| 199 | fi |
| 200 | |
| 201 | if as_func_ret_failure; then |
| 202 | exitcode=1 |
| 203 | echo as_func_ret_failure succeeded. |
| 204 | fi |
| 205 | |
| 206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 207 | : |
| 208 | else |
| 209 | exitcode=1 |
| 210 | echo positional parameters were not saved. |
| 211 | fi |
| 212 | |
| 213 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 214 | |
| 215 | ( |
| 216 | as_lineno_1=\$LINENO |
| 217 | as_lineno_2=\$LINENO |
| 218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 220 | ") 2> /dev/null; then |
| 221 | : |
| 222 | else |
| 223 | as_candidate_shells= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 226 | do |
| 227 | IFS=$as_save_IFS |
| 228 | test -z "$as_dir" && as_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 229 | case $as_dir in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | /*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 231 | for as_base in sh bash ksh sh5; do |
| 232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 233 | done;; |
| 234 | esac |
| 235 | done |
| 236 | IFS=$as_save_IFS |
| 237 | |
| 238 | |
| 239 | for as_shell in $as_candidate_shells $SHELL; do |
| 240 | # Try only shells that exist, to save several forks. |
| 241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 242 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 244 | emulate sh |
| 245 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 247 | # is contrary to our usage. Disable this feature. |
| 248 | alias -g '${1+"$@"}'='"$@"' |
| 249 | setopt NO_GLOB_SUBST |
| 250 | else |
| 251 | case `(set -o) 2>/dev/null` in |
| 252 | *posix*) set -o posix ;; |
| 253 | esac |
| 254 | |
| 255 | fi |
| 256 | |
| 257 | |
| 258 | : |
| 259 | _ASEOF |
| 260 | }; then |
| 261 | CONFIG_SHELL=$as_shell |
| 262 | as_have_required=yes |
| 263 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 265 | emulate sh |
| 266 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 268 | # is contrary to our usage. Disable this feature. |
| 269 | alias -g '${1+"$@"}'='"$@"' |
| 270 | setopt NO_GLOB_SUBST |
| 271 | else |
| 272 | case `(set -o) 2>/dev/null` in |
| 273 | *posix*) set -o posix ;; |
| 274 | esac |
| 275 | |
| 276 | fi |
| 277 | |
| 278 | |
| 279 | : |
| 280 | (as_func_return () { |
| 281 | (exit $1) |
| 282 | } |
| 283 | as_func_success () { |
| 284 | as_func_return 0 |
| 285 | } |
| 286 | as_func_failure () { |
| 287 | as_func_return 1 |
| 288 | } |
| 289 | as_func_ret_success () { |
| 290 | return 0 |
| 291 | } |
| 292 | as_func_ret_failure () { |
| 293 | return 1 |
| 294 | } |
| 295 | |
| 296 | exitcode=0 |
| 297 | if as_func_success; then |
| 298 | : |
| 299 | else |
| 300 | exitcode=1 |
| 301 | echo as_func_success failed. |
| 302 | fi |
| 303 | |
| 304 | if as_func_failure; then |
| 305 | exitcode=1 |
| 306 | echo as_func_failure succeeded. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_success; then |
| 310 | : |
| 311 | else |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_success failed. |
| 314 | fi |
| 315 | |
| 316 | if as_func_ret_failure; then |
| 317 | exitcode=1 |
| 318 | echo as_func_ret_failure succeeded. |
| 319 | fi |
| 320 | |
| 321 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 322 | : |
| 323 | else |
| 324 | exitcode=1 |
| 325 | echo positional parameters were not saved. |
| 326 | fi |
| 327 | |
| 328 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 329 | |
| 330 | ( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 331 | as_lineno_1=$LINENO |
| 332 | as_lineno_2=$LINENO |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 335 | |
| 336 | _ASEOF |
| 337 | }; then |
| 338 | break |
| 339 | fi |
| 340 | |
| 341 | fi |
| 342 | |
| 343 | done |
| 344 | |
| 345 | if test "x$CONFIG_SHELL" != x; then |
| 346 | for as_var in BASH_ENV ENV |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 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+"$@"} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 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. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 419 | echo Please tell autoconf@gnu.org about your system, |
| 420 | echo including any error possibly output before this |
| 421 | echo message |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 422 | } |
| 423 | |
| 424 | |
| 425 | |
| 426 | as_lineno_1=$LINENO |
| 427 | as_lineno_2=$LINENO |
| 428 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 430 | |
| 431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 432 | # uniformly replaced by the line number. The first 'sed' inserts a |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 433 | # line-number line after each line using $LINENO; the second 'sed' |
| 434 | # does the real work. The second script uses 'N' to pair each |
| 435 | # line-number line with the line containing $LINENO, and appends |
| 436 | # trailing '-' during substitution so that $LINENO is not a special |
| 437 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 439 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 440 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 441 | sed -n ' |
| 442 | p |
| 443 | /[$]LINENO/= |
| 444 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 445 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 446 | s/[$]LINENO.*/&-/ |
| 447 | t lineno |
| 448 | b |
| 449 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 451 | :loop |
| 452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 453 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 454 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 456 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 457 | { 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] | 458 | { (exit 1); exit 1; }; } |
| 459 | |
| 460 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 461 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 462 | # original and so on. Autoconf is especially sensitive to this). |
| 463 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | # Exit status is that of the last command. |
| 465 | exit |
| 466 | } |
| 467 | |
| 468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 470 | as_dirname=dirname |
| 471 | else |
| 472 | as_dirname=false |
| 473 | fi |
| 474 | |
| 475 | ECHO_C= ECHO_N= ECHO_T= |
| 476 | case `echo -n x` in |
| 477 | -n*) |
| 478 | case `echo 'x\c'` in |
| 479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 480 | *) ECHO_C='\c';; |
| 481 | esac;; |
| 482 | *) |
| 483 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 484 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 485 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 486 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | as_expr=expr |
| 489 | else |
| 490 | as_expr=false |
| 491 | fi |
| 492 | |
| 493 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 494 | if test -d conf$$.dir; then |
| 495 | rm -f conf$$.dir/conf$$.file |
| 496 | else |
| 497 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 498 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 499 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 500 | echo >conf$$.file |
| 501 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 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' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 509 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 510 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 511 | else |
| 512 | as_ln_s='cp -p' |
| 513 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 515 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 516 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 517 | if mkdir -p . 2>/dev/null; then |
| 518 | as_mkdir_p=: |
| 519 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 520 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 521 | as_mkdir_p=false |
| 522 | fi |
| 523 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 524 | if test -x / >/dev/null 2>&1; then |
| 525 | as_test_x='test -x' |
| 526 | else |
| 527 | if ls -dL / >/dev/null 2>&1; then |
| 528 | as_ls_L_option=L |
| 529 | else |
| 530 | as_ls_L_option= |
| 531 | fi |
| 532 | as_test_x=' |
| 533 | eval sh -c '\'' |
| 534 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 535 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 536 | else |
| 537 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 538 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 539 | esac; |
| 540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 541 | ???[sx]*):;;*)false;;esac;fi |
| 542 | '\'' sh |
| 543 | ' |
| 544 | fi |
| 545 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | |
| 547 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | |
| 553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 554 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 555 | exec 7<&0 </dev/null 6>&1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 556 | |
| 557 | # Name of the host. |
| 558 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 559 | # so uname gets run too. |
| 560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | # |
| 563 | # Initializations. |
| 564 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 565 | ac_default_prefix=/usr/local |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 566 | ac_clean_files= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 567 | ac_config_libobj_dir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 568 | LIBOBJS= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | cross_compiling=no |
| 570 | subdirs= |
| 571 | MFLAGS= |
| 572 | MAKEFLAGS= |
| 573 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 576 | PACKAGE_NAME='python' |
| 577 | PACKAGE_TARNAME='python' |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 578 | PACKAGE_VERSION='2.7' |
| 579 | PACKAGE_STRING='python 2.7' |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 580 | PACKAGE_BUGREPORT='http://bugs.python.org/' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | |
| 582 | ac_unique_file="Include/object.h" |
| 583 | # Factoring default headers for most tests. |
| 584 | ac_includes_default="\ |
| 585 | #include <stdio.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 586 | #ifdef HAVE_SYS_TYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 587 | # include <sys/types.h> |
| 588 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 589 | #ifdef HAVE_SYS_STAT_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | # include <sys/stat.h> |
| 591 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 592 | #ifdef STDC_HEADERS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 593 | # include <stdlib.h> |
| 594 | # include <stddef.h> |
| 595 | #else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 596 | # ifdef HAVE_STDLIB_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 597 | # include <stdlib.h> |
| 598 | # endif |
| 599 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 600 | #ifdef HAVE_STRING_H |
| 601 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 602 | # include <memory.h> |
| 603 | # endif |
| 604 | # include <string.h> |
| 605 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 606 | #ifdef HAVE_STRINGS_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 607 | # include <strings.h> |
| 608 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 609 | #ifdef HAVE_INTTYPES_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | # include <inttypes.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 611 | #endif |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 612 | #ifdef HAVE_STDINT_H |
| 613 | # include <stdint.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_UNISTD_H |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 616 | # include <unistd.h> |
| 617 | #endif" |
| 618 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 619 | ac_subst_vars='SHELL |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 620 | PATH_SEPARATOR |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 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 | ARCH_RUN_32BIT |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 661 | LIPO_32BIT_FLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 662 | PYTHONFRAMEWORK |
| 663 | PYTHONFRAMEWORKIDENTIFIER |
| 664 | PYTHONFRAMEWORKDIR |
| 665 | PYTHONFRAMEWORKPREFIX |
| 666 | PYTHONFRAMEWORKINSTALLDIR |
| 667 | FRAMEWORKINSTALLFIRST |
| 668 | FRAMEWORKINSTALLLAST |
| 669 | FRAMEWORKALTINSTALLFIRST |
| 670 | FRAMEWORKALTINSTALLLAST |
| 671 | FRAMEWORKUNIXTOOLSPREFIX |
| 672 | MACHDEP |
| 673 | SGI_ABI |
| 674 | EXTRAPLATDIR |
| 675 | EXTRAMACHDEPPATH |
| 676 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 677 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 678 | CC |
| 679 | CFLAGS |
| 680 | LDFLAGS |
| 681 | CPPFLAGS |
| 682 | ac_ct_CC |
| 683 | EXEEXT |
| 684 | OBJEXT |
| 685 | CXX |
| 686 | MAINCC |
| 687 | CPP |
| 688 | GREP |
| 689 | EGREP |
| 690 | BUILDEXEEXT |
| 691 | LIBRARY |
| 692 | LDLIBRARY |
| 693 | DLLLIBRARY |
| 694 | BLDLIBRARY |
| 695 | LDLIBRARYDIR |
| 696 | INSTSONAME |
| 697 | RUNSHARED |
| 698 | LINKCC |
| 699 | GNULD |
| 700 | RANLIB |
| 701 | AR |
| 702 | ARFLAGS |
| 703 | SVNVERSION |
| 704 | INSTALL_PROGRAM |
| 705 | INSTALL_SCRIPT |
| 706 | INSTALL_DATA |
| 707 | LN |
| 708 | OPT |
| 709 | BASECFLAGS |
| 710 | UNIVERSAL_ARCH_FLAGS |
| 711 | OTHER_LIBTOOL_OPT |
| 712 | LIBTOOL_CRUFT |
| 713 | SO |
| 714 | LDSHARED |
| 715 | BLDSHARED |
| 716 | CCSHARED |
| 717 | LINKFORSHARED |
| 718 | CFLAGSFORSHARED |
| 719 | SHLIBS |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 720 | PKG_CONFIG |
| 721 | LIBFFI_INCLUDEDIR |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 722 | USE_SIGNAL_MODULE |
| 723 | SIGNAL_OBJS |
| 724 | USE_THREAD_MODULE |
| 725 | LDLAST |
| 726 | THREADOBJ |
| 727 | DLINCLDIR |
| 728 | DYNLOADFILE |
| 729 | MACHDEP_OBJS |
| 730 | TRUE |
| 731 | LIBOBJS |
| 732 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 733 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 734 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 735 | HAVE_GETHOSTBYNAME_R |
| 736 | HAVE_GETHOSTBYNAME |
| 737 | LIBM |
| 738 | LIBC |
| 739 | UNICODE_OBJS |
| 740 | THREADHEADERS |
| 741 | SRCDIRS |
| 742 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 743 | ac_subst_files='' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 744 | ac_precious_vars='build_alias |
| 745 | host_alias |
| 746 | target_alias |
| 747 | CC |
| 748 | CFLAGS |
| 749 | LDFLAGS |
| 750 | LIBS |
| 751 | CPPFLAGS |
| 752 | CPP' |
| 753 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 754 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 755 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 756 | ac_init_help= |
| 757 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 758 | # The variables have the same names as the options, with |
| 759 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 760 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 761 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 762 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 763 | no_recursion= |
| 764 | prefix=NONE |
| 765 | program_prefix=NONE |
| 766 | program_suffix=NONE |
| 767 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 768 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 769 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 770 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 771 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 772 | x_includes=NONE |
| 773 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 774 | |
| 775 | # Installation directory options. |
| 776 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 777 | # and all the variables that are supposed to be based on exec_prefix |
| 778 | # by default will actually change. |
| 779 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 780 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 781 | bindir='${exec_prefix}/bin' |
| 782 | sbindir='${exec_prefix}/sbin' |
| 783 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 784 | datarootdir='${prefix}/share' |
| 785 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 786 | sysconfdir='${prefix}/etc' |
| 787 | sharedstatedir='${prefix}/com' |
| 788 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 789 | includedir='${prefix}/include' |
| 790 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 791 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 792 | infodir='${datarootdir}/info' |
| 793 | htmldir='${docdir}' |
| 794 | dvidir='${docdir}' |
| 795 | pdfdir='${docdir}' |
| 796 | psdir='${docdir}' |
| 797 | libdir='${exec_prefix}/lib' |
| 798 | localedir='${datarootdir}/locale' |
| 799 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 800 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 801 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 802 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 803 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 804 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 805 | # If the previous option needs an argument, assign it. |
| 806 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 807 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 808 | ac_prev= |
| 809 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 810 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 811 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 812 | case $ac_option in |
| 813 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 814 | *) ac_optarg=yes ;; |
| 815 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 816 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 817 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 818 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 819 | case $ac_dashdash$ac_option in |
| 820 | --) |
| 821 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 822 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 823 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 824 | ac_prev=bindir ;; |
| 825 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 826 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 827 | |
| 828 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 829 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 830 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 831 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 832 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 833 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 834 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 835 | ac_prev=cache_file ;; |
| 836 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 837 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 838 | cache_file=$ac_optarg ;; |
| 839 | |
| 840 | --config-cache | -C) |
| 841 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 842 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 843 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 844 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 845 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 846 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 847 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 848 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 849 | | --dataroo | --dataro | --datar) |
| 850 | ac_prev=datarootdir ;; |
| 851 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 852 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 853 | datarootdir=$ac_optarg ;; |
| 854 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 855 | -disable-* | --disable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 856 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 857 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 858 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 859 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 860 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 861 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 862 | eval enable_$ac_feature=no ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 863 | |
| 864 | -docdir | --docdir | --docdi | --doc | --do) |
| 865 | ac_prev=docdir ;; |
| 866 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 867 | docdir=$ac_optarg ;; |
| 868 | |
| 869 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 870 | ac_prev=dvidir ;; |
| 871 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 872 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 873 | |
| 874 | -enable-* | --enable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 875 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 876 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 877 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 878 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 879 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 880 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 881 | eval enable_$ac_feature=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 882 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 883 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 884 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 885 | | --exec | --exe | --ex) |
| 886 | ac_prev=exec_prefix ;; |
| 887 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 888 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 889 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 890 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 891 | |
| 892 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 893 | # Obsolete; use --with-gas. |
| 894 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 896 | -help | --help | --hel | --he | -h) |
| 897 | ac_init_help=long ;; |
| 898 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 899 | ac_init_help=recursive ;; |
| 900 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 901 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 902 | |
| 903 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 904 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 905 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 906 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 907 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 908 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 909 | ac_prev=htmldir ;; |
| 910 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 911 | | --ht=*) |
| 912 | htmldir=$ac_optarg ;; |
| 913 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 914 | -includedir | --includedir | --includedi | --included | --include \ |
| 915 | | --includ | --inclu | --incl | --inc) |
| 916 | ac_prev=includedir ;; |
| 917 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 918 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 919 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 920 | |
| 921 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 922 | ac_prev=infodir ;; |
| 923 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 924 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 925 | |
| 926 | -libdir | --libdir | --libdi | --libd) |
| 927 | ac_prev=libdir ;; |
| 928 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 929 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 930 | |
| 931 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 932 | | --libexe | --libex | --libe) |
| 933 | ac_prev=libexecdir ;; |
| 934 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 935 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 936 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 937 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 938 | -localedir | --localedir | --localedi | --localed | --locale) |
| 939 | ac_prev=localedir ;; |
| 940 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 941 | localedir=$ac_optarg ;; |
| 942 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 943 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 944 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 945 | ac_prev=localstatedir ;; |
| 946 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 947 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 948 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 949 | |
| 950 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 951 | ac_prev=mandir ;; |
| 952 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 953 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 954 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 955 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 956 | # Obsolete; use --without-fp. |
| 957 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 958 | |
| 959 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 960 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 961 | no_create=yes ;; |
| 962 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 963 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 964 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 965 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 966 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 967 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 968 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 969 | | --oldin | --oldi | --old | --ol | --o) |
| 970 | ac_prev=oldincludedir ;; |
| 971 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 972 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 973 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 974 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 975 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 976 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 977 | ac_prev=prefix ;; |
| 978 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 979 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 980 | |
| 981 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 982 | | --program-pre | --program-pr | --program-p) |
| 983 | ac_prev=program_prefix ;; |
| 984 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 985 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 986 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 987 | |
| 988 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 989 | | --program-suf | --program-su | --program-s) |
| 990 | ac_prev=program_suffix ;; |
| 991 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 992 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 993 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 994 | |
| 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) |
| 1002 | ac_prev=program_transform_name ;; |
| 1003 | -program-transform-name=* | --program-transform-name=* \ |
| 1004 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1005 | | --program-transform-n=* | --program-transform-=* \ |
| 1006 | | --program-transform=* | --program-transfor=* \ |
| 1007 | | --program-transfo=* | --program-transf=* \ |
| 1008 | | --program-trans=* | --program-tran=* \ |
| 1009 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1010 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1011 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1012 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1013 | ac_prev=pdfdir ;; |
| 1014 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1015 | pdfdir=$ac_optarg ;; |
| 1016 | |
| 1017 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1018 | ac_prev=psdir ;; |
| 1019 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1020 | psdir=$ac_optarg ;; |
| 1021 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1022 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1023 | | -silent | --silent | --silen | --sile | --sil) |
| 1024 | silent=yes ;; |
| 1025 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1026 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1027 | ac_prev=sbindir ;; |
| 1028 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1029 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1030 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1031 | |
| 1032 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1033 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1034 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1035 | | --sha | --sh) |
| 1036 | ac_prev=sharedstatedir ;; |
| 1037 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1038 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1039 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1040 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1041 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1042 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1043 | -site | --site | --sit) |
| 1044 | ac_prev=site ;; |
| 1045 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1046 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1047 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1048 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1049 | ac_prev=srcdir ;; |
| 1050 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1051 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1052 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1053 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1054 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1055 | ac_prev=sysconfdir ;; |
| 1056 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1057 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1058 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1059 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1060 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1061 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1062 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1063 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1064 | |
| 1065 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1066 | verbose=yes ;; |
| 1067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1068 | -version | --version | --versio | --versi | --vers | -V) |
| 1069 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1070 | |
| 1071 | -with-* | --with-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1072 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1073 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1074 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1075 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1076 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1077 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1078 | eval with_$ac_package=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1079 | |
| 1080 | -without-* | --without-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1081 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1082 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1083 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1084 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1085 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1086 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1087 | eval with_$ac_package=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1088 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1089 | --x) |
| 1090 | # Obsolete; use --with-x. |
| 1091 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1092 | |
| 1093 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1094 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1095 | ac_prev=x_includes ;; |
| 1096 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1097 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1098 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1099 | |
| 1100 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1101 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1102 | ac_prev=x_libraries ;; |
| 1103 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1104 | | --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] | 1105 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1106 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1107 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1108 | Try \`$0 --help' for more information." >&2 |
| 1109 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1110 | ;; |
| 1111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1112 | *=*) |
| 1113 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1114 | # Reject names that are not valid shell variable names. |
| 1115 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1116 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1117 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1118 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1119 | export $ac_envvar ;; |
| 1120 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1121 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1122 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1123 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1124 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1125 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1126 | : ${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] | 1127 | ;; |
| 1128 | |
| 1129 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1130 | done |
| 1131 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1132 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1133 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1134 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1135 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1136 | fi |
| 1137 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1138 | # Be sure to have absolute directory names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1139 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1140 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1141 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1142 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1143 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1144 | eval ac_val=\$$ac_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1145 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1146 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1147 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1148 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1149 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1150 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1151 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1153 | # There might be people who depend on the old broken behavior: `$host' |
| 1154 | # used to hold the argument of --host etc. |
| 1155 | # FIXME: To remove some day. |
| 1156 | build=$build_alias |
| 1157 | host=$host_alias |
| 1158 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1160 | # FIXME: To remove some day. |
| 1161 | if test "x$host_alias" != x; then |
| 1162 | if test "x$build_alias" = x; then |
| 1163 | cross_compiling=maybe |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1164 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1165 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1166 | elif test "x$build_alias" != "x$host_alias"; then |
| 1167 | cross_compiling=yes |
| 1168 | fi |
| 1169 | fi |
| 1170 | |
| 1171 | ac_tool_prefix= |
| 1172 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1173 | |
| 1174 | test "$silent" = yes && exec 6>/dev/null |
| 1175 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1176 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1177 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1178 | ac_ls_di=`ls -di .` && |
| 1179 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1180 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1181 | { (exit 1); exit 1; }; } |
| 1182 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1183 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1184 | { (exit 1); exit 1; }; } |
| 1185 | |
| 1186 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1187 | # Find the source files, if location was not specified. |
| 1188 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1189 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1190 | # Try the directory containing this script, then the parent directory. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1191 | ac_confdir=`$as_dirname -- "$0" || |
| 1192 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1193 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1194 | X"$0" : 'X\(//\)$' \| \ |
| 1195 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1196 | echo X"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1197 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1198 | s//\1/ |
| 1199 | q |
| 1200 | } |
| 1201 | /^X\(\/\/\)[^/].*/{ |
| 1202 | s//\1/ |
| 1203 | q |
| 1204 | } |
| 1205 | /^X\(\/\/\)$/{ |
| 1206 | s//\1/ |
| 1207 | q |
| 1208 | } |
| 1209 | /^X\(\/\).*/{ |
| 1210 | s//\1/ |
| 1211 | q |
| 1212 | } |
| 1213 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1214 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1215 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1216 | srcdir=.. |
| 1217 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1218 | else |
| 1219 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1220 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1221 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1222 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1223 | { 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] | 1224 | { (exit 1); exit 1; }; } |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1225 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1226 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1227 | ac_abs_confdir=`( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1228 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1229 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1230 | pwd)` |
| 1231 | # When building in place, set srcdir=. |
| 1232 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1233 | srcdir=. |
| 1234 | fi |
| 1235 | # Remove unnecessary trailing slashes from srcdir. |
| 1236 | # Double slashes in file names in object file debugging info |
| 1237 | # mess up M-x gdb in Emacs. |
| 1238 | case $srcdir in |
| 1239 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1240 | esac |
| 1241 | for ac_var in $ac_precious_vars; do |
| 1242 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1243 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1244 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1245 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1246 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1247 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1248 | # |
| 1249 | # Report the --help message. |
| 1250 | # |
| 1251 | if test "$ac_init_help" = "long"; then |
| 1252 | # Omit some internal or obsolete options to make the list less imposing. |
| 1253 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1254 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1255 | \`configure' configures python 2.7 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1256 | |
| 1257 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1258 | |
| 1259 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1260 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1261 | |
| 1262 | Defaults for the options are specified in brackets. |
| 1263 | |
| 1264 | Configuration: |
| 1265 | -h, --help display this help and exit |
| 1266 | --help=short display options specific to this package |
| 1267 | --help=recursive display the short help of all the included packages |
| 1268 | -V, --version display version information and exit |
| 1269 | -q, --quiet, --silent do not print \`checking...' messages |
| 1270 | --cache-file=FILE cache test results in FILE [disabled] |
| 1271 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1272 | -n, --no-create do not create output files |
| 1273 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1274 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | Installation directories: |
| 1276 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1277 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1278 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1279 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1280 | |
| 1281 | By default, \`make install' will install all the files in |
| 1282 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1283 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1284 | for instance \`--prefix=\$HOME'. |
| 1285 | |
| 1286 | For better control, use the options below. |
| 1287 | |
| 1288 | Fine tuning of the installation directories: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1289 | --bindir=DIR user executables [EPREFIX/bin] |
| 1290 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1291 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1292 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1293 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1294 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1295 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1296 | --includedir=DIR C header files [PREFIX/include] |
| 1297 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1298 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1299 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1300 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1301 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1302 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1303 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1304 | --htmldir=DIR html documentation [DOCDIR] |
| 1305 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1306 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1307 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1308 | _ACEOF |
| 1309 | |
| 1310 | cat <<\_ACEOF |
| 1311 | _ACEOF |
| 1312 | fi |
| 1313 | |
| 1314 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1315 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1316 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1317 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1318 | cat <<\_ACEOF |
| 1319 | |
| 1320 | Optional Features: |
| 1321 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1322 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1323 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1324 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1325 | --enable-framework[=INSTALLDIR] |
| 1326 | Build (MacOSX|Darwin) framework |
| 1327 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1328 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1329 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1330 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1331 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1332 | --enable-big-digits[=BITS] |
| 1333 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1334 | --enable-unicode[=ucs[24]] |
| 1335 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1336 | |
| 1337 | Optional Packages: |
| 1338 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1339 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1340 | --with-universal-archs=ARCH |
| 1341 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1342 | "64-bit", "3-way", "intel" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1343 | --with-framework-name=FRAMEWORK |
| 1344 | specify an alternate name of the framework built |
| 1345 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1346 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1347 | --with-cxx-main=<compiler> |
| 1348 | compile main() and link python executable with C++ |
| 1349 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1350 | --with-suffix=.exe set executable suffix |
| 1351 | --with-pydebug build with Py_DEBUG defined |
| 1352 | --with-libs='lib1 ...' link against additional libs |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 1353 | --with-system-expat build pyexpat module using an installed expat |
| 1354 | library |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1355 | --with-system-ffi build _ctypes module using an installed ffi library |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1356 | --with-dbmliborder=db1:db2:... |
| 1357 | order to check db backends for dbm. Valid value is a |
| 1358 | colon separated string with the backend names |
| 1359 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1360 | --with-signal-module disable/enable signal module |
| 1361 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1362 | --with(out)-threads[=DIRECTORY] |
| 1363 | disable/enable thread support |
| 1364 | --with(out)-thread[=DIRECTORY] |
| 1365 | deprecated; use --with(out)-threads |
| 1366 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1367 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1368 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1369 | --with(out)-pymalloc disable/enable specialized mallocs |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 1370 | --with-valgrind Enable Valgrind support |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1371 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1372 | --with-fpectl enable SIGFPE catching |
| 1373 | --with-libm=STRING math library |
| 1374 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1375 | |
| 1376 | Some influential environment variables: |
| 1377 | CC C compiler command |
| 1378 | CFLAGS C compiler flags |
| 1379 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1380 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1381 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1382 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1383 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1384 | CPP C preprocessor |
| 1385 | |
| 1386 | Use these variables to override the choices made by `configure' or to help |
| 1387 | it to find libraries and programs with nonstandard names/locations. |
| 1388 | |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1389 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1391 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | fi |
| 1393 | |
| 1394 | if test "$ac_init_help" = "recursive"; then |
| 1395 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1396 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1397 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1398 | ac_builddir=. |
| 1399 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1400 | case "$ac_dir" in |
| 1401 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1402 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1403 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1404 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1405 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1406 | case $ac_top_builddir_sub in |
| 1407 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1408 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1409 | esac ;; |
| 1410 | esac |
| 1411 | ac_abs_top_builddir=$ac_pwd |
| 1412 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1413 | # for backward compatibility: |
| 1414 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1415 | |
| 1416 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1417 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1418 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1419 | ac_top_srcdir=$ac_top_builddir_sub |
| 1420 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1421 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1422 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1423 | ac_top_srcdir=$srcdir |
| 1424 | ac_abs_top_srcdir=$srcdir ;; |
| 1425 | *) # Relative name. |
| 1426 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1427 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1428 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1429 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1430 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1431 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1432 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1433 | # Check for guested configure. |
| 1434 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1435 | echo && |
| 1436 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1437 | elif test -f "$ac_srcdir/configure"; then |
| 1438 | echo && |
| 1439 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1441 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1442 | fi || ac_status=$? |
| 1443 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | done |
| 1445 | fi |
| 1446 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1447 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1448 | if $ac_init_version; then |
| 1449 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1450 | python configure 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1451 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1452 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1453 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1454 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 | This configure script is free software; the Free Software Foundation |
| 1456 | gives unlimited permission to copy, distribute and modify it. |
| 1457 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1458 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1459 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1460 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1461 | This file contains any messages produced by compilers while |
| 1462 | running configure, to aid debugging if configure makes a mistake. |
| 1463 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1464 | It was created by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1465 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1466 | |
| 1467 | $ $0 $@ |
| 1468 | |
| 1469 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1470 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1471 | { |
| 1472 | cat <<_ASUNAME |
| 1473 | ## --------- ## |
| 1474 | ## Platform. ## |
| 1475 | ## --------- ## |
| 1476 | |
| 1477 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1478 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1479 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1480 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1481 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1482 | |
| 1483 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1484 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1485 | |
| 1486 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1487 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1488 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1489 | /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] | 1490 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1491 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1492 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1493 | |
| 1494 | _ASUNAME |
| 1495 | |
| 1496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1497 | for as_dir in $PATH |
| 1498 | do |
| 1499 | IFS=$as_save_IFS |
| 1500 | test -z "$as_dir" && as_dir=. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1501 | echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1502 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1503 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1504 | |
| 1505 | } >&5 |
| 1506 | |
| 1507 | cat >&5 <<_ACEOF |
| 1508 | |
| 1509 | |
| 1510 | ## ----------- ## |
| 1511 | ## Core tests. ## |
| 1512 | ## ----------- ## |
| 1513 | |
| 1514 | _ACEOF |
| 1515 | |
| 1516 | |
| 1517 | # Keep a trace of the command line. |
| 1518 | # 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] | 1519 | # 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] | 1520 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1521 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1522 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1523 | ac_configure_args0= |
| 1524 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1525 | ac_must_keep_next=false |
| 1526 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1527 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1528 | for ac_arg |
| 1529 | do |
| 1530 | case $ac_arg in |
| 1531 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1532 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1533 | | -silent | --silent | --silen | --sile | --sil) |
| 1534 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1535 | *\'*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1536 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1537 | esac |
| 1538 | case $ac_pass in |
| 1539 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1540 | 2) |
| 1541 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1542 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1543 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1544 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1545 | case $ac_arg in |
| 1546 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1547 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1548 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1549 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1550 | case "$ac_configure_args0 " in |
| 1551 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1552 | esac |
| 1553 | ;; |
| 1554 | -* ) ac_must_keep_next=true ;; |
| 1555 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1556 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1557 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1558 | ;; |
| 1559 | esac |
| 1560 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1561 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1562 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1563 | $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] | 1564 | |
| 1565 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1566 | # config.log. We remove comments because anyway the quotes in there |
| 1567 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1568 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1569 | # 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] | 1570 | trap 'exit_status=$? |
| 1571 | # Save into config.log some information that might help in debugging. |
| 1572 | { |
| 1573 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1575 | cat <<\_ASBOX |
| 1576 | ## ---------------- ## |
| 1577 | ## Cache variables. ## |
| 1578 | ## ---------------- ## |
| 1579 | _ASBOX |
| 1580 | echo |
| 1581 | # The following way of writing the cache mishandles newlines in values, |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1582 | ( |
| 1583 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1584 | eval ac_val=\$$ac_var |
| 1585 | case $ac_val in #( |
| 1586 | *${as_nl}*) |
| 1587 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1588 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1589 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1590 | esac |
| 1591 | case $ac_var in #( |
| 1592 | _ | IFS | as_nl) ;; #( |
| 1593 | *) $as_unset $ac_var ;; |
| 1594 | esac ;; |
| 1595 | esac |
| 1596 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1597 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1598 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1599 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1600 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1601 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1602 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1603 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1604 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1605 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1606 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1607 | esac | |
| 1608 | sort |
| 1609 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1610 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1611 | |
| 1612 | cat <<\_ASBOX |
| 1613 | ## ----------------- ## |
| 1614 | ## Output variables. ## |
| 1615 | ## ----------------- ## |
| 1616 | _ASBOX |
| 1617 | echo |
| 1618 | for ac_var in $ac_subst_vars |
| 1619 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1620 | eval ac_val=\$$ac_var |
| 1621 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1622 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1623 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1624 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1625 | done | sort |
| 1626 | echo |
| 1627 | |
| 1628 | if test -n "$ac_subst_files"; then |
| 1629 | cat <<\_ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1630 | ## ------------------- ## |
| 1631 | ## File substitutions. ## |
| 1632 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1633 | _ASBOX |
| 1634 | echo |
| 1635 | for ac_var in $ac_subst_files |
| 1636 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1637 | eval ac_val=\$$ac_var |
| 1638 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1639 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1640 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1641 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1642 | done | sort |
| 1643 | echo |
| 1644 | fi |
| 1645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1646 | if test -s confdefs.h; then |
| 1647 | cat <<\_ASBOX |
| 1648 | ## ----------- ## |
| 1649 | ## confdefs.h. ## |
| 1650 | ## ----------- ## |
| 1651 | _ASBOX |
| 1652 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1653 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1654 | echo |
| 1655 | fi |
| 1656 | test "$ac_signal" != 0 && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1657 | echo "$as_me: caught signal $ac_signal" |
| 1658 | echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1659 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1660 | rm -f core *.core core.conftest.* && |
| 1661 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1662 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1663 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1664 | for ac_signal in 1 2 13 15; do |
| 1665 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1666 | done |
| 1667 | ac_signal=0 |
| 1668 | |
| 1669 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1670 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1671 | |
| 1672 | # Predefined preprocessor variables. |
| 1673 | |
| 1674 | cat >>confdefs.h <<_ACEOF |
| 1675 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1676 | _ACEOF |
| 1677 | |
| 1678 | |
| 1679 | cat >>confdefs.h <<_ACEOF |
| 1680 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1681 | _ACEOF |
| 1682 | |
| 1683 | |
| 1684 | cat >>confdefs.h <<_ACEOF |
| 1685 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1686 | _ACEOF |
| 1687 | |
| 1688 | |
| 1689 | cat >>confdefs.h <<_ACEOF |
| 1690 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1691 | _ACEOF |
| 1692 | |
| 1693 | |
| 1694 | cat >>confdefs.h <<_ACEOF |
| 1695 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1696 | _ACEOF |
| 1697 | |
| 1698 | |
| 1699 | # Let the site file select an alternate cache file if it wants to. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1700 | # Prefer explicitly selected file to automatically selected ones. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1701 | if test -n "$CONFIG_SITE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1702 | set x "$CONFIG_SITE" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1703 | elif test "x$prefix" != xNONE; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1704 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1705 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1706 | set x "$ac_default_prefix/share/config.site" \ |
| 1707 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1708 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1709 | shift |
| 1710 | for ac_site_file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1711 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1712 | if test -r "$ac_site_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1713 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1714 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1715 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1716 | . "$ac_site_file" |
| 1717 | fi |
| 1718 | done |
| 1719 | |
| 1720 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1721 | # Some versions of bash will fail to source /dev/null (special |
| 1722 | # files actually), so we avoid doing that. |
| 1723 | if test -f "$cache_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1724 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1725 | echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1726 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1727 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1728 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1729 | esac |
| 1730 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1731 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1732 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1733 | echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1734 | >$cache_file |
| 1735 | fi |
| 1736 | |
| 1737 | # Check that the precious variables saved in the cache have kept the same |
| 1738 | # value. |
| 1739 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1740 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1741 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1742 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1743 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1744 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1745 | case $ac_old_set,$ac_new_set in |
| 1746 | set,) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1747 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1748 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1749 | ac_cache_corrupted=: ;; |
| 1750 | ,set) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1751 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1752 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1753 | ac_cache_corrupted=: ;; |
| 1754 | ,);; |
| 1755 | *) |
| 1756 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1757 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1758 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1759 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1760 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1761 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1762 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1763 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1764 | fi;; |
| 1765 | esac |
| 1766 | # Pass precious variables to config.status. |
| 1767 | if test "$ac_new_set" = set; then |
| 1768 | case $ac_new_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1769 | *\'*) 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] | 1770 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1771 | esac |
| 1772 | case " $ac_configure_args " in |
| 1773 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1774 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1775 | esac |
| 1776 | fi |
| 1777 | done |
| 1778 | if $ac_cache_corrupted; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1779 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1780 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1781 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1782 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1783 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1784 | fi |
| 1785 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
| 1804 | |
| 1805 | |
| 1806 | |
| 1807 | |
| 1808 | |
| 1809 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1810 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1811 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1815 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1816 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1817 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1818 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1819 | |
| 1820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1821 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 1822 | if test "$prefix" != "/"; then |
| 1823 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 1824 | fi |
| 1825 | |
| 1826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1827 | |
| 1828 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1829 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1830 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1831 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1832 | # with other autoconf-based packages that include Python.h |
| 1833 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1834 | rm confdefs.h |
| 1835 | mv confdefs.h.new confdefs.h |
| 1836 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1837 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1838 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1839 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1840 | |
| 1841 | SOVERSION=1.0 |
| 1842 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1843 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1844 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1845 | |
| 1846 | cat >>confdefs.h <<\_ACEOF |
| 1847 | #define _GNU_SOURCE 1 |
| 1848 | _ACEOF |
| 1849 | |
| 1850 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1851 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1852 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1853 | # them. |
| 1854 | |
| 1855 | cat >>confdefs.h <<\_ACEOF |
| 1856 | #define _NETBSD_SOURCE 1 |
| 1857 | _ACEOF |
| 1858 | |
| 1859 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1860 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1861 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1862 | # them. |
| 1863 | |
| 1864 | cat >>confdefs.h <<\_ACEOF |
| 1865 | #define __BSD_VISIBLE 1 |
| 1866 | _ACEOF |
| 1867 | |
| 1868 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1869 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1870 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1871 | |
| 1872 | cat >>confdefs.h <<\_ACEOF |
| 1873 | #define _BSD_TYPES 1 |
| 1874 | _ACEOF |
| 1875 | |
| 1876 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1877 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1878 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1879 | # them. |
| 1880 | |
| 1881 | cat >>confdefs.h <<\_ACEOF |
| 1882 | #define _DARWIN_C_SOURCE 1 |
| 1883 | _ACEOF |
| 1884 | |
| 1885 | |
| 1886 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1887 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1888 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1889 | # Arguments passed to configure. |
| 1890 | |
| 1891 | CONFIG_ARGS="$ac_configure_args" |
| 1892 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1893 | { echo "$as_me:$LINENO: checking for --enable-universalsdk" >&5 |
| 1894 | echo $ECHO_N "checking for --enable-universalsdk... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1895 | # Check whether --enable-universalsdk was given. |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1896 | if test "${enable_universalsdk+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1897 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1898 | case $enableval in |
| 1899 | yes) |
| 1900 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1901 | if test ! -d "${enableval}" |
| 1902 | then |
| 1903 | enableval=/ |
| 1904 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1905 | ;; |
| 1906 | esac |
| 1907 | case $enableval in |
| 1908 | no) |
| 1909 | UNIVERSALSDK= |
| 1910 | enable_universalsdk= |
| 1911 | ;; |
| 1912 | *) |
| 1913 | UNIVERSALSDK=$enableval |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1914 | if test ! -d "${UNIVERSALSDK}" |
| 1915 | then |
| 1916 | { { echo "$as_me:$LINENO: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&5 |
| 1917 | echo "$as_me: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&2;} |
| 1918 | { (exit 1); exit 1; }; } |
| 1919 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1920 | ;; |
| 1921 | esac |
| 1922 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1923 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1924 | else |
| 1925 | |
| 1926 | UNIVERSALSDK= |
| 1927 | enable_universalsdk= |
| 1928 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1929 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1930 | |
Ronald Oussoren | 3c0a126 | 2010-01-17 19:27:57 +0000 | [diff] [blame] | 1931 | if test -n "${UNIVERSALSDK}" |
| 1932 | then |
| 1933 | { echo "$as_me:$LINENO: result: ${UNIVERSALSDK}" >&5 |
| 1934 | echo "${ECHO_T}${UNIVERSALSDK}" >&6; } |
| 1935 | else |
| 1936 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1937 | echo "${ECHO_T}no" >&6; } |
| 1938 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1939 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1940 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 1941 | |
| 1942 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1943 | UNIVERSAL_ARCHS="32-bit" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 1944 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1945 | { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 1946 | echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1947 | |
| 1948 | # Check whether --with-universal-archs was given. |
| 1949 | if test "${with_universal_archs+set}" = set; then |
| 1950 | withval=$with_universal_archs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1951 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 1952 | echo "${ECHO_T}$withval" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1953 | UNIVERSAL_ARCHS="$withval" |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1954 | if test "${enable_universalsdk}" ; then |
| 1955 | : |
| 1956 | else |
| 1957 | { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5 |
| 1958 | echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;} |
| 1959 | { (exit 1); exit 1; }; } |
| 1960 | fi |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1961 | |
| 1962 | else |
| 1963 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1964 | { echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 1965 | echo "${ECHO_T}32-bit" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1966 | |
| 1967 | fi |
| 1968 | |
| 1969 | |
| 1970 | |
| 1971 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1972 | |
| 1973 | # Check whether --with-framework-name was given. |
| 1974 | if test "${with_framework_name+set}" = set; then |
| 1975 | withval=$with_framework_name; |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1976 | if test "${enable_framework}"; then |
| 1977 | : |
| 1978 | else |
| 1979 | { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5 |
| 1980 | echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;} |
| 1981 | { (exit 1); exit 1; }; } |
| 1982 | fi |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1983 | PYTHONFRAMEWORK=${withval} |
| 1984 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 1985 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 1986 | |
| 1987 | else |
| 1988 | |
| 1989 | PYTHONFRAMEWORK=Python |
| 1990 | PYTHONFRAMEWORKDIR=Python.framework |
| 1991 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 1992 | |
| 1993 | fi |
| 1994 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1995 | # Check whether --enable-framework was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1996 | if test "${enable_framework+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1997 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1998 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1999 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2000 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2001 | esac |
| 2002 | case $enableval in |
| 2003 | no) |
| 2004 | PYTHONFRAMEWORK= |
| 2005 | PYTHONFRAMEWORKDIR=no-framework |
| 2006 | PYTHONFRAMEWORKPREFIX= |
| 2007 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2008 | FRAMEWORKINSTALLFIRST= |
| 2009 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2010 | FRAMEWORKALTINSTALLFIRST= |
| 2011 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2012 | if test "x${prefix}" = "xNONE"; then |
| 2013 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2014 | else |
| 2015 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2016 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2017 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2018 | ;; |
| 2019 | *) |
| 2020 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2021 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2022 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2023 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 2024 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
| 2025 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2026 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2027 | if test "x${prefix}" = "xNONE" ; then |
| 2028 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2029 | else |
| 2030 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2031 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2032 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2033 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2034 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2035 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2036 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2037 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2038 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2039 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2040 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2041 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2042 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2043 | |
| 2044 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2045 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2046 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2047 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2049 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2050 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2051 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2052 | PYTHONFRAMEWORKPREFIX= |
| 2053 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2054 | FRAMEWORKINSTALLFIRST= |
| 2055 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2056 | FRAMEWORKALTINSTALLFIRST= |
| 2057 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2058 | if test "x${prefix}" = "xNONE" ; then |
| 2059 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2060 | else |
| 2061 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2062 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2063 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2064 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2065 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2066 | fi |
| 2067 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2068 | |
| 2069 | |
| 2070 | |
| 2071 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2072 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2073 | |
| 2074 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2075 | |
| 2076 | |
| 2077 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2078 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2079 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2080 | ## AC_HELP_STRING(--with-dyld, |
| 2081 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2082 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2083 | # Set name for machine-dependent library files |
| 2084 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2085 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2086 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2087 | if test -z "$MACHDEP" |
| 2088 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2089 | ac_sys_system=`uname -s` |
Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 2090 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2091 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2092 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2093 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2094 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2095 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2096 | ac_md_system=`echo $ac_sys_system | |
| 2097 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2098 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2099 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2100 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2101 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2102 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2103 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2104 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2105 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2106 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2107 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2108 | esac |
| 2109 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2110 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2111 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2112 | # disable features if it is defined, without any means to access these |
| 2113 | # features as extensions. For these systems, we skip the definition of |
| 2114 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2115 | # some feature, make sure there is no alternative way to access this |
| 2116 | # feature. Also, when using wildcards, make sure you have verified the |
| 2117 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2118 | # wildcard, and that the wildcard does not include future systems |
| 2119 | # (which may remove their limitations). |
| 2120 | case $ac_sys_system/$ac_sys_release in |
| 2121 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2122 | # 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] | 2123 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 2124 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 2125 | define_xopen_source=no |
| 2126 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2127 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2128 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2129 | |
| 2130 | cat >>confdefs.h <<\_ACEOF |
| 2131 | #define _BSD_SOURCE 1 |
| 2132 | _ACEOF |
| 2133 | |
| 2134 | ;; |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 2135 | OpenBSD/4.[4]) |
| 2136 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2137 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2138 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2139 | |
| 2140 | cat >>confdefs.h <<\_ACEOF |
| 2141 | #define _BSD_SOURCE 1 |
| 2142 | _ACEOF |
| 2143 | |
| 2144 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2145 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2146 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2147 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 2148 | NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2149 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2150 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2151 | # of union __?sigval. Reported by Stuart Bishop. |
| 2152 | SunOS/5.6) |
| 2153 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2154 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2155 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2156 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2157 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2158 | define_xopen_source=no;; |
| 2159 | # 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] | 2160 | # 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] | 2161 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2162 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 2163 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2164 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2165 | FreeBSD/4.*) |
| 2166 | define_xopen_source=no;; |
| 2167 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2168 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2169 | # identifies itself as Darwin/7.* |
| 2170 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2171 | # disables platform specific features beyond repair. |
| 2172 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2173 | # has no effect, don't bother defining them |
| 2174 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2175 | define_xopen_source=no;; |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 2176 | Darwin/1[0-9].*) |
| 2177 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2178 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2179 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2180 | # 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] | 2181 | AIX/4) |
| 2182 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2183 | AIX/5) |
| 2184 | if test `uname -r` -eq 1; then |
| 2185 | define_xopen_source=no |
| 2186 | fi |
| 2187 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 2188 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2189 | # defining NI_NUMERICHOST. |
| 2190 | QNX/6.3.2) |
| 2191 | define_xopen_source=no |
| 2192 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 2193 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2194 | esac |
| 2195 | |
| 2196 | if test $define_xopen_source = yes |
| 2197 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2198 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2199 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2200 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2201 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2202 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2203 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2204 | |
| 2205 | cat >>confdefs.h <<\_ACEOF |
| 2206 | #define _XOPEN_SOURCE 500 |
| 2207 | _ACEOF |
| 2208 | |
| 2209 | ;; |
| 2210 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2211 | |
| 2212 | cat >>confdefs.h <<\_ACEOF |
| 2213 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2214 | _ACEOF |
| 2215 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2216 | ;; |
| 2217 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2218 | |
| 2219 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2220 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2221 | # several APIs are not declared. Since this is also needed in some |
| 2222 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2223 | # except for Solaris 10, where it must not be defined, |
| 2224 | # as it implies XPG4.2 |
| 2225 | case $ac_sys_system/$ac_sys_release in |
| 2226 | SunOS/5.10) |
| 2227 | ;; |
| 2228 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2229 | |
| 2230 | cat >>confdefs.h <<\_ACEOF |
| 2231 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2232 | _ACEOF |
| 2233 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2234 | ;; |
| 2235 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2236 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2237 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2238 | cat >>confdefs.h <<\_ACEOF |
| 2239 | #define _POSIX_C_SOURCE 200112L |
| 2240 | _ACEOF |
| 2241 | |
| 2242 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2243 | fi |
| 2244 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2245 | # |
| 2246 | # SGI compilers allow the specification of the both the ABI and the |
| 2247 | # ISA on the command line. Depending on the values of these switches, |
| 2248 | # different and often incompatable code will be generated. |
| 2249 | # |
| 2250 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2251 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2252 | # variable is also adjusted. |
| 2253 | # |
| 2254 | |
| 2255 | if test ! -z "$SGI_ABI" |
| 2256 | then |
| 2257 | CC="cc $SGI_ABI" |
| 2258 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2259 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2260 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2261 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2262 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2263 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2264 | # And add extra plat-mac for darwin |
| 2265 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2266 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2267 | { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2268 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2269 | if test -z "$EXTRAPLATDIR" |
| 2270 | then |
| 2271 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2272 | darwin) |
| 2273 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2274 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2275 | ;; |
| 2276 | *) |
| 2277 | EXTRAPLATDIR="" |
| 2278 | EXTRAMACHDEPPATH="" |
| 2279 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2280 | esac |
| 2281 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2282 | { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2283 | echo "${ECHO_T}$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2284 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2285 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2286 | # it may influence the way we can build extensions, so distutils |
| 2287 | # needs to check it |
| 2288 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2289 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2290 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2291 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2292 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2293 | { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2294 | echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2295 | ac_sys_machine=`uname -m` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2296 | { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2297 | echo "${ECHO_T}$ac_sys_machine" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2298 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2299 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2300 | |
| 2301 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2302 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2303 | # just to get things to compile and link. Users are free to override OPT |
| 2304 | # when running configure or make. The build should not break if they do. |
| 2305 | # BASECFLAGS should generally not be messed with, however. |
| 2306 | |
| 2307 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2308 | # on that fiddles with OPT and BASECFLAGS? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2309 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2310 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2311 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2312 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2313 | if test "${with_gcc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2314 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2315 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 2316 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2317 | without_gcc=yes;; |
| 2318 | yes) CC=gcc |
| 2319 | without_gcc=no;; |
| 2320 | *) CC=$withval |
| 2321 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2322 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2324 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2325 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2326 | AIX*) CC=cc_r |
| 2327 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2328 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2329 | case $BE_HOST_CPU in |
| 2330 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2331 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2332 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2333 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 2334 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2335 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2336 | ;; |
| 2337 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2338 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2339 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2340 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2341 | ;; |
| 2342 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2343 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 2344 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2345 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2346 | ;; |
| 2347 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2348 | AR="\$(srcdir)/Modules/ar_beos" |
| 2349 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2350 | ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2351 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2352 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2353 | fi |
| 2354 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2355 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2356 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2357 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2358 | # If the user switches compilers, we can't believe the cache |
| 2359 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2360 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2361 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2362 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2363 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2364 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2365 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2366 | fi |
| 2367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2368 | ac_ext=c |
| 2369 | ac_cpp='$CPP $CPPFLAGS' |
| 2370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2373 | if test -n "$ac_tool_prefix"; then |
| 2374 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2375 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2376 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2378 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2380 | else |
| 2381 | if test -n "$CC"; then |
| 2382 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2385 | for as_dir in $PATH |
| 2386 | do |
| 2387 | IFS=$as_save_IFS |
| 2388 | test -z "$as_dir" && as_dir=. |
| 2389 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2390 | 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] | 2391 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2392 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2393 | break 2 |
| 2394 | fi |
| 2395 | done |
| 2396 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2397 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2398 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2399 | fi |
| 2400 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2401 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2402 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2403 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2404 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2405 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2406 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2407 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2408 | fi |
| 2409 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2411 | fi |
| 2412 | if test -z "$ac_cv_prog_CC"; then |
| 2413 | ac_ct_CC=$CC |
| 2414 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2415 | set dummy gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2416 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2418 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2420 | else |
| 2421 | if test -n "$ac_ct_CC"; then |
| 2422 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2423 | else |
| 2424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2425 | for as_dir in $PATH |
| 2426 | do |
| 2427 | IFS=$as_save_IFS |
| 2428 | test -z "$as_dir" && as_dir=. |
| 2429 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2430 | 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] | 2431 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2432 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2433 | break 2 |
| 2434 | fi |
| 2435 | done |
| 2436 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2437 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2438 | |
| 2439 | fi |
| 2440 | fi |
| 2441 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2442 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2443 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2444 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2445 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2446 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2447 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2448 | fi |
| 2449 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2450 | if test "x$ac_ct_CC" = x; then |
| 2451 | CC="" |
| 2452 | else |
| 2453 | case $cross_compiling:$ac_tool_warned in |
| 2454 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2455 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2456 | whose name does not start with the host triplet. If you think this |
| 2457 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2458 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2459 | whose name does not start with the host triplet. If you think this |
| 2460 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2461 | ac_tool_warned=yes ;; |
| 2462 | esac |
| 2463 | CC=$ac_ct_CC |
| 2464 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2465 | else |
| 2466 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2467 | fi |
| 2468 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2469 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2470 | if test -n "$ac_tool_prefix"; then |
| 2471 | # 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] | 2472 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2473 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2475 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2477 | else |
| 2478 | if test -n "$CC"; then |
| 2479 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2482 | for as_dir in $PATH |
| 2483 | do |
| 2484 | IFS=$as_save_IFS |
| 2485 | test -z "$as_dir" && as_dir=. |
| 2486 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2487 | 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] | 2488 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2490 | break 2 |
| 2491 | fi |
| 2492 | done |
| 2493 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2494 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2495 | |
| 2496 | fi |
| 2497 | fi |
| 2498 | CC=$ac_cv_prog_CC |
| 2499 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2500 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2501 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2502 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2503 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2504 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2505 | fi |
| 2506 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2508 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2509 | fi |
| 2510 | if test -z "$CC"; then |
| 2511 | # Extract the first word of "cc", so it can be a program name with args. |
| 2512 | set dummy cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2513 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2515 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2517 | else |
| 2518 | if test -n "$CC"; then |
| 2519 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2520 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2521 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2523 | for as_dir in $PATH |
| 2524 | do |
| 2525 | IFS=$as_save_IFS |
| 2526 | test -z "$as_dir" && as_dir=. |
| 2527 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2528 | 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] | 2529 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2530 | ac_prog_rejected=yes |
| 2531 | continue |
| 2532 | fi |
| 2533 | ac_cv_prog_CC="cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2535 | break 2 |
| 2536 | fi |
| 2537 | done |
| 2538 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2539 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2540 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2541 | if test $ac_prog_rejected = yes; then |
| 2542 | # We found a bogon in the path, so make sure we never use it. |
| 2543 | set dummy $ac_cv_prog_CC |
| 2544 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2546 | # We chose a different compiler from the bogus one. |
| 2547 | # However, it has the same basename, so the bogon will be chosen |
| 2548 | # first if we set CC to just the basename; use the full file name. |
| 2549 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2550 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2551 | fi |
| 2552 | fi |
| 2553 | fi |
| 2554 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2555 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2556 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2557 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2558 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2559 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2560 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2561 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2562 | fi |
| 2563 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2565 | fi |
| 2566 | if test -z "$CC"; then |
| 2567 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2568 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2569 | do |
| 2570 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2571 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2572 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2573 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2574 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2576 | else |
| 2577 | if test -n "$CC"; then |
| 2578 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2579 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2581 | for as_dir in $PATH |
| 2582 | do |
| 2583 | IFS=$as_save_IFS |
| 2584 | test -z "$as_dir" && as_dir=. |
| 2585 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2586 | 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] | 2587 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2588 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2589 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2590 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2591 | done |
| 2592 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2593 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2594 | |
| 2595 | fi |
| 2596 | fi |
| 2597 | CC=$ac_cv_prog_CC |
| 2598 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2599 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2600 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2601 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2602 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2603 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2604 | fi |
| 2605 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2607 | test -n "$CC" && break |
| 2608 | done |
| 2609 | fi |
| 2610 | if test -z "$CC"; then |
| 2611 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2612 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2613 | do |
| 2614 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2615 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2616 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2618 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2620 | else |
| 2621 | if test -n "$ac_ct_CC"; then |
| 2622 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2623 | else |
| 2624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2625 | for as_dir in $PATH |
| 2626 | do |
| 2627 | IFS=$as_save_IFS |
| 2628 | test -z "$as_dir" && as_dir=. |
| 2629 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2630 | 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] | 2631 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2632 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2633 | break 2 |
| 2634 | fi |
| 2635 | done |
| 2636 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2637 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2638 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2639 | fi |
| 2640 | fi |
| 2641 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2642 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2643 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2644 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2645 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2646 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2647 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2648 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2649 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2651 | test -n "$ac_ct_CC" && break |
| 2652 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2653 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2654 | if test "x$ac_ct_CC" = x; then |
| 2655 | CC="" |
| 2656 | else |
| 2657 | case $cross_compiling:$ac_tool_warned in |
| 2658 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2659 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2660 | whose name does not start with the host triplet. If you think this |
| 2661 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2662 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2663 | whose name does not start with the host triplet. If you think this |
| 2664 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2665 | ac_tool_warned=yes ;; |
| 2666 | esac |
| 2667 | CC=$ac_ct_CC |
| 2668 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2669 | fi |
| 2670 | |
| 2671 | fi |
| 2672 | |
| 2673 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2674 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2675 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2676 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2677 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2678 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2679 | |
| 2680 | # Provide some information about the compiler. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2681 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2682 | ac_compiler=`set X $ac_compile; echo $2` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2683 | { (ac_try="$ac_compiler --version >&5" |
| 2684 | case "(($ac_try" in |
| 2685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2686 | *) ac_try_echo=$ac_try;; |
| 2687 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2689 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2690 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2692 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2693 | { (ac_try="$ac_compiler -v >&5" |
| 2694 | case "(($ac_try" in |
| 2695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2696 | *) ac_try_echo=$ac_try;; |
| 2697 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2699 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2700 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2702 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2703 | { (ac_try="$ac_compiler -V >&5" |
| 2704 | case "(($ac_try" in |
| 2705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2706 | *) ac_try_echo=$ac_try;; |
| 2707 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2709 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2710 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2712 | (exit $ac_status); } |
| 2713 | |
| 2714 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2715 | /* confdefs.h. */ |
| 2716 | _ACEOF |
| 2717 | cat confdefs.h >>conftest.$ac_ext |
| 2718 | cat >>conftest.$ac_ext <<_ACEOF |
| 2719 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2720 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2721 | int |
| 2722 | main () |
| 2723 | { |
| 2724 | |
| 2725 | ; |
| 2726 | return 0; |
| 2727 | } |
| 2728 | _ACEOF |
| 2729 | ac_clean_files_save=$ac_clean_files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2730 | 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] | 2731 | # Try to create an executable without -o first, disregard a.out. |
| 2732 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2733 | # of exeext. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2734 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2735 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2736 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2737 | # |
| 2738 | # List of possible output files, starting from the most likely. |
| 2739 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2740 | # only as a last resort. b.out is created by i960 compilers. |
| 2741 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2742 | # |
| 2743 | # The IRIX 6 linker writes into existing files which may not be |
| 2744 | # executable, retaining their permissions. Remove them first so a |
| 2745 | # subsequent execution test works. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2746 | ac_rmfiles= |
| 2747 | for ac_file in $ac_files |
| 2748 | do |
| 2749 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2750 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2751 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2752 | esac |
| 2753 | done |
| 2754 | rm -f $ac_rmfiles |
| 2755 | |
| 2756 | if { (ac_try="$ac_link_default" |
| 2757 | case "(($ac_try" in |
| 2758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2759 | *) ac_try_echo=$ac_try;; |
| 2760 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2762 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2763 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2765 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2766 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2767 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2768 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2769 | # so that the user can short-circuit this test for compilers unknown to |
| 2770 | # Autoconf. |
| 2771 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2772 | do |
| 2773 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2774 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2775 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2776 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2777 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2778 | # We found the default executable, but exeext='' is most |
| 2779 | # certainly right. |
| 2780 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2781 | *.* ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2782 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2783 | then :; else |
| 2784 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2785 | fi |
| 2786 | # We set ac_cv_exeext here because the later test for it is not |
| 2787 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2788 | # argument, so we may need to know it at that point already. |
| 2789 | # Even if this section looks crufty: it has the advantage of |
| 2790 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2791 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2792 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2793 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2794 | esac |
| 2795 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2796 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2797 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2798 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2799 | ac_file='' |
| 2800 | fi |
| 2801 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2802 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2803 | echo "${ECHO_T}$ac_file" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2804 | if test -z "$ac_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2805 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2807 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2808 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2809 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2810 | echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2811 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2812 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2813 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2815 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2816 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2817 | # 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] | 2818 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2819 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2820 | 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] | 2821 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2822 | # If not cross compiling, check that we can run a simple program. |
| 2823 | if test "$cross_compiling" != yes; then |
| 2824 | if { ac_try='./$ac_file' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2825 | { (case "(($ac_try" in |
| 2826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2827 | *) ac_try_echo=$ac_try;; |
| 2828 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2830 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2831 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2833 | (exit $ac_status); }; }; then |
| 2834 | cross_compiling=no |
| 2835 | else |
| 2836 | if test "$cross_compiling" = maybe; then |
| 2837 | cross_compiling=yes |
| 2838 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2839 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2840 | If you meant to cross compile, use \`--host'. |
| 2841 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2842 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2843 | If you meant to cross compile, use \`--host'. |
| 2844 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2845 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2846 | fi |
| 2847 | fi |
| 2848 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2849 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2850 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2851 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2852 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2853 | ac_clean_files=$ac_clean_files_save |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2854 | # 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] | 2855 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2856 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2857 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2858 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2859 | echo "${ECHO_T}$cross_compiling" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2860 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2861 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2862 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2863 | if { (ac_try="$ac_link" |
| 2864 | case "(($ac_try" in |
| 2865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2866 | *) ac_try_echo=$ac_try;; |
| 2867 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2869 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2870 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2872 | (exit $ac_status); }; then |
| 2873 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2874 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2875 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2876 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2877 | for ac_file in conftest.exe conftest conftest.*; do |
| 2878 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2879 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2880 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2881 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2882 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2883 | * ) break;; |
| 2884 | esac |
| 2885 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2886 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2887 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2888 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2889 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2890 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2891 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2892 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2894 | rm -f conftest$ac_cv_exeext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2895 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2896 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2897 | |
| 2898 | rm -f conftest.$ac_ext |
| 2899 | EXEEXT=$ac_cv_exeext |
| 2900 | ac_exeext=$EXEEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2901 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2902 | 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] | 2903 | if test "${ac_cv_objext+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2905 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2906 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2907 | /* confdefs.h. */ |
| 2908 | _ACEOF |
| 2909 | cat confdefs.h >>conftest.$ac_ext |
| 2910 | cat >>conftest.$ac_ext <<_ACEOF |
| 2911 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2912 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2913 | int |
| 2914 | main () |
| 2915 | { |
| 2916 | |
| 2917 | ; |
| 2918 | return 0; |
| 2919 | } |
| 2920 | _ACEOF |
| 2921 | rm -f conftest.o conftest.obj |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2922 | if { (ac_try="$ac_compile" |
| 2923 | case "(($ac_try" in |
| 2924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2925 | *) ac_try_echo=$ac_try;; |
| 2926 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2928 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2929 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2931 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2932 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2933 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2934 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2935 | *.$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] | 2936 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2937 | break;; |
| 2938 | esac |
| 2939 | done |
| 2940 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2941 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2943 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2944 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2945 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2946 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2947 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2948 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2949 | fi |
| 2950 | |
| 2951 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2952 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2953 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2954 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2955 | OBJEXT=$ac_cv_objext |
| 2956 | ac_objext=$OBJEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2957 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2958 | 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] | 2959 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2961 | else |
| 2962 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2963 | /* confdefs.h. */ |
| 2964 | _ACEOF |
| 2965 | cat confdefs.h >>conftest.$ac_ext |
| 2966 | cat >>conftest.$ac_ext <<_ACEOF |
| 2967 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2969 | int |
| 2970 | main () |
| 2971 | { |
| 2972 | #ifndef __GNUC__ |
| 2973 | choke me |
| 2974 | #endif |
| 2975 | |
| 2976 | ; |
| 2977 | return 0; |
| 2978 | } |
| 2979 | _ACEOF |
| 2980 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2981 | if { (ac_try="$ac_compile" |
| 2982 | case "(($ac_try" in |
| 2983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2984 | *) ac_try_echo=$ac_try;; |
| 2985 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2987 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2988 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2990 | rm -f conftest.er1 |
| 2991 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2993 | (exit $ac_status); } && { |
| 2994 | test -z "$ac_c_werror_flag" || |
| 2995 | test ! -s conftest.err |
| 2996 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2997 | ac_compiler_gnu=yes |
| 2998 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2999 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3001 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3002 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3003 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3004 | |
| 3005 | 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] | 3006 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3007 | |
| 3008 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3009 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3010 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3011 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3012 | ac_test_CFLAGS=${CFLAGS+set} |
| 3013 | ac_save_CFLAGS=$CFLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3014 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3015 | 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] | 3016 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3018 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3019 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3020 | ac_c_werror_flag=yes |
| 3021 | ac_cv_prog_cc_g=no |
| 3022 | CFLAGS="-g" |
| 3023 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3024 | /* confdefs.h. */ |
| 3025 | _ACEOF |
| 3026 | cat confdefs.h >>conftest.$ac_ext |
| 3027 | cat >>conftest.$ac_ext <<_ACEOF |
| 3028 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3030 | int |
| 3031 | main () |
| 3032 | { |
| 3033 | |
| 3034 | ; |
| 3035 | return 0; |
| 3036 | } |
| 3037 | _ACEOF |
| 3038 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3039 | if { (ac_try="$ac_compile" |
| 3040 | case "(($ac_try" in |
| 3041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3042 | *) ac_try_echo=$ac_try;; |
| 3043 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3045 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3046 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3048 | rm -f conftest.er1 |
| 3049 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3051 | (exit $ac_status); } && { |
| 3052 | test -z "$ac_c_werror_flag" || |
| 3053 | test ! -s conftest.err |
| 3054 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3055 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3056 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3057 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3059 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3060 | CFLAGS="" |
| 3061 | cat >conftest.$ac_ext <<_ACEOF |
| 3062 | /* confdefs.h. */ |
| 3063 | _ACEOF |
| 3064 | cat confdefs.h >>conftest.$ac_ext |
| 3065 | cat >>conftest.$ac_ext <<_ACEOF |
| 3066 | /* end confdefs.h. */ |
| 3067 | |
| 3068 | int |
| 3069 | main () |
| 3070 | { |
| 3071 | |
| 3072 | ; |
| 3073 | return 0; |
| 3074 | } |
| 3075 | _ACEOF |
| 3076 | rm -f conftest.$ac_objext |
| 3077 | if { (ac_try="$ac_compile" |
| 3078 | case "(($ac_try" in |
| 3079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3080 | *) ac_try_echo=$ac_try;; |
| 3081 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3083 | (eval "$ac_compile") 2>conftest.er1 |
| 3084 | ac_status=$? |
| 3085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3086 | rm -f conftest.er1 |
| 3087 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3089 | (exit $ac_status); } && { |
| 3090 | test -z "$ac_c_werror_flag" || |
| 3091 | test ! -s conftest.err |
| 3092 | } && test -s conftest.$ac_objext; then |
| 3093 | : |
| 3094 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3095 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3097 | |
| 3098 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3099 | CFLAGS="-g" |
| 3100 | cat >conftest.$ac_ext <<_ACEOF |
| 3101 | /* confdefs.h. */ |
| 3102 | _ACEOF |
| 3103 | cat confdefs.h >>conftest.$ac_ext |
| 3104 | cat >>conftest.$ac_ext <<_ACEOF |
| 3105 | /* end confdefs.h. */ |
| 3106 | |
| 3107 | int |
| 3108 | main () |
| 3109 | { |
| 3110 | |
| 3111 | ; |
| 3112 | return 0; |
| 3113 | } |
| 3114 | _ACEOF |
| 3115 | rm -f conftest.$ac_objext |
| 3116 | if { (ac_try="$ac_compile" |
| 3117 | case "(($ac_try" in |
| 3118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3119 | *) ac_try_echo=$ac_try;; |
| 3120 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3122 | (eval "$ac_compile") 2>conftest.er1 |
| 3123 | ac_status=$? |
| 3124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3125 | rm -f conftest.er1 |
| 3126 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3128 | (exit $ac_status); } && { |
| 3129 | test -z "$ac_c_werror_flag" || |
| 3130 | test ! -s conftest.err |
| 3131 | } && test -s conftest.$ac_objext; then |
| 3132 | ac_cv_prog_cc_g=yes |
| 3133 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3134 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3136 | |
| 3137 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3138 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3139 | |
| 3140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3141 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3142 | |
| 3143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3144 | fi |
| 3145 | |
| 3146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3147 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3148 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3149 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3150 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3151 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3152 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3153 | elif test $ac_cv_prog_cc_g = yes; then |
| 3154 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3155 | CFLAGS="-g -O2" |
| 3156 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3157 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3158 | fi |
| 3159 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3160 | if test "$GCC" = yes; then |
| 3161 | CFLAGS="-O2" |
| 3162 | else |
| 3163 | CFLAGS= |
| 3164 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3165 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3166 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3167 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3168 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3170 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3171 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3172 | ac_save_CC=$CC |
| 3173 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3174 | /* confdefs.h. */ |
| 3175 | _ACEOF |
| 3176 | cat confdefs.h >>conftest.$ac_ext |
| 3177 | cat >>conftest.$ac_ext <<_ACEOF |
| 3178 | /* end confdefs.h. */ |
| 3179 | #include <stdarg.h> |
| 3180 | #include <stdio.h> |
| 3181 | #include <sys/types.h> |
| 3182 | #include <sys/stat.h> |
| 3183 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3184 | struct buf { int x; }; |
| 3185 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3186 | static char *e (p, i) |
| 3187 | char **p; |
| 3188 | int i; |
| 3189 | { |
| 3190 | return p[i]; |
| 3191 | } |
| 3192 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3193 | { |
| 3194 | char *s; |
| 3195 | va_list v; |
| 3196 | va_start (v,p); |
| 3197 | s = g (p, va_arg (v,int)); |
| 3198 | va_end (v); |
| 3199 | return s; |
| 3200 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3201 | |
| 3202 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3203 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3204 | These don't provoke an error unfortunately, instead are silently treated |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3205 | 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] | 3206 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3207 | array size at least. It's necessary to write '\x00'==0 to get something |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3208 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3209 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3210 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3211 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3212 | inside strings and character constants. */ |
| 3213 | #define FOO(x) 'x' |
| 3214 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3215 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3216 | int test (int i, double x); |
| 3217 | struct s1 {int (*f) (int a);}; |
| 3218 | struct s2 {int (*f) (double a);}; |
| 3219 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3220 | int argc; |
| 3221 | char **argv; |
| 3222 | int |
| 3223 | main () |
| 3224 | { |
| 3225 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3226 | ; |
| 3227 | return 0; |
| 3228 | } |
| 3229 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3230 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3231 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3232 | do |
| 3233 | CC="$ac_save_CC $ac_arg" |
| 3234 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3235 | if { (ac_try="$ac_compile" |
| 3236 | case "(($ac_try" in |
| 3237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3238 | *) ac_try_echo=$ac_try;; |
| 3239 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3241 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3242 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3244 | rm -f conftest.er1 |
| 3245 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3247 | (exit $ac_status); } && { |
| 3248 | test -z "$ac_c_werror_flag" || |
| 3249 | test ! -s conftest.err |
| 3250 | } && test -s conftest.$ac_objext; then |
| 3251 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3252 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3253 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3255 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3256 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3257 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3258 | |
| 3259 | rm -f core conftest.err conftest.$ac_objext |
| 3260 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3261 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3262 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3263 | CC=$ac_save_CC |
| 3264 | |
| 3265 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3266 | # AC_CACHE_VAL |
| 3267 | case "x$ac_cv_prog_cc_c89" in |
| 3268 | x) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3269 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3270 | echo "${ECHO_T}none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3271 | xno) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3272 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3273 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3274 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3275 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3276 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3277 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3278 | esac |
| 3279 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3281 | ac_ext=c |
| 3282 | ac_cpp='$CPP $CPPFLAGS' |
| 3283 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3284 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3285 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3286 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3287 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3288 | |
| 3289 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3290 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3291 | echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3292 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3293 | # Check whether --with-cxx_main was given. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3294 | if test "${with_cxx_main+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3295 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3296 | |
| 3297 | case $withval in |
| 3298 | no) with_cxx_main=no |
| 3299 | MAINCC='$(CC)';; |
| 3300 | yes) with_cxx_main=yes |
| 3301 | MAINCC='$(CXX)';; |
| 3302 | *) with_cxx_main=yes |
| 3303 | MAINCC=$withval |
| 3304 | if test -z "$CXX" |
| 3305 | then |
| 3306 | CXX=$withval |
| 3307 | fi;; |
| 3308 | esac |
| 3309 | else |
| 3310 | |
| 3311 | with_cxx_main=no |
| 3312 | MAINCC='$(CC)' |
| 3313 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3314 | fi |
| 3315 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3316 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3317 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3318 | |
| 3319 | preset_cxx="$CXX" |
| 3320 | if test -z "$CXX" |
| 3321 | then |
| 3322 | case "$CC" in |
| 3323 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3324 | set dummy g++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3325 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3326 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3327 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3329 | else |
| 3330 | case $CXX in |
| 3331 | [\\/]* | ?:[\\/]*) |
| 3332 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3333 | ;; |
| 3334 | *) |
| 3335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3336 | for as_dir in notfound |
| 3337 | do |
| 3338 | IFS=$as_save_IFS |
| 3339 | test -z "$as_dir" && as_dir=. |
| 3340 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3341 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3342 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3343 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3344 | break 2 |
| 3345 | fi |
| 3346 | done |
| 3347 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3348 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3349 | |
| 3350 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3351 | ;; |
| 3352 | esac |
| 3353 | fi |
| 3354 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3355 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3356 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3357 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3358 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3359 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3360 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3361 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3362 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3363 | ;; |
| 3364 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3365 | set dummy c++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3366 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3368 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3370 | else |
| 3371 | case $CXX in |
| 3372 | [\\/]* | ?:[\\/]*) |
| 3373 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3374 | ;; |
| 3375 | *) |
| 3376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3377 | for as_dir in notfound |
| 3378 | do |
| 3379 | IFS=$as_save_IFS |
| 3380 | test -z "$as_dir" && as_dir=. |
| 3381 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3382 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3383 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3384 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3385 | break 2 |
| 3386 | fi |
| 3387 | done |
| 3388 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3389 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3390 | |
| 3391 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3392 | ;; |
| 3393 | esac |
| 3394 | fi |
| 3395 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3396 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3397 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3398 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3399 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3400 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3401 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3402 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3403 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3404 | ;; |
| 3405 | esac |
| 3406 | if test "$CXX" = "notfound" |
| 3407 | then |
| 3408 | CXX="" |
| 3409 | fi |
| 3410 | fi |
| 3411 | if test -z "$CXX" |
| 3412 | then |
| 3413 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3414 | do |
| 3415 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3416 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3417 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3418 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3419 | if test "${ac_cv_prog_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3421 | else |
| 3422 | if test -n "$CXX"; then |
| 3423 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3424 | else |
| 3425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3426 | for as_dir in $PATH |
| 3427 | do |
| 3428 | IFS=$as_save_IFS |
| 3429 | test -z "$as_dir" && as_dir=. |
| 3430 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3432 | ac_cv_prog_CXX="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3433 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3434 | break 2 |
| 3435 | fi |
| 3436 | done |
| 3437 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3438 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3439 | |
| 3440 | fi |
| 3441 | fi |
| 3442 | CXX=$ac_cv_prog_CXX |
| 3443 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3444 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3445 | echo "${ECHO_T}$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3446 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3447 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3448 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3449 | fi |
| 3450 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3451 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3452 | test -n "$CXX" && break |
| 3453 | done |
| 3454 | test -n "$CXX" || CXX="notfound" |
| 3455 | |
| 3456 | if test "$CXX" = "notfound" |
| 3457 | then |
| 3458 | CXX="" |
| 3459 | fi |
| 3460 | fi |
| 3461 | if test "$preset_cxx" != "$CXX" |
| 3462 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3463 | { echo "$as_me:$LINENO: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3464 | |
| 3465 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3466 | If this is not intended, then set CXX on the configure command line. |
| 3467 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3468 | echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3469 | |
| 3470 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3471 | If this is not intended, then set CXX on the configure command line. |
| 3472 | " >&2;} |
| 3473 | fi |
| 3474 | |
| 3475 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3476 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3477 | |
| 3478 | ac_ext=c |
| 3479 | ac_cpp='$CPP $CPPFLAGS' |
| 3480 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3481 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3483 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3484 | 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] | 3485 | # On Suns, sometimes $CPP names a directory. |
| 3486 | if test -n "$CPP" && test -d "$CPP"; then |
| 3487 | CPP= |
| 3488 | fi |
| 3489 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3490 | if test "${ac_cv_prog_CPP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3493 | # Double quotes because CPP needs to be expanded |
| 3494 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3495 | do |
| 3496 | ac_preproc_ok=false |
| 3497 | for ac_c_preproc_warn_flag in '' yes |
| 3498 | do |
| 3499 | # Use a header file that comes with gcc, so configuring glibc |
| 3500 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3501 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3502 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3503 | # 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] | 3504 | # not just through cpp. "Syntax error" is here to catch this case. |
| 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. */ |
| 3511 | #ifdef __STDC__ |
| 3512 | # include <limits.h> |
| 3513 | #else |
| 3514 | # include <assert.h> |
| 3515 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3516 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3517 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3518 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3519 | case "(($ac_try" in |
| 3520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3521 | *) ac_try_echo=$ac_try;; |
| 3522 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3524 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3525 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3526 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3527 | rm -f conftest.er1 |
| 3528 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3530 | (exit $ac_status); } >/dev/null && { |
| 3531 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3532 | test ! -s conftest.err |
| 3533 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3534 | : |
| 3535 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3536 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3539 | # Broken: fails on valid input. |
| 3540 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3541 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3543 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3544 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3545 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3546 | # can be detected and how. |
| 3547 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3548 | /* confdefs.h. */ |
| 3549 | _ACEOF |
| 3550 | cat confdefs.h >>conftest.$ac_ext |
| 3551 | cat >>conftest.$ac_ext <<_ACEOF |
| 3552 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3553 | #include <ac_nonexistent.h> |
| 3554 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3555 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3556 | case "(($ac_try" in |
| 3557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3558 | *) ac_try_echo=$ac_try;; |
| 3559 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3561 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3562 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3563 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3564 | rm -f conftest.er1 |
| 3565 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3567 | (exit $ac_status); } >/dev/null && { |
| 3568 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3569 | test ! -s conftest.err |
| 3570 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3571 | # Broken: success on invalid input. |
| 3572 | continue |
| 3573 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3574 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3576 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3577 | # Passes both tests. |
| 3578 | ac_preproc_ok=: |
| 3579 | break |
| 3580 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3581 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3582 | rm -f conftest.err conftest.$ac_ext |
| 3583 | |
| 3584 | done |
| 3585 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3586 | rm -f conftest.err conftest.$ac_ext |
| 3587 | if $ac_preproc_ok; then |
| 3588 | break |
| 3589 | fi |
| 3590 | |
| 3591 | done |
| 3592 | ac_cv_prog_CPP=$CPP |
| 3593 | |
| 3594 | fi |
| 3595 | CPP=$ac_cv_prog_CPP |
| 3596 | else |
| 3597 | ac_cv_prog_CPP=$CPP |
| 3598 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3599 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3600 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3601 | ac_preproc_ok=false |
| 3602 | for ac_c_preproc_warn_flag in '' yes |
| 3603 | do |
| 3604 | # Use a header file that comes with gcc, so configuring glibc |
| 3605 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3606 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3607 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3608 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3609 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3610 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3611 | /* confdefs.h. */ |
| 3612 | _ACEOF |
| 3613 | cat confdefs.h >>conftest.$ac_ext |
| 3614 | cat >>conftest.$ac_ext <<_ACEOF |
| 3615 | /* end confdefs.h. */ |
| 3616 | #ifdef __STDC__ |
| 3617 | # include <limits.h> |
| 3618 | #else |
| 3619 | # include <assert.h> |
| 3620 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3621 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3622 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3623 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3624 | case "(($ac_try" in |
| 3625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3626 | *) ac_try_echo=$ac_try;; |
| 3627 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3629 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3630 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3631 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3632 | rm -f conftest.er1 |
| 3633 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3635 | (exit $ac_status); } >/dev/null && { |
| 3636 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3637 | test ! -s conftest.err |
| 3638 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3639 | : |
| 3640 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3641 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3644 | # Broken: fails on valid input. |
| 3645 | continue |
| 3646 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3648 | rm -f conftest.err conftest.$ac_ext |
| 3649 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3650 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3651 | # can be detected and how. |
| 3652 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3653 | /* confdefs.h. */ |
| 3654 | _ACEOF |
| 3655 | cat confdefs.h >>conftest.$ac_ext |
| 3656 | cat >>conftest.$ac_ext <<_ACEOF |
| 3657 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3658 | #include <ac_nonexistent.h> |
| 3659 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3660 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3661 | case "(($ac_try" in |
| 3662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3663 | *) ac_try_echo=$ac_try;; |
| 3664 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3666 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3667 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3668 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3669 | rm -f conftest.er1 |
| 3670 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3672 | (exit $ac_status); } >/dev/null && { |
| 3673 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3674 | test ! -s conftest.err |
| 3675 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3676 | # Broken: success on invalid input. |
| 3677 | continue |
| 3678 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3679 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3682 | # Passes both tests. |
| 3683 | ac_preproc_ok=: |
| 3684 | break |
| 3685 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3687 | rm -f conftest.err conftest.$ac_ext |
| 3688 | |
| 3689 | done |
| 3690 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3691 | rm -f conftest.err conftest.$ac_ext |
| 3692 | if $ac_preproc_ok; then |
| 3693 | : |
| 3694 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3695 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3696 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3697 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3698 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3699 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3700 | fi |
| 3701 | |
| 3702 | ac_ext=c |
| 3703 | ac_cpp='$CPP $CPPFLAGS' |
| 3704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3707 | |
| 3708 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3709 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3710 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3711 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3713 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3714 | # Extract the first word of "grep ggrep" to use in msg output |
| 3715 | if test -z "$GREP"; then |
| 3716 | set dummy grep ggrep; ac_prog_name=$2 |
| 3717 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3719 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3720 | ac_path_GREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3721 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3723 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3724 | do |
| 3725 | IFS=$as_save_IFS |
| 3726 | test -z "$as_dir" && as_dir=. |
| 3727 | for ac_prog in grep ggrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3728 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3729 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3730 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3731 | # Check for GNU ac_path_GREP and select it if it is found. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3732 | # Check for GNU $ac_path_GREP |
| 3733 | case `"$ac_path_GREP" --version 2>&1` in |
| 3734 | *GNU*) |
| 3735 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3736 | *) |
| 3737 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3738 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3739 | while : |
| 3740 | do |
| 3741 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3742 | mv "conftest.tmp" "conftest.in" |
| 3743 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3744 | echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3745 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3746 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3747 | ac_count=`expr $ac_count + 1` |
| 3748 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3749 | # Best one so far, save it but keep looking for a better one |
| 3750 | ac_cv_path_GREP="$ac_path_GREP" |
| 3751 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3752 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3753 | # 10*(2^10) chars as input seems more than enough |
| 3754 | test $ac_count -gt 10 && break |
| 3755 | done |
| 3756 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3757 | esac |
| 3758 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3759 | |
| 3760 | $ac_path_GREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3761 | done |
| 3762 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3763 | |
| 3764 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3765 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3766 | |
| 3767 | |
| 3768 | fi |
| 3769 | |
| 3770 | GREP="$ac_cv_path_GREP" |
| 3771 | if test -z "$GREP"; then |
| 3772 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3773 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3774 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3775 | fi |
| 3776 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3777 | else |
| 3778 | ac_cv_path_GREP=$GREP |
| 3779 | fi |
| 3780 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3781 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3782 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3783 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3784 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3785 | GREP="$ac_cv_path_GREP" |
| 3786 | |
| 3787 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3788 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3789 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3790 | if test "${ac_cv_path_EGREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3792 | else |
| 3793 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3794 | then ac_cv_path_EGREP="$GREP -E" |
| 3795 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3796 | # Extract the first word of "egrep" to use in msg output |
| 3797 | if test -z "$EGREP"; then |
| 3798 | set dummy egrep; ac_prog_name=$2 |
| 3799 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3801 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3802 | ac_path_EGREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3803 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3805 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3806 | do |
| 3807 | IFS=$as_save_IFS |
| 3808 | test -z "$as_dir" && as_dir=. |
| 3809 | for ac_prog in egrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3810 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3811 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3812 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3813 | # Check for GNU ac_path_EGREP and select it if it is found. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3814 | # Check for GNU $ac_path_EGREP |
| 3815 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3816 | *GNU*) |
| 3817 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3818 | *) |
| 3819 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3820 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3821 | while : |
| 3822 | do |
| 3823 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3824 | mv "conftest.tmp" "conftest.in" |
| 3825 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3826 | echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3827 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3828 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3829 | ac_count=`expr $ac_count + 1` |
| 3830 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3831 | # Best one so far, save it but keep looking for a better one |
| 3832 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3833 | ac_path_EGREP_max=$ac_count |
| 3834 | fi |
| 3835 | # 10*(2^10) chars as input seems more than enough |
| 3836 | test $ac_count -gt 10 && break |
| 3837 | done |
| 3838 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3839 | esac |
| 3840 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3841 | |
| 3842 | $ac_path_EGREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3843 | done |
| 3844 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3845 | |
| 3846 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3847 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3848 | |
| 3849 | |
| 3850 | fi |
| 3851 | |
| 3852 | EGREP="$ac_cv_path_EGREP" |
| 3853 | if test -z "$EGREP"; then |
| 3854 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3855 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3856 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3857 | fi |
| 3858 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3859 | else |
| 3860 | ac_cv_path_EGREP=$EGREP |
| 3861 | fi |
| 3862 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3863 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3864 | fi |
| 3865 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3866 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3867 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3868 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3869 | |
| 3870 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3871 | |
| 3872 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3873 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
| 3874 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3875 | /* confdefs.h. */ |
| 3876 | _ACEOF |
| 3877 | cat confdefs.h >>conftest.$ac_ext |
| 3878 | cat >>conftest.$ac_ext <<_ACEOF |
| 3879 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3880 | #ifdef _AIX |
| 3881 | yes |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3882 | #endif |
| 3883 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3884 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3885 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3886 | $EGREP "yes" >/dev/null 2>&1; then |
| 3887 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3888 | echo "${ECHO_T}yes" >&6; } |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3889 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3890 | #define _ALL_SOURCE 1 |
| 3891 | _ACEOF |
| 3892 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3893 | else |
| 3894 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3895 | echo "${ECHO_T}no" >&6; } |
| 3896 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 3897 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3898 | |
| 3899 | |
| 3900 | |
| 3901 | # Check for unsupported systems |
| 3902 | case $ac_sys_system/$ac_sys_release in |
| 3903 | atheos*|Linux*/1*) |
| 3904 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3905 | echo See README for details. |
| 3906 | exit 1;; |
| 3907 | esac |
| 3908 | |
| 3909 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3910 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3911 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3912 | |
| 3913 | # Check whether --with-suffix was given. |
| 3914 | if test "${with_suffix+set}" = set; then |
| 3915 | withval=$with_suffix; |
| 3916 | case $withval in |
| 3917 | no) EXEEXT=;; |
| 3918 | yes) EXEEXT=.exe;; |
| 3919 | *) EXEEXT=$withval;; |
| 3920 | esac |
| 3921 | fi |
| 3922 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3923 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3924 | echo "${ECHO_T}$EXEEXT" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3925 | |
| 3926 | # Test whether we're running on a non-case-sensitive system, in which |
| 3927 | # case we give a warning if no ext is given |
| 3928 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3929 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3930 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3931 | if test ! -d CaseSensitiveTestDir; then |
| 3932 | mkdir CaseSensitiveTestDir |
| 3933 | fi |
| 3934 | |
| 3935 | if test -d casesensitivetestdir |
| 3936 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3937 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3938 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3939 | BUILDEXEEXT=.exe |
| 3940 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3941 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3942 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3943 | BUILDEXEEXT=$EXEEXT |
| 3944 | fi |
| 3945 | rmdir CaseSensitiveTestDir |
| 3946 | |
| 3947 | case $MACHDEP in |
| 3948 | bsdos*) |
| 3949 | case $CC in |
| 3950 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3951 | esac;; |
| 3952 | esac |
| 3953 | |
| 3954 | case $ac_sys_system in |
| 3955 | hp*|HP*) |
| 3956 | case $CC in |
| 3957 | cc|*/cc) CC="$CC -Ae";; |
| 3958 | esac;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3959 | SunOS*) |
| 3960 | # Some functions have a prototype only with that define, e.g. confstr |
| 3961 | |
| 3962 | cat >>confdefs.h <<\_ACEOF |
| 3963 | #define __EXTENSIONS__ 1 |
| 3964 | _ACEOF |
| 3965 | |
| 3966 | ;; |
| 3967 | esac |
| 3968 | |
| 3969 | |
| 3970 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3971 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3972 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3973 | if test -z "$LIBRARY" |
| 3974 | then |
| 3975 | LIBRARY='libpython$(VERSION).a' |
| 3976 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3977 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3978 | echo "${ECHO_T}$LIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3979 | |
| 3980 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 3981 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3982 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3983 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3984 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3985 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3986 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3987 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 3988 | # |
| 3989 | # RUNSHARED is used to run shared python without installed libraries |
| 3990 | # |
| 3991 | # INSTSONAME is the name of the shared library that will be use to install |
| 3992 | # on the system - some systems like version suffix, others don't |
| 3993 | |
| 3994 | |
| 3995 | |
| 3996 | |
| 3997 | |
| 3998 | |
| 3999 | LDLIBRARY="$LIBRARY" |
| 4000 | BLDLIBRARY='$(LDLIBRARY)' |
| 4001 | INSTSONAME='$(LDLIBRARY)' |
| 4002 | DLLLIBRARY='' |
| 4003 | LDLIBRARYDIR='' |
| 4004 | RUNSHARED='' |
| 4005 | |
| 4006 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 4007 | # If CXX is set, and if it is needed to link a main function that was |
| 4008 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 4009 | # python might then depend on the C++ runtime |
| 4010 | # This is altered for AIX in order to build the export list before |
| 4011 | # linking. |
| 4012 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4013 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 4014 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4015 | if test -z "$LINKCC" |
| 4016 | then |
| 4017 | LINKCC='$(PURIFY) $(MAINCC)' |
| 4018 | case $ac_sys_system in |
| 4019 | AIX*) |
| 4020 | exp_extra="\"\"" |
| 4021 | if test $ac_sys_release -ge 5 -o \ |
| 4022 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 4023 | exp_extra="." |
| 4024 | fi |
| 4025 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4026 | QNX*) |
| 4027 | # qcc must be used because the other compilers do not |
| 4028 | # support -N. |
| 4029 | LINKCC=qcc;; |
| 4030 | esac |
| 4031 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4032 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 4033 | echo "${ECHO_T}$LINKCC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4034 | |
| 4035 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4036 | # make sure we default having it set to "no": this is used by |
| 4037 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4038 | # to linker command lines, and failing to detect GNU ld simply results |
| 4039 | # in the same bahaviour as before. |
| 4040 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4041 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4042 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4043 | ac_prog=ld |
| 4044 | if test "$GCC" = yes; then |
| 4045 | ac_prog=`$CC -print-prog-name=ld` |
| 4046 | fi |
| 4047 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4048 | *GNU*) |
| 4049 | GNULD=yes;; |
| 4050 | *) |
| 4051 | GNULD=no;; |
| 4052 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4053 | { echo "$as_me:$LINENO: result: $GNULD" >&5 |
| 4054 | echo "${ECHO_T}$GNULD" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4055 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4056 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 4057 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4058 | # Check whether --enable-shared was given. |
| 4059 | if test "${enable_shared+set}" = set; then |
| 4060 | enableval=$enable_shared; |
| 4061 | fi |
| 4062 | |
| 4063 | |
| 4064 | if test -z "$enable_shared" |
| 4065 | then |
| 4066 | case $ac_sys_system in |
| 4067 | CYGWIN* | atheos*) |
| 4068 | enable_shared="yes";; |
| 4069 | *) |
| 4070 | enable_shared="no";; |
| 4071 | esac |
| 4072 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4073 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4074 | echo "${ECHO_T}$enable_shared" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4075 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4076 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4077 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4078 | # Check whether --enable-profiling was given. |
| 4079 | if test "${enable_profiling+set}" = set; then |
| 4080 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4081 | CC="$CC -pg" |
| 4082 | if test "$cross_compiling" = yes; then |
| 4083 | ac_enable_profiling="no" |
| 4084 | else |
| 4085 | cat >conftest.$ac_ext <<_ACEOF |
| 4086 | /* confdefs.h. */ |
| 4087 | _ACEOF |
| 4088 | cat confdefs.h >>conftest.$ac_ext |
| 4089 | cat >>conftest.$ac_ext <<_ACEOF |
| 4090 | /* end confdefs.h. */ |
| 4091 | int main() { return 0; } |
| 4092 | _ACEOF |
| 4093 | rm -f conftest$ac_exeext |
| 4094 | if { (ac_try="$ac_link" |
| 4095 | case "(($ac_try" in |
| 4096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4097 | *) ac_try_echo=$ac_try;; |
| 4098 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4100 | (eval "$ac_link") 2>&5 |
| 4101 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4103 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4104 | { (case "(($ac_try" in |
| 4105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4106 | *) ac_try_echo=$ac_try;; |
| 4107 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4109 | (eval "$ac_try") 2>&5 |
| 4110 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4112 | (exit $ac_status); }; }; then |
| 4113 | ac_enable_profiling="yes" |
| 4114 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4115 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4116 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4118 | |
| 4119 | ( exit $ac_status ) |
| 4120 | ac_enable_profiling="no" |
| 4121 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4122 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4123 | fi |
| 4124 | |
| 4125 | |
| 4126 | CC="$ac_save_cc" |
| 4127 | fi |
| 4128 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4129 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4130 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4131 | |
| 4132 | case "$ac_enable_profiling" in |
| 4133 | "yes") |
| 4134 | BASECFLAGS="-pg $BASECFLAGS" |
| 4135 | LDFLAGS="-pg $LDFLAGS" |
| 4136 | ;; |
| 4137 | esac |
| 4138 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4139 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4140 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4141 | |
| 4142 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4143 | # library that we build, but we do not want to link against it (we |
| 4144 | # will find it with a -framework option). For this reason there is an |
| 4145 | # extra variable BLDLIBRARY against which Python and the extension |
| 4146 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4147 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4148 | if test "$enable_framework" |
| 4149 | then |
| 4150 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4151 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4152 | BLDLIBRARY='' |
| 4153 | else |
| 4154 | BLDLIBRARY='$(LDLIBRARY)' |
| 4155 | fi |
| 4156 | |
| 4157 | # Other platforms follow |
| 4158 | if test $enable_shared = "yes"; then |
| 4159 | |
| 4160 | cat >>confdefs.h <<\_ACEOF |
| 4161 | #define Py_ENABLE_SHARED 1 |
| 4162 | _ACEOF |
| 4163 | |
| 4164 | case $ac_sys_system in |
| 4165 | BeOS*) |
| 4166 | LDLIBRARY='libpython$(VERSION).so' |
| 4167 | ;; |
| 4168 | CYGWIN*) |
| 4169 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4170 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4171 | ;; |
| 4172 | SunOS*) |
| 4173 | LDLIBRARY='libpython$(VERSION).so' |
| 4174 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4175 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4176 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4177 | ;; |
| 4178 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4179 | LDLIBRARY='libpython$(VERSION).so' |
| 4180 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4181 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4182 | case $ac_sys_system in |
| 4183 | FreeBSD*) |
| 4184 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4185 | ;; |
| 4186 | esac |
| 4187 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4188 | ;; |
| 4189 | hp*|HP*) |
| 4190 | case `uname -m` in |
| 4191 | ia64) |
| 4192 | LDLIBRARY='libpython$(VERSION).so' |
| 4193 | ;; |
| 4194 | *) |
| 4195 | LDLIBRARY='libpython$(VERSION).sl' |
| 4196 | ;; |
| 4197 | esac |
| 4198 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4199 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4200 | ;; |
| 4201 | OSF*) |
| 4202 | LDLIBRARY='libpython$(VERSION).so' |
| 4203 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4204 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4205 | ;; |
| 4206 | atheos*) |
| 4207 | LDLIBRARY='libpython$(VERSION).so' |
| 4208 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4209 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4210 | ;; |
| 4211 | Darwin*) |
| 4212 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4213 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4214 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4215 | ;; |
| 4216 | |
| 4217 | esac |
| 4218 | else # shared is disabled |
| 4219 | case $ac_sys_system in |
| 4220 | CYGWIN*) |
| 4221 | BLDLIBRARY='$(LIBRARY)' |
| 4222 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4223 | ;; |
| 4224 | esac |
| 4225 | fi |
| 4226 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4227 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4228 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4229 | |
| 4230 | if test -n "$ac_tool_prefix"; then |
| 4231 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4232 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4233 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4235 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4237 | else |
| 4238 | if test -n "$RANLIB"; then |
| 4239 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4240 | else |
| 4241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4242 | for as_dir in $PATH |
| 4243 | do |
| 4244 | IFS=$as_save_IFS |
| 4245 | test -z "$as_dir" && as_dir=. |
| 4246 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4247 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4248 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4250 | break 2 |
| 4251 | fi |
| 4252 | done |
| 4253 | done |
| 4254 | IFS=$as_save_IFS |
| 4255 | |
| 4256 | fi |
| 4257 | fi |
| 4258 | RANLIB=$ac_cv_prog_RANLIB |
| 4259 | if test -n "$RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4260 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4261 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4262 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4263 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4264 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4265 | fi |
| 4266 | |
| 4267 | |
| 4268 | fi |
| 4269 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4270 | ac_ct_RANLIB=$RANLIB |
| 4271 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4272 | set dummy ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4273 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4274 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4275 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4277 | else |
| 4278 | if test -n "$ac_ct_RANLIB"; then |
| 4279 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4280 | else |
| 4281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4282 | for as_dir in $PATH |
| 4283 | do |
| 4284 | IFS=$as_save_IFS |
| 4285 | test -z "$as_dir" && as_dir=. |
| 4286 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4287 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4288 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4289 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4290 | break 2 |
| 4291 | fi |
| 4292 | done |
| 4293 | done |
| 4294 | IFS=$as_save_IFS |
| 4295 | |
| 4296 | fi |
| 4297 | fi |
| 4298 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4299 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4300 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4301 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4302 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4303 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4304 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4305 | fi |
| 4306 | |
| 4307 | if test "x$ac_ct_RANLIB" = x; then |
| 4308 | RANLIB=":" |
| 4309 | else |
| 4310 | case $cross_compiling:$ac_tool_warned in |
| 4311 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4312 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4313 | whose name does not start with the host triplet. If you think this |
| 4314 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4315 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4316 | whose name does not start with the host triplet. If you think this |
| 4317 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4318 | ac_tool_warned=yes ;; |
| 4319 | esac |
| 4320 | RANLIB=$ac_ct_RANLIB |
| 4321 | fi |
| 4322 | else |
| 4323 | RANLIB="$ac_cv_prog_RANLIB" |
| 4324 | fi |
| 4325 | |
| 4326 | |
| 4327 | for ac_prog in ar aal |
| 4328 | do |
| 4329 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4330 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4331 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4333 | if test "${ac_cv_prog_AR+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4335 | else |
| 4336 | if test -n "$AR"; then |
| 4337 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4338 | else |
| 4339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4340 | for as_dir in $PATH |
| 4341 | do |
| 4342 | IFS=$as_save_IFS |
| 4343 | test -z "$as_dir" && as_dir=. |
| 4344 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4345 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4346 | ac_cv_prog_AR="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4348 | break 2 |
| 4349 | fi |
| 4350 | done |
| 4351 | done |
| 4352 | IFS=$as_save_IFS |
| 4353 | |
| 4354 | fi |
| 4355 | fi |
| 4356 | AR=$ac_cv_prog_AR |
| 4357 | if test -n "$AR"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4358 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4359 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4360 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4361 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4362 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4363 | fi |
| 4364 | |
| 4365 | |
| 4366 | test -n "$AR" && break |
| 4367 | done |
| 4368 | test -n "$AR" || AR="ar" |
| 4369 | |
| 4370 | |
| 4371 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 4372 | |
| 4373 | if test -z "$ARFLAGS" |
| 4374 | then |
| 4375 | ARFLAGS="rc" |
| 4376 | fi |
| 4377 | |
| 4378 | |
| 4379 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4380 | set dummy svnversion; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4381 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4383 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4385 | else |
| 4386 | if test -n "$SVNVERSION"; then |
| 4387 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4388 | else |
| 4389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4390 | for as_dir in $PATH |
| 4391 | do |
| 4392 | IFS=$as_save_IFS |
| 4393 | test -z "$as_dir" && as_dir=. |
| 4394 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4395 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4396 | ac_cv_prog_SVNVERSION="found" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4397 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4398 | break 2 |
| 4399 | fi |
| 4400 | done |
| 4401 | done |
| 4402 | IFS=$as_save_IFS |
| 4403 | |
| 4404 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4405 | fi |
| 4406 | fi |
| 4407 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4408 | if test -n "$SVNVERSION"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4409 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4410 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4411 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4412 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4413 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4414 | fi |
| 4415 | |
| 4416 | |
| 4417 | if test $SVNVERSION = found |
| 4418 | then |
| 4419 | SVNVERSION="svnversion \$(srcdir)" |
| 4420 | else |
| 4421 | SVNVERSION="echo Unversioned directory" |
| 4422 | fi |
| 4423 | |
| 4424 | case $MACHDEP in |
| 4425 | bsdos*|hp*|HP*) |
| 4426 | # install -d does not work on BSDI or HP-UX |
| 4427 | if test -z "$INSTALL" |
| 4428 | then |
| 4429 | INSTALL="${srcdir}/install-sh -c" |
| 4430 | fi |
| 4431 | esac |
| 4432 | ac_aux_dir= |
| 4433 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4434 | if test -f "$ac_dir/install-sh"; then |
| 4435 | ac_aux_dir=$ac_dir |
| 4436 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4437 | break |
| 4438 | elif test -f "$ac_dir/install.sh"; then |
| 4439 | ac_aux_dir=$ac_dir |
| 4440 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4441 | break |
| 4442 | elif test -f "$ac_dir/shtool"; then |
| 4443 | ac_aux_dir=$ac_dir |
| 4444 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4445 | break |
| 4446 | fi |
| 4447 | done |
| 4448 | if test -z "$ac_aux_dir"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4449 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4450 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4451 | { (exit 1); exit 1; }; } |
| 4452 | fi |
| 4453 | |
| 4454 | # These three variables are undocumented and unsupported, |
| 4455 | # and are intended to be withdrawn in a future Autoconf release. |
| 4456 | # They can cause serious problems if a builder's source tree is in a directory |
| 4457 | # whose full name contains unusual characters. |
| 4458 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4459 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4460 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4461 | |
| 4462 | |
| 4463 | # Find a good install program. We prefer a C program (faster), |
| 4464 | # so one script is as good as another. But avoid the broken or |
| 4465 | # incompatible versions: |
| 4466 | # SysV /etc/install, /usr/sbin/install |
| 4467 | # SunOS /usr/etc/install |
| 4468 | # IRIX /sbin/install |
| 4469 | # AIX /bin/install |
| 4470 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4471 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4472 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4473 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4474 | # OS/2's system install, which has a completely different semantic |
| 4475 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4476 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4477 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4478 | if test -z "$INSTALL"; then |
| 4479 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4481 | else |
| 4482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4483 | for as_dir in $PATH |
| 4484 | do |
| 4485 | IFS=$as_save_IFS |
| 4486 | test -z "$as_dir" && as_dir=. |
| 4487 | # Account for people who put trailing slashes in PATH elements. |
| 4488 | case $as_dir/ in |
| 4489 | ./ | .// | /cC/* | \ |
| 4490 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4491 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4492 | /usr/ucb/* ) ;; |
| 4493 | *) |
| 4494 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4495 | # Don't use installbsd from OSF since it installs stuff as root |
| 4496 | # by default. |
| 4497 | for ac_prog in ginstall scoinst install; do |
| 4498 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4499 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4500 | if test $ac_prog = install && |
| 4501 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4502 | # AIX install. It has an incompatible calling convention. |
| 4503 | : |
| 4504 | elif test $ac_prog = install && |
| 4505 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4506 | # program-specific install script used by HP pwplus--don't use. |
| 4507 | : |
| 4508 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4509 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4510 | break 3 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4511 | fi |
| 4512 | fi |
| 4513 | done |
| 4514 | done |
| 4515 | ;; |
| 4516 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4517 | done |
| 4518 | IFS=$as_save_IFS |
| 4519 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4520 | |
| 4521 | fi |
| 4522 | if test "${ac_cv_path_install+set}" = set; then |
| 4523 | INSTALL=$ac_cv_path_install |
| 4524 | else |
| 4525 | # As a last resort, use the slow shell script. Don't cache a |
| 4526 | # value for INSTALL within a source directory, because that will |
| 4527 | # break other packages using the cache if that directory is |
| 4528 | # removed, or if the value is a relative name. |
| 4529 | INSTALL=$ac_install_sh |
| 4530 | fi |
| 4531 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4532 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4533 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4534 | |
| 4535 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4536 | # It thinks the first close brace ends the variable substitution. |
| 4537 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4538 | |
| 4539 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4540 | |
| 4541 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4542 | |
| 4543 | |
| 4544 | # Not every filesystem supports hard links |
| 4545 | |
| 4546 | if test -z "$LN" ; then |
| 4547 | case $ac_sys_system in |
| 4548 | BeOS*) LN="ln -s";; |
| 4549 | CYGWIN*) LN="ln -s";; |
| 4550 | atheos*) LN="ln -s";; |
| 4551 | *) LN=ln;; |
| 4552 | esac |
| 4553 | fi |
| 4554 | |
| 4555 | # Check for --with-pydebug |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4556 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4557 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4558 | |
| 4559 | # Check whether --with-pydebug was given. |
| 4560 | if test "${with_pydebug+set}" = set; then |
| 4561 | withval=$with_pydebug; |
| 4562 | if test "$withval" != no |
| 4563 | then |
| 4564 | |
| 4565 | cat >>confdefs.h <<\_ACEOF |
| 4566 | #define Py_DEBUG 1 |
| 4567 | _ACEOF |
| 4568 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4569 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4570 | echo "${ECHO_T}yes" >&6; }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4571 | Py_DEBUG='true' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4572 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4573 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4574 | fi |
| 4575 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4576 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4577 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4578 | fi |
| 4579 | |
| 4580 | |
| 4581 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4582 | # merged with this chunk of code? |
| 4583 | |
| 4584 | # Optimizer/debugger flags |
| 4585 | # ------------------------ |
| 4586 | # (The following bit of code is complicated enough - please keep things |
| 4587 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4588 | |
| 4589 | # There are two parallel sets of case statements below, one that checks to |
| 4590 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4591 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4592 | # user set OPT. |
| 4593 | |
| 4594 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4595 | # it on the command line |
| 4596 | |
| 4597 | if test -z "$OPT" |
| 4598 | then |
| 4599 | case $GCC in |
| 4600 | yes) |
| 4601 | if test "$CC" != 'g++' ; then |
| 4602 | STRICT_PROTO="-Wstrict-prototypes" |
| 4603 | fi |
| 4604 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4605 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4606 | WRAP="-fwrapv" |
| 4607 | fi |
| 4608 | case $ac_cv_prog_cc_g in |
| 4609 | yes) |
| 4610 | if test "$Py_DEBUG" = 'true' ; then |
| 4611 | # Optimization messes up debuggers, so turn it off for |
| 4612 | # debug builds. |
| 4613 | OPT="-g -Wall $STRICT_PROTO" |
| 4614 | else |
| 4615 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 4616 | fi |
| 4617 | ;; |
| 4618 | *) |
| 4619 | OPT="-O3 -Wall $STRICT_PROTO" |
| 4620 | ;; |
| 4621 | esac |
| 4622 | case $ac_sys_system in |
| 4623 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4624 | ;; |
| 4625 | esac |
| 4626 | ;; |
| 4627 | |
| 4628 | *) |
| 4629 | OPT="-O" |
| 4630 | ;; |
| 4631 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4632 | fi |
| 4633 | |
| 4634 | |
| 4635 | |
| 4636 | # The -arch flags for universal builds on OSX |
| 4637 | UNIVERSAL_ARCH_FLAGS= |
| 4638 | |
| 4639 | |
| 4640 | # tweak BASECFLAGS based on compiler and platform |
| 4641 | case $GCC in |
| 4642 | yes) |
| 4643 | # Python violates C99 rules, by casting between incompatible |
| 4644 | # pointer types. GCC may generate bad code as a result of that, |
| 4645 | # so use -fno-strict-aliasing if supported. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4646 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4647 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4648 | ac_save_cc="$CC" |
| 4649 | CC="$CC -fno-strict-aliasing" |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4650 | if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then |
| 4651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4652 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4653 | cat >conftest.$ac_ext <<_ACEOF |
| 4654 | /* confdefs.h. */ |
| 4655 | _ACEOF |
| 4656 | cat confdefs.h >>conftest.$ac_ext |
| 4657 | cat >>conftest.$ac_ext <<_ACEOF |
| 4658 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4659 | |
| 4660 | int |
| 4661 | main () |
| 4662 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4663 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4664 | ; |
| 4665 | return 0; |
| 4666 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4667 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4668 | rm -f conftest.$ac_objext |
| 4669 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4670 | case "(($ac_try" in |
| 4671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4672 | *) ac_try_echo=$ac_try;; |
| 4673 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4675 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4676 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4678 | rm -f conftest.er1 |
| 4679 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4681 | (exit $ac_status); } && { |
| 4682 | test -z "$ac_c_werror_flag" || |
| 4683 | test ! -s conftest.err |
| 4684 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4685 | ac_cv_no_strict_aliasing_ok=yes |
| 4686 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4687 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4689 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4690 | ac_cv_no_strict_aliasing_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4691 | fi |
| 4692 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4694 | fi |
| 4695 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4696 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4697 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4698 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4699 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4700 | then |
| 4701 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4702 | fi |
| 4703 | |
| 4704 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4705 | # support. Without this, treatment of subnormals doesn't follow |
| 4706 | # the standard. |
| 4707 | case $ac_sys_machine in |
| 4708 | alpha*) |
| 4709 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4710 | ;; |
| 4711 | esac |
| 4712 | |
| 4713 | case $ac_sys_system in |
| 4714 | SCO_SV*) |
| 4715 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4716 | ;; |
| 4717 | # is there any other compiler on Darwin besides gcc? |
| 4718 | Darwin*) |
| 4719 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4720 | # used to be here, but non-Apple gcc doesn't accept them. |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4721 | if test "${CC}" = gcc |
| 4722 | then |
| 4723 | { echo "$as_me:$LINENO: checking which compiler should be used" >&5 |
| 4724 | echo $ECHO_N "checking which compiler should be used... $ECHO_C" >&6; } |
| 4725 | case "${UNIVERSALSDK}" in |
| 4726 | */MacOSX10.4u.sdk) |
| 4727 | # Build using 10.4 SDK, force usage of gcc when the |
| 4728 | # compiler is gcc, otherwise the user will get very |
| 4729 | # confusing error messages when building on OSX 10.6 |
| 4730 | CC=gcc-4.0 |
| 4731 | CPP=cpp-4.0 |
| 4732 | ;; |
| 4733 | esac |
| 4734 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 4735 | echo "${ECHO_T}$CC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4736 | fi |
| 4737 | |
| 4738 | # Calculate the right deployment target for this build. |
| 4739 | # |
| 4740 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4741 | if test ${cur_target} '>' 10.2; then |
| 4742 | cur_target=10.3 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4743 | if test ${enable_universalsdk}; then |
| 4744 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 4745 | # Ensure that the default platform for a |
| 4746 | # 4-way universal build is OSX 10.5, |
| 4747 | # that's the first OS release where |
| 4748 | # 4-way builds make sense. |
| 4749 | cur_target='10.5' |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 4750 | |
| 4751 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 4752 | cur_target='10.5' |
| 4753 | |
| 4754 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 4755 | cur_target='10.5' |
| 4756 | |
| 4757 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 4758 | cur_target='10.5' |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4759 | fi |
| 4760 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 4761 | if test `/usr/bin/arch` = "i386"; then |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4762 | # On Intel macs default to a deployment |
| 4763 | # target of 10.4, that's the first OSX |
| 4764 | # release with Intel support. |
| 4765 | cur_target="10.4" |
| 4766 | fi |
| 4767 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4768 | fi |
| 4769 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 4770 | |
| 4771 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 4772 | # environment with a value that is the same as what we'll use |
| 4773 | # in the Makefile to ensure that we'll get the same compiler |
| 4774 | # environment during configure and build time. |
| 4775 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 4776 | export MACOSX_DEPLOYMENT_TARGET |
| 4777 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 4778 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4779 | if test "${enable_universalsdk}"; then |
| 4780 | UNIVERSAL_ARCH_FLAGS="" |
| 4781 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 4782 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 4783 | ARCH_RUN_32BIT="" |
| 4784 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 4785 | |
| 4786 | |
| 4787 | # You have to use different flags on various versions of |
| 4788 | # OSX to extract PPC code from an universal binary, basically |
| 4789 | # '-arch ppc' on OSX 10.4 and '-arch ppc7400' on anything |
| 4790 | # newer. |
| 4791 | # Because '-arch pp7400' works on OSX 10.5 or higher this |
| 4792 | # test is only present in the '32-bit' branch, all other |
| 4793 | # branches require OSX 10.5 to compile. |
| 4794 | |
| 4795 | { echo "$as_me:$LINENO: checking lipo flag for extracting ppc code" >&5 |
| 4796 | echo $ECHO_N "checking lipo flag for extracting ppc code... $ECHO_C" >&6; } |
| 4797 | FN="test.$$" |
| 4798 | cat >${FN}.c <<-EOF |
| 4799 | int main() { return 0; } |
| 4800 | EOF |
| 4801 | ${CC} ${CFLAGS} -arch ppc -arch i386 -o ${FN} ${FN}.c -isysroot ${UNIVERSALSDK} |
| 4802 | if test $? != 0 ; then |
| 4803 | rm ${FN} ${FN}.c |
| 4804 | { echo "$as_me:$LINENO: result: failed, assumee -extract ppc7400" >&5 |
| 4805 | echo "${ECHO_T}failed, assumee -extract ppc7400" >&6; } |
| 4806 | else |
| 4807 | lipo -extract -output "${FN}.out" -arch ppc7400 "${FN}" 2>/dev/null |
| 4808 | if test $? != 0 ; then |
| 4809 | LIPO_32BIT_FLAGS="-extract ppc -extract i386" |
| 4810 | { echo "$as_me:$LINENO: result: \"'-extract ppc'\"" >&5 |
| 4811 | echo "${ECHO_T}\"'-extract ppc'\"" >&6; } |
| 4812 | else |
| 4813 | { echo "$as_me:$LINENO: result: \"'-extract ppc7400'\"" >&5 |
| 4814 | echo "${ECHO_T}\"'-extract ppc7400'\"" >&6; } |
| 4815 | fi |
| 4816 | rm -f ${FN} ${FN}.c ${FN}.out |
| 4817 | fi |
| 4818 | |
| 4819 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 4820 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 4821 | LIPO_32BIT_FLAGS="" |
| 4822 | ARCH_RUN_32BIT="true" |
| 4823 | |
| 4824 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 4825 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 4826 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 4827 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4828 | |
| 4829 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
| 4830 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 4831 | LIPO_32BIT_FLAGS="-extract i386" |
Ronald Oussoren | 92397ce | 2010-01-17 19:32:00 +0000 | [diff] [blame] | 4832 | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4833 | |
| 4834 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
| 4835 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 4836 | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
Ronald Oussoren | 9922f17 | 2010-02-11 13:19:34 +0000 | [diff] [blame] | 4837 | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 4838 | |
| 4839 | else |
| 4840 | { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5 |
| 4841 | echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;} |
| 4842 | { (exit 1); exit 1; }; } |
| 4843 | |
| 4844 | fi |
| 4845 | |
| 4846 | |
| 4847 | BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 4848 | tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4849 | if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
| 4850 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 4851 | CPPFLAGS="-isysroot ${UNIVERSALSDK}" |
| 4852 | fi |
| 4853 | |
| 4854 | fi |
| 4855 | |
| 4856 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4857 | ;; |
| 4858 | OSF*) |
| 4859 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4860 | ;; |
| 4861 | esac |
| 4862 | ;; |
| 4863 | |
| 4864 | *) |
| 4865 | case $ac_sys_system in |
| 4866 | OpenUNIX*|UnixWare*) |
| 4867 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4868 | ;; |
| 4869 | OSF*) |
| 4870 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4871 | ;; |
| 4872 | SCO_SV*) |
| 4873 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4874 | ;; |
| 4875 | esac |
| 4876 | ;; |
| 4877 | esac |
| 4878 | |
| 4879 | if test "$Py_DEBUG" = 'true'; then |
| 4880 | : |
| 4881 | else |
| 4882 | OPT="-DNDEBUG $OPT" |
| 4883 | fi |
| 4884 | |
| 4885 | if test "$ac_arch_flags" |
| 4886 | then |
| 4887 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 4888 | fi |
| 4889 | |
| 4890 | # disable check for icc since it seems to pass, but generates a warning |
| 4891 | if test "$CC" = icc |
| 4892 | then |
| 4893 | ac_cv_opt_olimit_ok=no |
| 4894 | fi |
| 4895 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4896 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4897 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4898 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4900 | else |
| 4901 | ac_save_cc="$CC" |
| 4902 | CC="$CC -OPT:Olimit=0" |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4903 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4904 | /* confdefs.h. */ |
| 4905 | _ACEOF |
| 4906 | cat confdefs.h >>conftest.$ac_ext |
| 4907 | cat >>conftest.$ac_ext <<_ACEOF |
| 4908 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4909 | |
| 4910 | int |
| 4911 | main () |
| 4912 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4913 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4914 | ; |
| 4915 | return 0; |
| 4916 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4917 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4918 | rm -f conftest.$ac_objext |
| 4919 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4920 | case "(($ac_try" in |
| 4921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4922 | *) ac_try_echo=$ac_try;; |
| 4923 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4925 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4926 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4928 | rm -f conftest.er1 |
| 4929 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4931 | (exit $ac_status); } && { |
| 4932 | test -z "$ac_c_werror_flag" || |
| 4933 | test ! -s conftest.err |
| 4934 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4935 | ac_cv_opt_olimit_ok=yes |
| 4936 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4937 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4939 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4940 | ac_cv_opt_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4941 | fi |
| 4942 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4944 | CC="$ac_save_cc" |
| 4945 | fi |
| 4946 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4947 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4948 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4949 | if test $ac_cv_opt_olimit_ok = yes; then |
| 4950 | case $ac_sys_system in |
| 4951 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4952 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4953 | # environment? |
| 4954 | Darwin*) |
| 4955 | ;; |
| 4956 | *) |
| 4957 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4958 | ;; |
| 4959 | esac |
| 4960 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4961 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4962 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4963 | if test "${ac_cv_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4965 | else |
| 4966 | ac_save_cc="$CC" |
| 4967 | CC="$CC -Olimit 1500" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4968 | cat >conftest.$ac_ext <<_ACEOF |
| 4969 | /* confdefs.h. */ |
| 4970 | _ACEOF |
| 4971 | cat confdefs.h >>conftest.$ac_ext |
| 4972 | cat >>conftest.$ac_ext <<_ACEOF |
| 4973 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4974 | |
| 4975 | int |
| 4976 | main () |
| 4977 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4978 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4979 | ; |
| 4980 | return 0; |
| 4981 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4982 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4983 | rm -f conftest.$ac_objext |
| 4984 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4985 | case "(($ac_try" in |
| 4986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4987 | *) ac_try_echo=$ac_try;; |
| 4988 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4990 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4991 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4993 | rm -f conftest.er1 |
| 4994 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4996 | (exit $ac_status); } && { |
| 4997 | test -z "$ac_c_werror_flag" || |
| 4998 | test ! -s conftest.err |
| 4999 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5000 | ac_cv_olimit_ok=yes |
| 5001 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5002 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5004 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5005 | ac_cv_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5006 | fi |
| 5007 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 5008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5009 | CC="$ac_save_cc" |
| 5010 | fi |
| 5011 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5012 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 5013 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5014 | if test $ac_cv_olimit_ok = yes; then |
| 5015 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 5016 | fi |
| 5017 | fi |
| 5018 | |
| 5019 | # Check whether GCC supports PyArg_ParseTuple format |
| 5020 | if test "$GCC" = "yes" |
| 5021 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5022 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 5023 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5024 | save_CFLAGS=$CFLAGS |
| 5025 | CFLAGS="$CFLAGS -Werror" |
| 5026 | cat >conftest.$ac_ext <<_ACEOF |
| 5027 | /* confdefs.h. */ |
| 5028 | _ACEOF |
| 5029 | cat confdefs.h >>conftest.$ac_ext |
| 5030 | cat >>conftest.$ac_ext <<_ACEOF |
| 5031 | /* end confdefs.h. */ |
| 5032 | |
| 5033 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 5034 | |
| 5035 | int |
| 5036 | main () |
| 5037 | { |
| 5038 | |
| 5039 | ; |
| 5040 | return 0; |
| 5041 | } |
| 5042 | _ACEOF |
| 5043 | rm -f conftest.$ac_objext |
| 5044 | if { (ac_try="$ac_compile" |
| 5045 | case "(($ac_try" in |
| 5046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5047 | *) ac_try_echo=$ac_try;; |
| 5048 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5050 | (eval "$ac_compile") 2>conftest.er1 |
| 5051 | ac_status=$? |
| 5052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5053 | rm -f conftest.er1 |
| 5054 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5056 | (exit $ac_status); } && { |
| 5057 | test -z "$ac_c_werror_flag" || |
| 5058 | test ! -s conftest.err |
| 5059 | } && test -s conftest.$ac_objext; then |
| 5060 | |
| 5061 | cat >>confdefs.h <<\_ACEOF |
| 5062 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 5063 | _ACEOF |
| 5064 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5065 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5066 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5067 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5068 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5070 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5071 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5072 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5073 | |
| 5074 | fi |
| 5075 | |
| 5076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5077 | CFLAGS=$save_CFLAGS |
| 5078 | fi |
| 5079 | |
| 5080 | # On some compilers, pthreads are available without further options |
| 5081 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 5082 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 5083 | # So we have to see first whether pthreads are available without |
| 5084 | # options before we can check whether -Kpthread improves anything. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5085 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 5086 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5087 | if test "${ac_cv_pthread_is_default+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5089 | else |
| 5090 | if test "$cross_compiling" = yes; then |
| 5091 | ac_cv_pthread_is_default=no |
| 5092 | else |
| 5093 | cat >conftest.$ac_ext <<_ACEOF |
| 5094 | /* confdefs.h. */ |
| 5095 | _ACEOF |
| 5096 | cat confdefs.h >>conftest.$ac_ext |
| 5097 | cat >>conftest.$ac_ext <<_ACEOF |
| 5098 | /* end confdefs.h. */ |
| 5099 | |
| 5100 | #include <pthread.h> |
| 5101 | |
| 5102 | void* routine(void* p){return NULL;} |
| 5103 | |
| 5104 | int main(){ |
| 5105 | pthread_t p; |
| 5106 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5107 | return 1; |
| 5108 | (void)pthread_detach(p); |
| 5109 | return 0; |
| 5110 | } |
| 5111 | |
| 5112 | _ACEOF |
| 5113 | rm -f conftest$ac_exeext |
| 5114 | if { (ac_try="$ac_link" |
| 5115 | case "(($ac_try" in |
| 5116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5117 | *) ac_try_echo=$ac_try;; |
| 5118 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5120 | (eval "$ac_link") 2>&5 |
| 5121 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5123 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5124 | { (case "(($ac_try" in |
| 5125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5126 | *) ac_try_echo=$ac_try;; |
| 5127 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5129 | (eval "$ac_try") 2>&5 |
| 5130 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5132 | (exit $ac_status); }; }; then |
| 5133 | |
| 5134 | ac_cv_pthread_is_default=yes |
| 5135 | ac_cv_kthread=no |
| 5136 | ac_cv_pthread=no |
| 5137 | |
| 5138 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5139 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5140 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5142 | |
| 5143 | ( exit $ac_status ) |
| 5144 | ac_cv_pthread_is_default=no |
| 5145 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5146 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5147 | fi |
| 5148 | |
| 5149 | |
| 5150 | |
| 5151 | fi |
| 5152 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5153 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5154 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5155 | |
| 5156 | |
| 5157 | if test $ac_cv_pthread_is_default = yes |
| 5158 | then |
| 5159 | ac_cv_kpthread=no |
| 5160 | else |
| 5161 | # -Kpthread, if available, provides the right #defines |
| 5162 | # and linker options to make pthread_create available |
| 5163 | # Some compilers won't report that they do not support -Kpthread, |
| 5164 | # so we need to run a program to see whether it really made the |
| 5165 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5166 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5167 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5168 | if test "${ac_cv_kpthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5170 | else |
| 5171 | ac_save_cc="$CC" |
| 5172 | CC="$CC -Kpthread" |
| 5173 | if test "$cross_compiling" = yes; then |
| 5174 | ac_cv_kpthread=no |
| 5175 | else |
| 5176 | cat >conftest.$ac_ext <<_ACEOF |
| 5177 | /* confdefs.h. */ |
| 5178 | _ACEOF |
| 5179 | cat confdefs.h >>conftest.$ac_ext |
| 5180 | cat >>conftest.$ac_ext <<_ACEOF |
| 5181 | /* end confdefs.h. */ |
| 5182 | |
| 5183 | #include <pthread.h> |
| 5184 | |
| 5185 | void* routine(void* p){return NULL;} |
| 5186 | |
| 5187 | int main(){ |
| 5188 | pthread_t p; |
| 5189 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5190 | return 1; |
| 5191 | (void)pthread_detach(p); |
| 5192 | return 0; |
| 5193 | } |
| 5194 | |
| 5195 | _ACEOF |
| 5196 | rm -f conftest$ac_exeext |
| 5197 | if { (ac_try="$ac_link" |
| 5198 | case "(($ac_try" in |
| 5199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5200 | *) ac_try_echo=$ac_try;; |
| 5201 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5203 | (eval "$ac_link") 2>&5 |
| 5204 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5206 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5207 | { (case "(($ac_try" in |
| 5208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5209 | *) ac_try_echo=$ac_try;; |
| 5210 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5212 | (eval "$ac_try") 2>&5 |
| 5213 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5215 | (exit $ac_status); }; }; then |
| 5216 | ac_cv_kpthread=yes |
| 5217 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5218 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5219 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5221 | |
| 5222 | ( exit $ac_status ) |
| 5223 | ac_cv_kpthread=no |
| 5224 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5225 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5226 | fi |
| 5227 | |
| 5228 | |
| 5229 | CC="$ac_save_cc" |
| 5230 | fi |
| 5231 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5232 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5233 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5234 | fi |
| 5235 | |
| 5236 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5237 | then |
| 5238 | # -Kthread, if available, provides the right #defines |
| 5239 | # and linker options to make pthread_create available |
| 5240 | # Some compilers won't report that they do not support -Kthread, |
| 5241 | # so we need to run a program to see whether it really made the |
| 5242 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5243 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5244 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5245 | if test "${ac_cv_kthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5247 | else |
| 5248 | ac_save_cc="$CC" |
| 5249 | CC="$CC -Kthread" |
| 5250 | if test "$cross_compiling" = yes; then |
| 5251 | ac_cv_kthread=no |
| 5252 | else |
| 5253 | cat >conftest.$ac_ext <<_ACEOF |
| 5254 | /* confdefs.h. */ |
| 5255 | _ACEOF |
| 5256 | cat confdefs.h >>conftest.$ac_ext |
| 5257 | cat >>conftest.$ac_ext <<_ACEOF |
| 5258 | /* end confdefs.h. */ |
| 5259 | |
| 5260 | #include <pthread.h> |
| 5261 | |
| 5262 | void* routine(void* p){return NULL;} |
| 5263 | |
| 5264 | int main(){ |
| 5265 | pthread_t p; |
| 5266 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5267 | return 1; |
| 5268 | (void)pthread_detach(p); |
| 5269 | return 0; |
| 5270 | } |
| 5271 | |
| 5272 | _ACEOF |
| 5273 | rm -f conftest$ac_exeext |
| 5274 | if { (ac_try="$ac_link" |
| 5275 | case "(($ac_try" in |
| 5276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5277 | *) ac_try_echo=$ac_try;; |
| 5278 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5280 | (eval "$ac_link") 2>&5 |
| 5281 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5283 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5284 | { (case "(($ac_try" in |
| 5285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5286 | *) ac_try_echo=$ac_try;; |
| 5287 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5289 | (eval "$ac_try") 2>&5 |
| 5290 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5292 | (exit $ac_status); }; }; then |
| 5293 | ac_cv_kthread=yes |
| 5294 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5295 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5296 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5298 | |
| 5299 | ( exit $ac_status ) |
| 5300 | ac_cv_kthread=no |
| 5301 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5302 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5303 | fi |
| 5304 | |
| 5305 | |
| 5306 | CC="$ac_save_cc" |
| 5307 | fi |
| 5308 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5309 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5310 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5311 | fi |
| 5312 | |
| 5313 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5314 | then |
| 5315 | # -pthread, if available, provides the right #defines |
| 5316 | # and linker options to make pthread_create available |
| 5317 | # Some compilers won't report that they do not support -pthread, |
| 5318 | # so we need to run a program to see whether it really made the |
| 5319 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5320 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5321 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5322 | if test "${ac_cv_thread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5324 | else |
| 5325 | ac_save_cc="$CC" |
| 5326 | CC="$CC -pthread" |
| 5327 | if test "$cross_compiling" = yes; then |
| 5328 | ac_cv_pthread=no |
| 5329 | else |
| 5330 | cat >conftest.$ac_ext <<_ACEOF |
| 5331 | /* confdefs.h. */ |
| 5332 | _ACEOF |
| 5333 | cat confdefs.h >>conftest.$ac_ext |
| 5334 | cat >>conftest.$ac_ext <<_ACEOF |
| 5335 | /* end confdefs.h. */ |
| 5336 | |
| 5337 | #include <pthread.h> |
| 5338 | |
| 5339 | void* routine(void* p){return NULL;} |
| 5340 | |
| 5341 | int main(){ |
| 5342 | pthread_t p; |
| 5343 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5344 | return 1; |
| 5345 | (void)pthread_detach(p); |
| 5346 | return 0; |
| 5347 | } |
| 5348 | |
| 5349 | _ACEOF |
| 5350 | rm -f conftest$ac_exeext |
| 5351 | if { (ac_try="$ac_link" |
| 5352 | case "(($ac_try" in |
| 5353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5354 | *) ac_try_echo=$ac_try;; |
| 5355 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5357 | (eval "$ac_link") 2>&5 |
| 5358 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5360 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5361 | { (case "(($ac_try" in |
| 5362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5363 | *) ac_try_echo=$ac_try;; |
| 5364 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5366 | (eval "$ac_try") 2>&5 |
| 5367 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5369 | (exit $ac_status); }; }; then |
| 5370 | ac_cv_pthread=yes |
| 5371 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5372 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5373 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5375 | |
| 5376 | ( exit $ac_status ) |
| 5377 | ac_cv_pthread=no |
| 5378 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5379 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5380 | fi |
| 5381 | |
| 5382 | |
| 5383 | CC="$ac_save_cc" |
| 5384 | fi |
| 5385 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5386 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5387 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5388 | fi |
| 5389 | |
| 5390 | # If we have set a CC compiler flag for thread support then |
| 5391 | # check if it works for CXX, too. |
| 5392 | ac_cv_cxx_thread=no |
| 5393 | if test ! -z "$CXX" |
| 5394 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5395 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5396 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5397 | ac_save_cxx="$CXX" |
| 5398 | |
| 5399 | if test "$ac_cv_kpthread" = "yes" |
| 5400 | then |
| 5401 | CXX="$CXX -Kpthread" |
| 5402 | ac_cv_cxx_thread=yes |
| 5403 | elif test "$ac_cv_kthread" = "yes" |
| 5404 | then |
| 5405 | CXX="$CXX -Kthread" |
| 5406 | ac_cv_cxx_thread=yes |
| 5407 | elif test "$ac_cv_pthread" = "yes" |
| 5408 | then |
| 5409 | CXX="$CXX -pthread" |
| 5410 | ac_cv_cxx_thread=yes |
| 5411 | fi |
| 5412 | |
| 5413 | if test $ac_cv_cxx_thread = yes |
| 5414 | then |
| 5415 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5416 | $CXX -c conftest.$ac_ext 2>&5 |
| 5417 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5418 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5419 | then |
| 5420 | ac_cv_cxx_thread=yes |
| 5421 | else |
| 5422 | ac_cv_cxx_thread=no |
| 5423 | fi |
| 5424 | rm -fr conftest* |
| 5425 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5426 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5427 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5428 | fi |
| 5429 | CXX="$ac_save_cxx" |
| 5430 | |
| 5431 | |
| 5432 | # checks for header files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5433 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5434 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5435 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5437 | else |
| 5438 | cat >conftest.$ac_ext <<_ACEOF |
| 5439 | /* confdefs.h. */ |
| 5440 | _ACEOF |
| 5441 | cat confdefs.h >>conftest.$ac_ext |
| 5442 | cat >>conftest.$ac_ext <<_ACEOF |
| 5443 | /* end confdefs.h. */ |
| 5444 | #include <stdlib.h> |
| 5445 | #include <stdarg.h> |
| 5446 | #include <string.h> |
| 5447 | #include <float.h> |
| 5448 | |
| 5449 | int |
| 5450 | main () |
| 5451 | { |
| 5452 | |
| 5453 | ; |
| 5454 | return 0; |
| 5455 | } |
| 5456 | _ACEOF |
| 5457 | rm -f conftest.$ac_objext |
| 5458 | if { (ac_try="$ac_compile" |
| 5459 | case "(($ac_try" in |
| 5460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5461 | *) ac_try_echo=$ac_try;; |
| 5462 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5464 | (eval "$ac_compile") 2>conftest.er1 |
| 5465 | ac_status=$? |
| 5466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5467 | rm -f conftest.er1 |
| 5468 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5470 | (exit $ac_status); } && { |
| 5471 | test -z "$ac_c_werror_flag" || |
| 5472 | test ! -s conftest.err |
| 5473 | } && test -s conftest.$ac_objext; then |
| 5474 | ac_cv_header_stdc=yes |
| 5475 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5476 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5478 | |
| 5479 | ac_cv_header_stdc=no |
| 5480 | fi |
| 5481 | |
| 5482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5483 | |
| 5484 | if test $ac_cv_header_stdc = yes; then |
| 5485 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5486 | cat >conftest.$ac_ext <<_ACEOF |
| 5487 | /* confdefs.h. */ |
| 5488 | _ACEOF |
| 5489 | cat confdefs.h >>conftest.$ac_ext |
| 5490 | cat >>conftest.$ac_ext <<_ACEOF |
| 5491 | /* end confdefs.h. */ |
| 5492 | #include <string.h> |
| 5493 | |
| 5494 | _ACEOF |
| 5495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5496 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5497 | : |
| 5498 | else |
| 5499 | ac_cv_header_stdc=no |
| 5500 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 5501 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5502 | |
| 5503 | fi |
| 5504 | |
| 5505 | if test $ac_cv_header_stdc = yes; then |
| 5506 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5507 | cat >conftest.$ac_ext <<_ACEOF |
| 5508 | /* confdefs.h. */ |
| 5509 | _ACEOF |
| 5510 | cat confdefs.h >>conftest.$ac_ext |
| 5511 | cat >>conftest.$ac_ext <<_ACEOF |
| 5512 | /* end confdefs.h. */ |
| 5513 | #include <stdlib.h> |
| 5514 | |
| 5515 | _ACEOF |
| 5516 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5517 | $EGREP "free" >/dev/null 2>&1; then |
| 5518 | : |
| 5519 | else |
| 5520 | ac_cv_header_stdc=no |
| 5521 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 5522 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5523 | |
| 5524 | fi |
| 5525 | |
| 5526 | if test $ac_cv_header_stdc = yes; then |
| 5527 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5528 | if test "$cross_compiling" = yes; then |
| 5529 | : |
| 5530 | else |
| 5531 | cat >conftest.$ac_ext <<_ACEOF |
| 5532 | /* confdefs.h. */ |
| 5533 | _ACEOF |
| 5534 | cat confdefs.h >>conftest.$ac_ext |
| 5535 | cat >>conftest.$ac_ext <<_ACEOF |
| 5536 | /* end confdefs.h. */ |
| 5537 | #include <ctype.h> |
| 5538 | #include <stdlib.h> |
| 5539 | #if ((' ' & 0x0FF) == 0x020) |
| 5540 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5541 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5542 | #else |
| 5543 | # define ISLOWER(c) \ |
| 5544 | (('a' <= (c) && (c) <= 'i') \ |
| 5545 | || ('j' <= (c) && (c) <= 'r') \ |
| 5546 | || ('s' <= (c) && (c) <= 'z')) |
| 5547 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5548 | #endif |
| 5549 | |
| 5550 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5551 | int |
| 5552 | main () |
| 5553 | { |
| 5554 | int i; |
| 5555 | for (i = 0; i < 256; i++) |
| 5556 | if (XOR (islower (i), ISLOWER (i)) |
| 5557 | || toupper (i) != TOUPPER (i)) |
| 5558 | return 2; |
| 5559 | return 0; |
| 5560 | } |
| 5561 | _ACEOF |
| 5562 | rm -f conftest$ac_exeext |
| 5563 | if { (ac_try="$ac_link" |
| 5564 | case "(($ac_try" in |
| 5565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5566 | *) ac_try_echo=$ac_try;; |
| 5567 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5569 | (eval "$ac_link") 2>&5 |
| 5570 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5572 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5573 | { (case "(($ac_try" in |
| 5574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5575 | *) ac_try_echo=$ac_try;; |
| 5576 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5578 | (eval "$ac_try") 2>&5 |
| 5579 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5581 | (exit $ac_status); }; }; then |
| 5582 | : |
| 5583 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5584 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5585 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5587 | |
| 5588 | ( exit $ac_status ) |
| 5589 | ac_cv_header_stdc=no |
| 5590 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5591 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5592 | fi |
| 5593 | |
| 5594 | |
| 5595 | fi |
| 5596 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5597 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5598 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5599 | if test $ac_cv_header_stdc = yes; then |
| 5600 | |
| 5601 | cat >>confdefs.h <<\_ACEOF |
| 5602 | #define STDC_HEADERS 1 |
| 5603 | _ACEOF |
| 5604 | |
| 5605 | fi |
| 5606 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5607 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5608 | |
| 5609 | |
| 5610 | |
| 5611 | |
| 5612 | |
| 5613 | |
| 5614 | |
| 5615 | |
| 5616 | |
| 5617 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5618 | inttypes.h stdint.h unistd.h |
| 5619 | do |
| 5620 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5621 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5622 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5623 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5625 | else |
| 5626 | cat >conftest.$ac_ext <<_ACEOF |
| 5627 | /* confdefs.h. */ |
| 5628 | _ACEOF |
| 5629 | cat confdefs.h >>conftest.$ac_ext |
| 5630 | cat >>conftest.$ac_ext <<_ACEOF |
| 5631 | /* end confdefs.h. */ |
| 5632 | $ac_includes_default |
| 5633 | |
| 5634 | #include <$ac_header> |
| 5635 | _ACEOF |
| 5636 | rm -f conftest.$ac_objext |
| 5637 | if { (ac_try="$ac_compile" |
| 5638 | case "(($ac_try" in |
| 5639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5640 | *) ac_try_echo=$ac_try;; |
| 5641 | esac |
| 5642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5643 | (eval "$ac_compile") 2>conftest.er1 |
| 5644 | ac_status=$? |
| 5645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5646 | rm -f conftest.er1 |
| 5647 | cat conftest.err >&5 |
| 5648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5649 | (exit $ac_status); } && { |
| 5650 | test -z "$ac_c_werror_flag" || |
| 5651 | test ! -s conftest.err |
| 5652 | } && test -s conftest.$ac_objext; then |
| 5653 | eval "$as_ac_Header=yes" |
| 5654 | else |
| 5655 | echo "$as_me: failed program was:" >&5 |
| 5656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5657 | |
| 5658 | eval "$as_ac_Header=no" |
| 5659 | fi |
| 5660 | |
| 5661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5662 | fi |
| 5663 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5664 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5665 | echo "${ECHO_T}$ac_res" >&6; } |
| 5666 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5667 | cat >>confdefs.h <<_ACEOF |
| 5668 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5669 | _ACEOF |
| 5670 | |
| 5671 | fi |
| 5672 | |
| 5673 | done |
| 5674 | |
| 5675 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5677 | |
| 5678 | |
| 5679 | |
| 5680 | |
| 5681 | |
| 5682 | |
| 5683 | |
| 5684 | |
| 5685 | |
| 5686 | |
| 5687 | |
| 5688 | |
| 5689 | |
| 5690 | |
| 5691 | |
| 5692 | |
| 5693 | |
| 5694 | |
| 5695 | |
| 5696 | |
| 5697 | |
| 5698 | |
| 5699 | |
| 5700 | |
| 5701 | |
| 5702 | |
| 5703 | |
| 5704 | |
| 5705 | |
| 5706 | |
| 5707 | |
| 5708 | |
| 5709 | |
| 5710 | |
| 5711 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5712 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5713 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5714 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 5715 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5716 | |
| 5717 | |
| 5718 | |
| 5719 | |
| 5720 | |
| 5721 | |
| 5722 | |
| 5723 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5724 | |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5725 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5726 | |
| 5727 | |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5728 | |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5729 | |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5730 | |
| 5731 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5732 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5733 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5734 | ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5735 | 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] | 5736 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5737 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5738 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5739 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5740 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5741 | sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Martin v. Löwis | 0347a9a | 2006-10-27 07:06:52 +0000 | [diff] [blame] | 5742 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 5743 | bluetooth/bluetooth.h linux/tipc.h spawn.h util.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5744 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5745 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5746 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5747 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5748 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5749 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5751 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5752 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5753 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5754 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5756 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5757 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5758 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5759 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5760 | /* confdefs.h. */ |
| 5761 | _ACEOF |
| 5762 | cat confdefs.h >>conftest.$ac_ext |
| 5763 | cat >>conftest.$ac_ext <<_ACEOF |
| 5764 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5765 | $ac_includes_default |
| 5766 | #include <$ac_header> |
| 5767 | _ACEOF |
| 5768 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5769 | if { (ac_try="$ac_compile" |
| 5770 | case "(($ac_try" in |
| 5771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5772 | *) ac_try_echo=$ac_try;; |
| 5773 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5775 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5776 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5778 | rm -f conftest.er1 |
| 5779 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5781 | (exit $ac_status); } && { |
| 5782 | test -z "$ac_c_werror_flag" || |
| 5783 | test ! -s conftest.err |
| 5784 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5785 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5786 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5787 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5789 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5790 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5791 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5792 | |
| 5793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5794 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5795 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5796 | |
| 5797 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5798 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5799 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5800 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5801 | /* confdefs.h. */ |
| 5802 | _ACEOF |
| 5803 | cat confdefs.h >>conftest.$ac_ext |
| 5804 | cat >>conftest.$ac_ext <<_ACEOF |
| 5805 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5806 | #include <$ac_header> |
| 5807 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5808 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5809 | case "(($ac_try" in |
| 5810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5811 | *) ac_try_echo=$ac_try;; |
| 5812 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5814 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5815 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5816 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5817 | rm -f conftest.er1 |
| 5818 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5820 | (exit $ac_status); } >/dev/null && { |
| 5821 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5822 | test ! -s conftest.err |
| 5823 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5824 | ac_header_preproc=yes |
| 5825 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5826 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5828 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5829 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5830 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5832 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5833 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5834 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5835 | |
| 5836 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5837 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5838 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5839 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5840 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5841 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5842 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5843 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5844 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5845 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5846 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5847 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5848 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5849 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5850 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5851 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5852 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5853 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5854 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5855 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5856 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5857 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5858 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 5859 | ## -------------------------------------- ## |
| 5860 | ## Report this to http://bugs.python.org/ ## |
| 5861 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5862 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5863 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5864 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5865 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5866 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5867 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5868 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5870 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5871 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5872 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5873 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5874 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5875 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5876 | |
| 5877 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5878 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5879 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5880 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5881 | _ACEOF |
| 5882 | |
| 5883 | fi |
| 5884 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5885 | done |
| 5886 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5887 | |
| 5888 | |
| 5889 | |
| 5890 | |
| 5891 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5892 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5893 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5894 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 5895 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5896 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5897 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5899 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5900 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5901 | /* confdefs.h. */ |
| 5902 | _ACEOF |
| 5903 | cat confdefs.h >>conftest.$ac_ext |
| 5904 | cat >>conftest.$ac_ext <<_ACEOF |
| 5905 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5906 | #include <sys/types.h> |
| 5907 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5908 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5909 | int |
| 5910 | main () |
| 5911 | { |
| 5912 | if ((DIR *) 0) |
| 5913 | return 0; |
| 5914 | ; |
| 5915 | return 0; |
| 5916 | } |
| 5917 | _ACEOF |
| 5918 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5919 | if { (ac_try="$ac_compile" |
| 5920 | case "(($ac_try" in |
| 5921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5922 | *) ac_try_echo=$ac_try;; |
| 5923 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5925 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5926 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5928 | rm -f conftest.er1 |
| 5929 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5931 | (exit $ac_status); } && { |
| 5932 | test -z "$ac_c_werror_flag" || |
| 5933 | test ! -s conftest.err |
| 5934 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5935 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5936 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5937 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5939 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5940 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5941 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5942 | |
| 5943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5944 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5945 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5946 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5947 | echo "${ECHO_T}$ac_res" >&6; } |
| 5948 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5949 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5950 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5951 | _ACEOF |
| 5952 | |
| 5953 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5954 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5955 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5956 | done |
| 5957 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5958 | if test $ac_header_dirent = dirent.h; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5959 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5960 | 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] | 5961 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5963 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5964 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5965 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5966 | /* confdefs.h. */ |
| 5967 | _ACEOF |
| 5968 | cat confdefs.h >>conftest.$ac_ext |
| 5969 | cat >>conftest.$ac_ext <<_ACEOF |
| 5970 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5971 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5972 | /* Override any GCC internal prototype to avoid an error. |
| 5973 | Use char because int might match the return type of a GCC |
| 5974 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5975 | #ifdef __cplusplus |
| 5976 | extern "C" |
| 5977 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5978 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5979 | int |
| 5980 | main () |
| 5981 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5982 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5983 | ; |
| 5984 | return 0; |
| 5985 | } |
| 5986 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5987 | for ac_lib in '' dir; do |
| 5988 | if test -z "$ac_lib"; then |
| 5989 | ac_res="none required" |
| 5990 | else |
| 5991 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5992 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5993 | fi |
| 5994 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5995 | if { (ac_try="$ac_link" |
| 5996 | case "(($ac_try" in |
| 5997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5998 | *) ac_try_echo=$ac_try;; |
| 5999 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6001 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6002 | ac_status=$? |
| 6003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6004 | rm -f conftest.er1 |
| 6005 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6007 | (exit $ac_status); } && { |
| 6008 | test -z "$ac_c_werror_flag" || |
| 6009 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6010 | } && test -s conftest$ac_exeext && |
| 6011 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6012 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6013 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6014 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6016 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6017 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6018 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6019 | |
| 6020 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6021 | conftest$ac_exeext |
| 6022 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6023 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6024 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6025 | done |
| 6026 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6027 | : |
| 6028 | else |
| 6029 | ac_cv_search_opendir=no |
| 6030 | fi |
| 6031 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6032 | LIBS=$ac_func_search_save_LIBS |
| 6033 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6034 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6035 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6036 | ac_res=$ac_cv_search_opendir |
| 6037 | if test "$ac_res" != no; then |
| 6038 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6039 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6040 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6041 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6042 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6043 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6044 | 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] | 6045 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6047 | else |
| 6048 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6049 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6050 | /* confdefs.h. */ |
| 6051 | _ACEOF |
| 6052 | cat confdefs.h >>conftest.$ac_ext |
| 6053 | cat >>conftest.$ac_ext <<_ACEOF |
| 6054 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6055 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6056 | /* Override any GCC internal prototype to avoid an error. |
| 6057 | Use char because int might match the return type of a GCC |
| 6058 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6059 | #ifdef __cplusplus |
| 6060 | extern "C" |
| 6061 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6062 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6063 | int |
| 6064 | main () |
| 6065 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6066 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6067 | ; |
| 6068 | return 0; |
| 6069 | } |
| 6070 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6071 | for ac_lib in '' x; do |
| 6072 | if test -z "$ac_lib"; then |
| 6073 | ac_res="none required" |
| 6074 | else |
| 6075 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6076 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6077 | fi |
| 6078 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6079 | if { (ac_try="$ac_link" |
| 6080 | case "(($ac_try" in |
| 6081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6082 | *) ac_try_echo=$ac_try;; |
| 6083 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6085 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6086 | ac_status=$? |
| 6087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6088 | rm -f conftest.er1 |
| 6089 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6091 | (exit $ac_status); } && { |
| 6092 | test -z "$ac_c_werror_flag" || |
| 6093 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6094 | } && test -s conftest$ac_exeext && |
| 6095 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6096 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6097 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6098 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6100 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6101 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6102 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6103 | |
| 6104 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6105 | conftest$ac_exeext |
| 6106 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6107 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6108 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6109 | done |
| 6110 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6111 | : |
| 6112 | else |
| 6113 | ac_cv_search_opendir=no |
| 6114 | fi |
| 6115 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6116 | LIBS=$ac_func_search_save_LIBS |
| 6117 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6118 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6119 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6120 | ac_res=$ac_cv_search_opendir |
| 6121 | if test "$ac_res" != no; then |
| 6122 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6123 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6124 | fi |
| 6125 | |
| 6126 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6127 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6128 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 6129 | 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] | 6130 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6132 | else |
| 6133 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6134 | /* confdefs.h. */ |
| 6135 | _ACEOF |
| 6136 | cat confdefs.h >>conftest.$ac_ext |
| 6137 | cat >>conftest.$ac_ext <<_ACEOF |
| 6138 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6139 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6140 | int |
| 6141 | main () |
| 6142 | { |
| 6143 | return makedev(0, 0); |
| 6144 | ; |
| 6145 | return 0; |
| 6146 | } |
| 6147 | _ACEOF |
| 6148 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6149 | if { (ac_try="$ac_link" |
| 6150 | case "(($ac_try" in |
| 6151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6152 | *) ac_try_echo=$ac_try;; |
| 6153 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6155 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6156 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6158 | rm -f conftest.er1 |
| 6159 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6161 | (exit $ac_status); } && { |
| 6162 | test -z "$ac_c_werror_flag" || |
| 6163 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6164 | } && test -s conftest$ac_exeext && |
| 6165 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6166 | ac_cv_header_sys_types_h_makedev=yes |
| 6167 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6168 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6170 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6171 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6172 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6173 | |
| 6174 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6175 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6176 | |
| 6177 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6178 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6179 | 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] | 6180 | |
| 6181 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6182 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6183 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6184 | 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] | 6185 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6187 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6188 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6189 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6190 | else |
| 6191 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6192 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6193 | 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] | 6194 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6195 | /* confdefs.h. */ |
| 6196 | _ACEOF |
| 6197 | cat confdefs.h >>conftest.$ac_ext |
| 6198 | cat >>conftest.$ac_ext <<_ACEOF |
| 6199 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6200 | $ac_includes_default |
| 6201 | #include <sys/mkdev.h> |
| 6202 | _ACEOF |
| 6203 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6204 | if { (ac_try="$ac_compile" |
| 6205 | case "(($ac_try" in |
| 6206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6207 | *) ac_try_echo=$ac_try;; |
| 6208 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6210 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6211 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6213 | rm -f conftest.er1 |
| 6214 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6216 | (exit $ac_status); } && { |
| 6217 | test -z "$ac_c_werror_flag" || |
| 6218 | test ! -s conftest.err |
| 6219 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6220 | ac_header_compiler=yes |
| 6221 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6222 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6224 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6225 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6226 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6227 | |
| 6228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6229 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6230 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6231 | |
| 6232 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6233 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6234 | 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] | 6235 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6236 | /* confdefs.h. */ |
| 6237 | _ACEOF |
| 6238 | cat confdefs.h >>conftest.$ac_ext |
| 6239 | cat >>conftest.$ac_ext <<_ACEOF |
| 6240 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6241 | #include <sys/mkdev.h> |
| 6242 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6243 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6244 | case "(($ac_try" in |
| 6245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6246 | *) ac_try_echo=$ac_try;; |
| 6247 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6249 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6250 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6251 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6252 | rm -f conftest.er1 |
| 6253 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6255 | (exit $ac_status); } >/dev/null && { |
| 6256 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6257 | test ! -s conftest.err |
| 6258 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6259 | ac_header_preproc=yes |
| 6260 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6261 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6263 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6264 | ac_header_preproc=no |
| 6265 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6266 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6267 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6268 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6269 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6270 | |
| 6271 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6272 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6273 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6274 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6275 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6276 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6277 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6278 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6279 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6280 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6281 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6282 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6283 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6284 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6285 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6286 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6287 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6288 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6289 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6290 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6291 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6292 | echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6293 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6294 | ## -------------------------------------- ## |
| 6295 | ## Report this to http://bugs.python.org/ ## |
| 6296 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6297 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6298 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6299 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6300 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6301 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6302 | 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] | 6303 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6305 | else |
| 6306 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6307 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6308 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6309 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6310 | |
| 6311 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6312 | if test $ac_cv_header_sys_mkdev_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6313 | |
| 6314 | cat >>confdefs.h <<\_ACEOF |
| 6315 | #define MAJOR_IN_MKDEV 1 |
| 6316 | _ACEOF |
| 6317 | |
| 6318 | fi |
| 6319 | |
| 6320 | |
| 6321 | |
| 6322 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6323 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6324 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6325 | 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] | 6326 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6328 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6329 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6330 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6331 | else |
| 6332 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6333 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6334 | 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] | 6335 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6336 | /* confdefs.h. */ |
| 6337 | _ACEOF |
| 6338 | cat confdefs.h >>conftest.$ac_ext |
| 6339 | cat >>conftest.$ac_ext <<_ACEOF |
| 6340 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6341 | $ac_includes_default |
| 6342 | #include <sys/sysmacros.h> |
| 6343 | _ACEOF |
| 6344 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6345 | if { (ac_try="$ac_compile" |
| 6346 | case "(($ac_try" in |
| 6347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6348 | *) ac_try_echo=$ac_try;; |
| 6349 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6351 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6352 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6354 | rm -f conftest.er1 |
| 6355 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6357 | (exit $ac_status); } && { |
| 6358 | test -z "$ac_c_werror_flag" || |
| 6359 | test ! -s conftest.err |
| 6360 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6361 | ac_header_compiler=yes |
| 6362 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6363 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6365 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6366 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6367 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6368 | |
| 6369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6370 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6371 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6372 | |
| 6373 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6374 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6375 | 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] | 6376 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6377 | /* confdefs.h. */ |
| 6378 | _ACEOF |
| 6379 | cat confdefs.h >>conftest.$ac_ext |
| 6380 | cat >>conftest.$ac_ext <<_ACEOF |
| 6381 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6382 | #include <sys/sysmacros.h> |
| 6383 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6384 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6385 | case "(($ac_try" in |
| 6386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6387 | *) ac_try_echo=$ac_try;; |
| 6388 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6390 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6391 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6392 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6393 | rm -f conftest.er1 |
| 6394 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6396 | (exit $ac_status); } >/dev/null && { |
| 6397 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6398 | test ! -s conftest.err |
| 6399 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6400 | ac_header_preproc=yes |
| 6401 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6402 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6404 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6405 | ac_header_preproc=no |
| 6406 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6407 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6408 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6409 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6410 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6411 | |
| 6412 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6413 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6414 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6415 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6416 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6417 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6418 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6419 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6420 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6421 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6422 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6423 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6424 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6425 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6426 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6427 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6428 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6429 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6430 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6431 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6432 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6433 | echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6434 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6435 | ## -------------------------------------- ## |
| 6436 | ## Report this to http://bugs.python.org/ ## |
| 6437 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6438 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6439 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6440 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6441 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6442 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6443 | 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] | 6444 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6446 | else |
| 6447 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6448 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6449 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6450 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6451 | |
| 6452 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6453 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6454 | |
| 6455 | cat >>confdefs.h <<\_ACEOF |
| 6456 | #define MAJOR_IN_SYSMACROS 1 |
| 6457 | _ACEOF |
| 6458 | |
| 6459 | fi |
| 6460 | |
| 6461 | |
| 6462 | fi |
| 6463 | fi |
| 6464 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6465 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6466 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6467 | |
| 6468 | for ac_header in term.h |
| 6469 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6470 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6471 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6473 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6475 | else |
| 6476 | cat >conftest.$ac_ext <<_ACEOF |
| 6477 | /* confdefs.h. */ |
| 6478 | _ACEOF |
| 6479 | cat confdefs.h >>conftest.$ac_ext |
| 6480 | cat >>conftest.$ac_ext <<_ACEOF |
| 6481 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6482 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6483 | #ifdef HAVE_CURSES_H |
| 6484 | #include <curses.h> |
| 6485 | #endif |
| 6486 | |
| 6487 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6488 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6489 | _ACEOF |
| 6490 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6491 | if { (ac_try="$ac_compile" |
| 6492 | case "(($ac_try" in |
| 6493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6494 | *) ac_try_echo=$ac_try;; |
| 6495 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6497 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6498 | ac_status=$? |
| 6499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6500 | rm -f conftest.er1 |
| 6501 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6503 | (exit $ac_status); } && { |
| 6504 | test -z "$ac_c_werror_flag" || |
| 6505 | test ! -s conftest.err |
| 6506 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6507 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6508 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6509 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6511 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6512 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6513 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6514 | |
| 6515 | 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] | 6516 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6517 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6518 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6519 | echo "${ECHO_T}$ac_res" >&6; } |
| 6520 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6521 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6522 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6523 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6524 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6525 | fi |
| 6526 | |
| 6527 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6528 | |
| 6529 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6530 | # On Linux, netlink.h requires asm/types.h |
| 6531 | |
| 6532 | for ac_header in linux/netlink.h |
| 6533 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6534 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6535 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6536 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6537 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6539 | else |
| 6540 | cat >conftest.$ac_ext <<_ACEOF |
| 6541 | /* confdefs.h. */ |
| 6542 | _ACEOF |
| 6543 | cat confdefs.h >>conftest.$ac_ext |
| 6544 | cat >>conftest.$ac_ext <<_ACEOF |
| 6545 | /* end confdefs.h. */ |
| 6546 | |
| 6547 | #ifdef HAVE_ASM_TYPES_H |
| 6548 | #include <asm/types.h> |
| 6549 | #endif |
| 6550 | #ifdef HAVE_SYS_SOCKET_H |
| 6551 | #include <sys/socket.h> |
| 6552 | #endif |
| 6553 | |
| 6554 | |
| 6555 | #include <$ac_header> |
| 6556 | _ACEOF |
| 6557 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6558 | if { (ac_try="$ac_compile" |
| 6559 | case "(($ac_try" in |
| 6560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6561 | *) ac_try_echo=$ac_try;; |
| 6562 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6564 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6565 | ac_status=$? |
| 6566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6567 | rm -f conftest.er1 |
| 6568 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6570 | (exit $ac_status); } && { |
| 6571 | test -z "$ac_c_werror_flag" || |
| 6572 | test ! -s conftest.err |
| 6573 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6574 | eval "$as_ac_Header=yes" |
| 6575 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6576 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6578 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6579 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6580 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6581 | |
| 6582 | 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] | 6583 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6584 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6585 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6586 | echo "${ECHO_T}$ac_res" >&6; } |
| 6587 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6588 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6589 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6590 | _ACEOF |
| 6591 | |
| 6592 | fi |
| 6593 | |
| 6594 | done |
| 6595 | |
| 6596 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6597 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6598 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6599 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6600 | 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] | 6601 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6602 | /* confdefs.h. */ |
| 6603 | _ACEOF |
| 6604 | cat confdefs.h >>conftest.$ac_ext |
| 6605 | cat >>conftest.$ac_ext <<_ACEOF |
| 6606 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6607 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6608 | |
| 6609 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6610 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6611 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6612 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6613 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6614 | |
| 6615 | |
| 6616 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6617 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6618 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6619 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6620 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6621 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 6622 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6623 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6624 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6625 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6626 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6627 | # Check whether using makedev requires defining _OSF_SOURCE |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6628 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6629 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6630 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6631 | /* confdefs.h. */ |
| 6632 | _ACEOF |
| 6633 | cat confdefs.h >>conftest.$ac_ext |
| 6634 | cat >>conftest.$ac_ext <<_ACEOF |
| 6635 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6636 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6637 | int |
| 6638 | main () |
| 6639 | { |
| 6640 | makedev(0, 0) |
| 6641 | ; |
| 6642 | return 0; |
| 6643 | } |
| 6644 | _ACEOF |
| 6645 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6646 | if { (ac_try="$ac_link" |
| 6647 | case "(($ac_try" in |
| 6648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6649 | *) ac_try_echo=$ac_try;; |
| 6650 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6652 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6653 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6655 | rm -f conftest.er1 |
| 6656 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6658 | (exit $ac_status); } && { |
| 6659 | test -z "$ac_c_werror_flag" || |
| 6660 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6661 | } && test -s conftest$ac_exeext && |
| 6662 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6663 | ac_cv_has_makedev=yes |
| 6664 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6665 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6667 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6668 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6669 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6670 | |
| 6671 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6672 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6673 | if test "$ac_cv_has_makedev" = "no"; then |
| 6674 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6675 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6676 | /* confdefs.h. */ |
| 6677 | _ACEOF |
| 6678 | cat confdefs.h >>conftest.$ac_ext |
| 6679 | cat >>conftest.$ac_ext <<_ACEOF |
| 6680 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6681 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6682 | #define _OSF_SOURCE 1 |
| 6683 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6684 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6685 | int |
| 6686 | main () |
| 6687 | { |
| 6688 | makedev(0, 0) |
| 6689 | ; |
| 6690 | return 0; |
| 6691 | } |
| 6692 | _ACEOF |
| 6693 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6694 | if { (ac_try="$ac_link" |
| 6695 | case "(($ac_try" in |
| 6696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6697 | *) ac_try_echo=$ac_try;; |
| 6698 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6700 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6701 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6703 | rm -f conftest.er1 |
| 6704 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6706 | (exit $ac_status); } && { |
| 6707 | test -z "$ac_c_werror_flag" || |
| 6708 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6709 | } && test -s conftest$ac_exeext && |
| 6710 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6711 | ac_cv_has_makedev=yes |
| 6712 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6713 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6715 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6716 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6717 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6718 | |
| 6719 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6720 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6721 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6722 | |
| 6723 | cat >>confdefs.h <<\_ACEOF |
| 6724 | #define _OSF_SOURCE 1 |
| 6725 | _ACEOF |
| 6726 | |
| 6727 | fi |
| 6728 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6729 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6730 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6731 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6732 | |
| 6733 | cat >>confdefs.h <<\_ACEOF |
| 6734 | #define HAVE_MAKEDEV 1 |
| 6735 | _ACEOF |
| 6736 | |
| 6737 | fi |
| 6738 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6739 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6740 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6741 | # defined, but the compiler does not support pragma redefine_extname, |
| 6742 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6743 | # structures (such as rlimit64) without declaring them. As a |
| 6744 | # work-around, disable LFS on such configurations |
| 6745 | |
| 6746 | use_lfs=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6747 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6748 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +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 | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6755 | |
| 6756 | #define _LARGEFILE_SOURCE 1 |
| 6757 | #define _FILE_OFFSET_BITS 64 |
| 6758 | #include <sys/resource.h> |
| 6759 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6760 | int |
| 6761 | main () |
| 6762 | { |
| 6763 | struct rlimit foo; |
| 6764 | ; |
| 6765 | return 0; |
| 6766 | } |
| 6767 | _ACEOF |
| 6768 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6775 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +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 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +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 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6785 | sol_lfs_bug=no |
| 6786 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6790 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6791 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6792 | |
| 6793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6794 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6795 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6796 | if test "$sol_lfs_bug" = "yes"; then |
| 6797 | use_lfs=no |
| 6798 | fi |
| 6799 | |
| 6800 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6801 | # Two defines needed to enable largefile support on various platforms |
| 6802 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6804 | cat >>confdefs.h <<\_ACEOF |
| 6805 | #define _LARGEFILE_SOURCE 1 |
| 6806 | _ACEOF |
| 6807 | |
| 6808 | |
| 6809 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6810 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6811 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6812 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6813 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6814 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6815 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6816 | cat >> confdefs.h <<\EOF |
| 6817 | #if defined(SCO_DS) |
| 6818 | #undef _OFF_T |
| 6819 | #endif |
| 6820 | EOF |
| 6821 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6822 | # Type availability checks |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6823 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6824 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6825 | if test "${ac_cv_type_mode_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6827 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6828 | cat >conftest.$ac_ext <<_ACEOF |
| 6829 | /* confdefs.h. */ |
| 6830 | _ACEOF |
| 6831 | cat confdefs.h >>conftest.$ac_ext |
| 6832 | cat >>conftest.$ac_ext <<_ACEOF |
| 6833 | /* end confdefs.h. */ |
| 6834 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6835 | typedef mode_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6836 | int |
| 6837 | main () |
| 6838 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6839 | if ((ac__type_new_ *) 0) |
| 6840 | return 0; |
| 6841 | if (sizeof (ac__type_new_)) |
| 6842 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6843 | ; |
| 6844 | return 0; |
| 6845 | } |
| 6846 | _ACEOF |
| 6847 | rm -f conftest.$ac_objext |
| 6848 | if { (ac_try="$ac_compile" |
| 6849 | case "(($ac_try" in |
| 6850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6851 | *) ac_try_echo=$ac_try;; |
| 6852 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6854 | (eval "$ac_compile") 2>conftest.er1 |
| 6855 | ac_status=$? |
| 6856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6857 | rm -f conftest.er1 |
| 6858 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6860 | (exit $ac_status); } && { |
| 6861 | test -z "$ac_c_werror_flag" || |
| 6862 | test ! -s conftest.err |
| 6863 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6864 | ac_cv_type_mode_t=yes |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6865 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6866 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6868 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6869 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6870 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6871 | |
| 6872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6873 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6874 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6875 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
| 6876 | if test $ac_cv_type_mode_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6877 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6879 | |
| 6880 | cat >>confdefs.h <<_ACEOF |
| 6881 | #define mode_t int |
| 6882 | _ACEOF |
| 6883 | |
| 6884 | fi |
| 6885 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6886 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6887 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6888 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6890 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6891 | cat >conftest.$ac_ext <<_ACEOF |
| 6892 | /* confdefs.h. */ |
| 6893 | _ACEOF |
| 6894 | cat confdefs.h >>conftest.$ac_ext |
| 6895 | cat >>conftest.$ac_ext <<_ACEOF |
| 6896 | /* end confdefs.h. */ |
| 6897 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6898 | typedef off_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6899 | int |
| 6900 | main () |
| 6901 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6902 | if ((ac__type_new_ *) 0) |
| 6903 | return 0; |
| 6904 | if (sizeof (ac__type_new_)) |
| 6905 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6906 | ; |
| 6907 | return 0; |
| 6908 | } |
| 6909 | _ACEOF |
| 6910 | rm -f conftest.$ac_objext |
| 6911 | if { (ac_try="$ac_compile" |
| 6912 | case "(($ac_try" in |
| 6913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6914 | *) ac_try_echo=$ac_try;; |
| 6915 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6917 | (eval "$ac_compile") 2>conftest.er1 |
| 6918 | ac_status=$? |
| 6919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6920 | rm -f conftest.er1 |
| 6921 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6923 | (exit $ac_status); } && { |
| 6924 | test -z "$ac_c_werror_flag" || |
| 6925 | test ! -s conftest.err |
| 6926 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6927 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6928 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6929 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6931 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6932 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6933 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6934 | |
| 6935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6936 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6937 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6938 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 6939 | if test $ac_cv_type_off_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6940 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6941 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6942 | |
| 6943 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6944 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6945 | _ACEOF |
| 6946 | |
| 6947 | fi |
| 6948 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6949 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6950 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6951 | if test "${ac_cv_type_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6953 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6954 | cat >conftest.$ac_ext <<_ACEOF |
| 6955 | /* confdefs.h. */ |
| 6956 | _ACEOF |
| 6957 | cat confdefs.h >>conftest.$ac_ext |
| 6958 | cat >>conftest.$ac_ext <<_ACEOF |
| 6959 | /* end confdefs.h. */ |
| 6960 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6961 | typedef pid_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6962 | int |
| 6963 | main () |
| 6964 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6965 | if ((ac__type_new_ *) 0) |
| 6966 | return 0; |
| 6967 | if (sizeof (ac__type_new_)) |
| 6968 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6969 | ; |
| 6970 | return 0; |
| 6971 | } |
| 6972 | _ACEOF |
| 6973 | rm -f conftest.$ac_objext |
| 6974 | if { (ac_try="$ac_compile" |
| 6975 | case "(($ac_try" in |
| 6976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6977 | *) ac_try_echo=$ac_try;; |
| 6978 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6980 | (eval "$ac_compile") 2>conftest.er1 |
| 6981 | ac_status=$? |
| 6982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6983 | rm -f conftest.er1 |
| 6984 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6986 | (exit $ac_status); } && { |
| 6987 | test -z "$ac_c_werror_flag" || |
| 6988 | test ! -s conftest.err |
| 6989 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6990 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6991 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6992 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6994 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6995 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6996 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6997 | |
| 6998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6999 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7000 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 7001 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 7002 | if test $ac_cv_type_pid_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7003 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7005 | |
| 7006 | cat >>confdefs.h <<_ACEOF |
| 7007 | #define pid_t int |
| 7008 | _ACEOF |
| 7009 | |
| 7010 | fi |
| 7011 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7012 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 7013 | 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] | 7014 | if test "${ac_cv_type_signal+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7016 | else |
| 7017 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7018 | /* confdefs.h. */ |
| 7019 | _ACEOF |
| 7020 | cat confdefs.h >>conftest.$ac_ext |
| 7021 | cat >>conftest.$ac_ext <<_ACEOF |
| 7022 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7023 | #include <sys/types.h> |
| 7024 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7026 | int |
| 7027 | main () |
| 7028 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7029 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7030 | ; |
| 7031 | return 0; |
| 7032 | } |
| 7033 | _ACEOF |
| 7034 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7035 | if { (ac_try="$ac_compile" |
| 7036 | case "(($ac_try" in |
| 7037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7038 | *) ac_try_echo=$ac_try;; |
| 7039 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7041 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7042 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7044 | rm -f conftest.er1 |
| 7045 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7047 | (exit $ac_status); } && { |
| 7048 | test -z "$ac_c_werror_flag" || |
| 7049 | test ! -s conftest.err |
| 7050 | } && test -s conftest.$ac_objext; then |
| 7051 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7052 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7053 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7055 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7056 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7057 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7058 | |
| 7059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7060 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7061 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 7062 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7064 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7065 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7066 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7067 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7068 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7069 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 7070 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7071 | if test "${ac_cv_type_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7073 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7074 | cat >conftest.$ac_ext <<_ACEOF |
| 7075 | /* confdefs.h. */ |
| 7076 | _ACEOF |
| 7077 | cat confdefs.h >>conftest.$ac_ext |
| 7078 | cat >>conftest.$ac_ext <<_ACEOF |
| 7079 | /* end confdefs.h. */ |
| 7080 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7081 | typedef size_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7082 | int |
| 7083 | main () |
| 7084 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7085 | if ((ac__type_new_ *) 0) |
| 7086 | return 0; |
| 7087 | if (sizeof (ac__type_new_)) |
| 7088 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7089 | ; |
| 7090 | return 0; |
| 7091 | } |
| 7092 | _ACEOF |
| 7093 | rm -f conftest.$ac_objext |
| 7094 | if { (ac_try="$ac_compile" |
| 7095 | case "(($ac_try" in |
| 7096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7097 | *) ac_try_echo=$ac_try;; |
| 7098 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7100 | (eval "$ac_compile") 2>conftest.er1 |
| 7101 | ac_status=$? |
| 7102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7103 | rm -f conftest.er1 |
| 7104 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7106 | (exit $ac_status); } && { |
| 7107 | test -z "$ac_c_werror_flag" || |
| 7108 | test ! -s conftest.err |
| 7109 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7110 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7111 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7112 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7114 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7115 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7116 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7117 | |
| 7118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7119 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7120 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 7121 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 7122 | if test $ac_cv_type_size_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7123 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7125 | |
| 7126 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7127 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7128 | _ACEOF |
| 7129 | |
| 7130 | fi |
| 7131 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7132 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 7133 | 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] | 7134 | if test "${ac_cv_type_uid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7136 | else |
| 7137 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7138 | /* confdefs.h. */ |
| 7139 | _ACEOF |
| 7140 | cat confdefs.h >>conftest.$ac_ext |
| 7141 | cat >>conftest.$ac_ext <<_ACEOF |
| 7142 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7143 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7144 | |
| 7145 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7147 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7148 | ac_cv_type_uid_t=yes |
| 7149 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7150 | ac_cv_type_uid_t=no |
| 7151 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 7152 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7153 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7154 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7155 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7156 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7157 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7159 | cat >>confdefs.h <<\_ACEOF |
| 7160 | #define uid_t int |
| 7161 | _ACEOF |
| 7162 | |
| 7163 | |
| 7164 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7165 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7166 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7167 | |
| 7168 | fi |
| 7169 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7170 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7171 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7172 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7173 | if test "${ac_cv_c_uint32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7175 | else |
| 7176 | ac_cv_c_uint32_t=no |
| 7177 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7178 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7179 | cat >conftest.$ac_ext <<_ACEOF |
| 7180 | /* confdefs.h. */ |
| 7181 | _ACEOF |
| 7182 | cat confdefs.h >>conftest.$ac_ext |
| 7183 | cat >>conftest.$ac_ext <<_ACEOF |
| 7184 | /* end confdefs.h. */ |
| 7185 | $ac_includes_default |
| 7186 | int |
| 7187 | main () |
| 7188 | { |
| 7189 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7190 | test_array [0] = 0 |
| 7191 | |
| 7192 | ; |
| 7193 | return 0; |
| 7194 | } |
| 7195 | _ACEOF |
| 7196 | rm -f conftest.$ac_objext |
| 7197 | if { (ac_try="$ac_compile" |
| 7198 | case "(($ac_try" in |
| 7199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7200 | *) ac_try_echo=$ac_try;; |
| 7201 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7203 | (eval "$ac_compile") 2>conftest.er1 |
| 7204 | ac_status=$? |
| 7205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7206 | rm -f conftest.er1 |
| 7207 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7209 | (exit $ac_status); } && { |
| 7210 | test -z "$ac_c_werror_flag" || |
| 7211 | test ! -s conftest.err |
| 7212 | } && test -s conftest.$ac_objext; then |
| 7213 | case $ac_type in |
| 7214 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7215 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7216 | esac |
| 7217 | |
| 7218 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7219 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7221 | |
| 7222 | |
| 7223 | fi |
| 7224 | |
| 7225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7226 | test "$ac_cv_c_uint32_t" != no && break |
| 7227 | done |
| 7228 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7229 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7230 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7231 | case $ac_cv_c_uint32_t in #( |
| 7232 | no|yes) ;; #( |
| 7233 | *) |
| 7234 | |
| 7235 | cat >>confdefs.h <<\_ACEOF |
| 7236 | #define _UINT32_T 1 |
| 7237 | _ACEOF |
| 7238 | |
| 7239 | |
| 7240 | cat >>confdefs.h <<_ACEOF |
| 7241 | #define uint32_t $ac_cv_c_uint32_t |
| 7242 | _ACEOF |
| 7243 | ;; |
| 7244 | esac |
| 7245 | |
| 7246 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7247 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7248 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7249 | if test "${ac_cv_c_uint64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7251 | else |
| 7252 | ac_cv_c_uint64_t=no |
| 7253 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7254 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7255 | cat >conftest.$ac_ext <<_ACEOF |
| 7256 | /* confdefs.h. */ |
| 7257 | _ACEOF |
| 7258 | cat confdefs.h >>conftest.$ac_ext |
| 7259 | cat >>conftest.$ac_ext <<_ACEOF |
| 7260 | /* end confdefs.h. */ |
| 7261 | $ac_includes_default |
| 7262 | int |
| 7263 | main () |
| 7264 | { |
| 7265 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7266 | test_array [0] = 0 |
| 7267 | |
| 7268 | ; |
| 7269 | return 0; |
| 7270 | } |
| 7271 | _ACEOF |
| 7272 | rm -f conftest.$ac_objext |
| 7273 | if { (ac_try="$ac_compile" |
| 7274 | case "(($ac_try" in |
| 7275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7276 | *) ac_try_echo=$ac_try;; |
| 7277 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7279 | (eval "$ac_compile") 2>conftest.er1 |
| 7280 | ac_status=$? |
| 7281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7282 | rm -f conftest.er1 |
| 7283 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7285 | (exit $ac_status); } && { |
| 7286 | test -z "$ac_c_werror_flag" || |
| 7287 | test ! -s conftest.err |
| 7288 | } && test -s conftest.$ac_objext; then |
| 7289 | case $ac_type in |
| 7290 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7291 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7292 | esac |
| 7293 | |
| 7294 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7295 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7297 | |
| 7298 | |
| 7299 | fi |
| 7300 | |
| 7301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7302 | test "$ac_cv_c_uint64_t" != no && break |
| 7303 | done |
| 7304 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7305 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7306 | echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7307 | case $ac_cv_c_uint64_t in #( |
| 7308 | no|yes) ;; #( |
| 7309 | *) |
| 7310 | |
| 7311 | cat >>confdefs.h <<\_ACEOF |
| 7312 | #define _UINT64_T 1 |
| 7313 | _ACEOF |
| 7314 | |
| 7315 | |
| 7316 | cat >>confdefs.h <<_ACEOF |
| 7317 | #define uint64_t $ac_cv_c_uint64_t |
| 7318 | _ACEOF |
| 7319 | ;; |
| 7320 | esac |
| 7321 | |
| 7322 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7323 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7324 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7325 | if test "${ac_cv_c_int32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7327 | else |
| 7328 | ac_cv_c_int32_t=no |
| 7329 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7330 | 'long long int' 'short int' 'signed char'; do |
| 7331 | cat >conftest.$ac_ext <<_ACEOF |
| 7332 | /* confdefs.h. */ |
| 7333 | _ACEOF |
| 7334 | cat confdefs.h >>conftest.$ac_ext |
| 7335 | cat >>conftest.$ac_ext <<_ACEOF |
| 7336 | /* end confdefs.h. */ |
| 7337 | $ac_includes_default |
| 7338 | int |
| 7339 | main () |
| 7340 | { |
| 7341 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7342 | test_array [0] = 0 |
| 7343 | |
| 7344 | ; |
| 7345 | return 0; |
| 7346 | } |
| 7347 | _ACEOF |
| 7348 | rm -f conftest.$ac_objext |
| 7349 | if { (ac_try="$ac_compile" |
| 7350 | case "(($ac_try" in |
| 7351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7352 | *) ac_try_echo=$ac_try;; |
| 7353 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7355 | (eval "$ac_compile") 2>conftest.er1 |
| 7356 | ac_status=$? |
| 7357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7358 | rm -f conftest.er1 |
| 7359 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7361 | (exit $ac_status); } && { |
| 7362 | test -z "$ac_c_werror_flag" || |
| 7363 | test ! -s conftest.err |
| 7364 | } && test -s conftest.$ac_objext; then |
| 7365 | cat >conftest.$ac_ext <<_ACEOF |
| 7366 | /* confdefs.h. */ |
| 7367 | _ACEOF |
| 7368 | cat confdefs.h >>conftest.$ac_ext |
| 7369 | cat >>conftest.$ac_ext <<_ACEOF |
| 7370 | /* end confdefs.h. */ |
| 7371 | $ac_includes_default |
| 7372 | int |
| 7373 | main () |
| 7374 | { |
| 7375 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7376 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7377 | test_array [0] = 0 |
| 7378 | |
| 7379 | ; |
| 7380 | return 0; |
| 7381 | } |
| 7382 | _ACEOF |
| 7383 | rm -f conftest.$ac_objext |
| 7384 | if { (ac_try="$ac_compile" |
| 7385 | case "(($ac_try" in |
| 7386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7387 | *) ac_try_echo=$ac_try;; |
| 7388 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7390 | (eval "$ac_compile") 2>conftest.er1 |
| 7391 | ac_status=$? |
| 7392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7393 | rm -f conftest.er1 |
| 7394 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7396 | (exit $ac_status); } && { |
| 7397 | test -z "$ac_c_werror_flag" || |
| 7398 | test ! -s conftest.err |
| 7399 | } && test -s conftest.$ac_objext; then |
| 7400 | : |
| 7401 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7402 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7404 | |
| 7405 | case $ac_type in |
| 7406 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7407 | *) ac_cv_c_int32_t=$ac_type ;; |
| 7408 | esac |
| 7409 | |
| 7410 | fi |
| 7411 | |
| 7412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7413 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7414 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7416 | |
| 7417 | |
| 7418 | fi |
| 7419 | |
| 7420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7421 | test "$ac_cv_c_int32_t" != no && break |
| 7422 | done |
| 7423 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7424 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 7425 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7426 | case $ac_cv_c_int32_t in #( |
| 7427 | no|yes) ;; #( |
| 7428 | *) |
| 7429 | |
| 7430 | cat >>confdefs.h <<_ACEOF |
| 7431 | #define int32_t $ac_cv_c_int32_t |
| 7432 | _ACEOF |
| 7433 | ;; |
| 7434 | esac |
| 7435 | |
| 7436 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7437 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 7438 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7439 | if test "${ac_cv_c_int64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7441 | else |
| 7442 | ac_cv_c_int64_t=no |
| 7443 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 7444 | 'long long int' 'short int' 'signed char'; do |
| 7445 | cat >conftest.$ac_ext <<_ACEOF |
| 7446 | /* confdefs.h. */ |
| 7447 | _ACEOF |
| 7448 | cat confdefs.h >>conftest.$ac_ext |
| 7449 | cat >>conftest.$ac_ext <<_ACEOF |
| 7450 | /* end confdefs.h. */ |
| 7451 | $ac_includes_default |
| 7452 | int |
| 7453 | main () |
| 7454 | { |
| 7455 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 7456 | test_array [0] = 0 |
| 7457 | |
| 7458 | ; |
| 7459 | return 0; |
| 7460 | } |
| 7461 | _ACEOF |
| 7462 | rm -f conftest.$ac_objext |
| 7463 | if { (ac_try="$ac_compile" |
| 7464 | case "(($ac_try" in |
| 7465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7466 | *) ac_try_echo=$ac_try;; |
| 7467 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7469 | (eval "$ac_compile") 2>conftest.er1 |
| 7470 | ac_status=$? |
| 7471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7472 | rm -f conftest.er1 |
| 7473 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7475 | (exit $ac_status); } && { |
| 7476 | test -z "$ac_c_werror_flag" || |
| 7477 | test ! -s conftest.err |
| 7478 | } && test -s conftest.$ac_objext; then |
| 7479 | cat >conftest.$ac_ext <<_ACEOF |
| 7480 | /* confdefs.h. */ |
| 7481 | _ACEOF |
| 7482 | cat confdefs.h >>conftest.$ac_ext |
| 7483 | cat >>conftest.$ac_ext <<_ACEOF |
| 7484 | /* end confdefs.h. */ |
| 7485 | $ac_includes_default |
| 7486 | int |
| 7487 | main () |
| 7488 | { |
| 7489 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7490 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7491 | test_array [0] = 0 |
| 7492 | |
| 7493 | ; |
| 7494 | return 0; |
| 7495 | } |
| 7496 | _ACEOF |
| 7497 | rm -f conftest.$ac_objext |
| 7498 | if { (ac_try="$ac_compile" |
| 7499 | case "(($ac_try" in |
| 7500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7501 | *) ac_try_echo=$ac_try;; |
| 7502 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7504 | (eval "$ac_compile") 2>conftest.er1 |
| 7505 | ac_status=$? |
| 7506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7507 | rm -f conftest.er1 |
| 7508 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7510 | (exit $ac_status); } && { |
| 7511 | test -z "$ac_c_werror_flag" || |
| 7512 | test ! -s conftest.err |
| 7513 | } && test -s conftest.$ac_objext; then |
| 7514 | : |
| 7515 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7516 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7518 | |
| 7519 | case $ac_type in |
| 7520 | int64_t) ac_cv_c_int64_t=yes ;; |
| 7521 | *) ac_cv_c_int64_t=$ac_type ;; |
| 7522 | esac |
| 7523 | |
| 7524 | fi |
| 7525 | |
| 7526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7527 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7528 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7530 | |
| 7531 | |
| 7532 | fi |
| 7533 | |
| 7534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7535 | test "$ac_cv_c_int64_t" != no && break |
| 7536 | done |
| 7537 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7538 | { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 7539 | echo "${ECHO_T}$ac_cv_c_int64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7540 | case $ac_cv_c_int64_t in #( |
| 7541 | no|yes) ;; #( |
| 7542 | *) |
| 7543 | |
| 7544 | cat >>confdefs.h <<_ACEOF |
| 7545 | #define int64_t $ac_cv_c_int64_t |
| 7546 | _ACEOF |
| 7547 | ;; |
| 7548 | esac |
| 7549 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7550 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7551 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7552 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7554 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7555 | cat >conftest.$ac_ext <<_ACEOF |
| 7556 | /* confdefs.h. */ |
| 7557 | _ACEOF |
| 7558 | cat confdefs.h >>conftest.$ac_ext |
| 7559 | cat >>conftest.$ac_ext <<_ACEOF |
| 7560 | /* end confdefs.h. */ |
| 7561 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7562 | typedef ssize_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7563 | int |
| 7564 | main () |
| 7565 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7566 | if ((ac__type_new_ *) 0) |
| 7567 | return 0; |
| 7568 | if (sizeof (ac__type_new_)) |
| 7569 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7570 | ; |
| 7571 | return 0; |
| 7572 | } |
| 7573 | _ACEOF |
| 7574 | rm -f conftest.$ac_objext |
| 7575 | if { (ac_try="$ac_compile" |
| 7576 | case "(($ac_try" in |
| 7577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7578 | *) ac_try_echo=$ac_try;; |
| 7579 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7581 | (eval "$ac_compile") 2>conftest.er1 |
| 7582 | ac_status=$? |
| 7583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7584 | rm -f conftest.er1 |
| 7585 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7587 | (exit $ac_status); } && { |
| 7588 | test -z "$ac_c_werror_flag" || |
| 7589 | test ! -s conftest.err |
| 7590 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7591 | ac_cv_type_ssize_t=yes |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7592 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7593 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7595 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7596 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7597 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7598 | |
| 7599 | 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] | 7600 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7601 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7602 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
| 7603 | if test $ac_cv_type_ssize_t = yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7604 | |
| 7605 | cat >>confdefs.h <<\_ACEOF |
| 7606 | #define HAVE_SSIZE_T 1 |
| 7607 | _ACEOF |
| 7608 | |
| 7609 | fi |
| 7610 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7611 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7612 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7613 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7614 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 7615 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
| 7616 | if test "${ac_cv_type_int+set}" = set; then |
| 7617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7618 | else |
| 7619 | cat >conftest.$ac_ext <<_ACEOF |
| 7620 | /* confdefs.h. */ |
| 7621 | _ACEOF |
| 7622 | cat confdefs.h >>conftest.$ac_ext |
| 7623 | cat >>conftest.$ac_ext <<_ACEOF |
| 7624 | /* end confdefs.h. */ |
| 7625 | $ac_includes_default |
| 7626 | typedef int ac__type_new_; |
| 7627 | int |
| 7628 | main () |
| 7629 | { |
| 7630 | if ((ac__type_new_ *) 0) |
| 7631 | return 0; |
| 7632 | if (sizeof (ac__type_new_)) |
| 7633 | return 0; |
| 7634 | ; |
| 7635 | return 0; |
| 7636 | } |
| 7637 | _ACEOF |
| 7638 | rm -f conftest.$ac_objext |
| 7639 | if { (ac_try="$ac_compile" |
| 7640 | case "(($ac_try" in |
| 7641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7642 | *) ac_try_echo=$ac_try;; |
| 7643 | esac |
| 7644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7645 | (eval "$ac_compile") 2>conftest.er1 |
| 7646 | ac_status=$? |
| 7647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7648 | rm -f conftest.er1 |
| 7649 | cat conftest.err >&5 |
| 7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7651 | (exit $ac_status); } && { |
| 7652 | test -z "$ac_c_werror_flag" || |
| 7653 | test ! -s conftest.err |
| 7654 | } && test -s conftest.$ac_objext; then |
| 7655 | ac_cv_type_int=yes |
| 7656 | else |
| 7657 | echo "$as_me: failed program was:" >&5 |
| 7658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7659 | |
| 7660 | ac_cv_type_int=no |
| 7661 | fi |
| 7662 | |
| 7663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7664 | fi |
| 7665 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 7666 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 7667 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7668 | # The cast to long int works around a bug in the HP C Compiler |
| 7669 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7670 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7671 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7672 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 7673 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7674 | if test "${ac_cv_sizeof_int+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7676 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7677 | if test "$cross_compiling" = yes; then |
| 7678 | # Depending upon the size, compute the lo and hi bounds. |
| 7679 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7680 | /* confdefs.h. */ |
| 7681 | _ACEOF |
| 7682 | cat confdefs.h >>conftest.$ac_ext |
| 7683 | cat >>conftest.$ac_ext <<_ACEOF |
| 7684 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7685 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7686 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7687 | int |
| 7688 | main () |
| 7689 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7690 | 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] | 7691 | test_array [0] = 0 |
| 7692 | |
| 7693 | ; |
| 7694 | return 0; |
| 7695 | } |
| 7696 | _ACEOF |
| 7697 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7698 | if { (ac_try="$ac_compile" |
| 7699 | case "(($ac_try" in |
| 7700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7701 | *) ac_try_echo=$ac_try;; |
| 7702 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7704 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7705 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7707 | rm -f conftest.er1 |
| 7708 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7710 | (exit $ac_status); } && { |
| 7711 | test -z "$ac_c_werror_flag" || |
| 7712 | test ! -s conftest.err |
| 7713 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7714 | ac_lo=0 ac_mid=0 |
| 7715 | while :; do |
| 7716 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7717 | /* confdefs.h. */ |
| 7718 | _ACEOF |
| 7719 | cat confdefs.h >>conftest.$ac_ext |
| 7720 | cat >>conftest.$ac_ext <<_ACEOF |
| 7721 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7722 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7723 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7724 | int |
| 7725 | main () |
| 7726 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7727 | 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] | 7728 | test_array [0] = 0 |
| 7729 | |
| 7730 | ; |
| 7731 | return 0; |
| 7732 | } |
| 7733 | _ACEOF |
| 7734 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7735 | if { (ac_try="$ac_compile" |
| 7736 | case "(($ac_try" in |
| 7737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7738 | *) ac_try_echo=$ac_try;; |
| 7739 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7741 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7742 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7744 | rm -f conftest.er1 |
| 7745 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7747 | (exit $ac_status); } && { |
| 7748 | test -z "$ac_c_werror_flag" || |
| 7749 | test ! -s conftest.err |
| 7750 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7751 | ac_hi=$ac_mid; break |
| 7752 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7753 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7755 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7756 | ac_lo=`expr $ac_mid + 1` |
| 7757 | if test $ac_lo -le $ac_mid; then |
| 7758 | ac_lo= ac_hi= |
| 7759 | break |
| 7760 | fi |
| 7761 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7762 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7763 | |
| 7764 | 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] | 7765 | done |
| 7766 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7767 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7769 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7770 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7771 | /* confdefs.h. */ |
| 7772 | _ACEOF |
| 7773 | cat confdefs.h >>conftest.$ac_ext |
| 7774 | cat >>conftest.$ac_ext <<_ACEOF |
| 7775 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7776 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7777 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7778 | int |
| 7779 | main () |
| 7780 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7781 | 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] | 7782 | test_array [0] = 0 |
| 7783 | |
| 7784 | ; |
| 7785 | return 0; |
| 7786 | } |
| 7787 | _ACEOF |
| 7788 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7789 | if { (ac_try="$ac_compile" |
| 7790 | case "(($ac_try" in |
| 7791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7792 | *) ac_try_echo=$ac_try;; |
| 7793 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7795 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7796 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7798 | rm -f conftest.er1 |
| 7799 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7801 | (exit $ac_status); } && { |
| 7802 | test -z "$ac_c_werror_flag" || |
| 7803 | test ! -s conftest.err |
| 7804 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7805 | ac_hi=-1 ac_mid=-1 |
| 7806 | while :; do |
| 7807 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7808 | /* confdefs.h. */ |
| 7809 | _ACEOF |
| 7810 | cat confdefs.h >>conftest.$ac_ext |
| 7811 | cat >>conftest.$ac_ext <<_ACEOF |
| 7812 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7813 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7814 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7815 | int |
| 7816 | main () |
| 7817 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7818 | 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] | 7819 | test_array [0] = 0 |
| 7820 | |
| 7821 | ; |
| 7822 | return 0; |
| 7823 | } |
| 7824 | _ACEOF |
| 7825 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7826 | if { (ac_try="$ac_compile" |
| 7827 | case "(($ac_try" in |
| 7828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7829 | *) ac_try_echo=$ac_try;; |
| 7830 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7832 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7833 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7835 | rm -f conftest.er1 |
| 7836 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7838 | (exit $ac_status); } && { |
| 7839 | test -z "$ac_c_werror_flag" || |
| 7840 | test ! -s conftest.err |
| 7841 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7842 | ac_lo=$ac_mid; break |
| 7843 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7844 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7846 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7847 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7848 | if test $ac_mid -le $ac_hi; then |
| 7849 | ac_lo= ac_hi= |
| 7850 | break |
| 7851 | fi |
| 7852 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7853 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7854 | |
| 7855 | 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] | 7856 | done |
| 7857 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7861 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7862 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7863 | |
| 7864 | 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] | 7865 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7866 | |
| 7867 | 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] | 7868 | # Binary search between lo and hi bounds. |
| 7869 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7870 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7871 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7872 | /* confdefs.h. */ |
| 7873 | _ACEOF |
| 7874 | cat confdefs.h >>conftest.$ac_ext |
| 7875 | cat >>conftest.$ac_ext <<_ACEOF |
| 7876 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7877 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7878 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7879 | int |
| 7880 | main () |
| 7881 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7882 | 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] | 7883 | test_array [0] = 0 |
| 7884 | |
| 7885 | ; |
| 7886 | return 0; |
| 7887 | } |
| 7888 | _ACEOF |
| 7889 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7890 | if { (ac_try="$ac_compile" |
| 7891 | case "(($ac_try" in |
| 7892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7893 | *) ac_try_echo=$ac_try;; |
| 7894 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7896 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7897 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7899 | rm -f conftest.er1 |
| 7900 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7902 | (exit $ac_status); } && { |
| 7903 | test -z "$ac_c_werror_flag" || |
| 7904 | test ! -s conftest.err |
| 7905 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7906 | ac_hi=$ac_mid |
| 7907 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7908 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7910 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7911 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7912 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7913 | |
| 7914 | 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] | 7915 | done |
| 7916 | case $ac_lo in |
| 7917 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7918 | '') if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7919 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7920 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7921 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7922 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7923 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7924 | else |
| 7925 | ac_cv_sizeof_int=0 |
| 7926 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7927 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7929 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7930 | /* confdefs.h. */ |
| 7931 | _ACEOF |
| 7932 | cat confdefs.h >>conftest.$ac_ext |
| 7933 | cat >>conftest.$ac_ext <<_ACEOF |
| 7934 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7935 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7936 | typedef int ac__type_sizeof_; |
| 7937 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7938 | 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] | 7939 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7940 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7941 | int |
| 7942 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7943 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7944 | |
| 7945 | FILE *f = fopen ("conftest.val", "w"); |
| 7946 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7947 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7948 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7949 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7950 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7951 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7952 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7953 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7954 | } |
| 7955 | else |
| 7956 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7957 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7958 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7959 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7960 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7961 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7962 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7963 | |
| 7964 | ; |
| 7965 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7966 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7967 | _ACEOF |
| 7968 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7969 | if { (ac_try="$ac_link" |
| 7970 | case "(($ac_try" in |
| 7971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7972 | *) ac_try_echo=$ac_try;; |
| 7973 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7975 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7976 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7978 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7979 | { (case "(($ac_try" in |
| 7980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7981 | *) ac_try_echo=$ac_try;; |
| 7982 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7984 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7985 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7987 | (exit $ac_status); }; }; then |
| 7988 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7989 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7990 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7991 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7994 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7995 | if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7996 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7997 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7998 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7999 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8000 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8001 | else |
| 8002 | ac_cv_sizeof_int=0 |
| 8003 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8004 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8005 | 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] | 8006 | fi |
| 8007 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8008 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8009 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 8010 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8011 | |
| 8012 | |
| 8013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8014 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8015 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8016 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8017 | |
| 8018 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8019 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 8020 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
| 8021 | if test "${ac_cv_type_long+set}" = set; then |
| 8022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8023 | else |
| 8024 | cat >conftest.$ac_ext <<_ACEOF |
| 8025 | /* confdefs.h. */ |
| 8026 | _ACEOF |
| 8027 | cat confdefs.h >>conftest.$ac_ext |
| 8028 | cat >>conftest.$ac_ext <<_ACEOF |
| 8029 | /* end confdefs.h. */ |
| 8030 | $ac_includes_default |
| 8031 | typedef long ac__type_new_; |
| 8032 | int |
| 8033 | main () |
| 8034 | { |
| 8035 | if ((ac__type_new_ *) 0) |
| 8036 | return 0; |
| 8037 | if (sizeof (ac__type_new_)) |
| 8038 | return 0; |
| 8039 | ; |
| 8040 | return 0; |
| 8041 | } |
| 8042 | _ACEOF |
| 8043 | rm -f conftest.$ac_objext |
| 8044 | if { (ac_try="$ac_compile" |
| 8045 | case "(($ac_try" in |
| 8046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8047 | *) ac_try_echo=$ac_try;; |
| 8048 | esac |
| 8049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8050 | (eval "$ac_compile") 2>conftest.er1 |
| 8051 | ac_status=$? |
| 8052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8053 | rm -f conftest.er1 |
| 8054 | cat conftest.err >&5 |
| 8055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8056 | (exit $ac_status); } && { |
| 8057 | test -z "$ac_c_werror_flag" || |
| 8058 | test ! -s conftest.err |
| 8059 | } && test -s conftest.$ac_objext; then |
| 8060 | ac_cv_type_long=yes |
| 8061 | else |
| 8062 | echo "$as_me: failed program was:" >&5 |
| 8063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8064 | |
| 8065 | ac_cv_type_long=no |
| 8066 | fi |
| 8067 | |
| 8068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8069 | fi |
| 8070 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 8071 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 8072 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8073 | # The cast to long int works around a bug in the HP C Compiler |
| 8074 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8075 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8076 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8077 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 8078 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8079 | if test "${ac_cv_sizeof_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8081 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8082 | if test "$cross_compiling" = yes; then |
| 8083 | # Depending upon the size, compute the lo and hi bounds. |
| 8084 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8085 | /* confdefs.h. */ |
| 8086 | _ACEOF |
| 8087 | cat confdefs.h >>conftest.$ac_ext |
| 8088 | cat >>conftest.$ac_ext <<_ACEOF |
| 8089 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8090 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8091 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8092 | int |
| 8093 | main () |
| 8094 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8095 | 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] | 8096 | test_array [0] = 0 |
| 8097 | |
| 8098 | ; |
| 8099 | return 0; |
| 8100 | } |
| 8101 | _ACEOF |
| 8102 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8103 | if { (ac_try="$ac_compile" |
| 8104 | case "(($ac_try" in |
| 8105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8106 | *) ac_try_echo=$ac_try;; |
| 8107 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8109 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8110 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8112 | rm -f conftest.er1 |
| 8113 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8115 | (exit $ac_status); } && { |
| 8116 | test -z "$ac_c_werror_flag" || |
| 8117 | test ! -s conftest.err |
| 8118 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8119 | ac_lo=0 ac_mid=0 |
| 8120 | while :; do |
| 8121 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8122 | /* confdefs.h. */ |
| 8123 | _ACEOF |
| 8124 | cat confdefs.h >>conftest.$ac_ext |
| 8125 | cat >>conftest.$ac_ext <<_ACEOF |
| 8126 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8127 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8128 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8129 | int |
| 8130 | main () |
| 8131 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8132 | 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] | 8133 | test_array [0] = 0 |
| 8134 | |
| 8135 | ; |
| 8136 | return 0; |
| 8137 | } |
| 8138 | _ACEOF |
| 8139 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8140 | if { (ac_try="$ac_compile" |
| 8141 | case "(($ac_try" in |
| 8142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8143 | *) ac_try_echo=$ac_try;; |
| 8144 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8146 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8147 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8149 | rm -f conftest.er1 |
| 8150 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8152 | (exit $ac_status); } && { |
| 8153 | test -z "$ac_c_werror_flag" || |
| 8154 | test ! -s conftest.err |
| 8155 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8156 | ac_hi=$ac_mid; break |
| 8157 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8158 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8160 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8161 | ac_lo=`expr $ac_mid + 1` |
| 8162 | if test $ac_lo -le $ac_mid; then |
| 8163 | ac_lo= ac_hi= |
| 8164 | break |
| 8165 | fi |
| 8166 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8167 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8168 | |
| 8169 | 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] | 8170 | done |
| 8171 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8172 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8174 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8175 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8176 | /* confdefs.h. */ |
| 8177 | _ACEOF |
| 8178 | cat confdefs.h >>conftest.$ac_ext |
| 8179 | cat >>conftest.$ac_ext <<_ACEOF |
| 8180 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8181 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8182 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8183 | int |
| 8184 | main () |
| 8185 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8186 | 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] | 8187 | test_array [0] = 0 |
| 8188 | |
| 8189 | ; |
| 8190 | return 0; |
| 8191 | } |
| 8192 | _ACEOF |
| 8193 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8194 | if { (ac_try="$ac_compile" |
| 8195 | case "(($ac_try" in |
| 8196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8197 | *) ac_try_echo=$ac_try;; |
| 8198 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8200 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8201 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8203 | rm -f conftest.er1 |
| 8204 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8206 | (exit $ac_status); } && { |
| 8207 | test -z "$ac_c_werror_flag" || |
| 8208 | test ! -s conftest.err |
| 8209 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8210 | ac_hi=-1 ac_mid=-1 |
| 8211 | while :; do |
| 8212 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8213 | /* confdefs.h. */ |
| 8214 | _ACEOF |
| 8215 | cat confdefs.h >>conftest.$ac_ext |
| 8216 | cat >>conftest.$ac_ext <<_ACEOF |
| 8217 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8218 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8219 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8220 | int |
| 8221 | main () |
| 8222 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8223 | 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] | 8224 | test_array [0] = 0 |
| 8225 | |
| 8226 | ; |
| 8227 | return 0; |
| 8228 | } |
| 8229 | _ACEOF |
| 8230 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8231 | if { (ac_try="$ac_compile" |
| 8232 | case "(($ac_try" in |
| 8233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8234 | *) ac_try_echo=$ac_try;; |
| 8235 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8237 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8238 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8240 | rm -f conftest.er1 |
| 8241 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8243 | (exit $ac_status); } && { |
| 8244 | test -z "$ac_c_werror_flag" || |
| 8245 | test ! -s conftest.err |
| 8246 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8247 | ac_lo=$ac_mid; break |
| 8248 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8249 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8251 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8252 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8253 | if test $ac_mid -le $ac_hi; then |
| 8254 | ac_lo= ac_hi= |
| 8255 | break |
| 8256 | fi |
| 8257 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8258 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8259 | |
| 8260 | 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] | 8261 | done |
| 8262 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8266 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8267 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8268 | |
| 8269 | 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] | 8270 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8271 | |
| 8272 | 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] | 8273 | # Binary search between lo and hi bounds. |
| 8274 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8275 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8276 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8277 | /* confdefs.h. */ |
| 8278 | _ACEOF |
| 8279 | cat confdefs.h >>conftest.$ac_ext |
| 8280 | cat >>conftest.$ac_ext <<_ACEOF |
| 8281 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8282 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8283 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8284 | int |
| 8285 | main () |
| 8286 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8287 | 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] | 8288 | test_array [0] = 0 |
| 8289 | |
| 8290 | ; |
| 8291 | return 0; |
| 8292 | } |
| 8293 | _ACEOF |
| 8294 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8295 | if { (ac_try="$ac_compile" |
| 8296 | case "(($ac_try" in |
| 8297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8298 | *) ac_try_echo=$ac_try;; |
| 8299 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8301 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8302 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8304 | rm -f conftest.er1 |
| 8305 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8307 | (exit $ac_status); } && { |
| 8308 | test -z "$ac_c_werror_flag" || |
| 8309 | test ! -s conftest.err |
| 8310 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8311 | ac_hi=$ac_mid |
| 8312 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8313 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8315 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8316 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8317 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8318 | |
| 8319 | 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] | 8320 | done |
| 8321 | case $ac_lo in |
| 8322 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8323 | '') if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8324 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8325 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8326 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8327 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8328 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8329 | else |
| 8330 | ac_cv_sizeof_long=0 |
| 8331 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8332 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8333 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8334 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8335 | /* confdefs.h. */ |
| 8336 | _ACEOF |
| 8337 | cat confdefs.h >>conftest.$ac_ext |
| 8338 | cat >>conftest.$ac_ext <<_ACEOF |
| 8339 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8340 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8341 | typedef long ac__type_sizeof_; |
| 8342 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8343 | 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] | 8344 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8345 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8346 | int |
| 8347 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8348 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8349 | |
| 8350 | FILE *f = fopen ("conftest.val", "w"); |
| 8351 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8352 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8353 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8354 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8355 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8356 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8357 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8358 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8359 | } |
| 8360 | else |
| 8361 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8362 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8363 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8364 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8365 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8366 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8367 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | |
| 8369 | ; |
| 8370 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8371 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8372 | _ACEOF |
| 8373 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8374 | if { (ac_try="$ac_link" |
| 8375 | case "(($ac_try" in |
| 8376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8377 | *) ac_try_echo=$ac_try;; |
| 8378 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8380 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8381 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8383 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8384 | { (case "(($ac_try" in |
| 8385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8386 | *) ac_try_echo=$ac_try;; |
| 8387 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8389 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8390 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8392 | (exit $ac_status); }; }; then |
| 8393 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8394 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8395 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8396 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8398 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8399 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8400 | if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8401 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8402 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8403 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8404 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8405 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8406 | else |
| 8407 | ac_cv_sizeof_long=0 |
| 8408 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8409 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8410 | 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] | 8411 | fi |
| 8412 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8413 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8414 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8415 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8416 | |
| 8417 | |
| 8418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8419 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8420 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8421 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8422 | |
| 8423 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8424 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 8425 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
| 8426 | if test "${ac_cv_type_void_p+set}" = set; then |
| 8427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8428 | else |
| 8429 | cat >conftest.$ac_ext <<_ACEOF |
| 8430 | /* confdefs.h. */ |
| 8431 | _ACEOF |
| 8432 | cat confdefs.h >>conftest.$ac_ext |
| 8433 | cat >>conftest.$ac_ext <<_ACEOF |
| 8434 | /* end confdefs.h. */ |
| 8435 | $ac_includes_default |
| 8436 | typedef void * ac__type_new_; |
| 8437 | int |
| 8438 | main () |
| 8439 | { |
| 8440 | if ((ac__type_new_ *) 0) |
| 8441 | return 0; |
| 8442 | if (sizeof (ac__type_new_)) |
| 8443 | return 0; |
| 8444 | ; |
| 8445 | return 0; |
| 8446 | } |
| 8447 | _ACEOF |
| 8448 | rm -f conftest.$ac_objext |
| 8449 | if { (ac_try="$ac_compile" |
| 8450 | case "(($ac_try" in |
| 8451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8452 | *) ac_try_echo=$ac_try;; |
| 8453 | esac |
| 8454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8455 | (eval "$ac_compile") 2>conftest.er1 |
| 8456 | ac_status=$? |
| 8457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8458 | rm -f conftest.er1 |
| 8459 | cat conftest.err >&5 |
| 8460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8461 | (exit $ac_status); } && { |
| 8462 | test -z "$ac_c_werror_flag" || |
| 8463 | test ! -s conftest.err |
| 8464 | } && test -s conftest.$ac_objext; then |
| 8465 | ac_cv_type_void_p=yes |
| 8466 | else |
| 8467 | echo "$as_me: failed program was:" >&5 |
| 8468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8469 | |
| 8470 | ac_cv_type_void_p=no |
| 8471 | fi |
| 8472 | |
| 8473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8474 | fi |
| 8475 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 8476 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 8477 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8478 | # The cast to long int works around a bug in the HP C Compiler |
| 8479 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8480 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8481 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8482 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8483 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8484 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8486 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8487 | if test "$cross_compiling" = yes; then |
| 8488 | # Depending upon the size, compute the lo and hi bounds. |
| 8489 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8490 | /* confdefs.h. */ |
| 8491 | _ACEOF |
| 8492 | cat confdefs.h >>conftest.$ac_ext |
| 8493 | cat >>conftest.$ac_ext <<_ACEOF |
| 8494 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8495 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8496 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8497 | int |
| 8498 | main () |
| 8499 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8500 | 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] | 8501 | test_array [0] = 0 |
| 8502 | |
| 8503 | ; |
| 8504 | return 0; |
| 8505 | } |
| 8506 | _ACEOF |
| 8507 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8508 | if { (ac_try="$ac_compile" |
| 8509 | case "(($ac_try" in |
| 8510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8511 | *) ac_try_echo=$ac_try;; |
| 8512 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8514 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8515 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8517 | rm -f conftest.er1 |
| 8518 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8520 | (exit $ac_status); } && { |
| 8521 | test -z "$ac_c_werror_flag" || |
| 8522 | test ! -s conftest.err |
| 8523 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8524 | ac_lo=0 ac_mid=0 |
| 8525 | while :; do |
| 8526 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8527 | /* confdefs.h. */ |
| 8528 | _ACEOF |
| 8529 | cat confdefs.h >>conftest.$ac_ext |
| 8530 | cat >>conftest.$ac_ext <<_ACEOF |
| 8531 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8532 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8533 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | int |
| 8535 | main () |
| 8536 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8537 | 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] | 8538 | test_array [0] = 0 |
| 8539 | |
| 8540 | ; |
| 8541 | return 0; |
| 8542 | } |
| 8543 | _ACEOF |
| 8544 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8545 | if { (ac_try="$ac_compile" |
| 8546 | case "(($ac_try" in |
| 8547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8548 | *) ac_try_echo=$ac_try;; |
| 8549 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8551 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8552 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8554 | rm -f conftest.er1 |
| 8555 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8557 | (exit $ac_status); } && { |
| 8558 | test -z "$ac_c_werror_flag" || |
| 8559 | test ! -s conftest.err |
| 8560 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8561 | ac_hi=$ac_mid; break |
| 8562 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8563 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8565 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8566 | ac_lo=`expr $ac_mid + 1` |
| 8567 | if test $ac_lo -le $ac_mid; then |
| 8568 | ac_lo= ac_hi= |
| 8569 | break |
| 8570 | fi |
| 8571 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8572 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8573 | |
| 8574 | 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] | 8575 | done |
| 8576 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8577 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8579 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8580 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8581 | /* confdefs.h. */ |
| 8582 | _ACEOF |
| 8583 | cat confdefs.h >>conftest.$ac_ext |
| 8584 | cat >>conftest.$ac_ext <<_ACEOF |
| 8585 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8586 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8587 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8588 | int |
| 8589 | main () |
| 8590 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8591 | 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] | 8592 | test_array [0] = 0 |
| 8593 | |
| 8594 | ; |
| 8595 | return 0; |
| 8596 | } |
| 8597 | _ACEOF |
| 8598 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8599 | if { (ac_try="$ac_compile" |
| 8600 | case "(($ac_try" in |
| 8601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8602 | *) ac_try_echo=$ac_try;; |
| 8603 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8605 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8606 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8608 | rm -f conftest.er1 |
| 8609 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8611 | (exit $ac_status); } && { |
| 8612 | test -z "$ac_c_werror_flag" || |
| 8613 | test ! -s conftest.err |
| 8614 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8615 | ac_hi=-1 ac_mid=-1 |
| 8616 | while :; do |
| 8617 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8618 | /* confdefs.h. */ |
| 8619 | _ACEOF |
| 8620 | cat confdefs.h >>conftest.$ac_ext |
| 8621 | cat >>conftest.$ac_ext <<_ACEOF |
| 8622 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8623 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8624 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8625 | int |
| 8626 | main () |
| 8627 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8628 | 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] | 8629 | test_array [0] = 0 |
| 8630 | |
| 8631 | ; |
| 8632 | return 0; |
| 8633 | } |
| 8634 | _ACEOF |
| 8635 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8636 | if { (ac_try="$ac_compile" |
| 8637 | case "(($ac_try" in |
| 8638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8639 | *) ac_try_echo=$ac_try;; |
| 8640 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8642 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8643 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8645 | rm -f conftest.er1 |
| 8646 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8648 | (exit $ac_status); } && { |
| 8649 | test -z "$ac_c_werror_flag" || |
| 8650 | test ! -s conftest.err |
| 8651 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8652 | ac_lo=$ac_mid; break |
| 8653 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8654 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8656 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8657 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8658 | if test $ac_mid -le $ac_hi; then |
| 8659 | ac_lo= ac_hi= |
| 8660 | break |
| 8661 | fi |
| 8662 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8663 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8664 | |
| 8665 | 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] | 8666 | done |
| 8667 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8671 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8672 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8673 | |
| 8674 | 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] | 8675 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8676 | |
| 8677 | 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] | 8678 | # Binary search between lo and hi bounds. |
| 8679 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8680 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8681 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8682 | /* confdefs.h. */ |
| 8683 | _ACEOF |
| 8684 | cat confdefs.h >>conftest.$ac_ext |
| 8685 | cat >>conftest.$ac_ext <<_ACEOF |
| 8686 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8687 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8688 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | int |
| 8690 | main () |
| 8691 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8692 | 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] | 8693 | test_array [0] = 0 |
| 8694 | |
| 8695 | ; |
| 8696 | return 0; |
| 8697 | } |
| 8698 | _ACEOF |
| 8699 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8700 | if { (ac_try="$ac_compile" |
| 8701 | case "(($ac_try" in |
| 8702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8703 | *) ac_try_echo=$ac_try;; |
| 8704 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8706 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8707 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8709 | rm -f conftest.er1 |
| 8710 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8712 | (exit $ac_status); } && { |
| 8713 | test -z "$ac_c_werror_flag" || |
| 8714 | test ! -s conftest.err |
| 8715 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8716 | ac_hi=$ac_mid |
| 8717 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8718 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8720 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8721 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8722 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8723 | |
| 8724 | 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] | 8725 | done |
| 8726 | case $ac_lo in |
| 8727 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8728 | '') if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8729 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8730 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8731 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8732 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8733 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8734 | else |
| 8735 | ac_cv_sizeof_void_p=0 |
| 8736 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8737 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8738 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8739 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8740 | /* confdefs.h. */ |
| 8741 | _ACEOF |
| 8742 | cat confdefs.h >>conftest.$ac_ext |
| 8743 | cat >>conftest.$ac_ext <<_ACEOF |
| 8744 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8745 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8746 | typedef void * ac__type_sizeof_; |
| 8747 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8748 | 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] | 8749 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8750 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8751 | int |
| 8752 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8753 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8754 | |
| 8755 | FILE *f = fopen ("conftest.val", "w"); |
| 8756 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8757 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8758 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8759 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8760 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8761 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8762 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8763 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8764 | } |
| 8765 | else |
| 8766 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8767 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8768 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8769 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8770 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8771 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8772 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8773 | |
| 8774 | ; |
| 8775 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8776 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8777 | _ACEOF |
| 8778 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8779 | if { (ac_try="$ac_link" |
| 8780 | case "(($ac_try" in |
| 8781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8782 | *) ac_try_echo=$ac_try;; |
| 8783 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8785 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8786 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8788 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8789 | { (case "(($ac_try" in |
| 8790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8791 | *) ac_try_echo=$ac_try;; |
| 8792 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8794 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8795 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8797 | (exit $ac_status); }; }; then |
| 8798 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8799 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8800 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8801 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8804 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8805 | if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8806 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8807 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8808 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8809 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8810 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8811 | else |
| 8812 | ac_cv_sizeof_void_p=0 |
| 8813 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8815 | 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] | 8816 | fi |
| 8817 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8818 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8819 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8820 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8821 | |
| 8822 | |
| 8823 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8824 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8825 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8826 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8827 | |
| 8828 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8829 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8830 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
| 8831 | if test "${ac_cv_type_short+set}" = set; then |
| 8832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8833 | else |
| 8834 | cat >conftest.$ac_ext <<_ACEOF |
| 8835 | /* confdefs.h. */ |
| 8836 | _ACEOF |
| 8837 | cat confdefs.h >>conftest.$ac_ext |
| 8838 | cat >>conftest.$ac_ext <<_ACEOF |
| 8839 | /* end confdefs.h. */ |
| 8840 | $ac_includes_default |
| 8841 | typedef short ac__type_new_; |
| 8842 | int |
| 8843 | main () |
| 8844 | { |
| 8845 | if ((ac__type_new_ *) 0) |
| 8846 | return 0; |
| 8847 | if (sizeof (ac__type_new_)) |
| 8848 | return 0; |
| 8849 | ; |
| 8850 | return 0; |
| 8851 | } |
| 8852 | _ACEOF |
| 8853 | rm -f conftest.$ac_objext |
| 8854 | if { (ac_try="$ac_compile" |
| 8855 | case "(($ac_try" in |
| 8856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8857 | *) ac_try_echo=$ac_try;; |
| 8858 | esac |
| 8859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8860 | (eval "$ac_compile") 2>conftest.er1 |
| 8861 | ac_status=$? |
| 8862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8863 | rm -f conftest.er1 |
| 8864 | cat conftest.err >&5 |
| 8865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8866 | (exit $ac_status); } && { |
| 8867 | test -z "$ac_c_werror_flag" || |
| 8868 | test ! -s conftest.err |
| 8869 | } && test -s conftest.$ac_objext; then |
| 8870 | ac_cv_type_short=yes |
| 8871 | else |
| 8872 | echo "$as_me: failed program was:" >&5 |
| 8873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8874 | |
| 8875 | ac_cv_type_short=no |
| 8876 | fi |
| 8877 | |
| 8878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8879 | fi |
| 8880 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8881 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8882 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8883 | # The cast to long int works around a bug in the HP C Compiler |
| 8884 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8885 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8886 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8887 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8888 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8889 | if test "${ac_cv_sizeof_short+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8891 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 | if test "$cross_compiling" = yes; then |
| 8893 | # Depending upon the size, compute the lo and hi bounds. |
| 8894 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8895 | /* confdefs.h. */ |
| 8896 | _ACEOF |
| 8897 | cat confdefs.h >>conftest.$ac_ext |
| 8898 | cat >>conftest.$ac_ext <<_ACEOF |
| 8899 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8900 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8901 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8902 | int |
| 8903 | main () |
| 8904 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8905 | 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] | 8906 | test_array [0] = 0 |
| 8907 | |
| 8908 | ; |
| 8909 | return 0; |
| 8910 | } |
| 8911 | _ACEOF |
| 8912 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8913 | if { (ac_try="$ac_compile" |
| 8914 | case "(($ac_try" in |
| 8915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8916 | *) ac_try_echo=$ac_try;; |
| 8917 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8919 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8920 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8922 | rm -f conftest.er1 |
| 8923 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8925 | (exit $ac_status); } && { |
| 8926 | test -z "$ac_c_werror_flag" || |
| 8927 | test ! -s conftest.err |
| 8928 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8929 | ac_lo=0 ac_mid=0 |
| 8930 | while :; do |
| 8931 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8932 | /* confdefs.h. */ |
| 8933 | _ACEOF |
| 8934 | cat confdefs.h >>conftest.$ac_ext |
| 8935 | cat >>conftest.$ac_ext <<_ACEOF |
| 8936 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8937 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8938 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8939 | int |
| 8940 | main () |
| 8941 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8942 | 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] | 8943 | test_array [0] = 0 |
| 8944 | |
| 8945 | ; |
| 8946 | return 0; |
| 8947 | } |
| 8948 | _ACEOF |
| 8949 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8950 | if { (ac_try="$ac_compile" |
| 8951 | case "(($ac_try" in |
| 8952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8953 | *) ac_try_echo=$ac_try;; |
| 8954 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8956 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8957 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8959 | rm -f conftest.er1 |
| 8960 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8962 | (exit $ac_status); } && { |
| 8963 | test -z "$ac_c_werror_flag" || |
| 8964 | test ! -s conftest.err |
| 8965 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8966 | ac_hi=$ac_mid; break |
| 8967 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8968 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8970 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8971 | ac_lo=`expr $ac_mid + 1` |
| 8972 | if test $ac_lo -le $ac_mid; then |
| 8973 | ac_lo= ac_hi= |
| 8974 | break |
| 8975 | fi |
| 8976 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8977 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8978 | |
| 8979 | 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] | 8980 | done |
| 8981 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8982 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8984 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8985 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8986 | /* confdefs.h. */ |
| 8987 | _ACEOF |
| 8988 | cat confdefs.h >>conftest.$ac_ext |
| 8989 | cat >>conftest.$ac_ext <<_ACEOF |
| 8990 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8991 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8992 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8993 | int |
| 8994 | main () |
| 8995 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8996 | 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] | 8997 | test_array [0] = 0 |
| 8998 | |
| 8999 | ; |
| 9000 | return 0; |
| 9001 | } |
| 9002 | _ACEOF |
| 9003 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9004 | if { (ac_try="$ac_compile" |
| 9005 | case "(($ac_try" in |
| 9006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9007 | *) ac_try_echo=$ac_try;; |
| 9008 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9010 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9011 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9013 | rm -f conftest.er1 |
| 9014 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9016 | (exit $ac_status); } && { |
| 9017 | test -z "$ac_c_werror_flag" || |
| 9018 | test ! -s conftest.err |
| 9019 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9020 | ac_hi=-1 ac_mid=-1 |
| 9021 | while :; do |
| 9022 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9023 | /* confdefs.h. */ |
| 9024 | _ACEOF |
| 9025 | cat confdefs.h >>conftest.$ac_ext |
| 9026 | cat >>conftest.$ac_ext <<_ACEOF |
| 9027 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9028 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9029 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9030 | int |
| 9031 | main () |
| 9032 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9033 | 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] | 9034 | test_array [0] = 0 |
| 9035 | |
| 9036 | ; |
| 9037 | return 0; |
| 9038 | } |
| 9039 | _ACEOF |
| 9040 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9041 | if { (ac_try="$ac_compile" |
| 9042 | case "(($ac_try" in |
| 9043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9044 | *) ac_try_echo=$ac_try;; |
| 9045 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9047 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9048 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9050 | rm -f conftest.er1 |
| 9051 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9053 | (exit $ac_status); } && { |
| 9054 | test -z "$ac_c_werror_flag" || |
| 9055 | test ! -s conftest.err |
| 9056 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9057 | ac_lo=$ac_mid; break |
| 9058 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9059 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9061 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9062 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9063 | if test $ac_mid -le $ac_hi; then |
| 9064 | ac_lo= ac_hi= |
| 9065 | break |
| 9066 | fi |
| 9067 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9068 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9069 | |
| 9070 | 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] | 9071 | done |
| 9072 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9076 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9077 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9078 | |
| 9079 | 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] | 9080 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9081 | |
| 9082 | 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] | 9083 | # Binary search between lo and hi bounds. |
| 9084 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9085 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9086 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9087 | /* confdefs.h. */ |
| 9088 | _ACEOF |
| 9089 | cat confdefs.h >>conftest.$ac_ext |
| 9090 | cat >>conftest.$ac_ext <<_ACEOF |
| 9091 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9092 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9093 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | int |
| 9095 | main () |
| 9096 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9097 | 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] | 9098 | test_array [0] = 0 |
| 9099 | |
| 9100 | ; |
| 9101 | return 0; |
| 9102 | } |
| 9103 | _ACEOF |
| 9104 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9105 | if { (ac_try="$ac_compile" |
| 9106 | case "(($ac_try" in |
| 9107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9108 | *) ac_try_echo=$ac_try;; |
| 9109 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9111 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9112 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9114 | rm -f conftest.er1 |
| 9115 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9117 | (exit $ac_status); } && { |
| 9118 | test -z "$ac_c_werror_flag" || |
| 9119 | test ! -s conftest.err |
| 9120 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9121 | ac_hi=$ac_mid |
| 9122 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9123 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9125 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9126 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9127 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9128 | |
| 9129 | 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] | 9130 | done |
| 9131 | case $ac_lo in |
| 9132 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9133 | '') if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9134 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9135 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9136 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9137 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9138 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9139 | else |
| 9140 | ac_cv_sizeof_short=0 |
| 9141 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9142 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9144 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9145 | /* confdefs.h. */ |
| 9146 | _ACEOF |
| 9147 | cat confdefs.h >>conftest.$ac_ext |
| 9148 | cat >>conftest.$ac_ext <<_ACEOF |
| 9149 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9150 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9151 | typedef short ac__type_sizeof_; |
| 9152 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9153 | 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] | 9154 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9155 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9156 | int |
| 9157 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9158 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9159 | |
| 9160 | FILE *f = fopen ("conftest.val", "w"); |
| 9161 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9162 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9163 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9164 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9165 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9166 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9167 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9168 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9169 | } |
| 9170 | else |
| 9171 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9172 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9173 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9174 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9175 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9176 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9177 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9178 | |
| 9179 | ; |
| 9180 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9181 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9182 | _ACEOF |
| 9183 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9184 | if { (ac_try="$ac_link" |
| 9185 | case "(($ac_try" in |
| 9186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9187 | *) ac_try_echo=$ac_try;; |
| 9188 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9190 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9191 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9193 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9194 | { (case "(($ac_try" in |
| 9195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9196 | *) ac_try_echo=$ac_try;; |
| 9197 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9199 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9200 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9202 | (exit $ac_status); }; }; then |
| 9203 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9204 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9205 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9206 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9209 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9210 | if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9211 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9212 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9213 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9214 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9215 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9216 | else |
| 9217 | ac_cv_sizeof_short=0 |
| 9218 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9220 | 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] | 9221 | fi |
| 9222 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9223 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9224 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9225 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9226 | |
| 9227 | |
| 9228 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9229 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9230 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9231 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9232 | |
| 9233 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9234 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 9235 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
| 9236 | if test "${ac_cv_type_float+set}" = set; then |
| 9237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9238 | else |
| 9239 | cat >conftest.$ac_ext <<_ACEOF |
| 9240 | /* confdefs.h. */ |
| 9241 | _ACEOF |
| 9242 | cat confdefs.h >>conftest.$ac_ext |
| 9243 | cat >>conftest.$ac_ext <<_ACEOF |
| 9244 | /* end confdefs.h. */ |
| 9245 | $ac_includes_default |
| 9246 | typedef float ac__type_new_; |
| 9247 | int |
| 9248 | main () |
| 9249 | { |
| 9250 | if ((ac__type_new_ *) 0) |
| 9251 | return 0; |
| 9252 | if (sizeof (ac__type_new_)) |
| 9253 | return 0; |
| 9254 | ; |
| 9255 | return 0; |
| 9256 | } |
| 9257 | _ACEOF |
| 9258 | rm -f conftest.$ac_objext |
| 9259 | if { (ac_try="$ac_compile" |
| 9260 | case "(($ac_try" in |
| 9261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9262 | *) ac_try_echo=$ac_try;; |
| 9263 | esac |
| 9264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9265 | (eval "$ac_compile") 2>conftest.er1 |
| 9266 | ac_status=$? |
| 9267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9268 | rm -f conftest.er1 |
| 9269 | cat conftest.err >&5 |
| 9270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9271 | (exit $ac_status); } && { |
| 9272 | test -z "$ac_c_werror_flag" || |
| 9273 | test ! -s conftest.err |
| 9274 | } && test -s conftest.$ac_objext; then |
| 9275 | ac_cv_type_float=yes |
| 9276 | else |
| 9277 | echo "$as_me: failed program was:" >&5 |
| 9278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9279 | |
| 9280 | ac_cv_type_float=no |
| 9281 | fi |
| 9282 | |
| 9283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9284 | fi |
| 9285 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 9286 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 9287 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9288 | # The cast to long int works around a bug in the HP C Compiler |
| 9289 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9290 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9291 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9292 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 9293 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9294 | if test "${ac_cv_sizeof_float+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9296 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9297 | if test "$cross_compiling" = yes; then |
| 9298 | # Depending upon the size, compute the lo and hi bounds. |
| 9299 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9300 | /* confdefs.h. */ |
| 9301 | _ACEOF |
| 9302 | cat confdefs.h >>conftest.$ac_ext |
| 9303 | cat >>conftest.$ac_ext <<_ACEOF |
| 9304 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9305 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9306 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9307 | int |
| 9308 | main () |
| 9309 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9310 | 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] | 9311 | test_array [0] = 0 |
| 9312 | |
| 9313 | ; |
| 9314 | return 0; |
| 9315 | } |
| 9316 | _ACEOF |
| 9317 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9318 | if { (ac_try="$ac_compile" |
| 9319 | case "(($ac_try" in |
| 9320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9321 | *) ac_try_echo=$ac_try;; |
| 9322 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9324 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9325 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9326 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9327 | rm -f conftest.er1 |
| 9328 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9330 | (exit $ac_status); } && { |
| 9331 | test -z "$ac_c_werror_flag" || |
| 9332 | test ! -s conftest.err |
| 9333 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9334 | ac_lo=0 ac_mid=0 |
| 9335 | while :; do |
| 9336 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9337 | /* confdefs.h. */ |
| 9338 | _ACEOF |
| 9339 | cat confdefs.h >>conftest.$ac_ext |
| 9340 | cat >>conftest.$ac_ext <<_ACEOF |
| 9341 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9342 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9343 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9344 | int |
| 9345 | main () |
| 9346 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9347 | 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] | 9348 | test_array [0] = 0 |
| 9349 | |
| 9350 | ; |
| 9351 | return 0; |
| 9352 | } |
| 9353 | _ACEOF |
| 9354 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9355 | if { (ac_try="$ac_compile" |
| 9356 | case "(($ac_try" in |
| 9357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9358 | *) ac_try_echo=$ac_try;; |
| 9359 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9361 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9362 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9364 | rm -f conftest.er1 |
| 9365 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9367 | (exit $ac_status); } && { |
| 9368 | test -z "$ac_c_werror_flag" || |
| 9369 | test ! -s conftest.err |
| 9370 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9371 | ac_hi=$ac_mid; break |
| 9372 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9373 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9375 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9376 | ac_lo=`expr $ac_mid + 1` |
| 9377 | if test $ac_lo -le $ac_mid; then |
| 9378 | ac_lo= ac_hi= |
| 9379 | break |
| 9380 | fi |
| 9381 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9382 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9383 | |
| 9384 | 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] | 9385 | done |
| 9386 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9387 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9389 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9390 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9391 | /* confdefs.h. */ |
| 9392 | _ACEOF |
| 9393 | cat confdefs.h >>conftest.$ac_ext |
| 9394 | cat >>conftest.$ac_ext <<_ACEOF |
| 9395 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9396 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9397 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9398 | int |
| 9399 | main () |
| 9400 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9401 | 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] | 9402 | test_array [0] = 0 |
| 9403 | |
| 9404 | ; |
| 9405 | return 0; |
| 9406 | } |
| 9407 | _ACEOF |
| 9408 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9409 | if { (ac_try="$ac_compile" |
| 9410 | case "(($ac_try" in |
| 9411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9412 | *) ac_try_echo=$ac_try;; |
| 9413 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9415 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9416 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9418 | rm -f conftest.er1 |
| 9419 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9421 | (exit $ac_status); } && { |
| 9422 | test -z "$ac_c_werror_flag" || |
| 9423 | test ! -s conftest.err |
| 9424 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9425 | ac_hi=-1 ac_mid=-1 |
| 9426 | while :; do |
| 9427 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9428 | /* confdefs.h. */ |
| 9429 | _ACEOF |
| 9430 | cat confdefs.h >>conftest.$ac_ext |
| 9431 | cat >>conftest.$ac_ext <<_ACEOF |
| 9432 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9433 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9434 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9435 | int |
| 9436 | main () |
| 9437 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9438 | 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] | 9439 | test_array [0] = 0 |
| 9440 | |
| 9441 | ; |
| 9442 | return 0; |
| 9443 | } |
| 9444 | _ACEOF |
| 9445 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9446 | if { (ac_try="$ac_compile" |
| 9447 | case "(($ac_try" in |
| 9448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9449 | *) ac_try_echo=$ac_try;; |
| 9450 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9452 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9453 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9455 | rm -f conftest.er1 |
| 9456 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9458 | (exit $ac_status); } && { |
| 9459 | test -z "$ac_c_werror_flag" || |
| 9460 | test ! -s conftest.err |
| 9461 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9462 | ac_lo=$ac_mid; break |
| 9463 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9464 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9466 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9467 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9468 | if test $ac_mid -le $ac_hi; then |
| 9469 | ac_lo= ac_hi= |
| 9470 | break |
| 9471 | fi |
| 9472 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9473 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9474 | |
| 9475 | 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] | 9476 | done |
| 9477 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 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 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9481 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9482 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9483 | |
| 9484 | 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] | 9485 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9486 | |
| 9487 | 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] | 9488 | # Binary search between lo and hi bounds. |
| 9489 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9490 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9491 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9492 | /* confdefs.h. */ |
| 9493 | _ACEOF |
| 9494 | cat confdefs.h >>conftest.$ac_ext |
| 9495 | cat >>conftest.$ac_ext <<_ACEOF |
| 9496 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9497 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9498 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | int |
| 9500 | main () |
| 9501 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9502 | 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] | 9503 | test_array [0] = 0 |
| 9504 | |
| 9505 | ; |
| 9506 | return 0; |
| 9507 | } |
| 9508 | _ACEOF |
| 9509 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9510 | if { (ac_try="$ac_compile" |
| 9511 | case "(($ac_try" in |
| 9512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9513 | *) ac_try_echo=$ac_try;; |
| 9514 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9516 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9517 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9519 | rm -f conftest.er1 |
| 9520 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9522 | (exit $ac_status); } && { |
| 9523 | test -z "$ac_c_werror_flag" || |
| 9524 | test ! -s conftest.err |
| 9525 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9526 | ac_hi=$ac_mid |
| 9527 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9528 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9530 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9531 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9532 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9533 | |
| 9534 | 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] | 9535 | done |
| 9536 | case $ac_lo in |
| 9537 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9538 | '') if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9539 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9540 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9541 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9542 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9543 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9544 | else |
| 9545 | ac_cv_sizeof_float=0 |
| 9546 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9547 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9549 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9550 | /* confdefs.h. */ |
| 9551 | _ACEOF |
| 9552 | cat confdefs.h >>conftest.$ac_ext |
| 9553 | cat >>conftest.$ac_ext <<_ACEOF |
| 9554 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9555 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9556 | typedef float ac__type_sizeof_; |
| 9557 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9558 | 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] | 9559 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9560 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9561 | int |
| 9562 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9563 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9564 | |
| 9565 | FILE *f = fopen ("conftest.val", "w"); |
| 9566 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9567 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9568 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9569 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9570 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9571 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9572 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9573 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9574 | } |
| 9575 | else |
| 9576 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9577 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9578 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9579 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9580 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9581 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9582 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9583 | |
| 9584 | ; |
| 9585 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9586 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9587 | _ACEOF |
| 9588 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9589 | if { (ac_try="$ac_link" |
| 9590 | case "(($ac_try" in |
| 9591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9592 | *) ac_try_echo=$ac_try;; |
| 9593 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9595 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9596 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9598 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9599 | { (case "(($ac_try" in |
| 9600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9601 | *) ac_try_echo=$ac_try;; |
| 9602 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9604 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9605 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9607 | (exit $ac_status); }; }; then |
| 9608 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9609 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9610 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9611 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9614 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9615 | if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9616 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9617 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9618 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9619 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9620 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9621 | else |
| 9622 | ac_cv_sizeof_float=0 |
| 9623 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9624 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9625 | 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] | 9626 | fi |
| 9627 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9628 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9629 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9630 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9631 | |
| 9632 | |
| 9633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9634 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9635 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9636 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9637 | |
| 9638 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9639 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 9640 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
| 9641 | if test "${ac_cv_type_double+set}" = set; then |
| 9642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9643 | else |
| 9644 | cat >conftest.$ac_ext <<_ACEOF |
| 9645 | /* confdefs.h. */ |
| 9646 | _ACEOF |
| 9647 | cat confdefs.h >>conftest.$ac_ext |
| 9648 | cat >>conftest.$ac_ext <<_ACEOF |
| 9649 | /* end confdefs.h. */ |
| 9650 | $ac_includes_default |
| 9651 | typedef double ac__type_new_; |
| 9652 | int |
| 9653 | main () |
| 9654 | { |
| 9655 | if ((ac__type_new_ *) 0) |
| 9656 | return 0; |
| 9657 | if (sizeof (ac__type_new_)) |
| 9658 | return 0; |
| 9659 | ; |
| 9660 | return 0; |
| 9661 | } |
| 9662 | _ACEOF |
| 9663 | rm -f conftest.$ac_objext |
| 9664 | if { (ac_try="$ac_compile" |
| 9665 | case "(($ac_try" in |
| 9666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9667 | *) ac_try_echo=$ac_try;; |
| 9668 | esac |
| 9669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9670 | (eval "$ac_compile") 2>conftest.er1 |
| 9671 | ac_status=$? |
| 9672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9673 | rm -f conftest.er1 |
| 9674 | cat conftest.err >&5 |
| 9675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9676 | (exit $ac_status); } && { |
| 9677 | test -z "$ac_c_werror_flag" || |
| 9678 | test ! -s conftest.err |
| 9679 | } && test -s conftest.$ac_objext; then |
| 9680 | ac_cv_type_double=yes |
| 9681 | else |
| 9682 | echo "$as_me: failed program was:" >&5 |
| 9683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9684 | |
| 9685 | ac_cv_type_double=no |
| 9686 | fi |
| 9687 | |
| 9688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9689 | fi |
| 9690 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9691 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9692 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9693 | # The cast to long int works around a bug in the HP C Compiler |
| 9694 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9695 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9696 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9697 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9698 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9699 | if test "${ac_cv_sizeof_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9701 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9702 | if test "$cross_compiling" = yes; then |
| 9703 | # Depending upon the size, compute the lo and hi bounds. |
| 9704 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9705 | /* confdefs.h. */ |
| 9706 | _ACEOF |
| 9707 | cat confdefs.h >>conftest.$ac_ext |
| 9708 | cat >>conftest.$ac_ext <<_ACEOF |
| 9709 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9710 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9711 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9712 | int |
| 9713 | main () |
| 9714 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9715 | 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] | 9716 | test_array [0] = 0 |
| 9717 | |
| 9718 | ; |
| 9719 | return 0; |
| 9720 | } |
| 9721 | _ACEOF |
| 9722 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9723 | if { (ac_try="$ac_compile" |
| 9724 | case "(($ac_try" in |
| 9725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9726 | *) ac_try_echo=$ac_try;; |
| 9727 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9729 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9730 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9732 | rm -f conftest.er1 |
| 9733 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9735 | (exit $ac_status); } && { |
| 9736 | test -z "$ac_c_werror_flag" || |
| 9737 | test ! -s conftest.err |
| 9738 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9739 | ac_lo=0 ac_mid=0 |
| 9740 | while :; do |
| 9741 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9742 | /* confdefs.h. */ |
| 9743 | _ACEOF |
| 9744 | cat confdefs.h >>conftest.$ac_ext |
| 9745 | cat >>conftest.$ac_ext <<_ACEOF |
| 9746 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9747 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9748 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | int |
| 9750 | main () |
| 9751 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9752 | 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] | 9753 | test_array [0] = 0 |
| 9754 | |
| 9755 | ; |
| 9756 | return 0; |
| 9757 | } |
| 9758 | _ACEOF |
| 9759 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9760 | if { (ac_try="$ac_compile" |
| 9761 | case "(($ac_try" in |
| 9762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9763 | *) ac_try_echo=$ac_try;; |
| 9764 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9766 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9767 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9769 | rm -f conftest.er1 |
| 9770 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9772 | (exit $ac_status); } && { |
| 9773 | test -z "$ac_c_werror_flag" || |
| 9774 | test ! -s conftest.err |
| 9775 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9776 | ac_hi=$ac_mid; break |
| 9777 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9778 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9780 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9781 | ac_lo=`expr $ac_mid + 1` |
| 9782 | if test $ac_lo -le $ac_mid; then |
| 9783 | ac_lo= ac_hi= |
| 9784 | break |
| 9785 | fi |
| 9786 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9787 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9788 | |
| 9789 | 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] | 9790 | done |
| 9791 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9792 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9794 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9795 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9796 | /* confdefs.h. */ |
| 9797 | _ACEOF |
| 9798 | cat confdefs.h >>conftest.$ac_ext |
| 9799 | cat >>conftest.$ac_ext <<_ACEOF |
| 9800 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9801 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9802 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9803 | int |
| 9804 | main () |
| 9805 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9806 | 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] | 9807 | test_array [0] = 0 |
| 9808 | |
| 9809 | ; |
| 9810 | return 0; |
| 9811 | } |
| 9812 | _ACEOF |
| 9813 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9814 | if { (ac_try="$ac_compile" |
| 9815 | case "(($ac_try" in |
| 9816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9817 | *) ac_try_echo=$ac_try;; |
| 9818 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9820 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9821 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9822 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9823 | rm -f conftest.er1 |
| 9824 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9826 | (exit $ac_status); } && { |
| 9827 | test -z "$ac_c_werror_flag" || |
| 9828 | test ! -s conftest.err |
| 9829 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9830 | ac_hi=-1 ac_mid=-1 |
| 9831 | while :; do |
| 9832 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9833 | /* confdefs.h. */ |
| 9834 | _ACEOF |
| 9835 | cat confdefs.h >>conftest.$ac_ext |
| 9836 | cat >>conftest.$ac_ext <<_ACEOF |
| 9837 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9838 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9839 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9840 | int |
| 9841 | main () |
| 9842 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9843 | 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] | 9844 | test_array [0] = 0 |
| 9845 | |
| 9846 | ; |
| 9847 | return 0; |
| 9848 | } |
| 9849 | _ACEOF |
| 9850 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9851 | if { (ac_try="$ac_compile" |
| 9852 | case "(($ac_try" in |
| 9853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9854 | *) ac_try_echo=$ac_try;; |
| 9855 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9857 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9858 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9860 | rm -f conftest.er1 |
| 9861 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9863 | (exit $ac_status); } && { |
| 9864 | test -z "$ac_c_werror_flag" || |
| 9865 | test ! -s conftest.err |
| 9866 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9867 | ac_lo=$ac_mid; break |
| 9868 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9869 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9871 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9872 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9873 | if test $ac_mid -le $ac_hi; then |
| 9874 | ac_lo= ac_hi= |
| 9875 | break |
| 9876 | fi |
| 9877 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9878 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9879 | |
| 9880 | 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] | 9881 | done |
| 9882 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9883 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9885 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9886 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9887 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9888 | |
| 9889 | 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] | 9890 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9891 | |
| 9892 | 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] | 9893 | # Binary search between lo and hi bounds. |
| 9894 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9895 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9896 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9897 | /* confdefs.h. */ |
| 9898 | _ACEOF |
| 9899 | cat confdefs.h >>conftest.$ac_ext |
| 9900 | cat >>conftest.$ac_ext <<_ACEOF |
| 9901 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9902 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9903 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9904 | int |
| 9905 | main () |
| 9906 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9907 | 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] | 9908 | test_array [0] = 0 |
| 9909 | |
| 9910 | ; |
| 9911 | return 0; |
| 9912 | } |
| 9913 | _ACEOF |
| 9914 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9915 | if { (ac_try="$ac_compile" |
| 9916 | case "(($ac_try" in |
| 9917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9918 | *) ac_try_echo=$ac_try;; |
| 9919 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9921 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9922 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9924 | rm -f conftest.er1 |
| 9925 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9927 | (exit $ac_status); } && { |
| 9928 | test -z "$ac_c_werror_flag" || |
| 9929 | test ! -s conftest.err |
| 9930 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9931 | ac_hi=$ac_mid |
| 9932 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9933 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9935 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9936 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9937 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9938 | |
| 9939 | 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] | 9940 | done |
| 9941 | case $ac_lo in |
| 9942 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9943 | '') if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9944 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9945 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9946 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9947 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9948 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9949 | else |
| 9950 | ac_cv_sizeof_double=0 |
| 9951 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9952 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9954 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9955 | /* confdefs.h. */ |
| 9956 | _ACEOF |
| 9957 | cat confdefs.h >>conftest.$ac_ext |
| 9958 | cat >>conftest.$ac_ext <<_ACEOF |
| 9959 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9960 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9961 | typedef double ac__type_sizeof_; |
| 9962 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9963 | 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] | 9964 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9965 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9966 | int |
| 9967 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9968 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9969 | |
| 9970 | FILE *f = fopen ("conftest.val", "w"); |
| 9971 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9972 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9973 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9974 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9975 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9976 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9977 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9978 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9979 | } |
| 9980 | else |
| 9981 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9982 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9983 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9984 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9985 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9986 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9987 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9988 | |
| 9989 | ; |
| 9990 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9991 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9992 | _ACEOF |
| 9993 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9994 | if { (ac_try="$ac_link" |
| 9995 | case "(($ac_try" in |
| 9996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9997 | *) ac_try_echo=$ac_try;; |
| 9998 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10000 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10001 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10003 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10004 | { (case "(($ac_try" in |
| 10005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10006 | *) ac_try_echo=$ac_try;; |
| 10007 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10009 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10010 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10012 | (exit $ac_status); }; }; then |
| 10013 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10014 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10015 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10016 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10019 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10020 | if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10021 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10022 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10023 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10024 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10025 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10026 | else |
| 10027 | ac_cv_sizeof_double=0 |
| 10028 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10029 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10030 | 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] | 10031 | fi |
| 10032 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10033 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10034 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 10035 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10036 | |
| 10037 | |
| 10038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10039 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10040 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10041 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 10042 | |
| 10043 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10044 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 10045 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
| 10046 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 10047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10048 | else |
| 10049 | cat >conftest.$ac_ext <<_ACEOF |
| 10050 | /* confdefs.h. */ |
| 10051 | _ACEOF |
| 10052 | cat confdefs.h >>conftest.$ac_ext |
| 10053 | cat >>conftest.$ac_ext <<_ACEOF |
| 10054 | /* end confdefs.h. */ |
| 10055 | $ac_includes_default |
| 10056 | typedef fpos_t ac__type_new_; |
| 10057 | int |
| 10058 | main () |
| 10059 | { |
| 10060 | if ((ac__type_new_ *) 0) |
| 10061 | return 0; |
| 10062 | if (sizeof (ac__type_new_)) |
| 10063 | return 0; |
| 10064 | ; |
| 10065 | return 0; |
| 10066 | } |
| 10067 | _ACEOF |
| 10068 | rm -f conftest.$ac_objext |
| 10069 | if { (ac_try="$ac_compile" |
| 10070 | case "(($ac_try" in |
| 10071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10072 | *) ac_try_echo=$ac_try;; |
| 10073 | esac |
| 10074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10075 | (eval "$ac_compile") 2>conftest.er1 |
| 10076 | ac_status=$? |
| 10077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10078 | rm -f conftest.er1 |
| 10079 | cat conftest.err >&5 |
| 10080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10081 | (exit $ac_status); } && { |
| 10082 | test -z "$ac_c_werror_flag" || |
| 10083 | test ! -s conftest.err |
| 10084 | } && test -s conftest.$ac_objext; then |
| 10085 | ac_cv_type_fpos_t=yes |
| 10086 | else |
| 10087 | echo "$as_me: failed program was:" >&5 |
| 10088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10089 | |
| 10090 | ac_cv_type_fpos_t=no |
| 10091 | fi |
| 10092 | |
| 10093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10094 | fi |
| 10095 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 10096 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 10097 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10098 | # The cast to long int works around a bug in the HP C Compiler |
| 10099 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10100 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10101 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10102 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 10103 | 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] | 10104 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10106 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10107 | if test "$cross_compiling" = yes; then |
| 10108 | # Depending upon the size, compute the lo and hi bounds. |
| 10109 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10110 | /* confdefs.h. */ |
| 10111 | _ACEOF |
| 10112 | cat confdefs.h >>conftest.$ac_ext |
| 10113 | cat >>conftest.$ac_ext <<_ACEOF |
| 10114 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10115 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10116 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10117 | int |
| 10118 | main () |
| 10119 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10120 | 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] | 10121 | test_array [0] = 0 |
| 10122 | |
| 10123 | ; |
| 10124 | return 0; |
| 10125 | } |
| 10126 | _ACEOF |
| 10127 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10128 | if { (ac_try="$ac_compile" |
| 10129 | case "(($ac_try" in |
| 10130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10131 | *) ac_try_echo=$ac_try;; |
| 10132 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10134 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10135 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10137 | rm -f conftest.er1 |
| 10138 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10140 | (exit $ac_status); } && { |
| 10141 | test -z "$ac_c_werror_flag" || |
| 10142 | test ! -s conftest.err |
| 10143 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10144 | ac_lo=0 ac_mid=0 |
| 10145 | while :; do |
| 10146 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10147 | /* confdefs.h. */ |
| 10148 | _ACEOF |
| 10149 | cat confdefs.h >>conftest.$ac_ext |
| 10150 | cat >>conftest.$ac_ext <<_ACEOF |
| 10151 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10152 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10153 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10154 | int |
| 10155 | main () |
| 10156 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10157 | 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] | 10158 | test_array [0] = 0 |
| 10159 | |
| 10160 | ; |
| 10161 | return 0; |
| 10162 | } |
| 10163 | _ACEOF |
| 10164 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10165 | if { (ac_try="$ac_compile" |
| 10166 | case "(($ac_try" in |
| 10167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10168 | *) ac_try_echo=$ac_try;; |
| 10169 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10171 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10172 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10174 | rm -f conftest.er1 |
| 10175 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10177 | (exit $ac_status); } && { |
| 10178 | test -z "$ac_c_werror_flag" || |
| 10179 | test ! -s conftest.err |
| 10180 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10181 | ac_hi=$ac_mid; break |
| 10182 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10183 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10185 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10186 | ac_lo=`expr $ac_mid + 1` |
| 10187 | if test $ac_lo -le $ac_mid; then |
| 10188 | ac_lo= ac_hi= |
| 10189 | break |
| 10190 | fi |
| 10191 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10192 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10193 | |
| 10194 | 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] | 10195 | done |
| 10196 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10197 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10199 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10200 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10201 | /* confdefs.h. */ |
| 10202 | _ACEOF |
| 10203 | cat confdefs.h >>conftest.$ac_ext |
| 10204 | cat >>conftest.$ac_ext <<_ACEOF |
| 10205 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10206 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10207 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10208 | int |
| 10209 | main () |
| 10210 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10211 | 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] | 10212 | test_array [0] = 0 |
| 10213 | |
| 10214 | ; |
| 10215 | return 0; |
| 10216 | } |
| 10217 | _ACEOF |
| 10218 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10219 | if { (ac_try="$ac_compile" |
| 10220 | case "(($ac_try" in |
| 10221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10222 | *) ac_try_echo=$ac_try;; |
| 10223 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10225 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10226 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10228 | rm -f conftest.er1 |
| 10229 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10231 | (exit $ac_status); } && { |
| 10232 | test -z "$ac_c_werror_flag" || |
| 10233 | test ! -s conftest.err |
| 10234 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10235 | ac_hi=-1 ac_mid=-1 |
| 10236 | while :; do |
| 10237 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10238 | /* confdefs.h. */ |
| 10239 | _ACEOF |
| 10240 | cat confdefs.h >>conftest.$ac_ext |
| 10241 | cat >>conftest.$ac_ext <<_ACEOF |
| 10242 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10243 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10244 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10245 | int |
| 10246 | main () |
| 10247 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10248 | 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] | 10249 | test_array [0] = 0 |
| 10250 | |
| 10251 | ; |
| 10252 | return 0; |
| 10253 | } |
| 10254 | _ACEOF |
| 10255 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10256 | if { (ac_try="$ac_compile" |
| 10257 | case "(($ac_try" in |
| 10258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10259 | *) ac_try_echo=$ac_try;; |
| 10260 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10262 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10263 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10265 | rm -f conftest.er1 |
| 10266 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10268 | (exit $ac_status); } && { |
| 10269 | test -z "$ac_c_werror_flag" || |
| 10270 | test ! -s conftest.err |
| 10271 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10272 | ac_lo=$ac_mid; break |
| 10273 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10274 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10276 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10277 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10278 | if test $ac_mid -le $ac_hi; then |
| 10279 | ac_lo= ac_hi= |
| 10280 | break |
| 10281 | fi |
| 10282 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10283 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10284 | |
| 10285 | 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] | 10286 | done |
| 10287 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10288 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10290 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10291 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10292 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10293 | |
| 10294 | 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] | 10295 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10296 | |
| 10297 | 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] | 10298 | # Binary search between lo and hi bounds. |
| 10299 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10300 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10301 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10302 | /* confdefs.h. */ |
| 10303 | _ACEOF |
| 10304 | cat confdefs.h >>conftest.$ac_ext |
| 10305 | cat >>conftest.$ac_ext <<_ACEOF |
| 10306 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10307 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10308 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10309 | int |
| 10310 | main () |
| 10311 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10312 | 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] | 10313 | test_array [0] = 0 |
| 10314 | |
| 10315 | ; |
| 10316 | return 0; |
| 10317 | } |
| 10318 | _ACEOF |
| 10319 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10320 | if { (ac_try="$ac_compile" |
| 10321 | case "(($ac_try" in |
| 10322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10323 | *) ac_try_echo=$ac_try;; |
| 10324 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10326 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10327 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10329 | rm -f conftest.er1 |
| 10330 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10332 | (exit $ac_status); } && { |
| 10333 | test -z "$ac_c_werror_flag" || |
| 10334 | test ! -s conftest.err |
| 10335 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10336 | ac_hi=$ac_mid |
| 10337 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10338 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10340 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10341 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10342 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10343 | |
| 10344 | 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] | 10345 | done |
| 10346 | case $ac_lo in |
| 10347 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10348 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10349 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10350 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10351 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10352 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10353 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10354 | else |
| 10355 | ac_cv_sizeof_fpos_t=0 |
| 10356 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10357 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10358 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10359 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10360 | /* confdefs.h. */ |
| 10361 | _ACEOF |
| 10362 | cat confdefs.h >>conftest.$ac_ext |
| 10363 | cat >>conftest.$ac_ext <<_ACEOF |
| 10364 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10365 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10366 | typedef fpos_t ac__type_sizeof_; |
| 10367 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10368 | 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] | 10369 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10370 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10371 | int |
| 10372 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10373 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10374 | |
| 10375 | FILE *f = fopen ("conftest.val", "w"); |
| 10376 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10377 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10378 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10379 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10380 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10381 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10382 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10383 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | } |
| 10385 | else |
| 10386 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10387 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10388 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10389 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10390 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10391 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10392 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10393 | |
| 10394 | ; |
| 10395 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10396 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 | _ACEOF |
| 10398 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10399 | if { (ac_try="$ac_link" |
| 10400 | case "(($ac_try" in |
| 10401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10402 | *) ac_try_echo=$ac_try;; |
| 10403 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10405 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10406 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10408 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10409 | { (case "(($ac_try" in |
| 10410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10411 | *) ac_try_echo=$ac_try;; |
| 10412 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10414 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10415 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10417 | (exit $ac_status); }; }; then |
| 10418 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10419 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10420 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10421 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10424 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10425 | if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10426 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10427 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10428 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10429 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10430 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10431 | else |
| 10432 | ac_cv_sizeof_fpos_t=0 |
| 10433 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10434 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10435 | 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] | 10436 | fi |
| 10437 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10438 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10439 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10440 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10441 | |
| 10442 | |
| 10443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10444 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10445 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10446 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10447 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10448 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10449 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10450 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 10451 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10453 | else |
| 10454 | cat >conftest.$ac_ext <<_ACEOF |
| 10455 | /* confdefs.h. */ |
| 10456 | _ACEOF |
| 10457 | cat confdefs.h >>conftest.$ac_ext |
| 10458 | cat >>conftest.$ac_ext <<_ACEOF |
| 10459 | /* end confdefs.h. */ |
| 10460 | $ac_includes_default |
| 10461 | typedef size_t ac__type_new_; |
| 10462 | int |
| 10463 | main () |
| 10464 | { |
| 10465 | if ((ac__type_new_ *) 0) |
| 10466 | return 0; |
| 10467 | if (sizeof (ac__type_new_)) |
| 10468 | return 0; |
| 10469 | ; |
| 10470 | return 0; |
| 10471 | } |
| 10472 | _ACEOF |
| 10473 | rm -f conftest.$ac_objext |
| 10474 | if { (ac_try="$ac_compile" |
| 10475 | case "(($ac_try" in |
| 10476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10477 | *) ac_try_echo=$ac_try;; |
| 10478 | esac |
| 10479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10480 | (eval "$ac_compile") 2>conftest.er1 |
| 10481 | ac_status=$? |
| 10482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10483 | rm -f conftest.er1 |
| 10484 | cat conftest.err >&5 |
| 10485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10486 | (exit $ac_status); } && { |
| 10487 | test -z "$ac_c_werror_flag" || |
| 10488 | test ! -s conftest.err |
| 10489 | } && test -s conftest.$ac_objext; then |
| 10490 | ac_cv_type_size_t=yes |
| 10491 | else |
| 10492 | echo "$as_me: failed program was:" >&5 |
| 10493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10494 | |
| 10495 | ac_cv_type_size_t=no |
| 10496 | fi |
| 10497 | |
| 10498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10499 | fi |
| 10500 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10501 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 10502 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10503 | # The cast to long int works around a bug in the HP C Compiler |
| 10504 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10505 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10506 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10507 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10508 | 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] | 10509 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10511 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10512 | if test "$cross_compiling" = yes; then |
| 10513 | # Depending upon the size, compute the lo and hi bounds. |
| 10514 | cat >conftest.$ac_ext <<_ACEOF |
| 10515 | /* confdefs.h. */ |
| 10516 | _ACEOF |
| 10517 | cat confdefs.h >>conftest.$ac_ext |
| 10518 | cat >>conftest.$ac_ext <<_ACEOF |
| 10519 | /* end confdefs.h. */ |
| 10520 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10521 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10522 | int |
| 10523 | main () |
| 10524 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10525 | 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] | 10526 | test_array [0] = 0 |
| 10527 | |
| 10528 | ; |
| 10529 | return 0; |
| 10530 | } |
| 10531 | _ACEOF |
| 10532 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10533 | if { (ac_try="$ac_compile" |
| 10534 | case "(($ac_try" in |
| 10535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10536 | *) ac_try_echo=$ac_try;; |
| 10537 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10539 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10540 | ac_status=$? |
| 10541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10542 | rm -f conftest.er1 |
| 10543 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10545 | (exit $ac_status); } && { |
| 10546 | test -z "$ac_c_werror_flag" || |
| 10547 | test ! -s conftest.err |
| 10548 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10549 | ac_lo=0 ac_mid=0 |
| 10550 | while :; do |
| 10551 | cat >conftest.$ac_ext <<_ACEOF |
| 10552 | /* confdefs.h. */ |
| 10553 | _ACEOF |
| 10554 | cat confdefs.h >>conftest.$ac_ext |
| 10555 | cat >>conftest.$ac_ext <<_ACEOF |
| 10556 | /* end confdefs.h. */ |
| 10557 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10558 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10559 | int |
| 10560 | main () |
| 10561 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10562 | 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] | 10563 | test_array [0] = 0 |
| 10564 | |
| 10565 | ; |
| 10566 | return 0; |
| 10567 | } |
| 10568 | _ACEOF |
| 10569 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10570 | if { (ac_try="$ac_compile" |
| 10571 | case "(($ac_try" in |
| 10572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10573 | *) ac_try_echo=$ac_try;; |
| 10574 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10576 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10577 | ac_status=$? |
| 10578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10579 | rm -f conftest.er1 |
| 10580 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10582 | (exit $ac_status); } && { |
| 10583 | test -z "$ac_c_werror_flag" || |
| 10584 | test ! -s conftest.err |
| 10585 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10586 | ac_hi=$ac_mid; break |
| 10587 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10588 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10590 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10591 | ac_lo=`expr $ac_mid + 1` |
| 10592 | if test $ac_lo -le $ac_mid; then |
| 10593 | ac_lo= ac_hi= |
| 10594 | break |
| 10595 | fi |
| 10596 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10597 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10598 | |
| 10599 | 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] | 10600 | done |
| 10601 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10602 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10604 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10605 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10606 | /* confdefs.h. */ |
| 10607 | _ACEOF |
| 10608 | cat confdefs.h >>conftest.$ac_ext |
| 10609 | cat >>conftest.$ac_ext <<_ACEOF |
| 10610 | /* end confdefs.h. */ |
| 10611 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10612 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10613 | int |
| 10614 | main () |
| 10615 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10616 | 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] | 10617 | test_array [0] = 0 |
| 10618 | |
| 10619 | ; |
| 10620 | return 0; |
| 10621 | } |
| 10622 | _ACEOF |
| 10623 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10624 | if { (ac_try="$ac_compile" |
| 10625 | case "(($ac_try" in |
| 10626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10627 | *) ac_try_echo=$ac_try;; |
| 10628 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10630 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10631 | ac_status=$? |
| 10632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10633 | rm -f conftest.er1 |
| 10634 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10636 | (exit $ac_status); } && { |
| 10637 | test -z "$ac_c_werror_flag" || |
| 10638 | test ! -s conftest.err |
| 10639 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10640 | ac_hi=-1 ac_mid=-1 |
| 10641 | while :; do |
| 10642 | cat >conftest.$ac_ext <<_ACEOF |
| 10643 | /* confdefs.h. */ |
| 10644 | _ACEOF |
| 10645 | cat confdefs.h >>conftest.$ac_ext |
| 10646 | cat >>conftest.$ac_ext <<_ACEOF |
| 10647 | /* end confdefs.h. */ |
| 10648 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10649 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10650 | int |
| 10651 | main () |
| 10652 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10653 | 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] | 10654 | test_array [0] = 0 |
| 10655 | |
| 10656 | ; |
| 10657 | return 0; |
| 10658 | } |
| 10659 | _ACEOF |
| 10660 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10661 | if { (ac_try="$ac_compile" |
| 10662 | case "(($ac_try" in |
| 10663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10664 | *) ac_try_echo=$ac_try;; |
| 10665 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10667 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10668 | ac_status=$? |
| 10669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10670 | rm -f conftest.er1 |
| 10671 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10673 | (exit $ac_status); } && { |
| 10674 | test -z "$ac_c_werror_flag" || |
| 10675 | test ! -s conftest.err |
| 10676 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10677 | ac_lo=$ac_mid; break |
| 10678 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10679 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10681 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10682 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10683 | if test $ac_mid -le $ac_hi; then |
| 10684 | ac_lo= ac_hi= |
| 10685 | break |
| 10686 | fi |
| 10687 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10688 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10689 | |
| 10690 | 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] | 10691 | done |
| 10692 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10693 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10695 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10696 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10697 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10698 | |
| 10699 | 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] | 10700 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10701 | |
| 10702 | 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] | 10703 | # Binary search between lo and hi bounds. |
| 10704 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10705 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10706 | cat >conftest.$ac_ext <<_ACEOF |
| 10707 | /* confdefs.h. */ |
| 10708 | _ACEOF |
| 10709 | cat confdefs.h >>conftest.$ac_ext |
| 10710 | cat >>conftest.$ac_ext <<_ACEOF |
| 10711 | /* end confdefs.h. */ |
| 10712 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10713 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10714 | int |
| 10715 | main () |
| 10716 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10717 | 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] | 10718 | test_array [0] = 0 |
| 10719 | |
| 10720 | ; |
| 10721 | return 0; |
| 10722 | } |
| 10723 | _ACEOF |
| 10724 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10725 | if { (ac_try="$ac_compile" |
| 10726 | case "(($ac_try" in |
| 10727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10728 | *) ac_try_echo=$ac_try;; |
| 10729 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10731 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10732 | ac_status=$? |
| 10733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10734 | rm -f conftest.er1 |
| 10735 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10737 | (exit $ac_status); } && { |
| 10738 | test -z "$ac_c_werror_flag" || |
| 10739 | test ! -s conftest.err |
| 10740 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10741 | ac_hi=$ac_mid |
| 10742 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10743 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10745 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10746 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10747 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10748 | |
| 10749 | 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] | 10750 | done |
| 10751 | case $ac_lo in |
| 10752 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10753 | '') if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10754 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10755 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10756 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10757 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10758 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10759 | else |
| 10760 | ac_cv_sizeof_size_t=0 |
| 10761 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10762 | esac |
| 10763 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10764 | cat >conftest.$ac_ext <<_ACEOF |
| 10765 | /* confdefs.h. */ |
| 10766 | _ACEOF |
| 10767 | cat confdefs.h >>conftest.$ac_ext |
| 10768 | cat >>conftest.$ac_ext <<_ACEOF |
| 10769 | /* end confdefs.h. */ |
| 10770 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10771 | typedef size_t ac__type_sizeof_; |
| 10772 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10773 | 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] | 10774 | #include <stdio.h> |
| 10775 | #include <stdlib.h> |
| 10776 | int |
| 10777 | main () |
| 10778 | { |
| 10779 | |
| 10780 | FILE *f = fopen ("conftest.val", "w"); |
| 10781 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10782 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10783 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10784 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10785 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10786 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10787 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10788 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10789 | } |
| 10790 | else |
| 10791 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10792 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10793 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10794 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10795 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10796 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10797 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10798 | |
| 10799 | ; |
| 10800 | return 0; |
| 10801 | } |
| 10802 | _ACEOF |
| 10803 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10804 | if { (ac_try="$ac_link" |
| 10805 | case "(($ac_try" in |
| 10806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10807 | *) ac_try_echo=$ac_try;; |
| 10808 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10810 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10811 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10813 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10814 | { (case "(($ac_try" in |
| 10815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10816 | *) ac_try_echo=$ac_try;; |
| 10817 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10819 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10820 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10822 | (exit $ac_status); }; }; then |
| 10823 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10824 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10825 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10826 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10828 | |
| 10829 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10830 | if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10831 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10832 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10833 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10834 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10835 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10836 | else |
| 10837 | ac_cv_sizeof_size_t=0 |
| 10838 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10839 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10840 | 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] | 10841 | fi |
| 10842 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10843 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10844 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10845 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10846 | |
| 10847 | |
| 10848 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10849 | cat >>confdefs.h <<_ACEOF |
| 10850 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10851 | _ACEOF |
| 10852 | |
| 10853 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10854 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10855 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10856 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10858 | else |
| 10859 | cat >conftest.$ac_ext <<_ACEOF |
| 10860 | /* confdefs.h. */ |
| 10861 | _ACEOF |
| 10862 | cat confdefs.h >>conftest.$ac_ext |
| 10863 | cat >>conftest.$ac_ext <<_ACEOF |
| 10864 | /* end confdefs.h. */ |
| 10865 | $ac_includes_default |
| 10866 | typedef pid_t ac__type_new_; |
| 10867 | int |
| 10868 | main () |
| 10869 | { |
| 10870 | if ((ac__type_new_ *) 0) |
| 10871 | return 0; |
| 10872 | if (sizeof (ac__type_new_)) |
| 10873 | return 0; |
| 10874 | ; |
| 10875 | return 0; |
| 10876 | } |
| 10877 | _ACEOF |
| 10878 | rm -f conftest.$ac_objext |
| 10879 | if { (ac_try="$ac_compile" |
| 10880 | case "(($ac_try" in |
| 10881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10882 | *) ac_try_echo=$ac_try;; |
| 10883 | esac |
| 10884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10885 | (eval "$ac_compile") 2>conftest.er1 |
| 10886 | ac_status=$? |
| 10887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10888 | rm -f conftest.er1 |
| 10889 | cat conftest.err >&5 |
| 10890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10891 | (exit $ac_status); } && { |
| 10892 | test -z "$ac_c_werror_flag" || |
| 10893 | test ! -s conftest.err |
| 10894 | } && test -s conftest.$ac_objext; then |
| 10895 | ac_cv_type_pid_t=yes |
| 10896 | else |
| 10897 | echo "$as_me: failed program was:" >&5 |
| 10898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10899 | |
| 10900 | ac_cv_type_pid_t=no |
| 10901 | fi |
| 10902 | |
| 10903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10904 | fi |
| 10905 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10906 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10907 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10908 | # The cast to long int works around a bug in the HP C Compiler |
| 10909 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10910 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10911 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10912 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10913 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10914 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10916 | else |
| 10917 | if test "$cross_compiling" = yes; then |
| 10918 | # Depending upon the size, compute the lo and hi bounds. |
| 10919 | cat >conftest.$ac_ext <<_ACEOF |
| 10920 | /* confdefs.h. */ |
| 10921 | _ACEOF |
| 10922 | cat confdefs.h >>conftest.$ac_ext |
| 10923 | cat >>conftest.$ac_ext <<_ACEOF |
| 10924 | /* end confdefs.h. */ |
| 10925 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10926 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10927 | int |
| 10928 | main () |
| 10929 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10930 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10931 | test_array [0] = 0 |
| 10932 | |
| 10933 | ; |
| 10934 | return 0; |
| 10935 | } |
| 10936 | _ACEOF |
| 10937 | rm -f conftest.$ac_objext |
| 10938 | if { (ac_try="$ac_compile" |
| 10939 | case "(($ac_try" in |
| 10940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10941 | *) ac_try_echo=$ac_try;; |
| 10942 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10944 | (eval "$ac_compile") 2>conftest.er1 |
| 10945 | ac_status=$? |
| 10946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10947 | rm -f conftest.er1 |
| 10948 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10950 | (exit $ac_status); } && { |
| 10951 | test -z "$ac_c_werror_flag" || |
| 10952 | test ! -s conftest.err |
| 10953 | } && test -s conftest.$ac_objext; then |
| 10954 | ac_lo=0 ac_mid=0 |
| 10955 | while :; do |
| 10956 | cat >conftest.$ac_ext <<_ACEOF |
| 10957 | /* confdefs.h. */ |
| 10958 | _ACEOF |
| 10959 | cat confdefs.h >>conftest.$ac_ext |
| 10960 | cat >>conftest.$ac_ext <<_ACEOF |
| 10961 | /* end confdefs.h. */ |
| 10962 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10963 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10964 | int |
| 10965 | main () |
| 10966 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10967 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10968 | test_array [0] = 0 |
| 10969 | |
| 10970 | ; |
| 10971 | return 0; |
| 10972 | } |
| 10973 | _ACEOF |
| 10974 | rm -f conftest.$ac_objext |
| 10975 | if { (ac_try="$ac_compile" |
| 10976 | case "(($ac_try" in |
| 10977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10978 | *) ac_try_echo=$ac_try;; |
| 10979 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10981 | (eval "$ac_compile") 2>conftest.er1 |
| 10982 | ac_status=$? |
| 10983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10984 | rm -f conftest.er1 |
| 10985 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10987 | (exit $ac_status); } && { |
| 10988 | test -z "$ac_c_werror_flag" || |
| 10989 | test ! -s conftest.err |
| 10990 | } && test -s conftest.$ac_objext; then |
| 10991 | ac_hi=$ac_mid; break |
| 10992 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10993 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10995 | |
| 10996 | ac_lo=`expr $ac_mid + 1` |
| 10997 | if test $ac_lo -le $ac_mid; then |
| 10998 | ac_lo= ac_hi= |
| 10999 | break |
| 11000 | fi |
| 11001 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11002 | fi |
| 11003 | |
| 11004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11005 | done |
| 11006 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11007 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11009 | |
| 11010 | cat >conftest.$ac_ext <<_ACEOF |
| 11011 | /* confdefs.h. */ |
| 11012 | _ACEOF |
| 11013 | cat confdefs.h >>conftest.$ac_ext |
| 11014 | cat >>conftest.$ac_ext <<_ACEOF |
| 11015 | /* end confdefs.h. */ |
| 11016 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11017 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11018 | int |
| 11019 | main () |
| 11020 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11021 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11022 | test_array [0] = 0 |
| 11023 | |
| 11024 | ; |
| 11025 | return 0; |
| 11026 | } |
| 11027 | _ACEOF |
| 11028 | rm -f conftest.$ac_objext |
| 11029 | if { (ac_try="$ac_compile" |
| 11030 | case "(($ac_try" in |
| 11031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11032 | *) ac_try_echo=$ac_try;; |
| 11033 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11035 | (eval "$ac_compile") 2>conftest.er1 |
| 11036 | ac_status=$? |
| 11037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11038 | rm -f conftest.er1 |
| 11039 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11041 | (exit $ac_status); } && { |
| 11042 | test -z "$ac_c_werror_flag" || |
| 11043 | test ! -s conftest.err |
| 11044 | } && test -s conftest.$ac_objext; then |
| 11045 | ac_hi=-1 ac_mid=-1 |
| 11046 | while :; do |
| 11047 | cat >conftest.$ac_ext <<_ACEOF |
| 11048 | /* confdefs.h. */ |
| 11049 | _ACEOF |
| 11050 | cat confdefs.h >>conftest.$ac_ext |
| 11051 | cat >>conftest.$ac_ext <<_ACEOF |
| 11052 | /* end confdefs.h. */ |
| 11053 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11054 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11055 | int |
| 11056 | main () |
| 11057 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11058 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11059 | test_array [0] = 0 |
| 11060 | |
| 11061 | ; |
| 11062 | return 0; |
| 11063 | } |
| 11064 | _ACEOF |
| 11065 | rm -f conftest.$ac_objext |
| 11066 | if { (ac_try="$ac_compile" |
| 11067 | case "(($ac_try" in |
| 11068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11069 | *) ac_try_echo=$ac_try;; |
| 11070 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11072 | (eval "$ac_compile") 2>conftest.er1 |
| 11073 | ac_status=$? |
| 11074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11075 | rm -f conftest.er1 |
| 11076 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11078 | (exit $ac_status); } && { |
| 11079 | test -z "$ac_c_werror_flag" || |
| 11080 | test ! -s conftest.err |
| 11081 | } && test -s conftest.$ac_objext; then |
| 11082 | ac_lo=$ac_mid; break |
| 11083 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11084 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11086 | |
| 11087 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11088 | if test $ac_mid -le $ac_hi; then |
| 11089 | ac_lo= ac_hi= |
| 11090 | break |
| 11091 | fi |
| 11092 | ac_mid=`expr 2 '*' $ac_mid` |
| 11093 | fi |
| 11094 | |
| 11095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11096 | done |
| 11097 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11098 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11100 | |
| 11101 | ac_lo= ac_hi= |
| 11102 | fi |
| 11103 | |
| 11104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11105 | fi |
| 11106 | |
| 11107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11108 | # Binary search between lo and hi bounds. |
| 11109 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11110 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11111 | cat >conftest.$ac_ext <<_ACEOF |
| 11112 | /* confdefs.h. */ |
| 11113 | _ACEOF |
| 11114 | cat confdefs.h >>conftest.$ac_ext |
| 11115 | cat >>conftest.$ac_ext <<_ACEOF |
| 11116 | /* end confdefs.h. */ |
| 11117 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11118 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11119 | int |
| 11120 | main () |
| 11121 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11122 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11123 | test_array [0] = 0 |
| 11124 | |
| 11125 | ; |
| 11126 | return 0; |
| 11127 | } |
| 11128 | _ACEOF |
| 11129 | rm -f conftest.$ac_objext |
| 11130 | if { (ac_try="$ac_compile" |
| 11131 | case "(($ac_try" in |
| 11132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11133 | *) ac_try_echo=$ac_try;; |
| 11134 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11136 | (eval "$ac_compile") 2>conftest.er1 |
| 11137 | ac_status=$? |
| 11138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11139 | rm -f conftest.er1 |
| 11140 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11142 | (exit $ac_status); } && { |
| 11143 | test -z "$ac_c_werror_flag" || |
| 11144 | test ! -s conftest.err |
| 11145 | } && test -s conftest.$ac_objext; then |
| 11146 | ac_hi=$ac_mid |
| 11147 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11148 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11150 | |
| 11151 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11152 | fi |
| 11153 | |
| 11154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11155 | done |
| 11156 | case $ac_lo in |
| 11157 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11158 | '') if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11159 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11160 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11161 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11162 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11163 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11164 | else |
| 11165 | ac_cv_sizeof_pid_t=0 |
| 11166 | fi ;; |
| 11167 | esac |
| 11168 | else |
| 11169 | cat >conftest.$ac_ext <<_ACEOF |
| 11170 | /* confdefs.h. */ |
| 11171 | _ACEOF |
| 11172 | cat confdefs.h >>conftest.$ac_ext |
| 11173 | cat >>conftest.$ac_ext <<_ACEOF |
| 11174 | /* end confdefs.h. */ |
| 11175 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11176 | typedef pid_t ac__type_sizeof_; |
| 11177 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11178 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11179 | #include <stdio.h> |
| 11180 | #include <stdlib.h> |
| 11181 | int |
| 11182 | main () |
| 11183 | { |
| 11184 | |
| 11185 | FILE *f = fopen ("conftest.val", "w"); |
| 11186 | if (! f) |
| 11187 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11188 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11189 | { |
| 11190 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11191 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11192 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11193 | fprintf (f, "%ld\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11194 | } |
| 11195 | else |
| 11196 | { |
| 11197 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11198 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11199 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11200 | fprintf (f, "%lu\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11201 | } |
| 11202 | return ferror (f) || fclose (f) != 0; |
| 11203 | |
| 11204 | ; |
| 11205 | return 0; |
| 11206 | } |
| 11207 | _ACEOF |
| 11208 | rm -f conftest$ac_exeext |
| 11209 | if { (ac_try="$ac_link" |
| 11210 | case "(($ac_try" in |
| 11211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11212 | *) ac_try_echo=$ac_try;; |
| 11213 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11215 | (eval "$ac_link") 2>&5 |
| 11216 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11218 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11219 | { (case "(($ac_try" in |
| 11220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11221 | *) ac_try_echo=$ac_try;; |
| 11222 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11224 | (eval "$ac_try") 2>&5 |
| 11225 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11227 | (exit $ac_status); }; }; then |
| 11228 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11229 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11230 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11231 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11233 | |
| 11234 | ( exit $ac_status ) |
| 11235 | if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11236 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11237 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11238 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11239 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11240 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11241 | else |
| 11242 | ac_cv_sizeof_pid_t=0 |
| 11243 | fi |
| 11244 | fi |
| 11245 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11246 | fi |
| 11247 | rm -f conftest.val |
| 11248 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11249 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11250 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11251 | |
| 11252 | |
| 11253 | |
| 11254 | cat >>confdefs.h <<_ACEOF |
| 11255 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11256 | _ACEOF |
| 11257 | |
| 11258 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11259 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11260 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11261 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11262 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11263 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11264 | /* confdefs.h. */ |
| 11265 | _ACEOF |
| 11266 | cat confdefs.h >>conftest.$ac_ext |
| 11267 | cat >>conftest.$ac_ext <<_ACEOF |
| 11268 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11270 | int |
| 11271 | main () |
| 11272 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11273 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11274 | ; |
| 11275 | return 0; |
| 11276 | } |
| 11277 | _ACEOF |
| 11278 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11279 | if { (ac_try="$ac_compile" |
| 11280 | case "(($ac_try" in |
| 11281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11282 | *) ac_try_echo=$ac_try;; |
| 11283 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11285 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11286 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11288 | rm -f conftest.er1 |
| 11289 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11291 | (exit $ac_status); } && { |
| 11292 | test -z "$ac_c_werror_flag" || |
| 11293 | test ! -s conftest.err |
| 11294 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11295 | |
| 11296 | |
| 11297 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11298 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11299 | _ACEOF |
| 11300 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11301 | have_long_long=yes |
| 11302 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11303 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11304 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11306 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11307 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11308 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11309 | |
| 11310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11311 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11312 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11313 | if test "$have_long_long" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11314 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 11315 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 11316 | if test "${ac_cv_type_long_long+set}" = set; then |
| 11317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11318 | else |
| 11319 | cat >conftest.$ac_ext <<_ACEOF |
| 11320 | /* confdefs.h. */ |
| 11321 | _ACEOF |
| 11322 | cat confdefs.h >>conftest.$ac_ext |
| 11323 | cat >>conftest.$ac_ext <<_ACEOF |
| 11324 | /* end confdefs.h. */ |
| 11325 | $ac_includes_default |
| 11326 | typedef long long ac__type_new_; |
| 11327 | int |
| 11328 | main () |
| 11329 | { |
| 11330 | if ((ac__type_new_ *) 0) |
| 11331 | return 0; |
| 11332 | if (sizeof (ac__type_new_)) |
| 11333 | return 0; |
| 11334 | ; |
| 11335 | return 0; |
| 11336 | } |
| 11337 | _ACEOF |
| 11338 | rm -f conftest.$ac_objext |
| 11339 | if { (ac_try="$ac_compile" |
| 11340 | case "(($ac_try" in |
| 11341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11342 | *) ac_try_echo=$ac_try;; |
| 11343 | esac |
| 11344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11345 | (eval "$ac_compile") 2>conftest.er1 |
| 11346 | ac_status=$? |
| 11347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11348 | rm -f conftest.er1 |
| 11349 | cat conftest.err >&5 |
| 11350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11351 | (exit $ac_status); } && { |
| 11352 | test -z "$ac_c_werror_flag" || |
| 11353 | test ! -s conftest.err |
| 11354 | } && test -s conftest.$ac_objext; then |
| 11355 | ac_cv_type_long_long=yes |
| 11356 | else |
| 11357 | echo "$as_me: failed program was:" >&5 |
| 11358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11359 | |
| 11360 | ac_cv_type_long_long=no |
| 11361 | fi |
| 11362 | |
| 11363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11364 | fi |
| 11365 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 11366 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 11367 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11368 | # The cast to long int works around a bug in the HP C Compiler |
| 11369 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11370 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11371 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11372 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11373 | 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] | 11374 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11376 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11377 | if test "$cross_compiling" = yes; then |
| 11378 | # Depending upon the size, compute the lo and hi bounds. |
| 11379 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11380 | /* confdefs.h. */ |
| 11381 | _ACEOF |
| 11382 | cat confdefs.h >>conftest.$ac_ext |
| 11383 | cat >>conftest.$ac_ext <<_ACEOF |
| 11384 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11385 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11386 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11387 | int |
| 11388 | main () |
| 11389 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11390 | 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] | 11391 | test_array [0] = 0 |
| 11392 | |
| 11393 | ; |
| 11394 | return 0; |
| 11395 | } |
| 11396 | _ACEOF |
| 11397 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11398 | if { (ac_try="$ac_compile" |
| 11399 | case "(($ac_try" in |
| 11400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11401 | *) ac_try_echo=$ac_try;; |
| 11402 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11404 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11405 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11407 | rm -f conftest.er1 |
| 11408 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11410 | (exit $ac_status); } && { |
| 11411 | test -z "$ac_c_werror_flag" || |
| 11412 | test ! -s conftest.err |
| 11413 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11414 | ac_lo=0 ac_mid=0 |
| 11415 | while :; do |
| 11416 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11417 | /* confdefs.h. */ |
| 11418 | _ACEOF |
| 11419 | cat confdefs.h >>conftest.$ac_ext |
| 11420 | cat >>conftest.$ac_ext <<_ACEOF |
| 11421 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11422 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11423 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11424 | int |
| 11425 | main () |
| 11426 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11427 | 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] | 11428 | test_array [0] = 0 |
| 11429 | |
| 11430 | ; |
| 11431 | return 0; |
| 11432 | } |
| 11433 | _ACEOF |
| 11434 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11435 | if { (ac_try="$ac_compile" |
| 11436 | case "(($ac_try" in |
| 11437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11438 | *) ac_try_echo=$ac_try;; |
| 11439 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11441 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11442 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11444 | rm -f conftest.er1 |
| 11445 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11447 | (exit $ac_status); } && { |
| 11448 | test -z "$ac_c_werror_flag" || |
| 11449 | test ! -s conftest.err |
| 11450 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11451 | ac_hi=$ac_mid; break |
| 11452 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11453 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11455 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11456 | ac_lo=`expr $ac_mid + 1` |
| 11457 | if test $ac_lo -le $ac_mid; then |
| 11458 | ac_lo= ac_hi= |
| 11459 | break |
| 11460 | fi |
| 11461 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11462 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11463 | |
| 11464 | 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] | 11465 | done |
| 11466 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11467 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11469 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11470 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11471 | /* confdefs.h. */ |
| 11472 | _ACEOF |
| 11473 | cat confdefs.h >>conftest.$ac_ext |
| 11474 | cat >>conftest.$ac_ext <<_ACEOF |
| 11475 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11476 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11477 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11478 | int |
| 11479 | main () |
| 11480 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11481 | 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] | 11482 | test_array [0] = 0 |
| 11483 | |
| 11484 | ; |
| 11485 | return 0; |
| 11486 | } |
| 11487 | _ACEOF |
| 11488 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11489 | if { (ac_try="$ac_compile" |
| 11490 | case "(($ac_try" in |
| 11491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11492 | *) ac_try_echo=$ac_try;; |
| 11493 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11495 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11496 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11498 | rm -f conftest.er1 |
| 11499 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11501 | (exit $ac_status); } && { |
| 11502 | test -z "$ac_c_werror_flag" || |
| 11503 | test ! -s conftest.err |
| 11504 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11505 | ac_hi=-1 ac_mid=-1 |
| 11506 | while :; do |
| 11507 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11508 | /* confdefs.h. */ |
| 11509 | _ACEOF |
| 11510 | cat confdefs.h >>conftest.$ac_ext |
| 11511 | cat >>conftest.$ac_ext <<_ACEOF |
| 11512 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11513 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11514 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11515 | int |
| 11516 | main () |
| 11517 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11518 | 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] | 11519 | test_array [0] = 0 |
| 11520 | |
| 11521 | ; |
| 11522 | return 0; |
| 11523 | } |
| 11524 | _ACEOF |
| 11525 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11526 | if { (ac_try="$ac_compile" |
| 11527 | case "(($ac_try" in |
| 11528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11529 | *) ac_try_echo=$ac_try;; |
| 11530 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11532 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11533 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11535 | rm -f conftest.er1 |
| 11536 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11538 | (exit $ac_status); } && { |
| 11539 | test -z "$ac_c_werror_flag" || |
| 11540 | test ! -s conftest.err |
| 11541 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11542 | ac_lo=$ac_mid; break |
| 11543 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11544 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11546 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11547 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11548 | if test $ac_mid -le $ac_hi; then |
| 11549 | ac_lo= ac_hi= |
| 11550 | break |
| 11551 | fi |
| 11552 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11553 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11554 | |
| 11555 | 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] | 11556 | done |
| 11557 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11558 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11560 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11561 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11562 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11563 | |
| 11564 | 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] | 11565 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11566 | |
| 11567 | 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] | 11568 | # Binary search between lo and hi bounds. |
| 11569 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11570 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11571 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11572 | /* confdefs.h. */ |
| 11573 | _ACEOF |
| 11574 | cat confdefs.h >>conftest.$ac_ext |
| 11575 | cat >>conftest.$ac_ext <<_ACEOF |
| 11576 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11577 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11578 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11579 | int |
| 11580 | main () |
| 11581 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11582 | 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] | 11583 | test_array [0] = 0 |
| 11584 | |
| 11585 | ; |
| 11586 | return 0; |
| 11587 | } |
| 11588 | _ACEOF |
| 11589 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11590 | if { (ac_try="$ac_compile" |
| 11591 | case "(($ac_try" in |
| 11592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11593 | *) ac_try_echo=$ac_try;; |
| 11594 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11596 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11597 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11599 | rm -f conftest.er1 |
| 11600 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11602 | (exit $ac_status); } && { |
| 11603 | test -z "$ac_c_werror_flag" || |
| 11604 | test ! -s conftest.err |
| 11605 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11606 | ac_hi=$ac_mid |
| 11607 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11608 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11610 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11611 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11612 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11613 | |
| 11614 | 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] | 11615 | done |
| 11616 | case $ac_lo in |
| 11617 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11618 | '') if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11619 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11620 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11621 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11622 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11623 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11624 | else |
| 11625 | ac_cv_sizeof_long_long=0 |
| 11626 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11627 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11628 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11629 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11630 | /* confdefs.h. */ |
| 11631 | _ACEOF |
| 11632 | cat confdefs.h >>conftest.$ac_ext |
| 11633 | cat >>conftest.$ac_ext <<_ACEOF |
| 11634 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11635 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11636 | typedef long long ac__type_sizeof_; |
| 11637 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11638 | 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] | 11639 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11640 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11641 | int |
| 11642 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11643 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11644 | |
| 11645 | FILE *f = fopen ("conftest.val", "w"); |
| 11646 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11647 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11648 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11649 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11650 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11651 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11652 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11653 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11654 | } |
| 11655 | else |
| 11656 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11657 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11658 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11659 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11660 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11661 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11662 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11663 | |
| 11664 | ; |
| 11665 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11666 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11667 | _ACEOF |
| 11668 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11669 | if { (ac_try="$ac_link" |
| 11670 | case "(($ac_try" in |
| 11671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11672 | *) ac_try_echo=$ac_try;; |
| 11673 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11675 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11676 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11678 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11679 | { (case "(($ac_try" in |
| 11680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11681 | *) ac_try_echo=$ac_try;; |
| 11682 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11684 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11685 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11687 | (exit $ac_status); }; }; then |
| 11688 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11689 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11690 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11691 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11694 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11695 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11696 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11697 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11698 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11699 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11700 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11701 | else |
| 11702 | ac_cv_sizeof_long_long=0 |
| 11703 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11704 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11705 | 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] | 11706 | fi |
| 11707 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11708 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11709 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11710 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11711 | |
| 11712 | |
| 11713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11714 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11715 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11716 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11717 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11718 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11719 | fi |
| 11720 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11721 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11722 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11723 | have_long_double=no |
| 11724 | cat >conftest.$ac_ext <<_ACEOF |
| 11725 | /* confdefs.h. */ |
| 11726 | _ACEOF |
| 11727 | cat confdefs.h >>conftest.$ac_ext |
| 11728 | cat >>conftest.$ac_ext <<_ACEOF |
| 11729 | /* end confdefs.h. */ |
| 11730 | |
| 11731 | int |
| 11732 | main () |
| 11733 | { |
| 11734 | long double x; x = (long double)0.; |
| 11735 | ; |
| 11736 | return 0; |
| 11737 | } |
| 11738 | _ACEOF |
| 11739 | rm -f conftest.$ac_objext |
| 11740 | if { (ac_try="$ac_compile" |
| 11741 | case "(($ac_try" in |
| 11742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11743 | *) ac_try_echo=$ac_try;; |
| 11744 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11746 | (eval "$ac_compile") 2>conftest.er1 |
| 11747 | ac_status=$? |
| 11748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11749 | rm -f conftest.er1 |
| 11750 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11752 | (exit $ac_status); } && { |
| 11753 | test -z "$ac_c_werror_flag" || |
| 11754 | test ! -s conftest.err |
| 11755 | } && test -s conftest.$ac_objext; then |
| 11756 | |
| 11757 | |
| 11758 | cat >>confdefs.h <<\_ACEOF |
| 11759 | #define HAVE_LONG_DOUBLE 1 |
| 11760 | _ACEOF |
| 11761 | |
| 11762 | have_long_double=yes |
| 11763 | |
| 11764 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11765 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11767 | |
| 11768 | |
| 11769 | fi |
| 11770 | |
| 11771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11772 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11773 | echo "${ECHO_T}$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11774 | if test "$have_long_double" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11775 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11776 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11777 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11779 | else |
| 11780 | cat >conftest.$ac_ext <<_ACEOF |
| 11781 | /* confdefs.h. */ |
| 11782 | _ACEOF |
| 11783 | cat confdefs.h >>conftest.$ac_ext |
| 11784 | cat >>conftest.$ac_ext <<_ACEOF |
| 11785 | /* end confdefs.h. */ |
| 11786 | $ac_includes_default |
| 11787 | typedef long double ac__type_new_; |
| 11788 | int |
| 11789 | main () |
| 11790 | { |
| 11791 | if ((ac__type_new_ *) 0) |
| 11792 | return 0; |
| 11793 | if (sizeof (ac__type_new_)) |
| 11794 | return 0; |
| 11795 | ; |
| 11796 | return 0; |
| 11797 | } |
| 11798 | _ACEOF |
| 11799 | rm -f conftest.$ac_objext |
| 11800 | if { (ac_try="$ac_compile" |
| 11801 | case "(($ac_try" in |
| 11802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11803 | *) ac_try_echo=$ac_try;; |
| 11804 | esac |
| 11805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11806 | (eval "$ac_compile") 2>conftest.er1 |
| 11807 | ac_status=$? |
| 11808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11809 | rm -f conftest.er1 |
| 11810 | cat conftest.err >&5 |
| 11811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11812 | (exit $ac_status); } && { |
| 11813 | test -z "$ac_c_werror_flag" || |
| 11814 | test ! -s conftest.err |
| 11815 | } && test -s conftest.$ac_objext; then |
| 11816 | ac_cv_type_long_double=yes |
| 11817 | else |
| 11818 | echo "$as_me: failed program was:" >&5 |
| 11819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11820 | |
| 11821 | ac_cv_type_long_double=no |
| 11822 | fi |
| 11823 | |
| 11824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11825 | fi |
| 11826 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11827 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11828 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11829 | # The cast to long int works around a bug in the HP C Compiler |
| 11830 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11831 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11832 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11833 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11834 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11835 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11837 | else |
| 11838 | if test "$cross_compiling" = yes; then |
| 11839 | # Depending upon the size, compute the lo and hi bounds. |
| 11840 | cat >conftest.$ac_ext <<_ACEOF |
| 11841 | /* confdefs.h. */ |
| 11842 | _ACEOF |
| 11843 | cat confdefs.h >>conftest.$ac_ext |
| 11844 | cat >>conftest.$ac_ext <<_ACEOF |
| 11845 | /* end confdefs.h. */ |
| 11846 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11847 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11848 | int |
| 11849 | main () |
| 11850 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11851 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11852 | test_array [0] = 0 |
| 11853 | |
| 11854 | ; |
| 11855 | return 0; |
| 11856 | } |
| 11857 | _ACEOF |
| 11858 | rm -f conftest.$ac_objext |
| 11859 | if { (ac_try="$ac_compile" |
| 11860 | case "(($ac_try" in |
| 11861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11862 | *) ac_try_echo=$ac_try;; |
| 11863 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11865 | (eval "$ac_compile") 2>conftest.er1 |
| 11866 | ac_status=$? |
| 11867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11868 | rm -f conftest.er1 |
| 11869 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11871 | (exit $ac_status); } && { |
| 11872 | test -z "$ac_c_werror_flag" || |
| 11873 | test ! -s conftest.err |
| 11874 | } && test -s conftest.$ac_objext; then |
| 11875 | ac_lo=0 ac_mid=0 |
| 11876 | while :; do |
| 11877 | cat >conftest.$ac_ext <<_ACEOF |
| 11878 | /* confdefs.h. */ |
| 11879 | _ACEOF |
| 11880 | cat confdefs.h >>conftest.$ac_ext |
| 11881 | cat >>conftest.$ac_ext <<_ACEOF |
| 11882 | /* end confdefs.h. */ |
| 11883 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11884 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11885 | int |
| 11886 | main () |
| 11887 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11888 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11889 | test_array [0] = 0 |
| 11890 | |
| 11891 | ; |
| 11892 | return 0; |
| 11893 | } |
| 11894 | _ACEOF |
| 11895 | rm -f conftest.$ac_objext |
| 11896 | if { (ac_try="$ac_compile" |
| 11897 | case "(($ac_try" in |
| 11898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11899 | *) ac_try_echo=$ac_try;; |
| 11900 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11902 | (eval "$ac_compile") 2>conftest.er1 |
| 11903 | ac_status=$? |
| 11904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11905 | rm -f conftest.er1 |
| 11906 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11908 | (exit $ac_status); } && { |
| 11909 | test -z "$ac_c_werror_flag" || |
| 11910 | test ! -s conftest.err |
| 11911 | } && test -s conftest.$ac_objext; then |
| 11912 | ac_hi=$ac_mid; break |
| 11913 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11914 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11916 | |
| 11917 | ac_lo=`expr $ac_mid + 1` |
| 11918 | if test $ac_lo -le $ac_mid; then |
| 11919 | ac_lo= ac_hi= |
| 11920 | break |
| 11921 | fi |
| 11922 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11923 | fi |
| 11924 | |
| 11925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11926 | done |
| 11927 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11928 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11930 | |
| 11931 | cat >conftest.$ac_ext <<_ACEOF |
| 11932 | /* confdefs.h. */ |
| 11933 | _ACEOF |
| 11934 | cat confdefs.h >>conftest.$ac_ext |
| 11935 | cat >>conftest.$ac_ext <<_ACEOF |
| 11936 | /* end confdefs.h. */ |
| 11937 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11938 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11939 | int |
| 11940 | main () |
| 11941 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11942 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11943 | test_array [0] = 0 |
| 11944 | |
| 11945 | ; |
| 11946 | return 0; |
| 11947 | } |
| 11948 | _ACEOF |
| 11949 | rm -f conftest.$ac_objext |
| 11950 | if { (ac_try="$ac_compile" |
| 11951 | case "(($ac_try" in |
| 11952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11953 | *) ac_try_echo=$ac_try;; |
| 11954 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11956 | (eval "$ac_compile") 2>conftest.er1 |
| 11957 | ac_status=$? |
| 11958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11959 | rm -f conftest.er1 |
| 11960 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11962 | (exit $ac_status); } && { |
| 11963 | test -z "$ac_c_werror_flag" || |
| 11964 | test ! -s conftest.err |
| 11965 | } && test -s conftest.$ac_objext; then |
| 11966 | ac_hi=-1 ac_mid=-1 |
| 11967 | while :; do |
| 11968 | cat >conftest.$ac_ext <<_ACEOF |
| 11969 | /* confdefs.h. */ |
| 11970 | _ACEOF |
| 11971 | cat confdefs.h >>conftest.$ac_ext |
| 11972 | cat >>conftest.$ac_ext <<_ACEOF |
| 11973 | /* end confdefs.h. */ |
| 11974 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11975 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11976 | int |
| 11977 | main () |
| 11978 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11979 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11980 | test_array [0] = 0 |
| 11981 | |
| 11982 | ; |
| 11983 | return 0; |
| 11984 | } |
| 11985 | _ACEOF |
| 11986 | rm -f conftest.$ac_objext |
| 11987 | if { (ac_try="$ac_compile" |
| 11988 | case "(($ac_try" in |
| 11989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11990 | *) ac_try_echo=$ac_try;; |
| 11991 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11993 | (eval "$ac_compile") 2>conftest.er1 |
| 11994 | ac_status=$? |
| 11995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11996 | rm -f conftest.er1 |
| 11997 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11999 | (exit $ac_status); } && { |
| 12000 | test -z "$ac_c_werror_flag" || |
| 12001 | test ! -s conftest.err |
| 12002 | } && test -s conftest.$ac_objext; then |
| 12003 | ac_lo=$ac_mid; break |
| 12004 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12005 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12007 | |
| 12008 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12009 | if test $ac_mid -le $ac_hi; then |
| 12010 | ac_lo= ac_hi= |
| 12011 | break |
| 12012 | fi |
| 12013 | ac_mid=`expr 2 '*' $ac_mid` |
| 12014 | fi |
| 12015 | |
| 12016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12017 | done |
| 12018 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12019 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12021 | |
| 12022 | ac_lo= ac_hi= |
| 12023 | fi |
| 12024 | |
| 12025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12026 | fi |
| 12027 | |
| 12028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12029 | # Binary search between lo and hi bounds. |
| 12030 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12031 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12032 | cat >conftest.$ac_ext <<_ACEOF |
| 12033 | /* confdefs.h. */ |
| 12034 | _ACEOF |
| 12035 | cat confdefs.h >>conftest.$ac_ext |
| 12036 | cat >>conftest.$ac_ext <<_ACEOF |
| 12037 | /* end confdefs.h. */ |
| 12038 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12039 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12040 | int |
| 12041 | main () |
| 12042 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12043 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12044 | test_array [0] = 0 |
| 12045 | |
| 12046 | ; |
| 12047 | return 0; |
| 12048 | } |
| 12049 | _ACEOF |
| 12050 | rm -f conftest.$ac_objext |
| 12051 | if { (ac_try="$ac_compile" |
| 12052 | case "(($ac_try" in |
| 12053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12054 | *) ac_try_echo=$ac_try;; |
| 12055 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12057 | (eval "$ac_compile") 2>conftest.er1 |
| 12058 | ac_status=$? |
| 12059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12060 | rm -f conftest.er1 |
| 12061 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12063 | (exit $ac_status); } && { |
| 12064 | test -z "$ac_c_werror_flag" || |
| 12065 | test ! -s conftest.err |
| 12066 | } && test -s conftest.$ac_objext; then |
| 12067 | ac_hi=$ac_mid |
| 12068 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12069 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12071 | |
| 12072 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 12073 | fi |
| 12074 | |
| 12075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12076 | done |
| 12077 | case $ac_lo in |
| 12078 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 12079 | '') if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12080 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12081 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12082 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12083 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12084 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12085 | else |
| 12086 | ac_cv_sizeof_long_double=0 |
| 12087 | fi ;; |
| 12088 | esac |
| 12089 | else |
| 12090 | cat >conftest.$ac_ext <<_ACEOF |
| 12091 | /* confdefs.h. */ |
| 12092 | _ACEOF |
| 12093 | cat confdefs.h >>conftest.$ac_ext |
| 12094 | cat >>conftest.$ac_ext <<_ACEOF |
| 12095 | /* end confdefs.h. */ |
| 12096 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12097 | typedef long double ac__type_sizeof_; |
| 12098 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12099 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12100 | #include <stdio.h> |
| 12101 | #include <stdlib.h> |
| 12102 | int |
| 12103 | main () |
| 12104 | { |
| 12105 | |
| 12106 | FILE *f = fopen ("conftest.val", "w"); |
| 12107 | if (! f) |
| 12108 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12109 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12110 | { |
| 12111 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12112 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12113 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12114 | fprintf (f, "%ld\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12115 | } |
| 12116 | else |
| 12117 | { |
| 12118 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12119 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12120 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12121 | fprintf (f, "%lu\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12122 | } |
| 12123 | return ferror (f) || fclose (f) != 0; |
| 12124 | |
| 12125 | ; |
| 12126 | return 0; |
| 12127 | } |
| 12128 | _ACEOF |
| 12129 | rm -f conftest$ac_exeext |
| 12130 | if { (ac_try="$ac_link" |
| 12131 | case "(($ac_try" in |
| 12132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12133 | *) ac_try_echo=$ac_try;; |
| 12134 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12136 | (eval "$ac_link") 2>&5 |
| 12137 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12139 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12140 | { (case "(($ac_try" in |
| 12141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12142 | *) ac_try_echo=$ac_try;; |
| 12143 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12145 | (eval "$ac_try") 2>&5 |
| 12146 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12148 | (exit $ac_status); }; }; then |
| 12149 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 12150 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12151 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12152 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12154 | |
| 12155 | ( exit $ac_status ) |
| 12156 | if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12157 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12158 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12159 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12160 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12161 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12162 | else |
| 12163 | ac_cv_sizeof_long_double=0 |
| 12164 | fi |
| 12165 | fi |
| 12166 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12167 | fi |
| 12168 | rm -f conftest.val |
| 12169 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12170 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12171 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12172 | |
| 12173 | |
| 12174 | |
| 12175 | cat >>confdefs.h <<_ACEOF |
| 12176 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12177 | _ACEOF |
| 12178 | |
| 12179 | |
| 12180 | fi |
| 12181 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12182 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12183 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12184 | have_c99_bool=no |
| 12185 | cat >conftest.$ac_ext <<_ACEOF |
| 12186 | /* confdefs.h. */ |
| 12187 | _ACEOF |
| 12188 | cat confdefs.h >>conftest.$ac_ext |
| 12189 | cat >>conftest.$ac_ext <<_ACEOF |
| 12190 | /* end confdefs.h. */ |
| 12191 | |
| 12192 | int |
| 12193 | main () |
| 12194 | { |
| 12195 | _Bool x; x = (_Bool)0; |
| 12196 | ; |
| 12197 | return 0; |
| 12198 | } |
| 12199 | _ACEOF |
| 12200 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12201 | if { (ac_try="$ac_compile" |
| 12202 | case "(($ac_try" in |
| 12203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12204 | *) ac_try_echo=$ac_try;; |
| 12205 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12207 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12208 | ac_status=$? |
| 12209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12210 | rm -f conftest.er1 |
| 12211 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12213 | (exit $ac_status); } && { |
| 12214 | test -z "$ac_c_werror_flag" || |
| 12215 | test ! -s conftest.err |
| 12216 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12217 | |
| 12218 | |
| 12219 | cat >>confdefs.h <<\_ACEOF |
| 12220 | #define HAVE_C99_BOOL 1 |
| 12221 | _ACEOF |
| 12222 | |
| 12223 | have_c99_bool=yes |
| 12224 | |
| 12225 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12226 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12228 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12229 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12230 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12231 | |
| 12232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12233 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12234 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12235 | if test "$have_c99_bool" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12236 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 12237 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
| 12238 | if test "${ac_cv_type__Bool+set}" = set; then |
| 12239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12240 | else |
| 12241 | cat >conftest.$ac_ext <<_ACEOF |
| 12242 | /* confdefs.h. */ |
| 12243 | _ACEOF |
| 12244 | cat confdefs.h >>conftest.$ac_ext |
| 12245 | cat >>conftest.$ac_ext <<_ACEOF |
| 12246 | /* end confdefs.h. */ |
| 12247 | $ac_includes_default |
| 12248 | typedef _Bool ac__type_new_; |
| 12249 | int |
| 12250 | main () |
| 12251 | { |
| 12252 | if ((ac__type_new_ *) 0) |
| 12253 | return 0; |
| 12254 | if (sizeof (ac__type_new_)) |
| 12255 | return 0; |
| 12256 | ; |
| 12257 | return 0; |
| 12258 | } |
| 12259 | _ACEOF |
| 12260 | rm -f conftest.$ac_objext |
| 12261 | if { (ac_try="$ac_compile" |
| 12262 | case "(($ac_try" in |
| 12263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12264 | *) ac_try_echo=$ac_try;; |
| 12265 | esac |
| 12266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12267 | (eval "$ac_compile") 2>conftest.er1 |
| 12268 | ac_status=$? |
| 12269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12270 | rm -f conftest.er1 |
| 12271 | cat conftest.err >&5 |
| 12272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12273 | (exit $ac_status); } && { |
| 12274 | test -z "$ac_c_werror_flag" || |
| 12275 | test ! -s conftest.err |
| 12276 | } && test -s conftest.$ac_objext; then |
| 12277 | ac_cv_type__Bool=yes |
| 12278 | else |
| 12279 | echo "$as_me: failed program was:" >&5 |
| 12280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12281 | |
| 12282 | ac_cv_type__Bool=no |
| 12283 | fi |
| 12284 | |
| 12285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12286 | fi |
| 12287 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 12288 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 12289 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12290 | # The cast to long int works around a bug in the HP C Compiler |
| 12291 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12292 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12293 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12294 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12295 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12296 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12298 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12299 | if test "$cross_compiling" = yes; then |
| 12300 | # Depending upon the size, compute the lo and hi bounds. |
| 12301 | cat >conftest.$ac_ext <<_ACEOF |
| 12302 | /* confdefs.h. */ |
| 12303 | _ACEOF |
| 12304 | cat confdefs.h >>conftest.$ac_ext |
| 12305 | cat >>conftest.$ac_ext <<_ACEOF |
| 12306 | /* end confdefs.h. */ |
| 12307 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12308 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12309 | int |
| 12310 | main () |
| 12311 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12312 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12313 | test_array [0] = 0 |
| 12314 | |
| 12315 | ; |
| 12316 | return 0; |
| 12317 | } |
| 12318 | _ACEOF |
| 12319 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12320 | if { (ac_try="$ac_compile" |
| 12321 | case "(($ac_try" in |
| 12322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12323 | *) ac_try_echo=$ac_try;; |
| 12324 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12326 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12327 | ac_status=$? |
| 12328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12329 | rm -f conftest.er1 |
| 12330 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12332 | (exit $ac_status); } && { |
| 12333 | test -z "$ac_c_werror_flag" || |
| 12334 | test ! -s conftest.err |
| 12335 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12336 | ac_lo=0 ac_mid=0 |
| 12337 | while :; do |
| 12338 | cat >conftest.$ac_ext <<_ACEOF |
| 12339 | /* confdefs.h. */ |
| 12340 | _ACEOF |
| 12341 | cat confdefs.h >>conftest.$ac_ext |
| 12342 | cat >>conftest.$ac_ext <<_ACEOF |
| 12343 | /* end confdefs.h. */ |
| 12344 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12345 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12346 | int |
| 12347 | main () |
| 12348 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12349 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12350 | test_array [0] = 0 |
| 12351 | |
| 12352 | ; |
| 12353 | return 0; |
| 12354 | } |
| 12355 | _ACEOF |
| 12356 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12357 | if { (ac_try="$ac_compile" |
| 12358 | case "(($ac_try" in |
| 12359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12360 | *) ac_try_echo=$ac_try;; |
| 12361 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12363 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12364 | ac_status=$? |
| 12365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12366 | rm -f conftest.er1 |
| 12367 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12369 | (exit $ac_status); } && { |
| 12370 | test -z "$ac_c_werror_flag" || |
| 12371 | test ! -s conftest.err |
| 12372 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12373 | ac_hi=$ac_mid; break |
| 12374 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12375 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12377 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12378 | ac_lo=`expr $ac_mid + 1` |
| 12379 | if test $ac_lo -le $ac_mid; then |
| 12380 | ac_lo= ac_hi= |
| 12381 | break |
| 12382 | fi |
| 12383 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12384 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12385 | |
| 12386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12387 | done |
| 12388 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12389 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12391 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12392 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12393 | /* confdefs.h. */ |
| 12394 | _ACEOF |
| 12395 | cat confdefs.h >>conftest.$ac_ext |
| 12396 | cat >>conftest.$ac_ext <<_ACEOF |
| 12397 | /* end confdefs.h. */ |
| 12398 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12399 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12400 | int |
| 12401 | main () |
| 12402 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12403 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12404 | test_array [0] = 0 |
| 12405 | |
| 12406 | ; |
| 12407 | return 0; |
| 12408 | } |
| 12409 | _ACEOF |
| 12410 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12411 | if { (ac_try="$ac_compile" |
| 12412 | case "(($ac_try" in |
| 12413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12414 | *) ac_try_echo=$ac_try;; |
| 12415 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12417 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12418 | ac_status=$? |
| 12419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12420 | rm -f conftest.er1 |
| 12421 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12423 | (exit $ac_status); } && { |
| 12424 | test -z "$ac_c_werror_flag" || |
| 12425 | test ! -s conftest.err |
| 12426 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12427 | ac_hi=-1 ac_mid=-1 |
| 12428 | while :; do |
| 12429 | cat >conftest.$ac_ext <<_ACEOF |
| 12430 | /* confdefs.h. */ |
| 12431 | _ACEOF |
| 12432 | cat confdefs.h >>conftest.$ac_ext |
| 12433 | cat >>conftest.$ac_ext <<_ACEOF |
| 12434 | /* end confdefs.h. */ |
| 12435 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12436 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12437 | int |
| 12438 | main () |
| 12439 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12440 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12441 | test_array [0] = 0 |
| 12442 | |
| 12443 | ; |
| 12444 | return 0; |
| 12445 | } |
| 12446 | _ACEOF |
| 12447 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12448 | if { (ac_try="$ac_compile" |
| 12449 | case "(($ac_try" in |
| 12450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12451 | *) ac_try_echo=$ac_try;; |
| 12452 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12454 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12455 | ac_status=$? |
| 12456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12457 | rm -f conftest.er1 |
| 12458 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12460 | (exit $ac_status); } && { |
| 12461 | test -z "$ac_c_werror_flag" || |
| 12462 | test ! -s conftest.err |
| 12463 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12464 | ac_lo=$ac_mid; break |
| 12465 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12466 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12468 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12469 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12470 | if test $ac_mid -le $ac_hi; then |
| 12471 | ac_lo= ac_hi= |
| 12472 | break |
| 12473 | fi |
| 12474 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12475 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12476 | |
| 12477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12478 | done |
| 12479 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12480 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12482 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12483 | ac_lo= ac_hi= |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12484 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12485 | |
| 12486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12487 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12488 | |
| 12489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12490 | # Binary search between lo and hi bounds. |
| 12491 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12492 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12493 | cat >conftest.$ac_ext <<_ACEOF |
| 12494 | /* confdefs.h. */ |
| 12495 | _ACEOF |
| 12496 | cat confdefs.h >>conftest.$ac_ext |
| 12497 | cat >>conftest.$ac_ext <<_ACEOF |
| 12498 | /* end confdefs.h. */ |
| 12499 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12500 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12501 | int |
| 12502 | main () |
| 12503 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12504 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12505 | test_array [0] = 0 |
| 12506 | |
| 12507 | ; |
| 12508 | return 0; |
| 12509 | } |
| 12510 | _ACEOF |
| 12511 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12512 | if { (ac_try="$ac_compile" |
| 12513 | case "(($ac_try" in |
| 12514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12515 | *) ac_try_echo=$ac_try;; |
| 12516 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12518 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12519 | ac_status=$? |
| 12520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12521 | rm -f conftest.er1 |
| 12522 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12524 | (exit $ac_status); } && { |
| 12525 | test -z "$ac_c_werror_flag" || |
| 12526 | test ! -s conftest.err |
| 12527 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12528 | ac_hi=$ac_mid |
| 12529 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12530 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12532 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12533 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12534 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12535 | |
| 12536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12537 | done |
| 12538 | case $ac_lo in |
| 12539 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12540 | '') if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12541 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12542 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12543 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12544 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12545 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12546 | else |
| 12547 | ac_cv_sizeof__Bool=0 |
| 12548 | fi ;; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12549 | esac |
| 12550 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12551 | cat >conftest.$ac_ext <<_ACEOF |
| 12552 | /* confdefs.h. */ |
| 12553 | _ACEOF |
| 12554 | cat confdefs.h >>conftest.$ac_ext |
| 12555 | cat >>conftest.$ac_ext <<_ACEOF |
| 12556 | /* end confdefs.h. */ |
| 12557 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12558 | typedef _Bool ac__type_sizeof_; |
| 12559 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12560 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12561 | #include <stdio.h> |
| 12562 | #include <stdlib.h> |
| 12563 | int |
| 12564 | main () |
| 12565 | { |
| 12566 | |
| 12567 | FILE *f = fopen ("conftest.val", "w"); |
| 12568 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12569 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12570 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12571 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12572 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12573 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12574 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12575 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12576 | } |
| 12577 | else |
| 12578 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12579 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12580 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12581 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12582 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12583 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12584 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12585 | |
| 12586 | ; |
| 12587 | return 0; |
| 12588 | } |
| 12589 | _ACEOF |
| 12590 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12591 | if { (ac_try="$ac_link" |
| 12592 | case "(($ac_try" in |
| 12593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12594 | *) ac_try_echo=$ac_try;; |
| 12595 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12597 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12598 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12600 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12601 | { (case "(($ac_try" in |
| 12602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12603 | *) ac_try_echo=$ac_try;; |
| 12604 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12606 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12607 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12609 | (exit $ac_status); }; }; then |
| 12610 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12611 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12612 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12613 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12615 | |
| 12616 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12617 | if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12618 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12619 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12620 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12621 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12622 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12623 | else |
| 12624 | ac_cv_sizeof__Bool=0 |
| 12625 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12626 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12627 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12628 | fi |
| 12629 | rm -f conftest.val |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12630 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12631 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12632 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12633 | |
| 12634 | |
| 12635 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12636 | cat >>confdefs.h <<_ACEOF |
| 12637 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12638 | _ACEOF |
| 12639 | |
| 12640 | |
| 12641 | fi |
| 12642 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12643 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12644 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12645 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12647 | else |
| 12648 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12649 | /* confdefs.h. */ |
| 12650 | _ACEOF |
| 12651 | cat confdefs.h >>conftest.$ac_ext |
| 12652 | cat >>conftest.$ac_ext <<_ACEOF |
| 12653 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 12654 | #ifdef HAVE_STDINT_H |
| 12655 | #include <stdint.h> |
| 12656 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12657 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12658 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12659 | int |
| 12660 | main () |
| 12661 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12662 | if ((ac__type_new_ *) 0) |
| 12663 | return 0; |
| 12664 | if (sizeof (ac__type_new_)) |
| 12665 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12666 | ; |
| 12667 | return 0; |
| 12668 | } |
| 12669 | _ACEOF |
| 12670 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12671 | if { (ac_try="$ac_compile" |
| 12672 | case "(($ac_try" in |
| 12673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12674 | *) ac_try_echo=$ac_try;; |
| 12675 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12677 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12678 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12680 | rm -f conftest.er1 |
| 12681 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12683 | (exit $ac_status); } && { |
| 12684 | test -z "$ac_c_werror_flag" || |
| 12685 | test ! -s conftest.err |
| 12686 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12687 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12688 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12689 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12691 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12692 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12693 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12694 | |
| 12695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12696 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12697 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12698 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12699 | if test $ac_cv_type_uintptr_t = yes; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12700 | |
| 12701 | cat >>confdefs.h <<_ACEOF |
| 12702 | #define HAVE_UINTPTR_T 1 |
| 12703 | _ACEOF |
| 12704 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12705 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12706 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 12707 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12709 | else |
| 12710 | cat >conftest.$ac_ext <<_ACEOF |
| 12711 | /* confdefs.h. */ |
| 12712 | _ACEOF |
| 12713 | cat confdefs.h >>conftest.$ac_ext |
| 12714 | cat >>conftest.$ac_ext <<_ACEOF |
| 12715 | /* end confdefs.h. */ |
| 12716 | $ac_includes_default |
| 12717 | typedef uintptr_t ac__type_new_; |
| 12718 | int |
| 12719 | main () |
| 12720 | { |
| 12721 | if ((ac__type_new_ *) 0) |
| 12722 | return 0; |
| 12723 | if (sizeof (ac__type_new_)) |
| 12724 | return 0; |
| 12725 | ; |
| 12726 | return 0; |
| 12727 | } |
| 12728 | _ACEOF |
| 12729 | rm -f conftest.$ac_objext |
| 12730 | if { (ac_try="$ac_compile" |
| 12731 | case "(($ac_try" in |
| 12732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12733 | *) ac_try_echo=$ac_try;; |
| 12734 | esac |
| 12735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12736 | (eval "$ac_compile") 2>conftest.er1 |
| 12737 | ac_status=$? |
| 12738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12739 | rm -f conftest.er1 |
| 12740 | cat conftest.err >&5 |
| 12741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12742 | (exit $ac_status); } && { |
| 12743 | test -z "$ac_c_werror_flag" || |
| 12744 | test ! -s conftest.err |
| 12745 | } && test -s conftest.$ac_objext; then |
| 12746 | ac_cv_type_uintptr_t=yes |
| 12747 | else |
| 12748 | echo "$as_me: failed program was:" >&5 |
| 12749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12750 | |
| 12751 | ac_cv_type_uintptr_t=no |
| 12752 | fi |
| 12753 | |
| 12754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12755 | fi |
| 12756 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12757 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12758 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12759 | # The cast to long int works around a bug in the HP C Compiler |
| 12760 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12761 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12762 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12763 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12764 | 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] | 12765 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12768 | if test "$cross_compiling" = yes; then |
| 12769 | # Depending upon the size, compute the lo and hi bounds. |
| 12770 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12771 | /* confdefs.h. */ |
| 12772 | _ACEOF |
| 12773 | cat confdefs.h >>conftest.$ac_ext |
| 12774 | cat >>conftest.$ac_ext <<_ACEOF |
| 12775 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12776 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12777 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12778 | int |
| 12779 | main () |
| 12780 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12781 | 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] | 12782 | test_array [0] = 0 |
| 12783 | |
| 12784 | ; |
| 12785 | return 0; |
| 12786 | } |
| 12787 | _ACEOF |
| 12788 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12789 | if { (ac_try="$ac_compile" |
| 12790 | case "(($ac_try" in |
| 12791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12792 | *) ac_try_echo=$ac_try;; |
| 12793 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12795 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12796 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12798 | rm -f conftest.er1 |
| 12799 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12801 | (exit $ac_status); } && { |
| 12802 | test -z "$ac_c_werror_flag" || |
| 12803 | test ! -s conftest.err |
| 12804 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12805 | ac_lo=0 ac_mid=0 |
| 12806 | while :; do |
| 12807 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12808 | /* confdefs.h. */ |
| 12809 | _ACEOF |
| 12810 | cat confdefs.h >>conftest.$ac_ext |
| 12811 | cat >>conftest.$ac_ext <<_ACEOF |
| 12812 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12813 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12814 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12815 | int |
| 12816 | main () |
| 12817 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12818 | 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] | 12819 | test_array [0] = 0 |
| 12820 | |
| 12821 | ; |
| 12822 | return 0; |
| 12823 | } |
| 12824 | _ACEOF |
| 12825 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12826 | if { (ac_try="$ac_compile" |
| 12827 | case "(($ac_try" in |
| 12828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12829 | *) ac_try_echo=$ac_try;; |
| 12830 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12832 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12833 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12835 | rm -f conftest.er1 |
| 12836 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12838 | (exit $ac_status); } && { |
| 12839 | test -z "$ac_c_werror_flag" || |
| 12840 | test ! -s conftest.err |
| 12841 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12842 | ac_hi=$ac_mid; break |
| 12843 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12844 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12846 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12847 | ac_lo=`expr $ac_mid + 1` |
| 12848 | if test $ac_lo -le $ac_mid; then |
| 12849 | ac_lo= ac_hi= |
| 12850 | break |
| 12851 | fi |
| 12852 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12853 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12854 | |
| 12855 | 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] | 12856 | done |
| 12857 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12858 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12860 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12861 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12862 | /* confdefs.h. */ |
| 12863 | _ACEOF |
| 12864 | cat confdefs.h >>conftest.$ac_ext |
| 12865 | cat >>conftest.$ac_ext <<_ACEOF |
| 12866 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12867 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12868 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12869 | int |
| 12870 | main () |
| 12871 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12872 | 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] | 12873 | test_array [0] = 0 |
| 12874 | |
| 12875 | ; |
| 12876 | return 0; |
| 12877 | } |
| 12878 | _ACEOF |
| 12879 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12880 | if { (ac_try="$ac_compile" |
| 12881 | case "(($ac_try" in |
| 12882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12883 | *) ac_try_echo=$ac_try;; |
| 12884 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12886 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12887 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12889 | rm -f conftest.er1 |
| 12890 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12892 | (exit $ac_status); } && { |
| 12893 | test -z "$ac_c_werror_flag" || |
| 12894 | test ! -s conftest.err |
| 12895 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12896 | ac_hi=-1 ac_mid=-1 |
| 12897 | while :; do |
| 12898 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12899 | /* confdefs.h. */ |
| 12900 | _ACEOF |
| 12901 | cat confdefs.h >>conftest.$ac_ext |
| 12902 | cat >>conftest.$ac_ext <<_ACEOF |
| 12903 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12904 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12905 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12906 | int |
| 12907 | main () |
| 12908 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12909 | 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] | 12910 | test_array [0] = 0 |
| 12911 | |
| 12912 | ; |
| 12913 | return 0; |
| 12914 | } |
| 12915 | _ACEOF |
| 12916 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12917 | if { (ac_try="$ac_compile" |
| 12918 | case "(($ac_try" in |
| 12919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12920 | *) ac_try_echo=$ac_try;; |
| 12921 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12923 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12924 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12926 | rm -f conftest.er1 |
| 12927 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12929 | (exit $ac_status); } && { |
| 12930 | test -z "$ac_c_werror_flag" || |
| 12931 | test ! -s conftest.err |
| 12932 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12933 | ac_lo=$ac_mid; break |
| 12934 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12935 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12937 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12938 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12939 | if test $ac_mid -le $ac_hi; then |
| 12940 | ac_lo= ac_hi= |
| 12941 | break |
| 12942 | fi |
| 12943 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12944 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12945 | |
| 12946 | 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] | 12947 | done |
| 12948 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12949 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12951 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12952 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12953 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12954 | |
| 12955 | 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] | 12956 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12957 | |
| 12958 | 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] | 12959 | # Binary search between lo and hi bounds. |
| 12960 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12961 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12962 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12963 | /* confdefs.h. */ |
| 12964 | _ACEOF |
| 12965 | cat confdefs.h >>conftest.$ac_ext |
| 12966 | cat >>conftest.$ac_ext <<_ACEOF |
| 12967 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12968 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12969 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12970 | int |
| 12971 | main () |
| 12972 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12973 | 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] | 12974 | test_array [0] = 0 |
| 12975 | |
| 12976 | ; |
| 12977 | return 0; |
| 12978 | } |
| 12979 | _ACEOF |
| 12980 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12981 | if { (ac_try="$ac_compile" |
| 12982 | case "(($ac_try" in |
| 12983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12984 | *) ac_try_echo=$ac_try;; |
| 12985 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12987 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12988 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12990 | rm -f conftest.er1 |
| 12991 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12993 | (exit $ac_status); } && { |
| 12994 | test -z "$ac_c_werror_flag" || |
| 12995 | test ! -s conftest.err |
| 12996 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12997 | ac_hi=$ac_mid |
| 12998 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12999 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13001 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13002 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13003 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13004 | |
| 13005 | 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] | 13006 | done |
| 13007 | case $ac_lo in |
| 13008 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13009 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13010 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13011 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13012 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13013 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13014 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13015 | else |
| 13016 | ac_cv_sizeof_uintptr_t=0 |
| 13017 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13018 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13019 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13020 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13021 | /* confdefs.h. */ |
| 13022 | _ACEOF |
| 13023 | cat confdefs.h >>conftest.$ac_ext |
| 13024 | cat >>conftest.$ac_ext <<_ACEOF |
| 13025 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13026 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13027 | typedef uintptr_t ac__type_sizeof_; |
| 13028 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13029 | 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] | 13030 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13031 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13032 | int |
| 13033 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13034 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13035 | |
| 13036 | FILE *f = fopen ("conftest.val", "w"); |
| 13037 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13038 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13039 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13040 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13041 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13042 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13043 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13044 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13045 | } |
| 13046 | else |
| 13047 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13048 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13049 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13050 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13051 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13052 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13053 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 | |
| 13055 | ; |
| 13056 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13057 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13058 | _ACEOF |
| 13059 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13060 | if { (ac_try="$ac_link" |
| 13061 | case "(($ac_try" in |
| 13062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13063 | *) ac_try_echo=$ac_try;; |
| 13064 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13066 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13067 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13070 | { (case "(($ac_try" in |
| 13071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13072 | *) ac_try_echo=$ac_try;; |
| 13073 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13075 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13078 | (exit $ac_status); }; }; then |
| 13079 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13080 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13081 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13082 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13085 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13086 | if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13087 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13088 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13089 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13090 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13091 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13092 | else |
| 13093 | ac_cv_sizeof_uintptr_t=0 |
| 13094 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13095 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13096 | 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] | 13097 | fi |
| 13098 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13099 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13100 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 13101 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13102 | |
| 13103 | |
| 13104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13106 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13107 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13108 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13109 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13110 | fi |
| 13111 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 13112 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13113 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 13114 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
| 13115 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13117 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13118 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13119 | /* confdefs.h. */ |
| 13120 | _ACEOF |
| 13121 | cat confdefs.h >>conftest.$ac_ext |
| 13122 | cat >>conftest.$ac_ext <<_ACEOF |
| 13123 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13124 | |
| 13125 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13126 | #include <sys/types.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13127 | #endif |
| 13128 | |
| 13129 | |
| 13130 | typedef off_t ac__type_new_; |
| 13131 | int |
| 13132 | main () |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13133 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13134 | if ((ac__type_new_ *) 0) |
| 13135 | return 0; |
| 13136 | if (sizeof (ac__type_new_)) |
| 13137 | return 0; |
| 13138 | ; |
| 13139 | return 0; |
| 13140 | } |
| 13141 | _ACEOF |
| 13142 | rm -f conftest.$ac_objext |
| 13143 | if { (ac_try="$ac_compile" |
| 13144 | case "(($ac_try" in |
| 13145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13146 | *) ac_try_echo=$ac_try;; |
| 13147 | esac |
| 13148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13149 | (eval "$ac_compile") 2>conftest.er1 |
| 13150 | ac_status=$? |
| 13151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13152 | rm -f conftest.er1 |
| 13153 | cat conftest.err >&5 |
| 13154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13155 | (exit $ac_status); } && { |
| 13156 | test -z "$ac_c_werror_flag" || |
| 13157 | test ! -s conftest.err |
| 13158 | } && test -s conftest.$ac_objext; then |
| 13159 | ac_cv_type_off_t=yes |
| 13160 | else |
| 13161 | echo "$as_me: failed program was:" >&5 |
| 13162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13163 | |
| 13164 | ac_cv_type_off_t=no |
| 13165 | fi |
| 13166 | |
| 13167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13168 | fi |
| 13169 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 13170 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 13171 | |
| 13172 | # The cast to long int works around a bug in the HP C Compiler |
| 13173 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13174 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13175 | # This bug is HP SR number 8606223364. |
| 13176 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 13177 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
| 13178 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 13179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13180 | else |
| 13181 | if test "$cross_compiling" = yes; then |
| 13182 | # Depending upon the size, compute the lo and hi bounds. |
| 13183 | cat >conftest.$ac_ext <<_ACEOF |
| 13184 | /* confdefs.h. */ |
| 13185 | _ACEOF |
| 13186 | cat confdefs.h >>conftest.$ac_ext |
| 13187 | cat >>conftest.$ac_ext <<_ACEOF |
| 13188 | /* end confdefs.h. */ |
| 13189 | |
| 13190 | #ifdef HAVE_SYS_TYPES_H |
| 13191 | #include <sys/types.h> |
| 13192 | #endif |
| 13193 | |
| 13194 | |
| 13195 | typedef off_t ac__type_sizeof_; |
| 13196 | int |
| 13197 | main () |
| 13198 | { |
| 13199 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13200 | test_array [0] = 0 |
| 13201 | |
| 13202 | ; |
| 13203 | return 0; |
| 13204 | } |
| 13205 | _ACEOF |
| 13206 | rm -f conftest.$ac_objext |
| 13207 | if { (ac_try="$ac_compile" |
| 13208 | case "(($ac_try" in |
| 13209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13210 | *) ac_try_echo=$ac_try;; |
| 13211 | esac |
| 13212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13213 | (eval "$ac_compile") 2>conftest.er1 |
| 13214 | ac_status=$? |
| 13215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13216 | rm -f conftest.er1 |
| 13217 | cat conftest.err >&5 |
| 13218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13219 | (exit $ac_status); } && { |
| 13220 | test -z "$ac_c_werror_flag" || |
| 13221 | test ! -s conftest.err |
| 13222 | } && test -s conftest.$ac_objext; then |
| 13223 | ac_lo=0 ac_mid=0 |
| 13224 | while :; do |
| 13225 | cat >conftest.$ac_ext <<_ACEOF |
| 13226 | /* confdefs.h. */ |
| 13227 | _ACEOF |
| 13228 | cat confdefs.h >>conftest.$ac_ext |
| 13229 | cat >>conftest.$ac_ext <<_ACEOF |
| 13230 | /* end confdefs.h. */ |
| 13231 | |
| 13232 | #ifdef HAVE_SYS_TYPES_H |
| 13233 | #include <sys/types.h> |
| 13234 | #endif |
| 13235 | |
| 13236 | |
| 13237 | typedef off_t ac__type_sizeof_; |
| 13238 | int |
| 13239 | main () |
| 13240 | { |
| 13241 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13242 | test_array [0] = 0 |
| 13243 | |
| 13244 | ; |
| 13245 | return 0; |
| 13246 | } |
| 13247 | _ACEOF |
| 13248 | rm -f conftest.$ac_objext |
| 13249 | if { (ac_try="$ac_compile" |
| 13250 | case "(($ac_try" in |
| 13251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13252 | *) ac_try_echo=$ac_try;; |
| 13253 | esac |
| 13254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13255 | (eval "$ac_compile") 2>conftest.er1 |
| 13256 | ac_status=$? |
| 13257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13258 | rm -f conftest.er1 |
| 13259 | cat conftest.err >&5 |
| 13260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13261 | (exit $ac_status); } && { |
| 13262 | test -z "$ac_c_werror_flag" || |
| 13263 | test ! -s conftest.err |
| 13264 | } && test -s conftest.$ac_objext; then |
| 13265 | ac_hi=$ac_mid; break |
| 13266 | else |
| 13267 | echo "$as_me: failed program was:" >&5 |
| 13268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13269 | |
| 13270 | ac_lo=`expr $ac_mid + 1` |
| 13271 | if test $ac_lo -le $ac_mid; then |
| 13272 | ac_lo= ac_hi= |
| 13273 | break |
| 13274 | fi |
| 13275 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13276 | fi |
| 13277 | |
| 13278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13279 | done |
| 13280 | else |
| 13281 | echo "$as_me: failed program was:" >&5 |
| 13282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13283 | |
| 13284 | cat >conftest.$ac_ext <<_ACEOF |
| 13285 | /* confdefs.h. */ |
| 13286 | _ACEOF |
| 13287 | cat confdefs.h >>conftest.$ac_ext |
| 13288 | cat >>conftest.$ac_ext <<_ACEOF |
| 13289 | /* end confdefs.h. */ |
| 13290 | |
| 13291 | #ifdef HAVE_SYS_TYPES_H |
| 13292 | #include <sys/types.h> |
| 13293 | #endif |
| 13294 | |
| 13295 | |
| 13296 | typedef off_t ac__type_sizeof_; |
| 13297 | int |
| 13298 | main () |
| 13299 | { |
| 13300 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13301 | test_array [0] = 0 |
| 13302 | |
| 13303 | ; |
| 13304 | return 0; |
| 13305 | } |
| 13306 | _ACEOF |
| 13307 | rm -f conftest.$ac_objext |
| 13308 | if { (ac_try="$ac_compile" |
| 13309 | case "(($ac_try" in |
| 13310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13311 | *) ac_try_echo=$ac_try;; |
| 13312 | esac |
| 13313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13314 | (eval "$ac_compile") 2>conftest.er1 |
| 13315 | ac_status=$? |
| 13316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13317 | rm -f conftest.er1 |
| 13318 | cat conftest.err >&5 |
| 13319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13320 | (exit $ac_status); } && { |
| 13321 | test -z "$ac_c_werror_flag" || |
| 13322 | test ! -s conftest.err |
| 13323 | } && test -s conftest.$ac_objext; then |
| 13324 | ac_hi=-1 ac_mid=-1 |
| 13325 | while :; do |
| 13326 | cat >conftest.$ac_ext <<_ACEOF |
| 13327 | /* confdefs.h. */ |
| 13328 | _ACEOF |
| 13329 | cat confdefs.h >>conftest.$ac_ext |
| 13330 | cat >>conftest.$ac_ext <<_ACEOF |
| 13331 | /* end confdefs.h. */ |
| 13332 | |
| 13333 | #ifdef HAVE_SYS_TYPES_H |
| 13334 | #include <sys/types.h> |
| 13335 | #endif |
| 13336 | |
| 13337 | |
| 13338 | typedef off_t ac__type_sizeof_; |
| 13339 | int |
| 13340 | main () |
| 13341 | { |
| 13342 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13343 | test_array [0] = 0 |
| 13344 | |
| 13345 | ; |
| 13346 | return 0; |
| 13347 | } |
| 13348 | _ACEOF |
| 13349 | rm -f conftest.$ac_objext |
| 13350 | if { (ac_try="$ac_compile" |
| 13351 | case "(($ac_try" in |
| 13352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13353 | *) ac_try_echo=$ac_try;; |
| 13354 | esac |
| 13355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13356 | (eval "$ac_compile") 2>conftest.er1 |
| 13357 | ac_status=$? |
| 13358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13359 | rm -f conftest.er1 |
| 13360 | cat conftest.err >&5 |
| 13361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13362 | (exit $ac_status); } && { |
| 13363 | test -z "$ac_c_werror_flag" || |
| 13364 | test ! -s conftest.err |
| 13365 | } && test -s conftest.$ac_objext; then |
| 13366 | ac_lo=$ac_mid; break |
| 13367 | else |
| 13368 | echo "$as_me: failed program was:" >&5 |
| 13369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13370 | |
| 13371 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13372 | if test $ac_mid -le $ac_hi; then |
| 13373 | ac_lo= ac_hi= |
| 13374 | break |
| 13375 | fi |
| 13376 | ac_mid=`expr 2 '*' $ac_mid` |
| 13377 | fi |
| 13378 | |
| 13379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13380 | done |
| 13381 | else |
| 13382 | echo "$as_me: failed program was:" >&5 |
| 13383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13384 | |
| 13385 | ac_lo= ac_hi= |
| 13386 | fi |
| 13387 | |
| 13388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13389 | fi |
| 13390 | |
| 13391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13392 | # Binary search between lo and hi bounds. |
| 13393 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13394 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13395 | cat >conftest.$ac_ext <<_ACEOF |
| 13396 | /* confdefs.h. */ |
| 13397 | _ACEOF |
| 13398 | cat confdefs.h >>conftest.$ac_ext |
| 13399 | cat >>conftest.$ac_ext <<_ACEOF |
| 13400 | /* end confdefs.h. */ |
| 13401 | |
| 13402 | #ifdef HAVE_SYS_TYPES_H |
| 13403 | #include <sys/types.h> |
| 13404 | #endif |
| 13405 | |
| 13406 | |
| 13407 | typedef off_t ac__type_sizeof_; |
| 13408 | int |
| 13409 | main () |
| 13410 | { |
| 13411 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13412 | test_array [0] = 0 |
| 13413 | |
| 13414 | ; |
| 13415 | return 0; |
| 13416 | } |
| 13417 | _ACEOF |
| 13418 | rm -f conftest.$ac_objext |
| 13419 | if { (ac_try="$ac_compile" |
| 13420 | case "(($ac_try" in |
| 13421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13422 | *) ac_try_echo=$ac_try;; |
| 13423 | esac |
| 13424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13425 | (eval "$ac_compile") 2>conftest.er1 |
| 13426 | ac_status=$? |
| 13427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13428 | rm -f conftest.er1 |
| 13429 | cat conftest.err >&5 |
| 13430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13431 | (exit $ac_status); } && { |
| 13432 | test -z "$ac_c_werror_flag" || |
| 13433 | test ! -s conftest.err |
| 13434 | } && test -s conftest.$ac_objext; then |
| 13435 | ac_hi=$ac_mid |
| 13436 | else |
| 13437 | echo "$as_me: failed program was:" >&5 |
| 13438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13439 | |
| 13440 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13441 | fi |
| 13442 | |
| 13443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13444 | done |
| 13445 | case $ac_lo in |
| 13446 | ?*) ac_cv_sizeof_off_t=$ac_lo;; |
| 13447 | '') if test "$ac_cv_type_off_t" = yes; then |
| 13448 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13449 | See \`config.log' for more details." >&5 |
| 13450 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13451 | See \`config.log' for more details." >&2;} |
| 13452 | { (exit 77); exit 77; }; } |
| 13453 | else |
| 13454 | ac_cv_sizeof_off_t=0 |
| 13455 | fi ;; |
| 13456 | esac |
| 13457 | else |
| 13458 | cat >conftest.$ac_ext <<_ACEOF |
| 13459 | /* confdefs.h. */ |
| 13460 | _ACEOF |
| 13461 | cat confdefs.h >>conftest.$ac_ext |
| 13462 | cat >>conftest.$ac_ext <<_ACEOF |
| 13463 | /* end confdefs.h. */ |
| 13464 | |
| 13465 | #ifdef HAVE_SYS_TYPES_H |
| 13466 | #include <sys/types.h> |
| 13467 | #endif |
| 13468 | |
| 13469 | |
| 13470 | typedef off_t ac__type_sizeof_; |
| 13471 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13472 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13473 | #include <stdio.h> |
| 13474 | #include <stdlib.h> |
| 13475 | int |
| 13476 | main () |
| 13477 | { |
| 13478 | |
| 13479 | FILE *f = fopen ("conftest.val", "w"); |
| 13480 | if (! f) |
| 13481 | return 1; |
| 13482 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13483 | { |
| 13484 | long int i = longval (); |
| 13485 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13486 | return 1; |
| 13487 | fprintf (f, "%ld\n", i); |
| 13488 | } |
| 13489 | else |
| 13490 | { |
| 13491 | unsigned long int i = ulongval (); |
| 13492 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13493 | return 1; |
| 13494 | fprintf (f, "%lu\n", i); |
| 13495 | } |
| 13496 | return ferror (f) || fclose (f) != 0; |
| 13497 | |
| 13498 | ; |
| 13499 | return 0; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13500 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13501 | _ACEOF |
| 13502 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13503 | if { (ac_try="$ac_link" |
| 13504 | case "(($ac_try" in |
| 13505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13506 | *) ac_try_echo=$ac_try;; |
| 13507 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13509 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13510 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13512 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13513 | { (case "(($ac_try" in |
| 13514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13515 | *) ac_try_echo=$ac_try;; |
| 13516 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13518 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13519 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13521 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13522 | ac_cv_sizeof_off_t=`cat conftest.val` |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13523 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13524 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13525 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13528 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13529 | if test "$ac_cv_type_off_t" = yes; then |
| 13530 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13531 | See \`config.log' for more details." >&5 |
| 13532 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13533 | See \`config.log' for more details." >&2;} |
| 13534 | { (exit 77); exit 77; }; } |
| 13535 | else |
| 13536 | ac_cv_sizeof_off_t=0 |
| 13537 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13538 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13539 | 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] | 13540 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13541 | rm -f conftest.val |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13542 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13543 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13544 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13545 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13546 | |
| 13547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13548 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13549 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13550 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13551 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13552 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13553 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13554 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13555 | echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; } |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 13556 | if test "$have_long_long" = yes |
| 13557 | then |
| 13558 | if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 13559 | "$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] | 13560 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13561 | cat >>confdefs.h <<\_ACEOF |
| 13562 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13563 | _ACEOF |
| 13564 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13565 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13566 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13567 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13568 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13569 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13570 | fi |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 13571 | else |
| 13572 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13573 | echo "${ECHO_T}no" >&6; } |
| 13574 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13575 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13576 | { echo "$as_me:$LINENO: checking for time_t" >&5 |
| 13577 | echo $ECHO_N "checking for time_t... $ECHO_C" >&6; } |
| 13578 | if test "${ac_cv_type_time_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13580 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13581 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13582 | /* confdefs.h. */ |
| 13583 | _ACEOF |
| 13584 | cat confdefs.h >>conftest.$ac_ext |
| 13585 | cat >>conftest.$ac_ext <<_ACEOF |
| 13586 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13587 | |
| 13588 | #ifdef HAVE_SYS_TYPES_H |
| 13589 | #include <sys/types.h> |
| 13590 | #endif |
| 13591 | #ifdef HAVE_TIME_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13592 | #include <time.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13593 | #endif |
| 13594 | |
| 13595 | |
| 13596 | typedef time_t ac__type_new_; |
| 13597 | int |
| 13598 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13599 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13600 | if ((ac__type_new_ *) 0) |
| 13601 | return 0; |
| 13602 | if (sizeof (ac__type_new_)) |
| 13603 | return 0; |
| 13604 | ; |
| 13605 | return 0; |
| 13606 | } |
| 13607 | _ACEOF |
| 13608 | rm -f conftest.$ac_objext |
| 13609 | if { (ac_try="$ac_compile" |
| 13610 | case "(($ac_try" in |
| 13611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13612 | *) ac_try_echo=$ac_try;; |
| 13613 | esac |
| 13614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13615 | (eval "$ac_compile") 2>conftest.er1 |
| 13616 | ac_status=$? |
| 13617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13618 | rm -f conftest.er1 |
| 13619 | cat conftest.err >&5 |
| 13620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13621 | (exit $ac_status); } && { |
| 13622 | test -z "$ac_c_werror_flag" || |
| 13623 | test ! -s conftest.err |
| 13624 | } && test -s conftest.$ac_objext; then |
| 13625 | ac_cv_type_time_t=yes |
| 13626 | else |
| 13627 | echo "$as_me: failed program was:" >&5 |
| 13628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13629 | |
| 13630 | ac_cv_type_time_t=no |
| 13631 | fi |
| 13632 | |
| 13633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13634 | fi |
| 13635 | { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 |
| 13636 | echo "${ECHO_T}$ac_cv_type_time_t" >&6; } |
| 13637 | |
| 13638 | # The cast to long int works around a bug in the HP C Compiler |
| 13639 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13640 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13641 | # This bug is HP SR number 8606223364. |
| 13642 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13643 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; } |
| 13644 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 13645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13646 | else |
| 13647 | if test "$cross_compiling" = yes; then |
| 13648 | # Depending upon the size, compute the lo and hi bounds. |
| 13649 | cat >conftest.$ac_ext <<_ACEOF |
| 13650 | /* confdefs.h. */ |
| 13651 | _ACEOF |
| 13652 | cat confdefs.h >>conftest.$ac_ext |
| 13653 | cat >>conftest.$ac_ext <<_ACEOF |
| 13654 | /* end confdefs.h. */ |
| 13655 | |
| 13656 | #ifdef HAVE_SYS_TYPES_H |
| 13657 | #include <sys/types.h> |
| 13658 | #endif |
| 13659 | #ifdef HAVE_TIME_H |
| 13660 | #include <time.h> |
| 13661 | #endif |
| 13662 | |
| 13663 | |
| 13664 | typedef time_t ac__type_sizeof_; |
| 13665 | int |
| 13666 | main () |
| 13667 | { |
| 13668 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13669 | test_array [0] = 0 |
| 13670 | |
| 13671 | ; |
| 13672 | return 0; |
| 13673 | } |
| 13674 | _ACEOF |
| 13675 | rm -f conftest.$ac_objext |
| 13676 | if { (ac_try="$ac_compile" |
| 13677 | case "(($ac_try" in |
| 13678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13679 | *) ac_try_echo=$ac_try;; |
| 13680 | esac |
| 13681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13682 | (eval "$ac_compile") 2>conftest.er1 |
| 13683 | ac_status=$? |
| 13684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13685 | rm -f conftest.er1 |
| 13686 | cat conftest.err >&5 |
| 13687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13688 | (exit $ac_status); } && { |
| 13689 | test -z "$ac_c_werror_flag" || |
| 13690 | test ! -s conftest.err |
| 13691 | } && test -s conftest.$ac_objext; then |
| 13692 | ac_lo=0 ac_mid=0 |
| 13693 | while :; do |
| 13694 | cat >conftest.$ac_ext <<_ACEOF |
| 13695 | /* confdefs.h. */ |
| 13696 | _ACEOF |
| 13697 | cat confdefs.h >>conftest.$ac_ext |
| 13698 | cat >>conftest.$ac_ext <<_ACEOF |
| 13699 | /* end confdefs.h. */ |
| 13700 | |
| 13701 | #ifdef HAVE_SYS_TYPES_H |
| 13702 | #include <sys/types.h> |
| 13703 | #endif |
| 13704 | #ifdef HAVE_TIME_H |
| 13705 | #include <time.h> |
| 13706 | #endif |
| 13707 | |
| 13708 | |
| 13709 | typedef time_t ac__type_sizeof_; |
| 13710 | int |
| 13711 | main () |
| 13712 | { |
| 13713 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13714 | test_array [0] = 0 |
| 13715 | |
| 13716 | ; |
| 13717 | return 0; |
| 13718 | } |
| 13719 | _ACEOF |
| 13720 | rm -f conftest.$ac_objext |
| 13721 | if { (ac_try="$ac_compile" |
| 13722 | case "(($ac_try" in |
| 13723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13724 | *) ac_try_echo=$ac_try;; |
| 13725 | esac |
| 13726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13727 | (eval "$ac_compile") 2>conftest.er1 |
| 13728 | ac_status=$? |
| 13729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13730 | rm -f conftest.er1 |
| 13731 | cat conftest.err >&5 |
| 13732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13733 | (exit $ac_status); } && { |
| 13734 | test -z "$ac_c_werror_flag" || |
| 13735 | test ! -s conftest.err |
| 13736 | } && test -s conftest.$ac_objext; then |
| 13737 | ac_hi=$ac_mid; break |
| 13738 | else |
| 13739 | echo "$as_me: failed program was:" >&5 |
| 13740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13741 | |
| 13742 | ac_lo=`expr $ac_mid + 1` |
| 13743 | if test $ac_lo -le $ac_mid; then |
| 13744 | ac_lo= ac_hi= |
| 13745 | break |
| 13746 | fi |
| 13747 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13748 | fi |
| 13749 | |
| 13750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13751 | done |
| 13752 | else |
| 13753 | echo "$as_me: failed program was:" >&5 |
| 13754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13755 | |
| 13756 | cat >conftest.$ac_ext <<_ACEOF |
| 13757 | /* confdefs.h. */ |
| 13758 | _ACEOF |
| 13759 | cat confdefs.h >>conftest.$ac_ext |
| 13760 | cat >>conftest.$ac_ext <<_ACEOF |
| 13761 | /* end confdefs.h. */ |
| 13762 | |
| 13763 | #ifdef HAVE_SYS_TYPES_H |
| 13764 | #include <sys/types.h> |
| 13765 | #endif |
| 13766 | #ifdef HAVE_TIME_H |
| 13767 | #include <time.h> |
| 13768 | #endif |
| 13769 | |
| 13770 | |
| 13771 | typedef time_t ac__type_sizeof_; |
| 13772 | int |
| 13773 | main () |
| 13774 | { |
| 13775 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13776 | test_array [0] = 0 |
| 13777 | |
| 13778 | ; |
| 13779 | return 0; |
| 13780 | } |
| 13781 | _ACEOF |
| 13782 | rm -f conftest.$ac_objext |
| 13783 | if { (ac_try="$ac_compile" |
| 13784 | case "(($ac_try" in |
| 13785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13786 | *) ac_try_echo=$ac_try;; |
| 13787 | esac |
| 13788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13789 | (eval "$ac_compile") 2>conftest.er1 |
| 13790 | ac_status=$? |
| 13791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13792 | rm -f conftest.er1 |
| 13793 | cat conftest.err >&5 |
| 13794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13795 | (exit $ac_status); } && { |
| 13796 | test -z "$ac_c_werror_flag" || |
| 13797 | test ! -s conftest.err |
| 13798 | } && test -s conftest.$ac_objext; then |
| 13799 | ac_hi=-1 ac_mid=-1 |
| 13800 | while :; do |
| 13801 | cat >conftest.$ac_ext <<_ACEOF |
| 13802 | /* confdefs.h. */ |
| 13803 | _ACEOF |
| 13804 | cat confdefs.h >>conftest.$ac_ext |
| 13805 | cat >>conftest.$ac_ext <<_ACEOF |
| 13806 | /* end confdefs.h. */ |
| 13807 | |
| 13808 | #ifdef HAVE_SYS_TYPES_H |
| 13809 | #include <sys/types.h> |
| 13810 | #endif |
| 13811 | #ifdef HAVE_TIME_H |
| 13812 | #include <time.h> |
| 13813 | #endif |
| 13814 | |
| 13815 | |
| 13816 | typedef time_t ac__type_sizeof_; |
| 13817 | int |
| 13818 | main () |
| 13819 | { |
| 13820 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13821 | test_array [0] = 0 |
| 13822 | |
| 13823 | ; |
| 13824 | return 0; |
| 13825 | } |
| 13826 | _ACEOF |
| 13827 | rm -f conftest.$ac_objext |
| 13828 | if { (ac_try="$ac_compile" |
| 13829 | case "(($ac_try" in |
| 13830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13831 | *) ac_try_echo=$ac_try;; |
| 13832 | esac |
| 13833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13834 | (eval "$ac_compile") 2>conftest.er1 |
| 13835 | ac_status=$? |
| 13836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13837 | rm -f conftest.er1 |
| 13838 | cat conftest.err >&5 |
| 13839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13840 | (exit $ac_status); } && { |
| 13841 | test -z "$ac_c_werror_flag" || |
| 13842 | test ! -s conftest.err |
| 13843 | } && test -s conftest.$ac_objext; then |
| 13844 | ac_lo=$ac_mid; break |
| 13845 | else |
| 13846 | echo "$as_me: failed program was:" >&5 |
| 13847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13848 | |
| 13849 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13850 | if test $ac_mid -le $ac_hi; then |
| 13851 | ac_lo= ac_hi= |
| 13852 | break |
| 13853 | fi |
| 13854 | ac_mid=`expr 2 '*' $ac_mid` |
| 13855 | fi |
| 13856 | |
| 13857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13858 | done |
| 13859 | else |
| 13860 | echo "$as_me: failed program was:" >&5 |
| 13861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13862 | |
| 13863 | ac_lo= ac_hi= |
| 13864 | fi |
| 13865 | |
| 13866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13867 | fi |
| 13868 | |
| 13869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13870 | # Binary search between lo and hi bounds. |
| 13871 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13872 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13873 | cat >conftest.$ac_ext <<_ACEOF |
| 13874 | /* confdefs.h. */ |
| 13875 | _ACEOF |
| 13876 | cat confdefs.h >>conftest.$ac_ext |
| 13877 | cat >>conftest.$ac_ext <<_ACEOF |
| 13878 | /* end confdefs.h. */ |
| 13879 | |
| 13880 | #ifdef HAVE_SYS_TYPES_H |
| 13881 | #include <sys/types.h> |
| 13882 | #endif |
| 13883 | #ifdef HAVE_TIME_H |
| 13884 | #include <time.h> |
| 13885 | #endif |
| 13886 | |
| 13887 | |
| 13888 | typedef time_t ac__type_sizeof_; |
| 13889 | int |
| 13890 | main () |
| 13891 | { |
| 13892 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13893 | test_array [0] = 0 |
| 13894 | |
| 13895 | ; |
| 13896 | return 0; |
| 13897 | } |
| 13898 | _ACEOF |
| 13899 | rm -f conftest.$ac_objext |
| 13900 | if { (ac_try="$ac_compile" |
| 13901 | case "(($ac_try" in |
| 13902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13903 | *) ac_try_echo=$ac_try;; |
| 13904 | esac |
| 13905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13906 | (eval "$ac_compile") 2>conftest.er1 |
| 13907 | ac_status=$? |
| 13908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13909 | rm -f conftest.er1 |
| 13910 | cat conftest.err >&5 |
| 13911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13912 | (exit $ac_status); } && { |
| 13913 | test -z "$ac_c_werror_flag" || |
| 13914 | test ! -s conftest.err |
| 13915 | } && test -s conftest.$ac_objext; then |
| 13916 | ac_hi=$ac_mid |
| 13917 | else |
| 13918 | echo "$as_me: failed program was:" >&5 |
| 13919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13920 | |
| 13921 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13922 | fi |
| 13923 | |
| 13924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13925 | done |
| 13926 | case $ac_lo in |
| 13927 | ?*) ac_cv_sizeof_time_t=$ac_lo;; |
| 13928 | '') if test "$ac_cv_type_time_t" = yes; then |
| 13929 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13930 | See \`config.log' for more details." >&5 |
| 13931 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13932 | See \`config.log' for more details." >&2;} |
| 13933 | { (exit 77); exit 77; }; } |
| 13934 | else |
| 13935 | ac_cv_sizeof_time_t=0 |
| 13936 | fi ;; |
| 13937 | esac |
| 13938 | else |
| 13939 | cat >conftest.$ac_ext <<_ACEOF |
| 13940 | /* confdefs.h. */ |
| 13941 | _ACEOF |
| 13942 | cat confdefs.h >>conftest.$ac_ext |
| 13943 | cat >>conftest.$ac_ext <<_ACEOF |
| 13944 | /* end confdefs.h. */ |
| 13945 | |
| 13946 | #ifdef HAVE_SYS_TYPES_H |
| 13947 | #include <sys/types.h> |
| 13948 | #endif |
| 13949 | #ifdef HAVE_TIME_H |
| 13950 | #include <time.h> |
| 13951 | #endif |
| 13952 | |
| 13953 | |
| 13954 | typedef time_t ac__type_sizeof_; |
| 13955 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13956 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13957 | #include <stdio.h> |
| 13958 | #include <stdlib.h> |
| 13959 | int |
| 13960 | main () |
| 13961 | { |
| 13962 | |
| 13963 | FILE *f = fopen ("conftest.val", "w"); |
| 13964 | if (! f) |
| 13965 | return 1; |
| 13966 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13967 | { |
| 13968 | long int i = longval (); |
| 13969 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13970 | return 1; |
| 13971 | fprintf (f, "%ld\n", i); |
| 13972 | } |
| 13973 | else |
| 13974 | { |
| 13975 | unsigned long int i = ulongval (); |
| 13976 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13977 | return 1; |
| 13978 | fprintf (f, "%lu\n", i); |
| 13979 | } |
| 13980 | return ferror (f) || fclose (f) != 0; |
| 13981 | |
| 13982 | ; |
| 13983 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13984 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13985 | _ACEOF |
| 13986 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13987 | if { (ac_try="$ac_link" |
| 13988 | case "(($ac_try" in |
| 13989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13990 | *) ac_try_echo=$ac_try;; |
| 13991 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13993 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13994 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13996 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13997 | { (case "(($ac_try" in |
| 13998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13999 | *) ac_try_echo=$ac_try;; |
| 14000 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14002 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14003 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14005 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14006 | ac_cv_sizeof_time_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14007 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14008 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14009 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14012 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14013 | if test "$ac_cv_type_time_t" = yes; then |
| 14014 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 14015 | See \`config.log' for more details." >&5 |
| 14016 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 14017 | See \`config.log' for more details." >&2;} |
| 14018 | { (exit 77); exit 77; }; } |
| 14019 | else |
| 14020 | ac_cv_sizeof_time_t=0 |
| 14021 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14022 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14023 | 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] | 14024 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14025 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14026 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14027 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 14028 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14029 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14030 | |
| 14031 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14032 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14033 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14034 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 14035 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14036 | |
| 14037 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14038 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14039 | ac_save_cc="$CC" |
| 14040 | if test "$ac_cv_kpthread" = "yes" |
| 14041 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 14042 | elif test "$ac_cv_kthread" = "yes" |
| 14043 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14044 | elif test "$ac_cv_pthread" = "yes" |
| 14045 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14046 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14047 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14048 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14049 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14050 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14051 | /* confdefs.h. */ |
| 14052 | _ACEOF |
| 14053 | cat confdefs.h >>conftest.$ac_ext |
| 14054 | cat >>conftest.$ac_ext <<_ACEOF |
| 14055 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14056 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14057 | int |
| 14058 | main () |
| 14059 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 14060 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14061 | ; |
| 14062 | return 0; |
| 14063 | } |
| 14064 | _ACEOF |
| 14065 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14066 | if { (ac_try="$ac_compile" |
| 14067 | case "(($ac_try" in |
| 14068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14069 | *) ac_try_echo=$ac_try;; |
| 14070 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14072 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14073 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14075 | rm -f conftest.er1 |
| 14076 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14078 | (exit $ac_status); } && { |
| 14079 | test -z "$ac_c_werror_flag" || |
| 14080 | test ! -s conftest.err |
| 14081 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14082 | have_pthread_t=yes |
| 14083 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14084 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14086 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14087 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14088 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14089 | |
| 14090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14091 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 14092 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14093 | if test "$have_pthread_t" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14094 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14095 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
| 14096 | if test "${ac_cv_type_pthread_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14098 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14099 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14100 | /* confdefs.h. */ |
| 14101 | _ACEOF |
| 14102 | cat confdefs.h >>conftest.$ac_ext |
| 14103 | cat >>conftest.$ac_ext <<_ACEOF |
| 14104 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14105 | |
| 14106 | #ifdef HAVE_PTHREAD_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14107 | #include <pthread.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14108 | #endif |
| 14109 | |
| 14110 | |
| 14111 | typedef pthread_t ac__type_new_; |
| 14112 | int |
| 14113 | main () |
| 14114 | { |
| 14115 | if ((ac__type_new_ *) 0) |
| 14116 | return 0; |
| 14117 | if (sizeof (ac__type_new_)) |
| 14118 | return 0; |
| 14119 | ; |
| 14120 | return 0; |
| 14121 | } |
| 14122 | _ACEOF |
| 14123 | rm -f conftest.$ac_objext |
| 14124 | if { (ac_try="$ac_compile" |
| 14125 | case "(($ac_try" in |
| 14126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14127 | *) ac_try_echo=$ac_try;; |
| 14128 | esac |
| 14129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14130 | (eval "$ac_compile") 2>conftest.er1 |
| 14131 | ac_status=$? |
| 14132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14133 | rm -f conftest.er1 |
| 14134 | cat conftest.err >&5 |
| 14135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14136 | (exit $ac_status); } && { |
| 14137 | test -z "$ac_c_werror_flag" || |
| 14138 | test ! -s conftest.err |
| 14139 | } && test -s conftest.$ac_objext; then |
| 14140 | ac_cv_type_pthread_t=yes |
| 14141 | else |
| 14142 | echo "$as_me: failed program was:" >&5 |
| 14143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14144 | |
| 14145 | ac_cv_type_pthread_t=no |
| 14146 | fi |
| 14147 | |
| 14148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14149 | fi |
| 14150 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5 |
| 14151 | echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; } |
| 14152 | |
| 14153 | # The cast to long int works around a bug in the HP C Compiler |
| 14154 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14155 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14156 | # This bug is HP SR number 8606223364. |
| 14157 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 14158 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; } |
| 14159 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 14160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14161 | else |
| 14162 | if test "$cross_compiling" = yes; then |
| 14163 | # Depending upon the size, compute the lo and hi bounds. |
| 14164 | cat >conftest.$ac_ext <<_ACEOF |
| 14165 | /* confdefs.h. */ |
| 14166 | _ACEOF |
| 14167 | cat confdefs.h >>conftest.$ac_ext |
| 14168 | cat >>conftest.$ac_ext <<_ACEOF |
| 14169 | /* end confdefs.h. */ |
| 14170 | |
| 14171 | #ifdef HAVE_PTHREAD_H |
| 14172 | #include <pthread.h> |
| 14173 | #endif |
| 14174 | |
| 14175 | |
| 14176 | typedef pthread_t ac__type_sizeof_; |
| 14177 | int |
| 14178 | main () |
| 14179 | { |
| 14180 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 14181 | test_array [0] = 0 |
| 14182 | |
| 14183 | ; |
| 14184 | return 0; |
| 14185 | } |
| 14186 | _ACEOF |
| 14187 | rm -f conftest.$ac_objext |
| 14188 | if { (ac_try="$ac_compile" |
| 14189 | case "(($ac_try" in |
| 14190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14191 | *) ac_try_echo=$ac_try;; |
| 14192 | esac |
| 14193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14194 | (eval "$ac_compile") 2>conftest.er1 |
| 14195 | ac_status=$? |
| 14196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14197 | rm -f conftest.er1 |
| 14198 | cat conftest.err >&5 |
| 14199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14200 | (exit $ac_status); } && { |
| 14201 | test -z "$ac_c_werror_flag" || |
| 14202 | test ! -s conftest.err |
| 14203 | } && test -s conftest.$ac_objext; then |
| 14204 | ac_lo=0 ac_mid=0 |
| 14205 | while :; do |
| 14206 | cat >conftest.$ac_ext <<_ACEOF |
| 14207 | /* confdefs.h. */ |
| 14208 | _ACEOF |
| 14209 | cat confdefs.h >>conftest.$ac_ext |
| 14210 | cat >>conftest.$ac_ext <<_ACEOF |
| 14211 | /* end confdefs.h. */ |
| 14212 | |
| 14213 | #ifdef HAVE_PTHREAD_H |
| 14214 | #include <pthread.h> |
| 14215 | #endif |
| 14216 | |
| 14217 | |
| 14218 | typedef pthread_t ac__type_sizeof_; |
| 14219 | int |
| 14220 | main () |
| 14221 | { |
| 14222 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14223 | test_array [0] = 0 |
| 14224 | |
| 14225 | ; |
| 14226 | return 0; |
| 14227 | } |
| 14228 | _ACEOF |
| 14229 | rm -f conftest.$ac_objext |
| 14230 | if { (ac_try="$ac_compile" |
| 14231 | case "(($ac_try" in |
| 14232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14233 | *) ac_try_echo=$ac_try;; |
| 14234 | esac |
| 14235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14236 | (eval "$ac_compile") 2>conftest.er1 |
| 14237 | ac_status=$? |
| 14238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14239 | rm -f conftest.er1 |
| 14240 | cat conftest.err >&5 |
| 14241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14242 | (exit $ac_status); } && { |
| 14243 | test -z "$ac_c_werror_flag" || |
| 14244 | test ! -s conftest.err |
| 14245 | } && test -s conftest.$ac_objext; then |
| 14246 | ac_hi=$ac_mid; break |
| 14247 | else |
| 14248 | echo "$as_me: failed program was:" >&5 |
| 14249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14250 | |
| 14251 | ac_lo=`expr $ac_mid + 1` |
| 14252 | if test $ac_lo -le $ac_mid; then |
| 14253 | ac_lo= ac_hi= |
| 14254 | break |
| 14255 | fi |
| 14256 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14257 | fi |
| 14258 | |
| 14259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14260 | done |
| 14261 | else |
| 14262 | echo "$as_me: failed program was:" >&5 |
| 14263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14264 | |
| 14265 | cat >conftest.$ac_ext <<_ACEOF |
| 14266 | /* confdefs.h. */ |
| 14267 | _ACEOF |
| 14268 | cat confdefs.h >>conftest.$ac_ext |
| 14269 | cat >>conftest.$ac_ext <<_ACEOF |
| 14270 | /* end confdefs.h. */ |
| 14271 | |
| 14272 | #ifdef HAVE_PTHREAD_H |
| 14273 | #include <pthread.h> |
| 14274 | #endif |
| 14275 | |
| 14276 | |
| 14277 | typedef pthread_t ac__type_sizeof_; |
| 14278 | int |
| 14279 | main () |
| 14280 | { |
| 14281 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 14282 | test_array [0] = 0 |
| 14283 | |
| 14284 | ; |
| 14285 | return 0; |
| 14286 | } |
| 14287 | _ACEOF |
| 14288 | rm -f conftest.$ac_objext |
| 14289 | if { (ac_try="$ac_compile" |
| 14290 | case "(($ac_try" in |
| 14291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14292 | *) ac_try_echo=$ac_try;; |
| 14293 | esac |
| 14294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14295 | (eval "$ac_compile") 2>conftest.er1 |
| 14296 | ac_status=$? |
| 14297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14298 | rm -f conftest.er1 |
| 14299 | cat conftest.err >&5 |
| 14300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14301 | (exit $ac_status); } && { |
| 14302 | test -z "$ac_c_werror_flag" || |
| 14303 | test ! -s conftest.err |
| 14304 | } && test -s conftest.$ac_objext; then |
| 14305 | ac_hi=-1 ac_mid=-1 |
| 14306 | while :; do |
| 14307 | cat >conftest.$ac_ext <<_ACEOF |
| 14308 | /* confdefs.h. */ |
| 14309 | _ACEOF |
| 14310 | cat confdefs.h >>conftest.$ac_ext |
| 14311 | cat >>conftest.$ac_ext <<_ACEOF |
| 14312 | /* end confdefs.h. */ |
| 14313 | |
| 14314 | #ifdef HAVE_PTHREAD_H |
| 14315 | #include <pthread.h> |
| 14316 | #endif |
| 14317 | |
| 14318 | |
| 14319 | typedef pthread_t ac__type_sizeof_; |
| 14320 | int |
| 14321 | main () |
| 14322 | { |
| 14323 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 14324 | test_array [0] = 0 |
| 14325 | |
| 14326 | ; |
| 14327 | return 0; |
| 14328 | } |
| 14329 | _ACEOF |
| 14330 | rm -f conftest.$ac_objext |
| 14331 | if { (ac_try="$ac_compile" |
| 14332 | case "(($ac_try" in |
| 14333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14334 | *) ac_try_echo=$ac_try;; |
| 14335 | esac |
| 14336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14337 | (eval "$ac_compile") 2>conftest.er1 |
| 14338 | ac_status=$? |
| 14339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14340 | rm -f conftest.er1 |
| 14341 | cat conftest.err >&5 |
| 14342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14343 | (exit $ac_status); } && { |
| 14344 | test -z "$ac_c_werror_flag" || |
| 14345 | test ! -s conftest.err |
| 14346 | } && test -s conftest.$ac_objext; then |
| 14347 | ac_lo=$ac_mid; break |
| 14348 | else |
| 14349 | echo "$as_me: failed program was:" >&5 |
| 14350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14351 | |
| 14352 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14353 | if test $ac_mid -le $ac_hi; then |
| 14354 | ac_lo= ac_hi= |
| 14355 | break |
| 14356 | fi |
| 14357 | ac_mid=`expr 2 '*' $ac_mid` |
| 14358 | fi |
| 14359 | |
| 14360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14361 | done |
| 14362 | else |
| 14363 | echo "$as_me: failed program was:" >&5 |
| 14364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14365 | |
| 14366 | ac_lo= ac_hi= |
| 14367 | fi |
| 14368 | |
| 14369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14370 | fi |
| 14371 | |
| 14372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14373 | # Binary search between lo and hi bounds. |
| 14374 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14375 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14376 | cat >conftest.$ac_ext <<_ACEOF |
| 14377 | /* confdefs.h. */ |
| 14378 | _ACEOF |
| 14379 | cat confdefs.h >>conftest.$ac_ext |
| 14380 | cat >>conftest.$ac_ext <<_ACEOF |
| 14381 | /* end confdefs.h. */ |
| 14382 | |
| 14383 | #ifdef HAVE_PTHREAD_H |
| 14384 | #include <pthread.h> |
| 14385 | #endif |
| 14386 | |
| 14387 | |
| 14388 | typedef pthread_t ac__type_sizeof_; |
| 14389 | int |
| 14390 | main () |
| 14391 | { |
| 14392 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14393 | test_array [0] = 0 |
| 14394 | |
| 14395 | ; |
| 14396 | return 0; |
| 14397 | } |
| 14398 | _ACEOF |
| 14399 | rm -f conftest.$ac_objext |
| 14400 | if { (ac_try="$ac_compile" |
| 14401 | case "(($ac_try" in |
| 14402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14403 | *) ac_try_echo=$ac_try;; |
| 14404 | esac |
| 14405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14406 | (eval "$ac_compile") 2>conftest.er1 |
| 14407 | ac_status=$? |
| 14408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14409 | rm -f conftest.er1 |
| 14410 | cat conftest.err >&5 |
| 14411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14412 | (exit $ac_status); } && { |
| 14413 | test -z "$ac_c_werror_flag" || |
| 14414 | test ! -s conftest.err |
| 14415 | } && test -s conftest.$ac_objext; then |
| 14416 | ac_hi=$ac_mid |
| 14417 | else |
| 14418 | echo "$as_me: failed program was:" >&5 |
| 14419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14420 | |
| 14421 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14422 | fi |
| 14423 | |
| 14424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14425 | done |
| 14426 | case $ac_lo in |
| 14427 | ?*) ac_cv_sizeof_pthread_t=$ac_lo;; |
| 14428 | '') if test "$ac_cv_type_pthread_t" = yes; then |
| 14429 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14430 | See \`config.log' for more details." >&5 |
| 14431 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14432 | See \`config.log' for more details." >&2;} |
| 14433 | { (exit 77); exit 77; }; } |
| 14434 | else |
| 14435 | ac_cv_sizeof_pthread_t=0 |
| 14436 | fi ;; |
| 14437 | esac |
| 14438 | else |
| 14439 | cat >conftest.$ac_ext <<_ACEOF |
| 14440 | /* confdefs.h. */ |
| 14441 | _ACEOF |
| 14442 | cat confdefs.h >>conftest.$ac_ext |
| 14443 | cat >>conftest.$ac_ext <<_ACEOF |
| 14444 | /* end confdefs.h. */ |
| 14445 | |
| 14446 | #ifdef HAVE_PTHREAD_H |
| 14447 | #include <pthread.h> |
| 14448 | #endif |
| 14449 | |
| 14450 | |
| 14451 | typedef pthread_t ac__type_sizeof_; |
| 14452 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14453 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14454 | #include <stdio.h> |
| 14455 | #include <stdlib.h> |
| 14456 | int |
| 14457 | main () |
| 14458 | { |
| 14459 | |
| 14460 | FILE *f = fopen ("conftest.val", "w"); |
| 14461 | if (! f) |
| 14462 | return 1; |
| 14463 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 14464 | { |
| 14465 | long int i = longval (); |
| 14466 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14467 | return 1; |
| 14468 | fprintf (f, "%ld\n", i); |
| 14469 | } |
| 14470 | else |
| 14471 | { |
| 14472 | unsigned long int i = ulongval (); |
| 14473 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14474 | return 1; |
| 14475 | fprintf (f, "%lu\n", i); |
| 14476 | } |
| 14477 | return ferror (f) || fclose (f) != 0; |
| 14478 | |
| 14479 | ; |
| 14480 | return 0; |
| 14481 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14482 | _ACEOF |
| 14483 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14484 | if { (ac_try="$ac_link" |
| 14485 | case "(($ac_try" in |
| 14486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14487 | *) ac_try_echo=$ac_try;; |
| 14488 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14490 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14491 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14493 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14494 | { (case "(($ac_try" in |
| 14495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14496 | *) ac_try_echo=$ac_try;; |
| 14497 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14499 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14500 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14502 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14503 | ac_cv_sizeof_pthread_t=`cat conftest.val` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14504 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14505 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14506 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14509 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14510 | if test "$ac_cv_type_pthread_t" = yes; then |
| 14511 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14512 | See \`config.log' for more details." >&5 |
| 14513 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14514 | See \`config.log' for more details." >&2;} |
| 14515 | { (exit 77); exit 77; }; } |
| 14516 | else |
| 14517 | ac_cv_sizeof_pthread_t=0 |
| 14518 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14519 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14520 | 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] | 14521 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14522 | rm -f conftest.val |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14523 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14524 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14525 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14526 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14527 | |
| 14528 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14529 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14530 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14531 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14532 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14533 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14534 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14535 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14536 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14537 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 14538 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14539 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14540 | if test "${enable_toolbox_glue+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14541 | enableval=$enable_toolbox_glue; |
| 14542 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14543 | |
| 14544 | |
| 14545 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14546 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14547 | case $ac_sys_system/$ac_sys_release in |
| 14548 | Darwin/*) |
| 14549 | enable_toolbox_glue="yes";; |
| 14550 | *) |
| 14551 | enable_toolbox_glue="no";; |
| 14552 | esac |
| 14553 | fi |
| 14554 | case "$enable_toolbox_glue" in |
| 14555 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14556 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14557 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14558 | |
| 14559 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14560 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14561 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14562 | |
| 14563 | ;; |
| 14564 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14565 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 14566 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14567 | ;; |
| 14568 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14569 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 14570 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14571 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14572 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14573 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14574 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14575 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14576 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 14577 | ;; |
| 14578 | Darwin/*) |
| 14579 | OTHER_LIBTOOL_OPT="" |
| 14580 | ;; |
| 14581 | esac |
| 14582 | |
| 14583 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14584 | ARCH_RUN_32BIT="" |
| 14585 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14586 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14587 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14588 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 14589 | if test "${enable_universalsdk}"; then |
| 14590 | : |
| 14591 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14592 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14593 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14594 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14595 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 14596 | Darwin/*) |
Ronald Oussoren | a55af9a | 2010-01-17 16:25:57 +0000 | [diff] [blame] | 14597 | gcc_version=`gcc -dumpversion` |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14598 | if test ${gcc_version} '<' 4.0 |
| 14599 | then |
| 14600 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 14601 | else |
| 14602 | LIBTOOL_CRUFT="" |
| 14603 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14604 | if test "$cross_compiling" = yes; then |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14605 | ac_osx_32bit=yes |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14606 | else |
| 14607 | cat >conftest.$ac_ext <<_ACEOF |
| 14608 | /* confdefs.h. */ |
| 14609 | _ACEOF |
| 14610 | cat confdefs.h >>conftest.$ac_ext |
| 14611 | cat >>conftest.$ac_ext <<_ACEOF |
| 14612 | /* end confdefs.h. */ |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14613 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14614 | #include <unistd.h> |
| 14615 | int main(int argc, char*argv[]) |
| 14616 | { |
| 14617 | if (sizeof(long) == 4) { |
| 14618 | return 0; |
| 14619 | } else { |
| 14620 | return 1; |
| 14621 | } |
Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 14622 | } |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14623 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14624 | _ACEOF |
| 14625 | rm -f conftest$ac_exeext |
| 14626 | if { (ac_try="$ac_link" |
| 14627 | case "(($ac_try" in |
| 14628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14629 | *) ac_try_echo=$ac_try;; |
| 14630 | esac |
| 14631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14632 | (eval "$ac_link") 2>&5 |
| 14633 | ac_status=$? |
| 14634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14635 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14636 | { (case "(($ac_try" in |
| 14637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14638 | *) ac_try_echo=$ac_try;; |
| 14639 | esac |
| 14640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14641 | (eval "$ac_try") 2>&5 |
| 14642 | ac_status=$? |
| 14643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14644 | (exit $ac_status); }; }; then |
| 14645 | ac_osx_32bit=yes |
| 14646 | else |
| 14647 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14648 | echo "$as_me: failed program was:" >&5 |
| 14649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14650 | |
| 14651 | ( exit $ac_status ) |
| 14652 | ac_osx_32bit=no |
| 14653 | fi |
| 14654 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14655 | fi |
| 14656 | |
| 14657 | |
| 14658 | |
| 14659 | if test "${ac_osx_32bit}" = "yes"; then |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14660 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14661 | i386) |
| 14662 | MACOSX_DEFAULT_ARCH="i386" |
| 14663 | ;; |
| 14664 | ppc) |
| 14665 | MACOSX_DEFAULT_ARCH="ppc" |
| 14666 | ;; |
| 14667 | *) |
| 14668 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14669 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14670 | { (exit 1); exit 1; }; } |
| 14671 | ;; |
| 14672 | esac |
| 14673 | else |
Ronald Oussoren | bc0e83c | 2010-02-11 13:26:54 +0000 | [diff] [blame] | 14674 | case `/usr/bin/arch` in |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14675 | i386) |
| 14676 | MACOSX_DEFAULT_ARCH="x86_64" |
| 14677 | ;; |
| 14678 | ppc) |
| 14679 | MACOSX_DEFAULT_ARCH="ppc64" |
| 14680 | ;; |
| 14681 | *) |
| 14682 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14683 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14684 | { (exit 1); exit 1; }; } |
| 14685 | ;; |
| 14686 | esac |
| 14687 | |
| 14688 | #ARCH_RUN_32BIT="true" |
| 14689 | fi |
| 14690 | |
| 14691 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14692 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14693 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14694 | esac |
| 14695 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14696 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 14697 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14698 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14699 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14700 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14701 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14702 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14704 | cat >>confdefs.h <<\_ACEOF |
| 14705 | #define WITH_NEXT_FRAMEWORK 1 |
| 14706 | _ACEOF |
| 14707 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14708 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14709 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14710 | if test $enable_shared = "yes" |
| 14711 | then |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 14712 | { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5 |
| 14713 | echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&2;} |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14714 | { (exit 1); exit 1; }; } |
| 14715 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14716 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14717 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14718 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14719 | fi |
| 14720 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14721 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 14722 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14723 | case $ac_sys_system/$ac_sys_release in |
| 14724 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14726 | cat >>confdefs.h <<\_ACEOF |
| 14727 | #define WITH_DYLD 1 |
| 14728 | _ACEOF |
| 14729 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14730 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 14731 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14732 | ;; |
| 14733 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14734 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14735 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14736 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14737 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14738 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14739 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14740 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14741 | |
| 14742 | |
| 14743 | |
| 14744 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14745 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14746 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14747 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 14748 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14749 | if test -z "$SO" |
| 14750 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14751 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14752 | hp*|HP*) |
| 14753 | case `uname -m` in |
| 14754 | ia64) SO=.so;; |
| 14755 | *) SO=.sl;; |
| 14756 | esac |
| 14757 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14758 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14759 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14760 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 14761 | else |
| 14762 | # this might also be a termcap variable, see #610332 |
| 14763 | echo |
| 14764 | echo '=====================================================================' |
| 14765 | echo '+ +' |
| 14766 | echo '+ WARNING: You have set SO in your environment. +' |
| 14767 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 14768 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 14769 | echo '+ +' |
| 14770 | echo '=====================================================================' |
| 14771 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14772 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14773 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 14774 | echo "${ECHO_T}$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14775 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 14776 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14777 | cat >>confdefs.h <<_ACEOF |
| 14778 | #define SHLIB_EXT "$SO" |
| 14779 | _ACEOF |
| 14780 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14781 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 14782 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14783 | # (Shared libraries in this instance are shared modules to be loaded into |
| 14784 | # Python, as opposed to building Python itself as a shared library.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14785 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 14786 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14787 | if test -z "$LDSHARED" |
| 14788 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14789 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14790 | AIX*) |
| 14791 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14792 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14793 | ;; |
| 14794 | BeOS*) |
| 14795 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14796 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14797 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14798 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 14799 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14800 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14801 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 14802 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 14803 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14804 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 14805 | hp*|HP*) |
| 14806 | if test "$GCC" = "yes" |
| 14807 | then LDSHARED='$(CC) -shared' |
| 14808 | else LDSHARED='ld -b'; |
| 14809 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14810 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14811 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14812 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14813 | if test "$enable_framework" ; then |
| 14814 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14815 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14816 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14817 | else |
| 14818 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14819 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14820 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14821 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14822 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14823 | if test "$enable_framework" ; then |
| 14824 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14825 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14826 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14827 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 14828 | # No framework, use the Python app as bundle-loader |
| 14829 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 14830 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14831 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14832 | Darwin/*) |
| 14833 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 14834 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 14835 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14836 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14837 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14838 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14839 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14840 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14841 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 14842 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14843 | else |
| 14844 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14845 | if test "$enable_framework" ; then |
| 14846 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14847 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14848 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14849 | else |
| 14850 | # No framework, use the Python app as bundle-loader |
| 14851 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 14852 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 14853 | fi |
| 14854 | fi |
| 14855 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14856 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 14857 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14858 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 14859 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14860 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 14861 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14862 | else |
| 14863 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14864 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14865 | OpenBSD*) |
| 14866 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14867 | then |
| 14868 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14869 | else |
| 14870 | case `uname -r` in |
| 14871 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 14872 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14873 | ;; |
| 14874 | *) |
| 14875 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14876 | ;; |
| 14877 | esac |
| 14878 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14879 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14880 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14881 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14882 | then LDSHARED='$(CC) -shared' |
| 14883 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14884 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14885 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14886 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14887 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14888 | *) LDSHARED="ld";; |
| 14889 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14890 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14891 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 14892 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14893 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14894 | # 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] | 14895 | # library (module) -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14896 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 14897 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14898 | if test -z "$CCSHARED" |
| 14899 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14900 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14901 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 14902 | then CCSHARED="-fPIC"; |
| 14903 | elif test `uname -p` = sparc; |
| 14904 | then CCSHARED="-xcode=pic32"; |
| 14905 | else CCSHARED="-Kpic"; |
| 14906 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14907 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 14908 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14909 | else CCSHARED="+z"; |
| 14910 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14911 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14912 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14913 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14914 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14915 | if test "$GCC" = "yes" |
| 14916 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14917 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14918 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14919 | SCO_SV*) |
| 14920 | if test "$GCC" = "yes" |
| 14921 | then CCSHARED="-fPIC" |
| 14922 | else CCSHARED="-Kpic -belf" |
| 14923 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14924 | IRIX*/6*) case $CC in |
| 14925 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 14926 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14927 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14928 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14929 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14930 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14931 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 14932 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14933 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14934 | # the python executable -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14935 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 14936 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14937 | if test -z "$LINKFORSHARED" |
| 14938 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14939 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14940 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 14941 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14942 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 14943 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14944 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14945 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14946 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14947 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14948 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 14949 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14950 | # not used by the core itself but which needs to be in the core so |
| 14951 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 14952 | # -prebind is no longer used, because it actually seems to give a |
| 14953 | # slowdown in stead of a speedup, maybe due to the large number of |
| 14954 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14955 | |
| 14956 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14957 | if test "$enable_framework" |
| 14958 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14959 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14960 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14961 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14962 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14963 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 14964 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14965 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 14966 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14967 | then |
| 14968 | LINKFORSHARED="-Wl,--export-dynamic" |
| 14969 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14970 | SunOS/5*) case $CC in |
| 14971 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 14972 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 14973 | then |
| 14974 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14975 | fi;; |
| 14976 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 14977 | CYGWIN*) |
| 14978 | if test $enable_shared = "no" |
| 14979 | then |
| 14980 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 14981 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14982 | QNX*) |
| 14983 | # -Wl,-E causes the symbols to be added to the dynamic |
| 14984 | # symbol table so that they can be found when a module |
| 14985 | # is loaded. -N 2048K causes the stack size to be set |
| 14986 | # to 2048 kilobytes so that the stack doesn't overflow |
| 14987 | # when running test_compile.py. |
| 14988 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14989 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14990 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14991 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 14992 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14993 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14994 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14995 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14996 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 14997 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14998 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 14999 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 15000 | case $ac_sys_system in |
| 15001 | CYGWIN*) |
| 15002 | # Cygwin needs CCSHARED when building extension DLLs |
| 15003 | # but not when building the interpreter DLL. |
| 15004 | CFLAGSFORSHARED='';; |
| 15005 | *) |
| 15006 | CFLAGSFORSHARED='$(CCSHARED)' |
| 15007 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15008 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15009 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 15010 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 15011 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15012 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 15013 | # library (with --enable-shared). |
| 15014 | # 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] | 15015 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 15016 | # if it is not required, since it creates a dependency of the shared library |
| 15017 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 15018 | # don't need to link LIBS explicitly. The default should be only changed |
| 15019 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15020 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15021 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 15022 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15023 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15024 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 15025 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15026 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15027 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 15028 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 15029 | |
| 15030 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15031 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15032 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15033 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15034 | 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] | 15035 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15037 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15038 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15039 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15040 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15041 | /* confdefs.h. */ |
| 15042 | _ACEOF |
| 15043 | cat confdefs.h >>conftest.$ac_ext |
| 15044 | cat >>conftest.$ac_ext <<_ACEOF |
| 15045 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15046 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15047 | /* Override any GCC internal prototype to avoid an error. |
| 15048 | Use char because int might match the return type of a GCC |
| 15049 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15050 | #ifdef __cplusplus |
| 15051 | extern "C" |
| 15052 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15053 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15054 | int |
| 15055 | main () |
| 15056 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15057 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15058 | ; |
| 15059 | return 0; |
| 15060 | } |
| 15061 | _ACEOF |
| 15062 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15063 | if { (ac_try="$ac_link" |
| 15064 | case "(($ac_try" in |
| 15065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15066 | *) ac_try_echo=$ac_try;; |
| 15067 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15069 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15070 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15072 | rm -f conftest.er1 |
| 15073 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15075 | (exit $ac_status); } && { |
| 15076 | test -z "$ac_c_werror_flag" || |
| 15077 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15078 | } && test -s conftest$ac_exeext && |
| 15079 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15080 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15081 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15082 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15084 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15085 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15086 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15087 | |
| 15088 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15089 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15090 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15091 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15092 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15093 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 15094 | if test $ac_cv_lib_dl_dlopen = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15095 | cat >>confdefs.h <<_ACEOF |
| 15096 | #define HAVE_LIBDL 1 |
| 15097 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15098 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15099 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15100 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15101 | fi |
| 15102 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15103 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15104 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 15105 | 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] | 15106 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15108 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15109 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15110 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15111 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15112 | /* confdefs.h. */ |
| 15113 | _ACEOF |
| 15114 | cat confdefs.h >>conftest.$ac_ext |
| 15115 | cat >>conftest.$ac_ext <<_ACEOF |
| 15116 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15117 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15118 | /* Override any GCC internal prototype to avoid an error. |
| 15119 | Use char because int might match the return type of a GCC |
| 15120 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15121 | #ifdef __cplusplus |
| 15122 | extern "C" |
| 15123 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15124 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15125 | int |
| 15126 | main () |
| 15127 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15128 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | ; |
| 15130 | return 0; |
| 15131 | } |
| 15132 | _ACEOF |
| 15133 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15134 | if { (ac_try="$ac_link" |
| 15135 | case "(($ac_try" in |
| 15136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15137 | *) ac_try_echo=$ac_try;; |
| 15138 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15140 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15141 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15143 | rm -f conftest.er1 |
| 15144 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15146 | (exit $ac_status); } && { |
| 15147 | test -z "$ac_c_werror_flag" || |
| 15148 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15149 | } && test -s conftest$ac_exeext && |
| 15150 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15151 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15152 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15153 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15155 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15156 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15157 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15158 | |
| 15159 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15160 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15161 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15162 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15163 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 15164 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 15165 | if test $ac_cv_lib_dld_shl_load = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15166 | cat >>confdefs.h <<_ACEOF |
| 15167 | #define HAVE_LIBDLD 1 |
| 15168 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15169 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15170 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15171 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15172 | fi |
| 15173 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15174 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 15175 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15176 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15177 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 15178 | 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] | 15179 | if test "${ac_cv_search_sem_init+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15181 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15182 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15183 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15184 | /* confdefs.h. */ |
| 15185 | _ACEOF |
| 15186 | cat confdefs.h >>conftest.$ac_ext |
| 15187 | cat >>conftest.$ac_ext <<_ACEOF |
| 15188 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15189 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15190 | /* Override any GCC internal prototype to avoid an error. |
| 15191 | Use char because int might match the return type of a GCC |
| 15192 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15193 | #ifdef __cplusplus |
| 15194 | extern "C" |
| 15195 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15196 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15197 | int |
| 15198 | main () |
| 15199 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15200 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15201 | ; |
| 15202 | return 0; |
| 15203 | } |
| 15204 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15205 | for ac_lib in '' pthread rt posix4; do |
| 15206 | if test -z "$ac_lib"; then |
| 15207 | ac_res="none required" |
| 15208 | else |
| 15209 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15210 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15211 | fi |
| 15212 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15213 | if { (ac_try="$ac_link" |
| 15214 | case "(($ac_try" in |
| 15215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15216 | *) ac_try_echo=$ac_try;; |
| 15217 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15219 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15220 | ac_status=$? |
| 15221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15222 | rm -f conftest.er1 |
| 15223 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15225 | (exit $ac_status); } && { |
| 15226 | test -z "$ac_c_werror_flag" || |
| 15227 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15228 | } && test -s conftest$ac_exeext && |
| 15229 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15230 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15231 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15232 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15234 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15235 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15236 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15237 | |
| 15238 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15239 | conftest$ac_exeext |
| 15240 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15241 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15242 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15243 | done |
| 15244 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15245 | : |
| 15246 | else |
| 15247 | ac_cv_search_sem_init=no |
| 15248 | fi |
| 15249 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15250 | LIBS=$ac_func_search_save_LIBS |
| 15251 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15252 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 15253 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15254 | ac_res=$ac_cv_search_sem_init |
| 15255 | if test "$ac_res" != no; then |
| 15256 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15257 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15258 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 15259 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15260 | # posix4 on Solaris 2.6 |
| 15261 | # pthread (first!) on Linux |
| 15262 | fi |
| 15263 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15264 | # check if we need libintl for locale functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15265 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 15266 | 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] | 15267 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15269 | else |
| 15270 | ac_check_lib_save_LIBS=$LIBS |
| 15271 | LIBS="-lintl $LIBS" |
| 15272 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15273 | /* confdefs.h. */ |
| 15274 | _ACEOF |
| 15275 | cat confdefs.h >>conftest.$ac_ext |
| 15276 | cat >>conftest.$ac_ext <<_ACEOF |
| 15277 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15278 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15279 | /* Override any GCC internal prototype to avoid an error. |
| 15280 | Use char because int might match the return type of a GCC |
| 15281 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15282 | #ifdef __cplusplus |
| 15283 | extern "C" |
| 15284 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15285 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15286 | int |
| 15287 | main () |
| 15288 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15289 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15290 | ; |
| 15291 | return 0; |
| 15292 | } |
| 15293 | _ACEOF |
| 15294 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15295 | if { (ac_try="$ac_link" |
| 15296 | case "(($ac_try" in |
| 15297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15298 | *) ac_try_echo=$ac_try;; |
| 15299 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15301 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15302 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15304 | rm -f conftest.er1 |
| 15305 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15307 | (exit $ac_status); } && { |
| 15308 | test -z "$ac_c_werror_flag" || |
| 15309 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15310 | } && test -s conftest$ac_exeext && |
| 15311 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15312 | ac_cv_lib_intl_textdomain=yes |
| 15313 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15314 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15316 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15317 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15318 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15319 | |
| 15320 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15321 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15322 | LIBS=$ac_check_lib_save_LIBS |
| 15323 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15324 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 15325 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
| 15326 | if test $ac_cv_lib_intl_textdomain = yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15327 | |
| 15328 | cat >>confdefs.h <<\_ACEOF |
| 15329 | #define WITH_LIBINTL 1 |
| 15330 | _ACEOF |
| 15331 | |
| 15332 | fi |
| 15333 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15334 | |
| 15335 | # checks for system dependent C++ extensions support |
| 15336 | case "$ac_sys_system" in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15337 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 15338 | 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] | 15339 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15340 | /* confdefs.h. */ |
| 15341 | _ACEOF |
| 15342 | cat confdefs.h >>conftest.$ac_ext |
| 15343 | cat >>conftest.$ac_ext <<_ACEOF |
| 15344 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15345 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15346 | int |
| 15347 | main () |
| 15348 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15349 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15350 | ; |
| 15351 | return 0; |
| 15352 | } |
| 15353 | _ACEOF |
| 15354 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15355 | if { (ac_try="$ac_link" |
| 15356 | case "(($ac_try" in |
| 15357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15358 | *) ac_try_echo=$ac_try;; |
| 15359 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15361 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15362 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15364 | rm -f conftest.er1 |
| 15365 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15367 | (exit $ac_status); } && { |
| 15368 | test -z "$ac_c_werror_flag" || |
| 15369 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15370 | } && test -s conftest$ac_exeext && |
| 15371 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15373 | cat >>confdefs.h <<\_ACEOF |
| 15374 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 15375 | _ACEOF |
| 15376 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15377 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15378 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15379 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15380 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15382 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15383 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15384 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15385 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15386 | |
| 15387 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15388 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15389 | *) ;; |
| 15390 | esac |
| 15391 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15392 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15393 | # BeOS' sockets are stashed in libnet. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15394 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 15395 | 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] | 15396 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15398 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15399 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15400 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15401 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15402 | /* confdefs.h. */ |
| 15403 | _ACEOF |
| 15404 | cat confdefs.h >>conftest.$ac_ext |
| 15405 | cat >>conftest.$ac_ext <<_ACEOF |
| 15406 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15407 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15408 | /* Override any GCC internal prototype to avoid an error. |
| 15409 | Use char because int might match the return type of a GCC |
| 15410 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15411 | #ifdef __cplusplus |
| 15412 | extern "C" |
| 15413 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15414 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15415 | int |
| 15416 | main () |
| 15417 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15418 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15419 | ; |
| 15420 | return 0; |
| 15421 | } |
| 15422 | _ACEOF |
| 15423 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15424 | if { (ac_try="$ac_link" |
| 15425 | case "(($ac_try" in |
| 15426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15427 | *) ac_try_echo=$ac_try;; |
| 15428 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15430 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15431 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15433 | rm -f conftest.er1 |
| 15434 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15436 | (exit $ac_status); } && { |
| 15437 | test -z "$ac_c_werror_flag" || |
| 15438 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15439 | } && test -s conftest$ac_exeext && |
| 15440 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15441 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15442 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15443 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15445 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15446 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15447 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15448 | |
| 15449 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15450 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15451 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15452 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15453 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 15454 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
| 15455 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15456 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15457 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 15458 | # SVR4 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15459 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15460 | 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] | 15461 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15463 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15464 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15465 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15466 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15467 | /* confdefs.h. */ |
| 15468 | _ACEOF |
| 15469 | cat confdefs.h >>conftest.$ac_ext |
| 15470 | cat >>conftest.$ac_ext <<_ACEOF |
| 15471 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15472 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15473 | /* Override any GCC internal prototype to avoid an error. |
| 15474 | Use char because int might match the return type of a GCC |
| 15475 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15476 | #ifdef __cplusplus |
| 15477 | extern "C" |
| 15478 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15479 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15480 | int |
| 15481 | main () |
| 15482 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15483 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15484 | ; |
| 15485 | return 0; |
| 15486 | } |
| 15487 | _ACEOF |
| 15488 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15489 | if { (ac_try="$ac_link" |
| 15490 | case "(($ac_try" in |
| 15491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15492 | *) ac_try_echo=$ac_try;; |
| 15493 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15495 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15496 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15498 | rm -f conftest.er1 |
| 15499 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15501 | (exit $ac_status); } && { |
| 15502 | test -z "$ac_c_werror_flag" || |
| 15503 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15504 | } && test -s conftest$ac_exeext && |
| 15505 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15506 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15507 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15508 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15510 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15511 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15512 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15513 | |
| 15514 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15515 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15516 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15517 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15518 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15519 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
| 15520 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15521 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15522 | fi |
| 15523 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 15524 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 15525 | case "$ac_sys_system" in |
| 15526 | BeOS*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15527 | { echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 15528 | 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] | 15529 | if test "${ac_cv_lib_net_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15532 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15533 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15534 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15535 | /* confdefs.h. */ |
| 15536 | _ACEOF |
| 15537 | cat confdefs.h >>conftest.$ac_ext |
| 15538 | cat >>conftest.$ac_ext <<_ACEOF |
| 15539 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15540 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15541 | /* Override any GCC internal prototype to avoid an error. |
| 15542 | Use char because int might match the return type of a GCC |
| 15543 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15544 | #ifdef __cplusplus |
| 15545 | extern "C" |
| 15546 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15547 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15548 | int |
| 15549 | main () |
| 15550 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15551 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15552 | ; |
| 15553 | return 0; |
| 15554 | } |
| 15555 | _ACEOF |
| 15556 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15557 | if { (ac_try="$ac_link" |
| 15558 | case "(($ac_try" in |
| 15559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15560 | *) ac_try_echo=$ac_try;; |
| 15561 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15563 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15564 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15566 | rm -f conftest.er1 |
| 15567 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15569 | (exit $ac_status); } && { |
| 15570 | test -z "$ac_c_werror_flag" || |
| 15571 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15572 | } && test -s conftest$ac_exeext && |
| 15573 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15574 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15575 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15576 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15578 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15579 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15580 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15581 | |
| 15582 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15583 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15584 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15585 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15586 | { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 15587 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; } |
| 15588 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15589 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15590 | fi |
| 15591 | # BeOS |
| 15592 | ;; |
| 15593 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15594 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15595 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 15596 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15597 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15598 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15599 | if test "${with_libs+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15600 | withval=$with_libs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15601 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15602 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15603 | LIBS="$withval $LIBS" |
| 15604 | |
| 15605 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15606 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15607 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15608 | fi |
| 15609 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15610 | |
Benjamin Peterson | 2c19674 | 2009-12-31 03:17:18 +0000 | [diff] [blame] | 15611 | # Check for use of the system expat library |
| 15612 | { echo "$as_me:$LINENO: checking for --with-system-expat" >&5 |
| 15613 | echo $ECHO_N "checking for --with-system-expat... $ECHO_C" >&6; } |
| 15614 | |
| 15615 | # Check whether --with-system_expat was given. |
| 15616 | if test "${with_system_expat+set}" = set; then |
| 15617 | withval=$with_system_expat; |
| 15618 | fi |
| 15619 | |
| 15620 | |
| 15621 | { echo "$as_me:$LINENO: result: $with_system_expat" >&5 |
| 15622 | echo "${ECHO_T}$with_system_expat" >&6; } |
| 15623 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15624 | # Check for use of the system libffi library |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15625 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 15626 | echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15627 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15628 | # Check whether --with-system_ffi was given. |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15629 | if test "${with_system_ffi+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15630 | withval=$with_system_ffi; |
| 15631 | fi |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15632 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15633 | |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 15634 | if test "$with_system_ffi" = "yes"; then |
| 15635 | if test -n "$ac_tool_prefix"; then |
| 15636 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 15637 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 15638 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15639 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 15640 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 15641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15642 | else |
| 15643 | case $PKG_CONFIG in |
| 15644 | [\\/]* | ?:[\\/]*) |
| 15645 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 15646 | ;; |
| 15647 | *) |
| 15648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15649 | for as_dir in $PATH |
| 15650 | do |
| 15651 | IFS=$as_save_IFS |
| 15652 | test -z "$as_dir" && as_dir=. |
| 15653 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15654 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15655 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15656 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15657 | break 2 |
| 15658 | fi |
| 15659 | done |
| 15660 | done |
| 15661 | IFS=$as_save_IFS |
| 15662 | |
| 15663 | ;; |
| 15664 | esac |
| 15665 | fi |
| 15666 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 15667 | if test -n "$PKG_CONFIG"; then |
| 15668 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 15669 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
| 15670 | else |
| 15671 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15672 | echo "${ECHO_T}no" >&6; } |
| 15673 | fi |
| 15674 | |
| 15675 | |
| 15676 | fi |
| 15677 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 15678 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 15679 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 15680 | set dummy pkg-config; ac_word=$2 |
| 15681 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 15682 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 15683 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 15684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15685 | else |
| 15686 | case $ac_pt_PKG_CONFIG in |
| 15687 | [\\/]* | ?:[\\/]*) |
| 15688 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 15689 | ;; |
| 15690 | *) |
| 15691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15692 | for as_dir in $PATH |
| 15693 | do |
| 15694 | IFS=$as_save_IFS |
| 15695 | test -z "$as_dir" && as_dir=. |
| 15696 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15697 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15698 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15700 | break 2 |
| 15701 | fi |
| 15702 | done |
| 15703 | done |
| 15704 | IFS=$as_save_IFS |
| 15705 | |
| 15706 | ;; |
| 15707 | esac |
| 15708 | fi |
| 15709 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 15710 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 15711 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 15712 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
| 15713 | else |
| 15714 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15715 | echo "${ECHO_T}no" >&6; } |
| 15716 | fi |
| 15717 | |
| 15718 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 15719 | PKG_CONFIG="" |
| 15720 | else |
| 15721 | case $cross_compiling:$ac_tool_warned in |
| 15722 | yes:) |
| 15723 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 15724 | whose name does not start with the host triplet. If you think this |
| 15725 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 15726 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 15727 | whose name does not start with the host triplet. If you think this |
| 15728 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 15729 | ac_tool_warned=yes ;; |
| 15730 | esac |
| 15731 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 15732 | fi |
| 15733 | else |
| 15734 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 15735 | fi |
| 15736 | |
| 15737 | LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" |
| 15738 | else |
| 15739 | LIBFFI_INCLUDEDIR="" |
| 15740 | fi |
| 15741 | |
| 15742 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15743 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 15744 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15745 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15746 | # Check for --with-dbmliborder |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15747 | { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5 |
| 15748 | echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15749 | |
| 15750 | # Check whether --with-dbmliborder was given. |
| 15751 | if test "${with_dbmliborder+set}" = set; then |
| 15752 | withval=$with_dbmliborder; |
| 15753 | if test x$with_dbmliborder = xyes |
| 15754 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15755 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15756 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15757 | { (exit 1); exit 1; }; } |
| 15758 | else |
| 15759 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 15760 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 15761 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15762 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15763 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15764 | { (exit 1); exit 1; }; } |
| 15765 | fi |
| 15766 | done |
| 15767 | fi |
| 15768 | fi |
| 15769 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15770 | { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5 |
| 15771 | echo "${ECHO_T}$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15772 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15773 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15774 | |
| 15775 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15776 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 15777 | 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] | 15778 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15779 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15780 | if test "${with_signal_module+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15781 | withval=$with_signal_module; |
| 15782 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15783 | |
| 15784 | |
| 15785 | if test -z "$with_signal_module" |
| 15786 | then with_signal_module="yes" |
| 15787 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15788 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 15789 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15790 | |
| 15791 | if test "${with_signal_module}" = "yes"; then |
| 15792 | USE_SIGNAL_MODULE="" |
| 15793 | SIGNAL_OBJS="" |
| 15794 | else |
| 15795 | USE_SIGNAL_MODULE="#" |
| 15796 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 15797 | fi |
| 15798 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 15799 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15800 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15801 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15802 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15803 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 15804 | 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] | 15805 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15806 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15807 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15808 | if test "${with_dec_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15809 | withval=$with_dec_threads; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15810 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15811 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15812 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15813 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15814 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15815 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15816 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15817 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15818 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15819 | fi |
| 15820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15821 | |
| 15822 | # Templates for things AC_DEFINEd more than once. |
| 15823 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15824 | |
| 15825 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15826 | |
| 15827 | |
| 15828 | |
| 15829 | |
| 15830 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15831 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 15832 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15833 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15834 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15835 | if test "${with_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15836 | withval=$with_threads; |
| 15837 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15838 | |
| 15839 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15840 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15841 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15842 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15843 | if test "${with_thread+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15844 | withval=$with_thread; with_threads=$with_thread |
| 15845 | fi |
| 15846 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15847 | |
| 15848 | if test -z "$with_threads" |
| 15849 | then with_threads="yes" |
| 15850 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15851 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 15852 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15853 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15854 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15855 | if test "$with_threads" = "no" |
| 15856 | then |
| 15857 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15858 | elif test "$ac_cv_pthread_is_default" = yes |
| 15859 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15860 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15861 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15862 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15863 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15864 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15865 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15866 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15867 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15868 | |
| 15869 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15870 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15871 | elif test "$ac_cv_kpthread" = "yes" |
| 15872 | then |
| 15873 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15874 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15875 | CXX="$CXX -Kpthread" |
| 15876 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15877 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15878 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15879 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15880 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15881 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15882 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15883 | elif test "$ac_cv_kthread" = "yes" |
| 15884 | then |
| 15885 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15886 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15887 | CXX="$CXX -Kthread" |
| 15888 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15889 | cat >>confdefs.h <<\_ACEOF |
| 15890 | #define WITH_THREAD 1 |
| 15891 | _ACEOF |
| 15892 | |
| 15893 | posix_threads=yes |
| 15894 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15895 | elif test "$ac_cv_pthread" = "yes" |
| 15896 | then |
| 15897 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15898 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15899 | CXX="$CXX -pthread" |
| 15900 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15901 | cat >>confdefs.h <<\_ACEOF |
| 15902 | #define WITH_THREAD 1 |
| 15903 | _ACEOF |
| 15904 | |
| 15905 | posix_threads=yes |
| 15906 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15907 | else |
| 15908 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 15909 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 15910 | fi |
| 15911 | if test ! -z "$withval" -a -d "$withval" |
| 15912 | then LDFLAGS="$LDFLAGS -L$withval" |
| 15913 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15914 | |
| 15915 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 15916 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 15917 | # (e.g. gnu pth with pthread emulation) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15918 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 15919 | 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] | 15920 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15921 | /* confdefs.h. */ |
| 15922 | _ACEOF |
| 15923 | cat confdefs.h >>conftest.$ac_ext |
| 15924 | cat >>conftest.$ac_ext <<_ACEOF |
| 15925 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15926 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15927 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15928 | #ifdef _POSIX_THREADS |
| 15929 | yes |
| 15930 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15931 | |
| 15932 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15933 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15934 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15935 | unistd_defines_pthreads=yes |
| 15936 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15937 | unistd_defines_pthreads=no |
| 15938 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 15939 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15940 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15941 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 15942 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15943 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15944 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15945 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15946 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15948 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15949 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15950 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15951 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15953 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15954 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15955 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15957 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15958 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 15959 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15960 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15961 | /* confdefs.h. */ |
| 15962 | _ACEOF |
| 15963 | cat confdefs.h >>conftest.$ac_ext |
| 15964 | cat >>conftest.$ac_ext <<_ACEOF |
| 15965 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15966 | $ac_includes_default |
| 15967 | #include <cthreads.h> |
| 15968 | _ACEOF |
| 15969 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15970 | if { (ac_try="$ac_compile" |
| 15971 | case "(($ac_try" in |
| 15972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15973 | *) ac_try_echo=$ac_try;; |
| 15974 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15976 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15977 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15979 | rm -f conftest.er1 |
| 15980 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15982 | (exit $ac_status); } && { |
| 15983 | test -z "$ac_c_werror_flag" || |
| 15984 | test ! -s conftest.err |
| 15985 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15986 | ac_header_compiler=yes |
| 15987 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15988 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15990 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15991 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15992 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15993 | |
| 15994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15995 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15996 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15997 | |
| 15998 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15999 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 16000 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16001 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16002 | /* confdefs.h. */ |
| 16003 | _ACEOF |
| 16004 | cat confdefs.h >>conftest.$ac_ext |
| 16005 | cat >>conftest.$ac_ext <<_ACEOF |
| 16006 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16007 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16008 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16010 | case "(($ac_try" in |
| 16011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16012 | *) ac_try_echo=$ac_try;; |
| 16013 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16016 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16017 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16018 | rm -f conftest.er1 |
| 16019 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16021 | (exit $ac_status); } >/dev/null && { |
| 16022 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16023 | test ! -s conftest.err |
| 16024 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16025 | ac_header_preproc=yes |
| 16026 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16027 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16030 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16031 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16033 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16034 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16035 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16036 | |
| 16037 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16038 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16039 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16040 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16041 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16042 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 16043 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16044 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16045 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16046 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16047 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 16048 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 16049 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 16050 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 16051 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 16052 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 16053 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16054 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16055 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 16056 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16057 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16058 | echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16059 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16060 | ## -------------------------------------- ## |
| 16061 | ## Report this to http://bugs.python.org/ ## |
| 16062 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16063 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16064 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16065 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16066 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16067 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 16068 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16069 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16071 | else |
| 16072 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16073 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16074 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 16075 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16076 | |
| 16077 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16078 | if test $ac_cv_header_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16079 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16080 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16081 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16083 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16084 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16085 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16087 | |
| 16088 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16089 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16090 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16091 | |
| 16092 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16093 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16094 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16095 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16096 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16097 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16098 | 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] | 16099 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16101 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16102 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16103 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16104 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16105 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16106 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 16107 | 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] | 16108 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16109 | /* confdefs.h. */ |
| 16110 | _ACEOF |
| 16111 | cat confdefs.h >>conftest.$ac_ext |
| 16112 | cat >>conftest.$ac_ext <<_ACEOF |
| 16113 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16114 | $ac_includes_default |
| 16115 | #include <mach/cthreads.h> |
| 16116 | _ACEOF |
| 16117 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16118 | if { (ac_try="$ac_compile" |
| 16119 | case "(($ac_try" in |
| 16120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16121 | *) ac_try_echo=$ac_try;; |
| 16122 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16124 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16125 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16127 | rm -f conftest.er1 |
| 16128 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16130 | (exit $ac_status); } && { |
| 16131 | test -z "$ac_c_werror_flag" || |
| 16132 | test ! -s conftest.err |
| 16133 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16134 | ac_header_compiler=yes |
| 16135 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16136 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16138 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16139 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16140 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16141 | |
| 16142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16143 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16144 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16145 | |
| 16146 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16147 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 16148 | 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] | 16149 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16150 | /* confdefs.h. */ |
| 16151 | _ACEOF |
| 16152 | cat confdefs.h >>conftest.$ac_ext |
| 16153 | cat >>conftest.$ac_ext <<_ACEOF |
| 16154 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16155 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16156 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16157 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16158 | case "(($ac_try" in |
| 16159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16160 | *) ac_try_echo=$ac_try;; |
| 16161 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16163 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16164 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16165 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16166 | rm -f conftest.er1 |
| 16167 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16169 | (exit $ac_status); } >/dev/null && { |
| 16170 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16171 | test ! -s conftest.err |
| 16172 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16173 | ac_header_preproc=yes |
| 16174 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16178 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16179 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16180 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16181 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16182 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16183 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16184 | |
| 16185 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16186 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16187 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16188 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16189 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16190 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 16191 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16192 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16193 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16194 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16195 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 16196 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 16197 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 16198 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 16199 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 16200 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 16201 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16202 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16203 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 16204 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 16205 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 16206 | echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16207 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16208 | ## -------------------------------------- ## |
| 16209 | ## Report this to http://bugs.python.org/ ## |
| 16210 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16211 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16212 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16213 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16214 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16215 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16216 | 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] | 16217 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16219 | else |
| 16220 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16221 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16222 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16223 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16224 | |
| 16225 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16226 | if test $ac_cv_header_mach_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16227 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16228 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16229 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16231 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16232 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16233 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16234 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16235 | |
| 16236 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16237 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16238 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16239 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16240 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16241 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16242 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16243 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 16244 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16245 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16246 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16247 | if test "${with_pth+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16248 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 16249 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16250 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16251 | #define WITH_THREAD 1 |
| 16252 | _ACEOF |
| 16253 | |
| 16254 | |
| 16255 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16256 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16257 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16258 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16259 | LIBS="-lpth $LIBS" |
| 16260 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16261 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16262 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16263 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16264 | |
| 16265 | # Just looking for pthread_create in libpthread is not enough: |
| 16266 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 16267 | # So we really have to include pthread.h, and then link. |
| 16268 | _libs=$LIBS |
| 16269 | LIBS="$LIBS -lpthread" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16270 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 16271 | 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] | 16272 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16273 | /* confdefs.h. */ |
| 16274 | _ACEOF |
| 16275 | cat confdefs.h >>conftest.$ac_ext |
| 16276 | cat >>conftest.$ac_ext <<_ACEOF |
| 16277 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16278 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16279 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16280 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16281 | int |
| 16282 | main () |
| 16283 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16284 | |
| 16285 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16286 | ; |
| 16287 | return 0; |
| 16288 | } |
| 16289 | _ACEOF |
| 16290 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16291 | if { (ac_try="$ac_link" |
| 16292 | case "(($ac_try" in |
| 16293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16294 | *) ac_try_echo=$ac_try;; |
| 16295 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16297 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16298 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16300 | rm -f conftest.er1 |
| 16301 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16303 | (exit $ac_status); } && { |
| 16304 | test -z "$ac_c_werror_flag" || |
| 16305 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16306 | } && test -s conftest$ac_exeext && |
| 16307 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16308 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16309 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16310 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16311 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16312 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16313 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16314 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16315 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16316 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16317 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16318 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16321 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16322 | LIBS=$_libs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16323 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 16324 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16325 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16327 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16328 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16329 | /* confdefs.h. */ |
| 16330 | _ACEOF |
| 16331 | cat confdefs.h >>conftest.$ac_ext |
| 16332 | cat >>conftest.$ac_ext <<_ACEOF |
| 16333 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16334 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 16335 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16336 | #define pthread_detach innocuous_pthread_detach |
| 16337 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16338 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16339 | which can conflict with char pthread_detach (); below. |
| 16340 | 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] | 16341 | <limits.h> exists even on freestanding compilers. */ |
| 16342 | |
| 16343 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16344 | # include <limits.h> |
| 16345 | #else |
| 16346 | # include <assert.h> |
| 16347 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16348 | |
| 16349 | #undef pthread_detach |
| 16350 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16351 | /* Override any GCC internal prototype to avoid an error. |
| 16352 | Use char because int might match the return type of a GCC |
| 16353 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16354 | #ifdef __cplusplus |
| 16355 | extern "C" |
| 16356 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16357 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16358 | /* The GNU C library defines this for functions which it implements |
| 16359 | to always fail with ENOSYS. Some functions are actually named |
| 16360 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16361 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16362 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16363 | #endif |
| 16364 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16365 | int |
| 16366 | main () |
| 16367 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16368 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16369 | ; |
| 16370 | return 0; |
| 16371 | } |
| 16372 | _ACEOF |
| 16373 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16374 | if { (ac_try="$ac_link" |
| 16375 | case "(($ac_try" in |
| 16376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16377 | *) ac_try_echo=$ac_try;; |
| 16378 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16380 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16381 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16383 | rm -f conftest.er1 |
| 16384 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16386 | (exit $ac_status); } && { |
| 16387 | test -z "$ac_c_werror_flag" || |
| 16388 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16389 | } && test -s conftest$ac_exeext && |
| 16390 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16391 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16392 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16393 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16395 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16396 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16397 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16398 | |
| 16399 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16400 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16401 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16402 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 16403 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
| 16404 | if test $ac_cv_func_pthread_detach = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16405 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16406 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16407 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16408 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16409 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16410 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16411 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16412 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16413 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16414 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16415 | 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] | 16416 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16418 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16419 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16420 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16421 | else |
| 16422 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16423 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 16424 | 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] | 16425 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16426 | /* confdefs.h. */ |
| 16427 | _ACEOF |
| 16428 | cat confdefs.h >>conftest.$ac_ext |
| 16429 | cat >>conftest.$ac_ext <<_ACEOF |
| 16430 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16431 | $ac_includes_default |
| 16432 | #include <atheos/threads.h> |
| 16433 | _ACEOF |
| 16434 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16435 | if { (ac_try="$ac_compile" |
| 16436 | case "(($ac_try" in |
| 16437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16438 | *) ac_try_echo=$ac_try;; |
| 16439 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16441 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16442 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16444 | rm -f conftest.er1 |
| 16445 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16447 | (exit $ac_status); } && { |
| 16448 | test -z "$ac_c_werror_flag" || |
| 16449 | test ! -s conftest.err |
| 16450 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16451 | ac_header_compiler=yes |
| 16452 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16453 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16455 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16456 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16457 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16458 | |
| 16459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16460 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16461 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16462 | |
| 16463 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16464 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 16465 | 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] | 16466 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16467 | /* confdefs.h. */ |
| 16468 | _ACEOF |
| 16469 | cat confdefs.h >>conftest.$ac_ext |
| 16470 | cat >>conftest.$ac_ext <<_ACEOF |
| 16471 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16472 | #include <atheos/threads.h> |
| 16473 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16474 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16475 | case "(($ac_try" in |
| 16476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16477 | *) ac_try_echo=$ac_try;; |
| 16478 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16480 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16481 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16482 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16483 | rm -f conftest.er1 |
| 16484 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16486 | (exit $ac_status); } >/dev/null && { |
| 16487 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16488 | test ! -s conftest.err |
| 16489 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16490 | ac_header_preproc=yes |
| 16491 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16492 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16494 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16495 | ac_header_preproc=no |
| 16496 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16497 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16498 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16499 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16500 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16501 | |
| 16502 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16503 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16504 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16505 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16506 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16507 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 16508 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16509 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16510 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16511 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16512 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 16513 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 16514 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 16515 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 16516 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 16517 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 16518 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16519 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16520 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 16521 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 16522 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 16523 | echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16524 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16525 | ## -------------------------------------- ## |
| 16526 | ## Report this to http://bugs.python.org/ ## |
| 16527 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16528 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16529 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16530 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16531 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16532 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16533 | 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] | 16534 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16536 | else |
| 16537 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 16538 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16539 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16540 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16541 | |
| 16542 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16543 | if test $ac_cv_header_atheos_threads_h = yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16544 | cat >>confdefs.h <<\_ACEOF |
| 16545 | #define WITH_THREAD 1 |
| 16546 | _ACEOF |
| 16547 | |
| 16548 | |
| 16549 | cat >>confdefs.h <<\_ACEOF |
| 16550 | #define ATHEOS_THREADS 1 |
| 16551 | _ACEOF |
| 16552 | |
| 16553 | THREADOBJ="Python/thread.o" |
| 16554 | else |
| 16555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16556 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16557 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16558 | 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] | 16559 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16561 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16562 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16563 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16564 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16565 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16566 | { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 16567 | 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] | 16568 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16569 | /* confdefs.h. */ |
| 16570 | _ACEOF |
| 16571 | cat confdefs.h >>conftest.$ac_ext |
| 16572 | cat >>conftest.$ac_ext <<_ACEOF |
| 16573 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16574 | $ac_includes_default |
| 16575 | #include <kernel/OS.h> |
| 16576 | _ACEOF |
| 16577 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16578 | if { (ac_try="$ac_compile" |
| 16579 | case "(($ac_try" in |
| 16580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16581 | *) ac_try_echo=$ac_try;; |
| 16582 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16584 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16585 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16587 | rm -f conftest.er1 |
| 16588 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16590 | (exit $ac_status); } && { |
| 16591 | test -z "$ac_c_werror_flag" || |
| 16592 | test ! -s conftest.err |
| 16593 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16594 | ac_header_compiler=yes |
| 16595 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16596 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16598 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16599 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16600 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16601 | |
| 16602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16603 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16604 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16605 | |
| 16606 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16607 | { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 16608 | 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] | 16609 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16610 | /* confdefs.h. */ |
| 16611 | _ACEOF |
| 16612 | cat confdefs.h >>conftest.$ac_ext |
| 16613 | cat >>conftest.$ac_ext <<_ACEOF |
| 16614 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16615 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16616 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16617 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16618 | case "(($ac_try" in |
| 16619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16620 | *) ac_try_echo=$ac_try;; |
| 16621 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16623 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16624 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16625 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16626 | rm -f conftest.er1 |
| 16627 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16629 | (exit $ac_status); } >/dev/null && { |
| 16630 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16631 | test ! -s conftest.err |
| 16632 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16633 | ac_header_preproc=yes |
| 16634 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16635 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16638 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16639 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16641 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16642 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16643 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16645 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16646 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16647 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16648 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16649 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16650 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 16651 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16652 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16653 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16654 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16655 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 16656 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 16657 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 16658 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 16659 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 16660 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 16661 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16662 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16663 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 16664 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 16665 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 16666 | echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16667 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16668 | ## -------------------------------------- ## |
| 16669 | ## Report this to http://bugs.python.org/ ## |
| 16670 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16671 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16672 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16673 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16674 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16675 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16676 | 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] | 16677 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16679 | else |
| 16680 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 16681 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16682 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16683 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16684 | |
| 16685 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16686 | if test $ac_cv_header_kernel_OS_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16687 | cat >>confdefs.h <<\_ACEOF |
| 16688 | #define WITH_THREAD 1 |
| 16689 | _ACEOF |
| 16690 | |
| 16691 | |
| 16692 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16693 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16694 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16695 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16696 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16697 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16698 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16699 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 16700 | 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] | 16701 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16704 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16705 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16706 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16707 | /* confdefs.h. */ |
| 16708 | _ACEOF |
| 16709 | cat confdefs.h >>conftest.$ac_ext |
| 16710 | cat >>conftest.$ac_ext <<_ACEOF |
| 16711 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16712 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16713 | /* Override any GCC internal prototype to avoid an error. |
| 16714 | Use char because int might match the return type of a GCC |
| 16715 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16716 | #ifdef __cplusplus |
| 16717 | extern "C" |
| 16718 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16719 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16720 | int |
| 16721 | main () |
| 16722 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16723 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16724 | ; |
| 16725 | return 0; |
| 16726 | } |
| 16727 | _ACEOF |
| 16728 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16729 | if { (ac_try="$ac_link" |
| 16730 | case "(($ac_try" in |
| 16731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16732 | *) ac_try_echo=$ac_try;; |
| 16733 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16735 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16736 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16738 | rm -f conftest.er1 |
| 16739 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16741 | (exit $ac_status); } && { |
| 16742 | test -z "$ac_c_werror_flag" || |
| 16743 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16744 | } && test -s conftest$ac_exeext && |
| 16745 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16746 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16747 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16748 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16750 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16751 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16752 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16753 | |
| 16754 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16755 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16756 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16757 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16758 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 16759 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 16760 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16761 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16762 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16763 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16764 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16765 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16766 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16767 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16768 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16769 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16770 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 16771 | 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] | 16772 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16774 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16775 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16776 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16777 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16778 | /* confdefs.h. */ |
| 16779 | _ACEOF |
| 16780 | cat confdefs.h >>conftest.$ac_ext |
| 16781 | cat >>conftest.$ac_ext <<_ACEOF |
| 16782 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16783 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16784 | /* Override any GCC internal prototype to avoid an error. |
| 16785 | Use char because int might match the return type of a GCC |
| 16786 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16787 | #ifdef __cplusplus |
| 16788 | extern "C" |
| 16789 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16790 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16791 | int |
| 16792 | main () |
| 16793 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16794 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16795 | ; |
| 16796 | return 0; |
| 16797 | } |
| 16798 | _ACEOF |
| 16799 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16800 | if { (ac_try="$ac_link" |
| 16801 | case "(($ac_try" in |
| 16802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16803 | *) ac_try_echo=$ac_try;; |
| 16804 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16806 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16807 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16809 | rm -f conftest.er1 |
| 16810 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16812 | (exit $ac_status); } && { |
| 16813 | test -z "$ac_c_werror_flag" || |
| 16814 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16815 | } && test -s conftest$ac_exeext && |
| 16816 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16817 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16818 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16819 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16821 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16822 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16823 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16824 | |
| 16825 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16826 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16827 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16828 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16829 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 16830 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
| 16831 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16832 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16833 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16834 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16835 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16836 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16837 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16838 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16839 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16840 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16841 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 16842 | 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] | 16843 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16845 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16846 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16847 | LIBS="-lpthread $LIBS" |
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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16854 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16855 | /* Override any GCC internal prototype to avoid an error. |
| 16856 | Use char because int might match the return type of a GCC |
| 16857 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16858 | #ifdef __cplusplus |
| 16859 | extern "C" |
| 16860 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16861 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16862 | int |
| 16863 | main () |
| 16864 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16865 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16866 | ; |
| 16867 | return 0; |
| 16868 | } |
| 16869 | _ACEOF |
| 16870 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16871 | if { (ac_try="$ac_link" |
| 16872 | case "(($ac_try" in |
| 16873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16874 | *) ac_try_echo=$ac_try;; |
| 16875 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16877 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16878 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16880 | rm -f conftest.er1 |
| 16881 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16883 | (exit $ac_status); } && { |
| 16884 | test -z "$ac_c_werror_flag" || |
| 16885 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16886 | } && test -s conftest$ac_exeext && |
| 16887 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16888 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16889 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16890 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16892 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16893 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16894 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16895 | |
| 16896 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16897 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16898 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16899 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16900 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 16901 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 16902 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16903 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16904 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16905 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16906 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16907 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16908 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16909 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16910 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16911 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16912 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 16913 | 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] | 16914 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16917 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16918 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16919 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16920 | /* confdefs.h. */ |
| 16921 | _ACEOF |
| 16922 | cat confdefs.h >>conftest.$ac_ext |
| 16923 | cat >>conftest.$ac_ext <<_ACEOF |
| 16924 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16925 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16926 | /* Override any GCC internal prototype to avoid an error. |
| 16927 | Use char because int might match the return type of a GCC |
| 16928 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16929 | #ifdef __cplusplus |
| 16930 | extern "C" |
| 16931 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16932 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16933 | int |
| 16934 | main () |
| 16935 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16936 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16937 | ; |
| 16938 | return 0; |
| 16939 | } |
| 16940 | _ACEOF |
| 16941 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16942 | if { (ac_try="$ac_link" |
| 16943 | case "(($ac_try" in |
| 16944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16945 | *) ac_try_echo=$ac_try;; |
| 16946 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16948 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16949 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16951 | rm -f conftest.er1 |
| 16952 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16954 | (exit $ac_status); } && { |
| 16955 | test -z "$ac_c_werror_flag" || |
| 16956 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16957 | } && test -s conftest$ac_exeext && |
| 16958 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16959 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16960 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16961 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16963 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16964 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16965 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16966 | |
| 16967 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16968 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16969 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16970 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16971 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 16972 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
| 16973 | if test $ac_cv_lib_cma_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16974 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16975 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16976 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16977 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16978 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16979 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16980 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16981 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 16982 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16983 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 16984 | fi |
| 16985 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16986 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16987 | fi |
| 16988 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 16989 | fi |
| 16990 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16991 | fi |
| 16992 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16993 | fi |
| 16994 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16995 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16996 | fi |
| 16997 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16998 | |
| 16999 | fi |
| 17000 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 17001 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17002 | |
| 17003 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17004 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17005 | fi |
| 17006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17007 | fi |
| 17008 | |
| 17009 | |
| 17010 | fi |
| 17011 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 17012 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17013 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17014 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 17015 | 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] | 17016 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17018 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17019 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17020 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17021 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17022 | /* confdefs.h. */ |
| 17023 | _ACEOF |
| 17024 | cat confdefs.h >>conftest.$ac_ext |
| 17025 | cat >>conftest.$ac_ext <<_ACEOF |
| 17026 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17027 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17028 | /* Override any GCC internal prototype to avoid an error. |
| 17029 | Use char because int might match the return type of a GCC |
| 17030 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17031 | #ifdef __cplusplus |
| 17032 | extern "C" |
| 17033 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17034 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17035 | int |
| 17036 | main () |
| 17037 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17038 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17039 | ; |
| 17040 | return 0; |
| 17041 | } |
| 17042 | _ACEOF |
| 17043 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17044 | if { (ac_try="$ac_link" |
| 17045 | case "(($ac_try" in |
| 17046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17047 | *) ac_try_echo=$ac_try;; |
| 17048 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17050 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17051 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17053 | rm -f conftest.er1 |
| 17054 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17056 | (exit $ac_status); } && { |
| 17057 | test -z "$ac_c_werror_flag" || |
| 17058 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17059 | } && test -s conftest$ac_exeext && |
| 17060 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17061 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17062 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17063 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17065 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17066 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17067 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17068 | |
| 17069 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17070 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17071 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17072 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17073 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 17074 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
| 17075 | if test $ac_cv_lib_mpc_usconfig = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17076 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17077 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17078 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17079 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17080 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 17081 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17082 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17083 | fi |
| 17084 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17085 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 17086 | if test "$posix_threads" != "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17087 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 17088 | 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] | 17089 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17091 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17092 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17093 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17094 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17095 | /* confdefs.h. */ |
| 17096 | _ACEOF |
| 17097 | cat confdefs.h >>conftest.$ac_ext |
| 17098 | cat >>conftest.$ac_ext <<_ACEOF |
| 17099 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17100 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17101 | /* Override any GCC internal prototype to avoid an error. |
| 17102 | Use char because int might match the return type of a GCC |
| 17103 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17104 | #ifdef __cplusplus |
| 17105 | extern "C" |
| 17106 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17107 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17108 | int |
| 17109 | main () |
| 17110 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17111 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17112 | ; |
| 17113 | return 0; |
| 17114 | } |
| 17115 | _ACEOF |
| 17116 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17117 | if { (ac_try="$ac_link" |
| 17118 | case "(($ac_try" in |
| 17119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17120 | *) ac_try_echo=$ac_try;; |
| 17121 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17123 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17124 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17126 | rm -f conftest.er1 |
| 17127 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17129 | (exit $ac_status); } && { |
| 17130 | test -z "$ac_c_werror_flag" || |
| 17131 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17132 | } && test -s conftest$ac_exeext && |
| 17133 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17134 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17135 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17136 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17138 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17139 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17140 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17141 | |
| 17142 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17143 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17144 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17145 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17146 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 17147 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
| 17148 | if test $ac_cv_lib_thread_thr_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17149 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17150 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17151 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17152 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17153 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 17154 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17155 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17156 | fi |
| 17157 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 17158 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17159 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 17160 | if test "$USE_THREAD_MODULE" != "#" |
| 17161 | then |
| 17162 | # If the above checks didn't disable threads, (at least) OSF1 |
| 17163 | # needs this '-threads' argument during linking. |
| 17164 | case $ac_sys_system in |
| 17165 | OSF1) LDLAST=-threads;; |
| 17166 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 17167 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17168 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17169 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17170 | if test "$posix_threads" = "yes"; then |
| 17171 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17172 | |
| 17173 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17174 | #define _POSIX_THREADS 1 |
| 17175 | _ACEOF |
| 17176 | |
| 17177 | fi |
| 17178 | |
| 17179 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 17180 | case $ac_sys_system/$ac_sys_release in |
| 17181 | SunOS/5.6) |
| 17182 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17183 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 17184 | _ACEOF |
| 17185 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17186 | ;; |
| 17187 | SunOS/5.8) |
| 17188 | cat >>confdefs.h <<\_ACEOF |
| 17189 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 17190 | _ACEOF |
| 17191 | |
| 17192 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 17193 | AIX/5) |
| 17194 | cat >>confdefs.h <<\_ACEOF |
| 17195 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 17196 | _ACEOF |
| 17197 | |
| 17198 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17199 | esac |
| 17200 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17201 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 17202 | 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] | 17203 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17205 | else |
| 17206 | if test "$cross_compiling" = yes; then |
| 17207 | ac_cv_pthread_system_supported=no |
| 17208 | else |
| 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. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17215 | #include <pthread.h> |
| 17216 | void *foo(void *parm) { |
| 17217 | return NULL; |
| 17218 | } |
| 17219 | main() { |
| 17220 | pthread_attr_t attr; |
| 17221 | pthread_t id; |
| 17222 | if (pthread_attr_init(&attr)) exit(-1); |
| 17223 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 17224 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 17225 | exit(0); |
| 17226 | } |
| 17227 | _ACEOF |
| 17228 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17229 | if { (ac_try="$ac_link" |
| 17230 | case "(($ac_try" in |
| 17231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17232 | *) ac_try_echo=$ac_try;; |
| 17233 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17235 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17236 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17238 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17239 | { (case "(($ac_try" in |
| 17240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17241 | *) ac_try_echo=$ac_try;; |
| 17242 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17244 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17245 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17247 | (exit $ac_status); }; }; then |
| 17248 | ac_cv_pthread_system_supported=yes |
| 17249 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17250 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17251 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17253 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17254 | ( exit $ac_status ) |
| 17255 | ac_cv_pthread_system_supported=no |
| 17256 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17257 | 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] | 17258 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17259 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17260 | |
| 17261 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17262 | fi |
| 17263 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17264 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 17265 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17266 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 17267 | |
| 17268 | cat >>confdefs.h <<\_ACEOF |
| 17269 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 17270 | _ACEOF |
| 17271 | |
| 17272 | fi |
| 17273 | |
| 17274 | for ac_func in pthread_sigmask |
| 17275 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17276 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17277 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17278 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17279 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17281 | else |
| 17282 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17283 | /* confdefs.h. */ |
| 17284 | _ACEOF |
| 17285 | cat confdefs.h >>conftest.$ac_ext |
| 17286 | cat >>conftest.$ac_ext <<_ACEOF |
| 17287 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17288 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17289 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17290 | #define $ac_func innocuous_$ac_func |
| 17291 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17292 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17293 | which can conflict with char $ac_func (); below. |
| 17294 | 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] | 17295 | <limits.h> exists even on freestanding compilers. */ |
| 17296 | |
| 17297 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17298 | # include <limits.h> |
| 17299 | #else |
| 17300 | # include <assert.h> |
| 17301 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17302 | |
| 17303 | #undef $ac_func |
| 17304 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17305 | /* Override any GCC internal prototype to avoid an error. |
| 17306 | Use char because int might match the return type of a GCC |
| 17307 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17308 | #ifdef __cplusplus |
| 17309 | extern "C" |
| 17310 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17311 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17312 | /* The GNU C library defines this for functions which it implements |
| 17313 | to always fail with ENOSYS. Some functions are actually named |
| 17314 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17315 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17316 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17317 | #endif |
| 17318 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17319 | int |
| 17320 | main () |
| 17321 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17322 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17323 | ; |
| 17324 | return 0; |
| 17325 | } |
| 17326 | _ACEOF |
| 17327 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17328 | if { (ac_try="$ac_link" |
| 17329 | case "(($ac_try" in |
| 17330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17331 | *) ac_try_echo=$ac_try;; |
| 17332 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17334 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17335 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17337 | rm -f conftest.er1 |
| 17338 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17340 | (exit $ac_status); } && { |
| 17341 | test -z "$ac_c_werror_flag" || |
| 17342 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17343 | } && test -s conftest$ac_exeext && |
| 17344 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17345 | eval "$as_ac_var=yes" |
| 17346 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17347 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17349 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17350 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17351 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17352 | |
| 17353 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17354 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17355 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17356 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17357 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17358 | echo "${ECHO_T}$ac_res" >&6; } |
| 17359 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17360 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17361 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17362 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17363 | case $ac_sys_system in |
| 17364 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17365 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17366 | cat >>confdefs.h <<\_ACEOF |
| 17367 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 17368 | _ACEOF |
| 17369 | |
| 17370 | ;; |
| 17371 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17372 | fi |
| 17373 | done |
| 17374 | |
| 17375 | fi |
| 17376 | |
| 17377 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17378 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17379 | |
| 17380 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17381 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 17382 | echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17383 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17384 | if test "${enable_ipv6+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17385 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17386 | no) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17387 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17388 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17389 | ipv6=no |
| 17390 | ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17391 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 17392 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17393 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17394 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17395 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17396 | |
| 17397 | ipv6=yes |
| 17398 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17399 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17400 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17401 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17402 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17403 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17404 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17405 | ipv6=no |
| 17406 | |
| 17407 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17408 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17409 | /* confdefs.h. */ |
| 17410 | _ACEOF |
| 17411 | cat confdefs.h >>conftest.$ac_ext |
| 17412 | cat >>conftest.$ac_ext <<_ACEOF |
| 17413 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17414 | /* AF_INET6 available check */ |
| 17415 | #include <sys/types.h> |
| 17416 | #include <sys/socket.h> |
| 17417 | main() |
| 17418 | { |
| 17419 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 17420 | exit(1); |
| 17421 | else |
| 17422 | exit(0); |
| 17423 | } |
| 17424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17425 | _ACEOF |
| 17426 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17427 | if { (ac_try="$ac_link" |
| 17428 | case "(($ac_try" in |
| 17429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17430 | *) ac_try_echo=$ac_try;; |
| 17431 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17433 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17434 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17436 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17437 | { (case "(($ac_try" in |
| 17438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17439 | *) ac_try_echo=$ac_try;; |
| 17440 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17442 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17443 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17445 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17446 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17447 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17448 | ipv6=yes |
| 17449 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17450 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17454 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17455 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17456 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17457 | ipv6=no |
| 17458 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17459 | 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] | 17460 | fi |
| 17461 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17462 | |
| 17463 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17464 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17465 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 17466 | 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] | 17467 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17468 | /* confdefs.h. */ |
| 17469 | _ACEOF |
| 17470 | cat confdefs.h >>conftest.$ac_ext |
| 17471 | cat >>conftest.$ac_ext <<_ACEOF |
| 17472 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17473 | #include <sys/types.h> |
| 17474 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17475 | int |
| 17476 | main () |
| 17477 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17478 | struct sockaddr_in6 x; |
| 17479 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17480 | ; |
| 17481 | return 0; |
| 17482 | } |
| 17483 | _ACEOF |
| 17484 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17485 | if { (ac_try="$ac_compile" |
| 17486 | case "(($ac_try" in |
| 17487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17488 | *) ac_try_echo=$ac_try;; |
| 17489 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17491 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17492 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17494 | rm -f conftest.er1 |
| 17495 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17497 | (exit $ac_status); } && { |
| 17498 | test -z "$ac_c_werror_flag" || |
| 17499 | test ! -s conftest.err |
| 17500 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17501 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17502 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17503 | ipv6=yes |
| 17504 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17505 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17507 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17508 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17509 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17510 | ipv6=no |
| 17511 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17512 | |
| 17513 | 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] | 17514 | fi |
| 17515 | |
| 17516 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17517 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17518 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17519 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17520 | |
| 17521 | fi |
| 17522 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17523 | fi |
| 17524 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17525 | |
| 17526 | ipv6type=unknown |
| 17527 | ipv6lib=none |
| 17528 | ipv6trylibc=no |
| 17529 | |
| 17530 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17531 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 17532 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 17533 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 17534 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17535 | case $i in |
| 17536 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17537 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17538 | /* confdefs.h. */ |
| 17539 | _ACEOF |
| 17540 | cat confdefs.h >>conftest.$ac_ext |
| 17541 | cat >>conftest.$ac_ext <<_ACEOF |
| 17542 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17543 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17544 | #include <netinet/in.h> |
| 17545 | #ifdef IPV6_INRIA_VERSION |
| 17546 | yes |
| 17547 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17548 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17549 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17550 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17551 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17552 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 17553 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17554 | |
| 17555 | ;; |
| 17556 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17557 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17558 | /* confdefs.h. */ |
| 17559 | _ACEOF |
| 17560 | cat confdefs.h >>conftest.$ac_ext |
| 17561 | cat >>conftest.$ac_ext <<_ACEOF |
| 17562 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17563 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17564 | #include <netinet/in.h> |
| 17565 | #ifdef __KAME__ |
| 17566 | yes |
| 17567 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17568 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17569 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17570 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17571 | ipv6type=$i; |
| 17572 | ipv6lib=inet6 |
| 17573 | ipv6libdir=/usr/local/v6/lib |
| 17574 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17575 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 17576 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17577 | |
| 17578 | ;; |
| 17579 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17580 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17581 | /* confdefs.h. */ |
| 17582 | _ACEOF |
| 17583 | cat confdefs.h >>conftest.$ac_ext |
| 17584 | cat >>conftest.$ac_ext <<_ACEOF |
| 17585 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17586 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17587 | #include <features.h> |
| 17588 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 17589 | yes |
| 17590 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17591 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17592 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17593 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17594 | ipv6type=$i; |
| 17595 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17596 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 17597 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17598 | |
| 17599 | ;; |
| 17600 | linux-inet6) |
| 17601 | if test -d /usr/inet6; then |
| 17602 | ipv6type=$i |
| 17603 | ipv6lib=inet6 |
| 17604 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17605 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17606 | fi |
| 17607 | ;; |
| 17608 | solaris) |
| 17609 | if test -f /etc/netconfig; then |
| 17610 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 17611 | ipv6type=$i |
| 17612 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17613 | fi |
| 17614 | fi |
| 17615 | ;; |
| 17616 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17617 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17618 | /* confdefs.h. */ |
| 17619 | _ACEOF |
| 17620 | cat confdefs.h >>conftest.$ac_ext |
| 17621 | cat >>conftest.$ac_ext <<_ACEOF |
| 17622 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17623 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17624 | #include <sys/param.h> |
| 17625 | #ifdef _TOSHIBA_INET6 |
| 17626 | yes |
| 17627 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17628 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17629 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17630 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17631 | ipv6type=$i; |
| 17632 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17633 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17634 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 17635 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17636 | |
| 17637 | ;; |
| 17638 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17639 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17640 | /* confdefs.h. */ |
| 17641 | _ACEOF |
| 17642 | cat confdefs.h >>conftest.$ac_ext |
| 17643 | cat >>conftest.$ac_ext <<_ACEOF |
| 17644 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17645 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17646 | #include </usr/local/v6/include/sys/v6config.h> |
| 17647 | #ifdef __V6D__ |
| 17648 | yes |
| 17649 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17650 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17651 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17652 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17653 | ipv6type=$i; |
| 17654 | ipv6lib=v6; |
| 17655 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17656 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17657 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 17658 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17659 | |
| 17660 | ;; |
| 17661 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17662 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17663 | /* confdefs.h. */ |
| 17664 | _ACEOF |
| 17665 | cat confdefs.h >>conftest.$ac_ext |
| 17666 | cat >>conftest.$ac_ext <<_ACEOF |
| 17667 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17668 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17669 | #include <sys/param.h> |
| 17670 | #ifdef _ZETA_MINAMI_INET6 |
| 17671 | yes |
| 17672 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17673 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17674 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17675 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17676 | ipv6type=$i; |
| 17677 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17678 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17679 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 17680 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17681 | |
| 17682 | ;; |
| 17683 | esac |
| 17684 | if test "$ipv6type" != "unknown"; then |
| 17685 | break |
| 17686 | fi |
| 17687 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17688 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 17689 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17690 | fi |
| 17691 | |
| 17692 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 17693 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 17694 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 17695 | echo "using lib$ipv6lib" |
| 17696 | else |
| 17697 | if test $ipv6trylibc = "yes"; then |
| 17698 | echo "using libc" |
| 17699 | else |
| 17700 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 17701 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 17702 | echo 'ipv6 kit and compile beforehand.' |
| 17703 | exit 1 |
| 17704 | fi |
| 17705 | fi |
| 17706 | fi |
| 17707 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17708 | { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 17709 | echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17710 | cat >conftest.$ac_ext <<_ACEOF |
| 17711 | /* confdefs.h. */ |
| 17712 | _ACEOF |
| 17713 | cat confdefs.h >>conftest.$ac_ext |
| 17714 | cat >>conftest.$ac_ext <<_ACEOF |
| 17715 | /* end confdefs.h. */ |
| 17716 | #include <Carbon/Carbon.h> |
| 17717 | int |
| 17718 | main () |
| 17719 | { |
| 17720 | FSIORefNum fRef = 0 |
| 17721 | ; |
| 17722 | return 0; |
| 17723 | } |
| 17724 | _ACEOF |
| 17725 | rm -f conftest.$ac_objext |
| 17726 | if { (ac_try="$ac_compile" |
| 17727 | case "(($ac_try" in |
| 17728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17729 | *) ac_try_echo=$ac_try;; |
| 17730 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17732 | (eval "$ac_compile") 2>conftest.er1 |
| 17733 | ac_status=$? |
| 17734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17735 | rm -f conftest.er1 |
| 17736 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17738 | (exit $ac_status); } && { |
| 17739 | test -z "$ac_c_werror_flag" || |
| 17740 | test ! -s conftest.err |
| 17741 | } && test -s conftest.$ac_objext; then |
| 17742 | |
| 17743 | cat >>confdefs.h <<\_ACEOF |
| 17744 | #define HAVE_OSX105_SDK 1 |
| 17745 | _ACEOF |
| 17746 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17747 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17748 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17749 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17750 | echo "$as_me: failed program was:" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17752 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17753 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17754 | echo "${ECHO_T}no" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17755 | |
| 17756 | fi |
| 17757 | |
| 17758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17759 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17760 | # Check for --with-doc-strings |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17761 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 17762 | 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] | 17763 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17764 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17765 | if test "${with_doc_strings+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17766 | withval=$with_doc_strings; |
| 17767 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17768 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17769 | |
| 17770 | if test -z "$with_doc_strings" |
| 17771 | then with_doc_strings="yes" |
| 17772 | fi |
| 17773 | if test "$with_doc_strings" != "no" |
| 17774 | then |
| 17775 | |
| 17776 | cat >>confdefs.h <<\_ACEOF |
| 17777 | #define WITH_DOC_STRINGS 1 |
| 17778 | _ACEOF |
| 17779 | |
| 17780 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17781 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 17782 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17783 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17784 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17785 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 17786 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17787 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17788 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17789 | if test "${with_tsc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17790 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17791 | if test "$withval" != no |
| 17792 | then |
| 17793 | |
| 17794 | cat >>confdefs.h <<\_ACEOF |
| 17795 | #define WITH_TSC 1 |
| 17796 | _ACEOF |
| 17797 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17798 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17799 | echo "${ECHO_T}yes" >&6; } |
| 17800 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17801 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17802 | fi |
| 17803 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17804 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17805 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17806 | fi |
| 17807 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17808 | |
| 17809 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17810 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 17811 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17812 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17813 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17814 | if test "${with_pymalloc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17815 | withval=$with_pymalloc; |
| 17816 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17817 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17818 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17819 | if test -z "$with_pymalloc" |
| 17820 | then with_pymalloc="yes" |
| 17821 | fi |
| 17822 | if test "$with_pymalloc" != "no" |
| 17823 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17824 | |
| 17825 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17826 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17827 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17828 | |
| 17829 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17830 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 17831 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17832 | |
Benjamin Peterson | 91c12eb | 2009-12-03 02:52:39 +0000 | [diff] [blame] | 17833 | # Check for Valgrind support |
| 17834 | { echo "$as_me:$LINENO: checking for --with-valgrind" >&5 |
| 17835 | echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; } |
| 17836 | |
| 17837 | # Check whether --with-valgrind was given. |
| 17838 | if test "${with_valgrind+set}" = set; then |
| 17839 | withval=$with_valgrind; |
| 17840 | else |
| 17841 | with_valgrind=no |
| 17842 | fi |
| 17843 | |
| 17844 | { echo "$as_me:$LINENO: result: $with_valgrind" >&5 |
| 17845 | echo "${ECHO_T}$with_valgrind" >&6; } |
| 17846 | if test "$with_valgrind" != no; then |
| 17847 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17848 | { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 17849 | echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 17850 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17852 | fi |
| 17853 | { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 17854 | echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 17855 | else |
| 17856 | # Is the header compilable? |
| 17857 | { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5 |
| 17858 | echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; } |
| 17859 | cat >conftest.$ac_ext <<_ACEOF |
| 17860 | /* confdefs.h. */ |
| 17861 | _ACEOF |
| 17862 | cat confdefs.h >>conftest.$ac_ext |
| 17863 | cat >>conftest.$ac_ext <<_ACEOF |
| 17864 | /* end confdefs.h. */ |
| 17865 | $ac_includes_default |
| 17866 | #include <valgrind/valgrind.h> |
| 17867 | _ACEOF |
| 17868 | rm -f conftest.$ac_objext |
| 17869 | if { (ac_try="$ac_compile" |
| 17870 | case "(($ac_try" in |
| 17871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17872 | *) ac_try_echo=$ac_try;; |
| 17873 | esac |
| 17874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17875 | (eval "$ac_compile") 2>conftest.er1 |
| 17876 | ac_status=$? |
| 17877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17878 | rm -f conftest.er1 |
| 17879 | cat conftest.err >&5 |
| 17880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17881 | (exit $ac_status); } && { |
| 17882 | test -z "$ac_c_werror_flag" || |
| 17883 | test ! -s conftest.err |
| 17884 | } && test -s conftest.$ac_objext; then |
| 17885 | ac_header_compiler=yes |
| 17886 | else |
| 17887 | echo "$as_me: failed program was:" >&5 |
| 17888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17889 | |
| 17890 | ac_header_compiler=no |
| 17891 | fi |
| 17892 | |
| 17893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17894 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17895 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17896 | |
| 17897 | # Is the header present? |
| 17898 | { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5 |
| 17899 | echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; } |
| 17900 | cat >conftest.$ac_ext <<_ACEOF |
| 17901 | /* confdefs.h. */ |
| 17902 | _ACEOF |
| 17903 | cat confdefs.h >>conftest.$ac_ext |
| 17904 | cat >>conftest.$ac_ext <<_ACEOF |
| 17905 | /* end confdefs.h. */ |
| 17906 | #include <valgrind/valgrind.h> |
| 17907 | _ACEOF |
| 17908 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17909 | case "(($ac_try" in |
| 17910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17911 | *) ac_try_echo=$ac_try;; |
| 17912 | esac |
| 17913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17914 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17915 | ac_status=$? |
| 17916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17917 | rm -f conftest.er1 |
| 17918 | cat conftest.err >&5 |
| 17919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17920 | (exit $ac_status); } >/dev/null && { |
| 17921 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 17922 | test ! -s conftest.err |
| 17923 | }; then |
| 17924 | ac_header_preproc=yes |
| 17925 | else |
| 17926 | echo "$as_me: failed program was:" >&5 |
| 17927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17928 | |
| 17929 | ac_header_preproc=no |
| 17930 | fi |
| 17931 | |
| 17932 | rm -f conftest.err conftest.$ac_ext |
| 17933 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17934 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17935 | |
| 17936 | # So? What about this header? |
| 17937 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17938 | yes:no: ) |
| 17939 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17940 | echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17941 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5 |
| 17942 | echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;} |
| 17943 | ac_header_preproc=yes |
| 17944 | ;; |
| 17945 | no:yes:* ) |
| 17946 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5 |
| 17947 | echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;} |
| 17948 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5 |
| 17949 | echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;} |
| 17950 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5 |
| 17951 | echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;} |
| 17952 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 17953 | echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17954 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5 |
| 17955 | echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;} |
| 17956 | { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5 |
| 17957 | echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;} |
| 17958 | ( cat <<\_ASBOX |
| 17959 | ## -------------------------------------- ## |
| 17960 | ## Report this to http://bugs.python.org/ ## |
| 17961 | ## -------------------------------------- ## |
| 17962 | _ASBOX |
| 17963 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17964 | ;; |
| 17965 | esac |
| 17966 | { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5 |
| 17967 | echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; } |
| 17968 | if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then |
| 17969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17970 | else |
| 17971 | ac_cv_header_valgrind_valgrind_h=$ac_header_preproc |
| 17972 | fi |
| 17973 | { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5 |
| 17974 | echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; } |
| 17975 | |
| 17976 | fi |
| 17977 | if test $ac_cv_header_valgrind_valgrind_h = yes; then |
| 17978 | |
| 17979 | cat >>confdefs.h <<\_ACEOF |
| 17980 | #define WITH_VALGRIND 1 |
| 17981 | _ACEOF |
| 17982 | |
| 17983 | else |
| 17984 | { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5 |
| 17985 | echo "$as_me: error: Valgrind support requested but headers not available" >&2;} |
| 17986 | { (exit 1); exit 1; }; } |
| 17987 | |
| 17988 | fi |
| 17989 | |
| 17990 | |
| 17991 | fi |
| 17992 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17993 | # Check for --with-wctype-functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17994 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 17995 | 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] | 17996 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17997 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17998 | if test "${with_wctype_functions+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17999 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18000 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18001 | then |
| 18002 | |
| 18003 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18004 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18005 | _ACEOF |
| 18006 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18007 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18008 | echo "${ECHO_T}yes" >&6; } |
| 18009 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 18010 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18011 | fi |
| 18012 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18013 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18014 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18015 | fi |
| 18016 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 18017 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18018 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18019 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 18020 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18021 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18022 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 18023 | # 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] | 18024 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18025 | for ac_func in dlopen |
| 18026 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18027 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18028 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18029 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18030 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18032 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18033 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18034 | /* confdefs.h. */ |
| 18035 | _ACEOF |
| 18036 | cat confdefs.h >>conftest.$ac_ext |
| 18037 | cat >>conftest.$ac_ext <<_ACEOF |
| 18038 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18039 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18040 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18041 | #define $ac_func innocuous_$ac_func |
| 18042 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18043 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18044 | which can conflict with char $ac_func (); below. |
| 18045 | 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] | 18046 | <limits.h> exists even on freestanding compilers. */ |
| 18047 | |
| 18048 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18049 | # include <limits.h> |
| 18050 | #else |
| 18051 | # include <assert.h> |
| 18052 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18053 | |
| 18054 | #undef $ac_func |
| 18055 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18056 | /* Override any GCC internal prototype to avoid an error. |
| 18057 | Use char because int might match the return type of a GCC |
| 18058 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18059 | #ifdef __cplusplus |
| 18060 | extern "C" |
| 18061 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18062 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18063 | /* The GNU C library defines this for functions which it implements |
| 18064 | to always fail with ENOSYS. Some functions are actually named |
| 18065 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18066 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18067 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18068 | #endif |
| 18069 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18070 | int |
| 18071 | main () |
| 18072 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18073 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18074 | ; |
| 18075 | return 0; |
| 18076 | } |
| 18077 | _ACEOF |
| 18078 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18079 | if { (ac_try="$ac_link" |
| 18080 | case "(($ac_try" in |
| 18081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18082 | *) ac_try_echo=$ac_try;; |
| 18083 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18085 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18086 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18088 | rm -f conftest.er1 |
| 18089 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18091 | (exit $ac_status); } && { |
| 18092 | test -z "$ac_c_werror_flag" || |
| 18093 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18094 | } && test -s conftest$ac_exeext && |
| 18095 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18096 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18097 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18098 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18100 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18101 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18102 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18103 | |
| 18104 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18105 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18106 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18107 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18108 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18109 | echo "${ECHO_T}$ac_res" >&6; } |
| 18110 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18111 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18112 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18113 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18114 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18115 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18116 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18117 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18118 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18119 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 18120 | # loading of modules. |
| 18121 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18122 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 18123 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18124 | if test -z "$DYNLOADFILE" |
| 18125 | then |
| 18126 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 18127 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 18128 | if test "$ac_cv_func_dlopen" = yes |
| 18129 | then DYNLOADFILE="dynload_shlib.o" |
| 18130 | else DYNLOADFILE="dynload_aix.o" |
| 18131 | fi |
| 18132 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18133 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 18134 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 18135 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 18136 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 18137 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18138 | *) |
| 18139 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 18140 | # out any dynamic loading |
| 18141 | if test "$ac_cv_func_dlopen" = yes |
| 18142 | then DYNLOADFILE="dynload_shlib.o" |
| 18143 | else DYNLOADFILE="dynload_stub.o" |
| 18144 | fi |
| 18145 | ;; |
| 18146 | esac |
| 18147 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18148 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 18149 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18150 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 18151 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18152 | |
| 18153 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18154 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18155 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 18156 | |
| 18157 | fi |
| 18158 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18159 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 18160 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18161 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18162 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 18163 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18164 | if test -z "$MACHDEP_OBJS" |
| 18165 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 18166 | MACHDEP_OBJS=$extra_machdep_objs |
| 18167 | else |
| 18168 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18169 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18170 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 18171 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 18172 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18173 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18174 | |
| 18175 | |
| 18176 | |
| 18177 | |
| 18178 | |
| 18179 | |
| 18180 | |
| 18181 | |
| 18182 | |
| 18183 | |
| 18184 | |
| 18185 | |
| 18186 | |
| 18187 | |
| 18188 | |
| 18189 | |
| 18190 | |
| 18191 | |
| 18192 | |
| 18193 | |
| 18194 | |
| 18195 | |
| 18196 | |
| 18197 | |
| 18198 | |
| 18199 | |
| 18200 | |
| 18201 | |
| 18202 | |
| 18203 | |
| 18204 | |
| 18205 | |
| 18206 | |
| 18207 | |
| 18208 | |
| 18209 | |
| 18210 | |
| 18211 | |
| 18212 | |
| 18213 | |
| 18214 | |
| 18215 | |
| 18216 | |
| 18217 | |
| 18218 | |
| 18219 | |
| 18220 | |
| 18221 | |
| 18222 | |
| 18223 | |
| 18224 | |
| 18225 | |
| 18226 | |
| 18227 | |
| 18228 | |
| 18229 | |
| 18230 | |
| 18231 | |
| 18232 | |
| 18233 | |
| 18234 | |
| 18235 | |
| 18236 | |
| 18237 | |
| 18238 | |
| 18239 | |
| 18240 | |
| 18241 | |
| 18242 | |
| 18243 | |
| 18244 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18245 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 18246 | |
| 18247 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 18248 | |
| 18249 | |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 18250 | |
| 18251 | |
Christian Heimes | 3628187 | 2007-11-30 21:11:28 +0000 | [diff] [blame] | 18252 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 18253 | |
| 18254 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 18255 | |
| 18256 | |
| 18257 | |
| 18258 | |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18259 | |
| 18260 | |
| 18261 | |
| 18262 | |
| 18263 | |
| 18264 | |
| 18265 | |
| 18266 | |
| 18267 | |
| 18268 | |
| 18269 | |
| 18270 | |
| 18271 | |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 18272 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 18273 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 18274 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 18275 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18276 | getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ |
Antoine Pitrou | 30b3b35 | 2009-12-02 20:37:54 +0000 | [diff] [blame] | 18277 | initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 18278 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 18279 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 18280 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 18281 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 18282 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | 50ea456 | 2009-11-27 13:56:01 +0000 | [diff] [blame] | 18283 | setlocale setregid setreuid setresuid setresgid \ |
| 18284 | setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 18285 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 18286 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 18287 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18288 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18289 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18290 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18291 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18292 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18295 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18296 | /* confdefs.h. */ |
| 18297 | _ACEOF |
| 18298 | cat confdefs.h >>conftest.$ac_ext |
| 18299 | cat >>conftest.$ac_ext <<_ACEOF |
| 18300 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18301 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18302 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18303 | #define $ac_func innocuous_$ac_func |
| 18304 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18305 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18306 | which can conflict with char $ac_func (); below. |
| 18307 | 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] | 18308 | <limits.h> exists even on freestanding compilers. */ |
| 18309 | |
| 18310 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18311 | # include <limits.h> |
| 18312 | #else |
| 18313 | # include <assert.h> |
| 18314 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18315 | |
| 18316 | #undef $ac_func |
| 18317 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18318 | /* Override any GCC internal prototype to avoid an error. |
| 18319 | Use char because int might match the return type of a GCC |
| 18320 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18321 | #ifdef __cplusplus |
| 18322 | extern "C" |
| 18323 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18324 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18325 | /* The GNU C library defines this for functions which it implements |
| 18326 | to always fail with ENOSYS. Some functions are actually named |
| 18327 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18328 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18329 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18330 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18331 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18332 | int |
| 18333 | main () |
| 18334 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18335 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18336 | ; |
| 18337 | return 0; |
| 18338 | } |
| 18339 | _ACEOF |
| 18340 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18341 | if { (ac_try="$ac_link" |
| 18342 | case "(($ac_try" in |
| 18343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18344 | *) ac_try_echo=$ac_try;; |
| 18345 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18347 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18348 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18350 | rm -f conftest.er1 |
| 18351 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18353 | (exit $ac_status); } && { |
| 18354 | test -z "$ac_c_werror_flag" || |
| 18355 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18356 | } && test -s conftest$ac_exeext && |
| 18357 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18358 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18359 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18360 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18362 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18363 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18364 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18365 | |
| 18366 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18367 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18368 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18369 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18370 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18371 | echo "${ECHO_T}$ac_res" >&6; } |
| 18372 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18373 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18374 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18375 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 18376 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 18377 | fi |
| 18378 | done |
| 18379 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18380 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18381 | # For some functions, having a definition is not sufficient, since |
| 18382 | # we want to take their address. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18383 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 18384 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18385 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18386 | /* confdefs.h. */ |
| 18387 | _ACEOF |
| 18388 | cat confdefs.h >>conftest.$ac_ext |
| 18389 | cat >>conftest.$ac_ext <<_ACEOF |
| 18390 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18391 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18392 | int |
| 18393 | main () |
| 18394 | { |
| 18395 | void *x=chroot |
| 18396 | ; |
| 18397 | return 0; |
| 18398 | } |
| 18399 | _ACEOF |
| 18400 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18401 | if { (ac_try="$ac_compile" |
| 18402 | case "(($ac_try" in |
| 18403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18404 | *) ac_try_echo=$ac_try;; |
| 18405 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18407 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18408 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18410 | rm -f conftest.er1 |
| 18411 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18413 | (exit $ac_status); } && { |
| 18414 | test -z "$ac_c_werror_flag" || |
| 18415 | test ! -s conftest.err |
| 18416 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18417 | |
| 18418 | cat >>confdefs.h <<\_ACEOF |
| 18419 | #define HAVE_CHROOT 1 |
| 18420 | _ACEOF |
| 18421 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18422 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18423 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18424 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18425 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18427 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18428 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18429 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18430 | |
| 18431 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18432 | |
| 18433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18434 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 18435 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18436 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18437 | /* confdefs.h. */ |
| 18438 | _ACEOF |
| 18439 | cat confdefs.h >>conftest.$ac_ext |
| 18440 | cat >>conftest.$ac_ext <<_ACEOF |
| 18441 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18442 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18443 | int |
| 18444 | main () |
| 18445 | { |
| 18446 | void *x=link |
| 18447 | ; |
| 18448 | return 0; |
| 18449 | } |
| 18450 | _ACEOF |
| 18451 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18452 | if { (ac_try="$ac_compile" |
| 18453 | case "(($ac_try" in |
| 18454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18455 | *) ac_try_echo=$ac_try;; |
| 18456 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18458 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18459 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18461 | rm -f conftest.er1 |
| 18462 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18464 | (exit $ac_status); } && { |
| 18465 | test -z "$ac_c_werror_flag" || |
| 18466 | test ! -s conftest.err |
| 18467 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18468 | |
| 18469 | cat >>confdefs.h <<\_ACEOF |
| 18470 | #define HAVE_LINK 1 |
| 18471 | _ACEOF |
| 18472 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18473 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18474 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18475 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18476 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18478 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18479 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18480 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18481 | |
| 18482 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18483 | |
| 18484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18485 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 18486 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18487 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18488 | /* confdefs.h. */ |
| 18489 | _ACEOF |
| 18490 | cat confdefs.h >>conftest.$ac_ext |
| 18491 | cat >>conftest.$ac_ext <<_ACEOF |
| 18492 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18493 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18494 | int |
| 18495 | main () |
| 18496 | { |
| 18497 | void *x=symlink |
| 18498 | ; |
| 18499 | return 0; |
| 18500 | } |
| 18501 | _ACEOF |
| 18502 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18503 | if { (ac_try="$ac_compile" |
| 18504 | case "(($ac_try" in |
| 18505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18506 | *) ac_try_echo=$ac_try;; |
| 18507 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18509 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18510 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18512 | rm -f conftest.er1 |
| 18513 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18515 | (exit $ac_status); } && { |
| 18516 | test -z "$ac_c_werror_flag" || |
| 18517 | test ! -s conftest.err |
| 18518 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18519 | |
| 18520 | cat >>confdefs.h <<\_ACEOF |
| 18521 | #define HAVE_SYMLINK 1 |
| 18522 | _ACEOF |
| 18523 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18524 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18525 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18526 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18527 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18529 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18530 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18531 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18532 | |
| 18533 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18534 | |
| 18535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18536 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 18537 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18538 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18539 | /* confdefs.h. */ |
| 18540 | _ACEOF |
| 18541 | cat confdefs.h >>conftest.$ac_ext |
| 18542 | cat >>conftest.$ac_ext <<_ACEOF |
| 18543 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18544 | #include <unistd.h> |
| 18545 | int |
| 18546 | main () |
| 18547 | { |
| 18548 | void *x=fchdir |
| 18549 | ; |
| 18550 | return 0; |
| 18551 | } |
| 18552 | _ACEOF |
| 18553 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18554 | if { (ac_try="$ac_compile" |
| 18555 | case "(($ac_try" in |
| 18556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18557 | *) ac_try_echo=$ac_try;; |
| 18558 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18560 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18561 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18563 | rm -f conftest.er1 |
| 18564 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18566 | (exit $ac_status); } && { |
| 18567 | test -z "$ac_c_werror_flag" || |
| 18568 | test ! -s conftest.err |
| 18569 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18570 | |
| 18571 | cat >>confdefs.h <<\_ACEOF |
| 18572 | #define HAVE_FCHDIR 1 |
| 18573 | _ACEOF |
| 18574 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18575 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18576 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18577 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18578 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18580 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18581 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18582 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18583 | |
| 18584 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18585 | |
| 18586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18587 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 18588 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18589 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18590 | /* confdefs.h. */ |
| 18591 | _ACEOF |
| 18592 | cat confdefs.h >>conftest.$ac_ext |
| 18593 | cat >>conftest.$ac_ext <<_ACEOF |
| 18594 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18595 | #include <unistd.h> |
| 18596 | int |
| 18597 | main () |
| 18598 | { |
| 18599 | void *x=fsync |
| 18600 | ; |
| 18601 | return 0; |
| 18602 | } |
| 18603 | _ACEOF |
| 18604 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18605 | if { (ac_try="$ac_compile" |
| 18606 | case "(($ac_try" in |
| 18607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18608 | *) ac_try_echo=$ac_try;; |
| 18609 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18611 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18612 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18614 | rm -f conftest.er1 |
| 18615 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18617 | (exit $ac_status); } && { |
| 18618 | test -z "$ac_c_werror_flag" || |
| 18619 | test ! -s conftest.err |
| 18620 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18621 | |
| 18622 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18623 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18624 | _ACEOF |
| 18625 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18626 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18627 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18628 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18629 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18631 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18632 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18633 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18634 | |
| 18635 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18636 | |
| 18637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18638 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 18639 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18640 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18641 | /* confdefs.h. */ |
| 18642 | _ACEOF |
| 18643 | cat confdefs.h >>conftest.$ac_ext |
| 18644 | cat >>conftest.$ac_ext <<_ACEOF |
| 18645 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18646 | #include <unistd.h> |
| 18647 | int |
| 18648 | main () |
| 18649 | { |
| 18650 | void *x=fdatasync |
| 18651 | ; |
| 18652 | return 0; |
| 18653 | } |
| 18654 | _ACEOF |
| 18655 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18656 | if { (ac_try="$ac_compile" |
| 18657 | case "(($ac_try" in |
| 18658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18659 | *) ac_try_echo=$ac_try;; |
| 18660 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18662 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18663 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18665 | rm -f conftest.er1 |
| 18666 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18668 | (exit $ac_status); } && { |
| 18669 | test -z "$ac_c_werror_flag" || |
| 18670 | test ! -s conftest.err |
| 18671 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18672 | |
| 18673 | cat >>confdefs.h <<\_ACEOF |
| 18674 | #define HAVE_FDATASYNC 1 |
| 18675 | _ACEOF |
| 18676 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18677 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18678 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18679 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18680 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18682 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18683 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18684 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18685 | |
| 18686 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18687 | |
| 18688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18689 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 18690 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18691 | cat >conftest.$ac_ext <<_ACEOF |
| 18692 | /* confdefs.h. */ |
| 18693 | _ACEOF |
| 18694 | cat confdefs.h >>conftest.$ac_ext |
| 18695 | cat >>conftest.$ac_ext <<_ACEOF |
| 18696 | /* end confdefs.h. */ |
| 18697 | #include <sys/epoll.h> |
| 18698 | int |
| 18699 | main () |
| 18700 | { |
| 18701 | void *x=epoll_create |
| 18702 | ; |
| 18703 | return 0; |
| 18704 | } |
| 18705 | _ACEOF |
| 18706 | rm -f conftest.$ac_objext |
| 18707 | if { (ac_try="$ac_compile" |
| 18708 | case "(($ac_try" in |
| 18709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18710 | *) ac_try_echo=$ac_try;; |
| 18711 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18713 | (eval "$ac_compile") 2>conftest.er1 |
| 18714 | ac_status=$? |
| 18715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18716 | rm -f conftest.er1 |
| 18717 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18719 | (exit $ac_status); } && { |
| 18720 | test -z "$ac_c_werror_flag" || |
| 18721 | test ! -s conftest.err |
| 18722 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18723 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18724 | cat >>confdefs.h <<\_ACEOF |
| 18725 | #define HAVE_EPOLL 1 |
| 18726 | _ACEOF |
| 18727 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18728 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18729 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18730 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18731 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18733 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18734 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18735 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18736 | |
| 18737 | fi |
| 18738 | |
| 18739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18740 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 18741 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18742 | cat >conftest.$ac_ext <<_ACEOF |
| 18743 | /* confdefs.h. */ |
| 18744 | _ACEOF |
| 18745 | cat confdefs.h >>conftest.$ac_ext |
| 18746 | cat >>conftest.$ac_ext <<_ACEOF |
| 18747 | /* end confdefs.h. */ |
| 18748 | |
| 18749 | #include <sys/types.h> |
| 18750 | #include <sys/event.h> |
| 18751 | |
| 18752 | int |
| 18753 | main () |
| 18754 | { |
| 18755 | int x=kqueue() |
| 18756 | ; |
| 18757 | return 0; |
| 18758 | } |
| 18759 | _ACEOF |
| 18760 | rm -f conftest.$ac_objext |
| 18761 | if { (ac_try="$ac_compile" |
| 18762 | case "(($ac_try" in |
| 18763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18764 | *) ac_try_echo=$ac_try;; |
| 18765 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18767 | (eval "$ac_compile") 2>conftest.er1 |
| 18768 | ac_status=$? |
| 18769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18770 | rm -f conftest.er1 |
| 18771 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18773 | (exit $ac_status); } && { |
| 18774 | test -z "$ac_c_werror_flag" || |
| 18775 | test ! -s conftest.err |
| 18776 | } && test -s conftest.$ac_objext; then |
| 18777 | |
| 18778 | cat >>confdefs.h <<\_ACEOF |
| 18779 | #define HAVE_KQUEUE 1 |
| 18780 | _ACEOF |
| 18781 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18782 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18783 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18784 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18785 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18787 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18788 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18789 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18790 | |
| 18791 | fi |
| 18792 | |
| 18793 | 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] | 18794 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 18795 | # functions ctermid_r, setgroups in the library, but no prototype |
| 18796 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 18797 | # address to avoid compiler warnings and potential miscompilations |
| 18798 | # because of the missing prototypes. |
| 18799 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18800 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 18801 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18802 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18803 | /* confdefs.h. */ |
| 18804 | _ACEOF |
| 18805 | cat confdefs.h >>conftest.$ac_ext |
| 18806 | cat >>conftest.$ac_ext <<_ACEOF |
| 18807 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18808 | |
| 18809 | #include "confdefs.h" |
| 18810 | #include <stdio.h> |
| 18811 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18812 | int |
| 18813 | main () |
| 18814 | { |
| 18815 | void* p = ctermid_r |
| 18816 | ; |
| 18817 | return 0; |
| 18818 | } |
| 18819 | _ACEOF |
| 18820 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18821 | if { (ac_try="$ac_compile" |
| 18822 | case "(($ac_try" in |
| 18823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18824 | *) ac_try_echo=$ac_try;; |
| 18825 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18827 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18828 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18830 | rm -f conftest.er1 |
| 18831 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18833 | (exit $ac_status); } && { |
| 18834 | test -z "$ac_c_werror_flag" || |
| 18835 | test ! -s conftest.err |
| 18836 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18837 | |
| 18838 | cat >>confdefs.h <<\_ACEOF |
| 18839 | #define HAVE_CTERMID_R 1 |
| 18840 | _ACEOF |
| 18841 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18842 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18843 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18844 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18845 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18847 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18848 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18849 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18850 | |
| 18851 | fi |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18852 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18854 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18855 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 18856 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18857 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18858 | /* confdefs.h. */ |
| 18859 | _ACEOF |
| 18860 | cat confdefs.h >>conftest.$ac_ext |
| 18861 | cat >>conftest.$ac_ext <<_ACEOF |
| 18862 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18863 | |
| 18864 | #include "confdefs.h" |
| 18865 | #include <sys/file.h> |
| 18866 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18867 | int |
| 18868 | main () |
| 18869 | { |
| 18870 | void* p = flock |
| 18871 | ; |
| 18872 | return 0; |
| 18873 | } |
| 18874 | _ACEOF |
| 18875 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18876 | if { (ac_try="$ac_compile" |
| 18877 | case "(($ac_try" in |
| 18878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18879 | *) ac_try_echo=$ac_try;; |
| 18880 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18882 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18883 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18885 | rm -f conftest.er1 |
| 18886 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18888 | (exit $ac_status); } && { |
| 18889 | test -z "$ac_c_werror_flag" || |
| 18890 | test ! -s conftest.err |
| 18891 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18892 | |
| 18893 | cat >>confdefs.h <<\_ACEOF |
| 18894 | #define HAVE_FLOCK 1 |
| 18895 | _ACEOF |
| 18896 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18897 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18898 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18899 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18900 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18902 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18903 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18904 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18905 | |
| 18906 | fi |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18907 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18909 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18910 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 18911 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18912 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18913 | /* confdefs.h. */ |
| 18914 | _ACEOF |
| 18915 | cat confdefs.h >>conftest.$ac_ext |
| 18916 | cat >>conftest.$ac_ext <<_ACEOF |
| 18917 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18918 | |
| 18919 | #include "confdefs.h" |
| 18920 | #include <unistd.h> |
| 18921 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18922 | int |
| 18923 | main () |
| 18924 | { |
| 18925 | void* p = getpagesize |
| 18926 | ; |
| 18927 | return 0; |
| 18928 | } |
| 18929 | _ACEOF |
| 18930 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18931 | if { (ac_try="$ac_compile" |
| 18932 | case "(($ac_try" in |
| 18933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18934 | *) ac_try_echo=$ac_try;; |
| 18935 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18937 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18938 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18940 | rm -f conftest.er1 |
| 18941 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18943 | (exit $ac_status); } && { |
| 18944 | test -z "$ac_c_werror_flag" || |
| 18945 | test ! -s conftest.err |
| 18946 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18947 | |
| 18948 | cat >>confdefs.h <<\_ACEOF |
| 18949 | #define HAVE_GETPAGESIZE 1 |
| 18950 | _ACEOF |
| 18951 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18952 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18953 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18954 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18955 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18957 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18958 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18959 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18960 | |
| 18961 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18962 | |
| 18963 | 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] | 18964 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18965 | for ac_prog in true |
| 18966 | do |
| 18967 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 18968 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18969 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18971 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18973 | else |
| 18974 | if test -n "$TRUE"; then |
| 18975 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 18976 | else |
| 18977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18978 | for as_dir in $PATH |
| 18979 | do |
| 18980 | IFS=$as_save_IFS |
| 18981 | test -z "$as_dir" && as_dir=. |
| 18982 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18983 | 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] | 18984 | ac_cv_prog_TRUE="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18985 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18986 | break 2 |
| 18987 | fi |
| 18988 | done |
| 18989 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18990 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18991 | |
| 18992 | fi |
| 18993 | fi |
| 18994 | TRUE=$ac_cv_prog_TRUE |
| 18995 | if test -n "$TRUE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18996 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 18997 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18998 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18999 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19000 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19001 | fi |
| 19002 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19003 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19004 | test -n "$TRUE" && break |
| 19005 | done |
| 19006 | test -n "$TRUE" || TRUE="/bin/true" |
| 19007 | |
| 19008 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19009 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 19010 | 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] | 19011 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19013 | else |
| 19014 | ac_check_lib_save_LIBS=$LIBS |
| 19015 | LIBS="-lc $LIBS" |
| 19016 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19017 | /* confdefs.h. */ |
| 19018 | _ACEOF |
| 19019 | cat confdefs.h >>conftest.$ac_ext |
| 19020 | cat >>conftest.$ac_ext <<_ACEOF |
| 19021 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19022 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19023 | /* Override any GCC internal prototype to avoid an error. |
| 19024 | Use char because int might match the return type of a GCC |
| 19025 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19026 | #ifdef __cplusplus |
| 19027 | extern "C" |
| 19028 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19029 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19030 | int |
| 19031 | main () |
| 19032 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19033 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19034 | ; |
| 19035 | return 0; |
| 19036 | } |
| 19037 | _ACEOF |
| 19038 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19039 | if { (ac_try="$ac_link" |
| 19040 | case "(($ac_try" in |
| 19041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19042 | *) ac_try_echo=$ac_try;; |
| 19043 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19045 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19046 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19048 | rm -f conftest.er1 |
| 19049 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19051 | (exit $ac_status); } && { |
| 19052 | test -z "$ac_c_werror_flag" || |
| 19053 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19054 | } && test -s conftest$ac_exeext && |
| 19055 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19056 | ac_cv_lib_c_inet_aton=yes |
| 19057 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19058 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19060 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19061 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19062 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19063 | |
| 19064 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19065 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19066 | LIBS=$ac_check_lib_save_LIBS |
| 19067 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19068 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 19069 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
| 19070 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 19071 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19072 | else |
| 19073 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19074 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 19075 | 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] | 19076 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19078 | else |
| 19079 | ac_check_lib_save_LIBS=$LIBS |
| 19080 | LIBS="-lresolv $LIBS" |
| 19081 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19082 | /* confdefs.h. */ |
| 19083 | _ACEOF |
| 19084 | cat confdefs.h >>conftest.$ac_ext |
| 19085 | cat >>conftest.$ac_ext <<_ACEOF |
| 19086 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19087 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19088 | /* Override any GCC internal prototype to avoid an error. |
| 19089 | Use char because int might match the return type of a GCC |
| 19090 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19091 | #ifdef __cplusplus |
| 19092 | extern "C" |
| 19093 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19094 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19095 | int |
| 19096 | main () |
| 19097 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19098 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19099 | ; |
| 19100 | return 0; |
| 19101 | } |
| 19102 | _ACEOF |
| 19103 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19104 | if { (ac_try="$ac_link" |
| 19105 | case "(($ac_try" in |
| 19106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19107 | *) ac_try_echo=$ac_try;; |
| 19108 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19110 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +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 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19116 | (exit $ac_status); } && { |
| 19117 | test -z "$ac_c_werror_flag" || |
| 19118 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19119 | } && test -s conftest$ac_exeext && |
| 19120 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19121 | ac_cv_lib_resolv_inet_aton=yes |
| 19122 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19123 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19125 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19126 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19127 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19128 | |
| 19129 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19130 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19131 | LIBS=$ac_check_lib_save_LIBS |
| 19132 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19133 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 19134 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
| 19135 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19136 | cat >>confdefs.h <<_ACEOF |
| 19137 | #define HAVE_LIBRESOLV 1 |
| 19138 | _ACEOF |
| 19139 | |
| 19140 | LIBS="-lresolv $LIBS" |
| 19141 | |
| 19142 | fi |
| 19143 | |
| 19144 | |
| 19145 | fi |
| 19146 | |
| 19147 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19148 | # On Tru64, chflags seems to be present, but calling it will |
| 19149 | # exit Python |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19150 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 19151 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19152 | if test "${ac_cv_have_chflags+set}" = set; then |
| 19153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19154 | else |
| 19155 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19156 | ac_cv_have_chflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19157 | else |
| 19158 | cat >conftest.$ac_ext <<_ACEOF |
| 19159 | /* confdefs.h. */ |
| 19160 | _ACEOF |
| 19161 | cat confdefs.h >>conftest.$ac_ext |
| 19162 | cat >>conftest.$ac_ext <<_ACEOF |
| 19163 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19164 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19165 | #include <sys/stat.h> |
| 19166 | #include <unistd.h> |
| 19167 | int main(int argc, char*argv[]) |
| 19168 | { |
| 19169 | if(chflags(argv[0], 0) != 0) |
| 19170 | return 1; |
| 19171 | return 0; |
| 19172 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19173 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19174 | _ACEOF |
| 19175 | rm -f conftest$ac_exeext |
| 19176 | if { (ac_try="$ac_link" |
| 19177 | case "(($ac_try" in |
| 19178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19179 | *) ac_try_echo=$ac_try;; |
| 19180 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19182 | (eval "$ac_link") 2>&5 |
| 19183 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19185 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19186 | { (case "(($ac_try" in |
| 19187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19188 | *) ac_try_echo=$ac_try;; |
| 19189 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19191 | (eval "$ac_try") 2>&5 |
| 19192 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19194 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19195 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19196 | else |
| 19197 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19198 | echo "$as_me: failed program was:" >&5 |
| 19199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19200 | |
| 19201 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19202 | ac_cv_have_chflags=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19203 | fi |
| 19204 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 19205 | fi |
| 19206 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19207 | |
| 19208 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19209 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19210 | { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5 |
| 19211 | echo "${ECHO_T}$ac_cv_have_chflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19212 | if test "$ac_cv_have_chflags" = cross ; then |
| 19213 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 19214 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
| 19215 | if test "${ac_cv_func_chflags+set}" = set; then |
| 19216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19217 | else |
| 19218 | cat >conftest.$ac_ext <<_ACEOF |
| 19219 | /* confdefs.h. */ |
| 19220 | _ACEOF |
| 19221 | cat confdefs.h >>conftest.$ac_ext |
| 19222 | cat >>conftest.$ac_ext <<_ACEOF |
| 19223 | /* end confdefs.h. */ |
| 19224 | /* Define chflags to an innocuous variant, in case <limits.h> declares chflags. |
| 19225 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19226 | #define chflags innocuous_chflags |
| 19227 | |
| 19228 | /* System header to define __stub macros and hopefully few prototypes, |
| 19229 | which can conflict with char chflags (); below. |
| 19230 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19231 | <limits.h> exists even on freestanding compilers. */ |
| 19232 | |
| 19233 | #ifdef __STDC__ |
| 19234 | # include <limits.h> |
| 19235 | #else |
| 19236 | # include <assert.h> |
| 19237 | #endif |
| 19238 | |
| 19239 | #undef chflags |
| 19240 | |
| 19241 | /* Override any GCC internal prototype to avoid an error. |
| 19242 | Use char because int might match the return type of a GCC |
| 19243 | builtin and then its argument prototype would still apply. */ |
| 19244 | #ifdef __cplusplus |
| 19245 | extern "C" |
| 19246 | #endif |
| 19247 | char chflags (); |
| 19248 | /* The GNU C library defines this for functions which it implements |
| 19249 | to always fail with ENOSYS. Some functions are actually named |
| 19250 | something starting with __ and the normal name is an alias. */ |
| 19251 | #if defined __stub_chflags || defined __stub___chflags |
| 19252 | choke me |
| 19253 | #endif |
| 19254 | |
| 19255 | int |
| 19256 | main () |
| 19257 | { |
| 19258 | return chflags (); |
| 19259 | ; |
| 19260 | return 0; |
| 19261 | } |
| 19262 | _ACEOF |
| 19263 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19264 | if { (ac_try="$ac_link" |
| 19265 | case "(($ac_try" in |
| 19266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19267 | *) ac_try_echo=$ac_try;; |
| 19268 | esac |
| 19269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19270 | (eval "$ac_link") 2>conftest.er1 |
| 19271 | ac_status=$? |
| 19272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19273 | rm -f conftest.er1 |
| 19274 | cat conftest.err >&5 |
| 19275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19276 | (exit $ac_status); } && { |
| 19277 | test -z "$ac_c_werror_flag" || |
| 19278 | test ! -s conftest.err |
| 19279 | } && test -s conftest$ac_exeext && |
| 19280 | $as_test_x conftest$ac_exeext; then |
| 19281 | ac_cv_func_chflags=yes |
| 19282 | else |
| 19283 | echo "$as_me: failed program was:" >&5 |
| 19284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19285 | |
| 19286 | ac_cv_func_chflags=no |
| 19287 | fi |
| 19288 | |
| 19289 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19290 | conftest$ac_exeext conftest.$ac_ext |
| 19291 | fi |
| 19292 | { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5 |
| 19293 | echo "${ECHO_T}$ac_cv_func_chflags" >&6; } |
| 19294 | if test $ac_cv_func_chflags = yes; then |
| 19295 | ac_cv_have_chflags="yes" |
| 19296 | else |
| 19297 | ac_cv_have_chflags="no" |
| 19298 | fi |
| 19299 | |
| 19300 | fi |
| 19301 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19302 | |
| 19303 | cat >>confdefs.h <<\_ACEOF |
| 19304 | #define HAVE_CHFLAGS 1 |
| 19305 | _ACEOF |
| 19306 | |
| 19307 | fi |
| 19308 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19309 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 19310 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19311 | if test "${ac_cv_have_lchflags+set}" = set; then |
| 19312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19313 | else |
| 19314 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19315 | ac_cv_have_lchflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19316 | else |
| 19317 | cat >conftest.$ac_ext <<_ACEOF |
| 19318 | /* confdefs.h. */ |
| 19319 | _ACEOF |
| 19320 | cat confdefs.h >>conftest.$ac_ext |
| 19321 | cat >>conftest.$ac_ext <<_ACEOF |
| 19322 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19323 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19324 | #include <sys/stat.h> |
| 19325 | #include <unistd.h> |
| 19326 | int main(int argc, char*argv[]) |
| 19327 | { |
| 19328 | if(lchflags(argv[0], 0) != 0) |
| 19329 | return 1; |
| 19330 | return 0; |
| 19331 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19332 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19333 | _ACEOF |
| 19334 | rm -f conftest$ac_exeext |
| 19335 | if { (ac_try="$ac_link" |
| 19336 | case "(($ac_try" in |
| 19337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19338 | *) ac_try_echo=$ac_try;; |
| 19339 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19341 | (eval "$ac_link") 2>&5 |
| 19342 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19344 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19345 | { (case "(($ac_try" in |
| 19346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19347 | *) ac_try_echo=$ac_try;; |
| 19348 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19350 | (eval "$ac_try") 2>&5 |
| 19351 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19353 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19354 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19355 | else |
| 19356 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19357 | echo "$as_me: failed program was:" >&5 |
| 19358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19359 | |
| 19360 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19361 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19362 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19363 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19364 | fi |
| 19365 | |
| 19366 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 19367 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19368 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19369 | { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5 |
| 19370 | echo "${ECHO_T}$ac_cv_have_lchflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 19371 | if test "$ac_cv_have_lchflags" = cross ; then |
| 19372 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 19373 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
| 19374 | if test "${ac_cv_func_lchflags+set}" = set; then |
| 19375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19376 | else |
| 19377 | cat >conftest.$ac_ext <<_ACEOF |
| 19378 | /* confdefs.h. */ |
| 19379 | _ACEOF |
| 19380 | cat confdefs.h >>conftest.$ac_ext |
| 19381 | cat >>conftest.$ac_ext <<_ACEOF |
| 19382 | /* end confdefs.h. */ |
| 19383 | /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags. |
| 19384 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19385 | #define lchflags innocuous_lchflags |
| 19386 | |
| 19387 | /* System header to define __stub macros and hopefully few prototypes, |
| 19388 | which can conflict with char lchflags (); below. |
| 19389 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19390 | <limits.h> exists even on freestanding compilers. */ |
| 19391 | |
| 19392 | #ifdef __STDC__ |
| 19393 | # include <limits.h> |
| 19394 | #else |
| 19395 | # include <assert.h> |
| 19396 | #endif |
| 19397 | |
| 19398 | #undef lchflags |
| 19399 | |
| 19400 | /* Override any GCC internal prototype to avoid an error. |
| 19401 | Use char because int might match the return type of a GCC |
| 19402 | builtin and then its argument prototype would still apply. */ |
| 19403 | #ifdef __cplusplus |
| 19404 | extern "C" |
| 19405 | #endif |
| 19406 | char lchflags (); |
| 19407 | /* The GNU C library defines this for functions which it implements |
| 19408 | to always fail with ENOSYS. Some functions are actually named |
| 19409 | something starting with __ and the normal name is an alias. */ |
| 19410 | #if defined __stub_lchflags || defined __stub___lchflags |
| 19411 | choke me |
| 19412 | #endif |
| 19413 | |
| 19414 | int |
| 19415 | main () |
| 19416 | { |
| 19417 | return lchflags (); |
| 19418 | ; |
| 19419 | return 0; |
| 19420 | } |
| 19421 | _ACEOF |
| 19422 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19423 | if { (ac_try="$ac_link" |
| 19424 | case "(($ac_try" in |
| 19425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19426 | *) ac_try_echo=$ac_try;; |
| 19427 | esac |
| 19428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19429 | (eval "$ac_link") 2>conftest.er1 |
| 19430 | ac_status=$? |
| 19431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19432 | rm -f conftest.er1 |
| 19433 | cat conftest.err >&5 |
| 19434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19435 | (exit $ac_status); } && { |
| 19436 | test -z "$ac_c_werror_flag" || |
| 19437 | test ! -s conftest.err |
| 19438 | } && test -s conftest$ac_exeext && |
| 19439 | $as_test_x conftest$ac_exeext; then |
| 19440 | ac_cv_func_lchflags=yes |
| 19441 | else |
| 19442 | echo "$as_me: failed program was:" >&5 |
| 19443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19444 | |
| 19445 | ac_cv_func_lchflags=no |
| 19446 | fi |
| 19447 | |
| 19448 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19449 | conftest$ac_exeext conftest.$ac_ext |
| 19450 | fi |
| 19451 | { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5 |
| 19452 | echo "${ECHO_T}$ac_cv_func_lchflags" >&6; } |
| 19453 | if test $ac_cv_func_lchflags = yes; then |
| 19454 | ac_cv_have_lchflags="yes" |
| 19455 | else |
| 19456 | ac_cv_have_lchflags="no" |
| 19457 | fi |
| 19458 | |
| 19459 | fi |
| 19460 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19461 | |
| 19462 | cat >>confdefs.h <<\_ACEOF |
| 19463 | #define HAVE_LCHFLAGS 1 |
| 19464 | _ACEOF |
| 19465 | |
| 19466 | fi |
| 19467 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19468 | case $ac_sys_system/$ac_sys_release in |
| 19469 | Darwin/*) |
| 19470 | _CUR_CFLAGS="${CFLAGS}" |
| 19471 | _CUR_LDFLAGS="${LDFLAGS}" |
| 19472 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 19473 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 19474 | ;; |
| 19475 | esac |
| 19476 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19477 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 19478 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19479 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19481 | else |
| 19482 | ac_check_lib_save_LIBS=$LIBS |
| 19483 | LIBS="-lz $LIBS" |
| 19484 | cat >conftest.$ac_ext <<_ACEOF |
| 19485 | /* confdefs.h. */ |
| 19486 | _ACEOF |
| 19487 | cat confdefs.h >>conftest.$ac_ext |
| 19488 | cat >>conftest.$ac_ext <<_ACEOF |
| 19489 | /* end confdefs.h. */ |
| 19490 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19491 | /* Override any GCC internal prototype to avoid an error. |
| 19492 | Use char because int might match the return type of a GCC |
| 19493 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19494 | #ifdef __cplusplus |
| 19495 | extern "C" |
| 19496 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19497 | char inflateCopy (); |
| 19498 | int |
| 19499 | main () |
| 19500 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19501 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19502 | ; |
| 19503 | return 0; |
| 19504 | } |
| 19505 | _ACEOF |
| 19506 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19507 | if { (ac_try="$ac_link" |
| 19508 | case "(($ac_try" in |
| 19509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19510 | *) ac_try_echo=$ac_try;; |
| 19511 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19513 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19514 | ac_status=$? |
| 19515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19516 | rm -f conftest.er1 |
| 19517 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19519 | (exit $ac_status); } && { |
| 19520 | test -z "$ac_c_werror_flag" || |
| 19521 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19522 | } && test -s conftest$ac_exeext && |
| 19523 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19524 | ac_cv_lib_z_inflateCopy=yes |
| 19525 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19526 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19528 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19529 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19530 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19531 | |
| 19532 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19533 | conftest$ac_exeext conftest.$ac_ext |
| 19534 | LIBS=$ac_check_lib_save_LIBS |
| 19535 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19536 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 19537 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
| 19538 | if test $ac_cv_lib_z_inflateCopy = yes; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19539 | |
| 19540 | cat >>confdefs.h <<\_ACEOF |
| 19541 | #define HAVE_ZLIB_COPY 1 |
| 19542 | _ACEOF |
| 19543 | |
| 19544 | fi |
| 19545 | |
| 19546 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19547 | case $ac_sys_system/$ac_sys_release in |
| 19548 | Darwin/*) |
| 19549 | CFLAGS="${_CUR_CFLAGS}" |
| 19550 | LDFLAGS="${_CUR_LDFLAGS}" |
| 19551 | ;; |
| 19552 | esac |
| 19553 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19554 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 19555 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19556 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19557 | /* confdefs.h. */ |
| 19558 | _ACEOF |
| 19559 | cat confdefs.h >>conftest.$ac_ext |
| 19560 | cat >>conftest.$ac_ext <<_ACEOF |
| 19561 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19562 | |
| 19563 | #include "confdefs.h" |
| 19564 | #include <netdb.h> |
| 19565 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19566 | int |
| 19567 | main () |
| 19568 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19569 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19570 | ; |
| 19571 | return 0; |
| 19572 | } |
| 19573 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19574 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19575 | if { (ac_try="$ac_link" |
| 19576 | case "(($ac_try" in |
| 19577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19578 | *) ac_try_echo=$ac_try;; |
| 19579 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19581 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19582 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19584 | rm -f conftest.er1 |
| 19585 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19587 | (exit $ac_status); } && { |
| 19588 | test -z "$ac_c_werror_flag" || |
| 19589 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19590 | } && test -s conftest$ac_exeext && |
| 19591 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19592 | |
| 19593 | cat >>confdefs.h <<\_ACEOF |
| 19594 | #define HAVE_HSTRERROR 1 |
| 19595 | _ACEOF |
| 19596 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19597 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19598 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19599 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19600 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19602 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19603 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19604 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19605 | |
| 19606 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19607 | |
| 19608 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19609 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19610 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19611 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 19612 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19613 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19614 | /* confdefs.h. */ |
| 19615 | _ACEOF |
| 19616 | cat confdefs.h >>conftest.$ac_ext |
| 19617 | cat >>conftest.$ac_ext <<_ACEOF |
| 19618 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19619 | |
| 19620 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 19621 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19622 | #include <sys/socket.h> |
| 19623 | #include <netinet/in.h> |
| 19624 | #include <arpa/inet.h> |
| 19625 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19626 | int |
| 19627 | main () |
| 19628 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19629 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19630 | ; |
| 19631 | return 0; |
| 19632 | } |
| 19633 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19634 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19635 | if { (ac_try="$ac_link" |
| 19636 | case "(($ac_try" in |
| 19637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19638 | *) ac_try_echo=$ac_try;; |
| 19639 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19641 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19642 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19644 | rm -f conftest.er1 |
| 19645 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19647 | (exit $ac_status); } && { |
| 19648 | test -z "$ac_c_werror_flag" || |
| 19649 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19650 | } && test -s conftest$ac_exeext && |
| 19651 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19652 | |
| 19653 | cat >>confdefs.h <<\_ACEOF |
| 19654 | #define HAVE_INET_ATON 1 |
| 19655 | _ACEOF |
| 19656 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19657 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19658 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19659 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19660 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19662 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19663 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19664 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19665 | |
| 19666 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19667 | |
| 19668 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19669 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19670 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19671 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 19672 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19673 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19674 | /* confdefs.h. */ |
| 19675 | _ACEOF |
| 19676 | cat confdefs.h >>conftest.$ac_ext |
| 19677 | cat >>conftest.$ac_ext <<_ACEOF |
| 19678 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19679 | |
| 19680 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19681 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19682 | #include <sys/socket.h> |
| 19683 | #include <netinet/in.h> |
| 19684 | #include <arpa/inet.h> |
| 19685 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19686 | int |
| 19687 | main () |
| 19688 | { |
| 19689 | void* p = inet_pton |
| 19690 | ; |
| 19691 | return 0; |
| 19692 | } |
| 19693 | _ACEOF |
| 19694 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19695 | if { (ac_try="$ac_compile" |
| 19696 | case "(($ac_try" in |
| 19697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19698 | *) ac_try_echo=$ac_try;; |
| 19699 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19701 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19702 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19704 | rm -f conftest.er1 |
| 19705 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19707 | (exit $ac_status); } && { |
| 19708 | test -z "$ac_c_werror_flag" || |
| 19709 | test ! -s conftest.err |
| 19710 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19711 | |
| 19712 | cat >>confdefs.h <<\_ACEOF |
| 19713 | #define HAVE_INET_PTON 1 |
| 19714 | _ACEOF |
| 19715 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19716 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19717 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19718 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19719 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19721 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19722 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19723 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19724 | |
| 19725 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19726 | |
| 19727 | 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] | 19728 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19729 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19730 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 19731 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19732 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19733 | /* confdefs.h. */ |
| 19734 | _ACEOF |
| 19735 | cat confdefs.h >>conftest.$ac_ext |
| 19736 | cat >>conftest.$ac_ext <<_ACEOF |
| 19737 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19738 | |
| 19739 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19740 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19741 | #ifdef HAVE_GRP_H |
| 19742 | #include <grp.h> |
| 19743 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19744 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19745 | int |
| 19746 | main () |
| 19747 | { |
| 19748 | void* p = setgroups |
| 19749 | ; |
| 19750 | return 0; |
| 19751 | } |
| 19752 | _ACEOF |
| 19753 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19754 | if { (ac_try="$ac_compile" |
| 19755 | case "(($ac_try" in |
| 19756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19757 | *) ac_try_echo=$ac_try;; |
| 19758 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19760 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19761 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19763 | rm -f conftest.er1 |
| 19764 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19766 | (exit $ac_status); } && { |
| 19767 | test -z "$ac_c_werror_flag" || |
| 19768 | test ! -s conftest.err |
| 19769 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19770 | |
| 19771 | cat >>confdefs.h <<\_ACEOF |
| 19772 | #define HAVE_SETGROUPS 1 |
| 19773 | _ACEOF |
| 19774 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19775 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19776 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19777 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19778 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19780 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19781 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19782 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19783 | |
| 19784 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19785 | |
| 19786 | 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] | 19787 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19788 | # check for openpty and forkpty |
| 19789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19790 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19791 | for ac_func in openpty |
| 19792 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19793 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19794 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19795 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19796 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19799 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19800 | /* confdefs.h. */ |
| 19801 | _ACEOF |
| 19802 | cat confdefs.h >>conftest.$ac_ext |
| 19803 | cat >>conftest.$ac_ext <<_ACEOF |
| 19804 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19805 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19806 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19807 | #define $ac_func innocuous_$ac_func |
| 19808 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19809 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19810 | which can conflict with char $ac_func (); below. |
| 19811 | 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] | 19812 | <limits.h> exists even on freestanding compilers. */ |
| 19813 | |
| 19814 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19815 | # include <limits.h> |
| 19816 | #else |
| 19817 | # include <assert.h> |
| 19818 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19819 | |
| 19820 | #undef $ac_func |
| 19821 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19822 | /* Override any GCC internal prototype to avoid an error. |
| 19823 | Use char because int might match the return type of a GCC |
| 19824 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19825 | #ifdef __cplusplus |
| 19826 | extern "C" |
| 19827 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19828 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19829 | /* The GNU C library defines this for functions which it implements |
| 19830 | to always fail with ENOSYS. Some functions are actually named |
| 19831 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19832 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19833 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19834 | #endif |
| 19835 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19836 | int |
| 19837 | main () |
| 19838 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19839 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19840 | ; |
| 19841 | return 0; |
| 19842 | } |
| 19843 | _ACEOF |
| 19844 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19845 | if { (ac_try="$ac_link" |
| 19846 | case "(($ac_try" in |
| 19847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19848 | *) ac_try_echo=$ac_try;; |
| 19849 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19851 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19852 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19854 | rm -f conftest.er1 |
| 19855 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19857 | (exit $ac_status); } && { |
| 19858 | test -z "$ac_c_werror_flag" || |
| 19859 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19860 | } && test -s conftest$ac_exeext && |
| 19861 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19862 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19863 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19864 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19866 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19867 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19868 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19869 | |
| 19870 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19871 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19872 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19873 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19874 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19875 | echo "${ECHO_T}$ac_res" >&6; } |
| 19876 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19877 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19878 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19879 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19880 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19881 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19882 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 19883 | 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] | 19884 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19886 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19887 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19888 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19889 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19890 | /* confdefs.h. */ |
| 19891 | _ACEOF |
| 19892 | cat confdefs.h >>conftest.$ac_ext |
| 19893 | cat >>conftest.$ac_ext <<_ACEOF |
| 19894 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19895 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19896 | /* Override any GCC internal prototype to avoid an error. |
| 19897 | Use char because int might match the return type of a GCC |
| 19898 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19899 | #ifdef __cplusplus |
| 19900 | extern "C" |
| 19901 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19902 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19903 | int |
| 19904 | main () |
| 19905 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19906 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19907 | ; |
| 19908 | return 0; |
| 19909 | } |
| 19910 | _ACEOF |
| 19911 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19912 | if { (ac_try="$ac_link" |
| 19913 | case "(($ac_try" in |
| 19914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19915 | *) ac_try_echo=$ac_try;; |
| 19916 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19918 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19919 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19921 | rm -f conftest.er1 |
| 19922 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19924 | (exit $ac_status); } && { |
| 19925 | test -z "$ac_c_werror_flag" || |
| 19926 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19927 | } && test -s conftest$ac_exeext && |
| 19928 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19929 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19930 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19931 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19933 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19934 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19935 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19936 | |
| 19937 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19938 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19939 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19940 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19941 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 19942 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
| 19943 | if test $ac_cv_lib_util_openpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19944 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19945 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19946 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19947 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19948 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19949 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 19950 | 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] | 19951 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19953 | else |
| 19954 | ac_check_lib_save_LIBS=$LIBS |
| 19955 | LIBS="-lbsd $LIBS" |
| 19956 | cat >conftest.$ac_ext <<_ACEOF |
| 19957 | /* confdefs.h. */ |
| 19958 | _ACEOF |
| 19959 | cat confdefs.h >>conftest.$ac_ext |
| 19960 | cat >>conftest.$ac_ext <<_ACEOF |
| 19961 | /* end confdefs.h. */ |
| 19962 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19963 | /* Override any GCC internal prototype to avoid an error. |
| 19964 | Use char because int might match the return type of a GCC |
| 19965 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19966 | #ifdef __cplusplus |
| 19967 | extern "C" |
| 19968 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19969 | char openpty (); |
| 19970 | int |
| 19971 | main () |
| 19972 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19973 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19974 | ; |
| 19975 | return 0; |
| 19976 | } |
| 19977 | _ACEOF |
| 19978 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19979 | if { (ac_try="$ac_link" |
| 19980 | case "(($ac_try" in |
| 19981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19982 | *) ac_try_echo=$ac_try;; |
| 19983 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19985 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19986 | ac_status=$? |
| 19987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19988 | rm -f conftest.er1 |
| 19989 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19991 | (exit $ac_status); } && { |
| 19992 | test -z "$ac_c_werror_flag" || |
| 19993 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19994 | } && test -s conftest$ac_exeext && |
| 19995 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19996 | ac_cv_lib_bsd_openpty=yes |
| 19997 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19998 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20000 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20001 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20002 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20003 | |
| 20004 | 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] | 20005 | conftest$ac_exeext conftest.$ac_ext |
| 20006 | LIBS=$ac_check_lib_save_LIBS |
| 20007 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20008 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 20009 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
| 20010 | if test $ac_cv_lib_bsd_openpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20011 | cat >>confdefs.h <<\_ACEOF |
| 20012 | #define HAVE_OPENPTY 1 |
| 20013 | _ACEOF |
| 20014 | LIBS="$LIBS -lbsd" |
| 20015 | fi |
| 20016 | |
| 20017 | |
| 20018 | fi |
| 20019 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20020 | |
| 20021 | fi |
| 20022 | done |
| 20023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20024 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20025 | for ac_func in forkpty |
| 20026 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20027 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20028 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20029 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20030 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20032 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20033 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20034 | /* confdefs.h. */ |
| 20035 | _ACEOF |
| 20036 | cat confdefs.h >>conftest.$ac_ext |
| 20037 | cat >>conftest.$ac_ext <<_ACEOF |
| 20038 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20039 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20040 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20041 | #define $ac_func innocuous_$ac_func |
| 20042 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20043 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20044 | which can conflict with char $ac_func (); below. |
| 20045 | 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] | 20046 | <limits.h> exists even on freestanding compilers. */ |
| 20047 | |
| 20048 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20049 | # include <limits.h> |
| 20050 | #else |
| 20051 | # include <assert.h> |
| 20052 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20053 | |
| 20054 | #undef $ac_func |
| 20055 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20056 | /* Override any GCC internal prototype to avoid an error. |
| 20057 | Use char because int might match the return type of a GCC |
| 20058 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20059 | #ifdef __cplusplus |
| 20060 | extern "C" |
| 20061 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20062 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20063 | /* The GNU C library defines this for functions which it implements |
| 20064 | to always fail with ENOSYS. Some functions are actually named |
| 20065 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20066 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20067 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20068 | #endif |
| 20069 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20070 | int |
| 20071 | main () |
| 20072 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20073 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20074 | ; |
| 20075 | return 0; |
| 20076 | } |
| 20077 | _ACEOF |
| 20078 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20079 | if { (ac_try="$ac_link" |
| 20080 | case "(($ac_try" in |
| 20081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20082 | *) ac_try_echo=$ac_try;; |
| 20083 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20085 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20086 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20088 | rm -f conftest.er1 |
| 20089 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20091 | (exit $ac_status); } && { |
| 20092 | test -z "$ac_c_werror_flag" || |
| 20093 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20094 | } && test -s conftest$ac_exeext && |
| 20095 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20096 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20097 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20098 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20100 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20101 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20102 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20103 | |
| 20104 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20105 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20106 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20107 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20108 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20109 | echo "${ECHO_T}$ac_res" >&6; } |
| 20110 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20111 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20112 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20113 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20114 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20115 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20116 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 20117 | 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] | 20118 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20120 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20121 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20122 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20123 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20124 | /* confdefs.h. */ |
| 20125 | _ACEOF |
| 20126 | cat confdefs.h >>conftest.$ac_ext |
| 20127 | cat >>conftest.$ac_ext <<_ACEOF |
| 20128 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20129 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20130 | /* Override any GCC internal prototype to avoid an error. |
| 20131 | Use char because int might match the return type of a GCC |
| 20132 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20133 | #ifdef __cplusplus |
| 20134 | extern "C" |
| 20135 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20136 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20137 | int |
| 20138 | main () |
| 20139 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20140 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20141 | ; |
| 20142 | return 0; |
| 20143 | } |
| 20144 | _ACEOF |
| 20145 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20146 | if { (ac_try="$ac_link" |
| 20147 | case "(($ac_try" in |
| 20148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20149 | *) ac_try_echo=$ac_try;; |
| 20150 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20152 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20153 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20155 | rm -f conftest.er1 |
| 20156 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20158 | (exit $ac_status); } && { |
| 20159 | test -z "$ac_c_werror_flag" || |
| 20160 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20161 | } && test -s conftest$ac_exeext && |
| 20162 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20163 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20164 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20165 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20167 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20168 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20169 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20170 | |
| 20171 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20172 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20173 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20174 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20175 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 20176 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
| 20177 | if test $ac_cv_lib_util_forkpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20178 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20179 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20180 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20181 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20182 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20183 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 20184 | 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] | 20185 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20187 | else |
| 20188 | ac_check_lib_save_LIBS=$LIBS |
| 20189 | LIBS="-lbsd $LIBS" |
| 20190 | cat >conftest.$ac_ext <<_ACEOF |
| 20191 | /* confdefs.h. */ |
| 20192 | _ACEOF |
| 20193 | cat confdefs.h >>conftest.$ac_ext |
| 20194 | cat >>conftest.$ac_ext <<_ACEOF |
| 20195 | /* end confdefs.h. */ |
| 20196 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20197 | /* Override any GCC internal prototype to avoid an error. |
| 20198 | Use char because int might match the return type of a GCC |
| 20199 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20200 | #ifdef __cplusplus |
| 20201 | extern "C" |
| 20202 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20203 | char forkpty (); |
| 20204 | int |
| 20205 | main () |
| 20206 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20207 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20208 | ; |
| 20209 | return 0; |
| 20210 | } |
| 20211 | _ACEOF |
| 20212 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20213 | if { (ac_try="$ac_link" |
| 20214 | case "(($ac_try" in |
| 20215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20216 | *) ac_try_echo=$ac_try;; |
| 20217 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20219 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20220 | ac_status=$? |
| 20221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20222 | rm -f conftest.er1 |
| 20223 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20225 | (exit $ac_status); } && { |
| 20226 | test -z "$ac_c_werror_flag" || |
| 20227 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20228 | } && test -s conftest$ac_exeext && |
| 20229 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20230 | ac_cv_lib_bsd_forkpty=yes |
| 20231 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20232 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20234 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20235 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20236 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20237 | |
| 20238 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20239 | conftest$ac_exeext conftest.$ac_ext |
| 20240 | LIBS=$ac_check_lib_save_LIBS |
| 20241 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20242 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 20243 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
| 20244 | if test $ac_cv_lib_bsd_forkpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 20245 | cat >>confdefs.h <<\_ACEOF |
| 20246 | #define HAVE_FORKPTY 1 |
| 20247 | _ACEOF |
| 20248 | LIBS="$LIBS -lbsd" |
| 20249 | fi |
| 20250 | |
| 20251 | |
| 20252 | fi |
| 20253 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20254 | |
| 20255 | fi |
| 20256 | done |
| 20257 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20258 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20259 | # Stuff for expat. |
| 20260 | |
| 20261 | for ac_func in memmove |
| 20262 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20263 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20264 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20265 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20266 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20268 | else |
| 20269 | cat >conftest.$ac_ext <<_ACEOF |
| 20270 | /* confdefs.h. */ |
| 20271 | _ACEOF |
| 20272 | cat confdefs.h >>conftest.$ac_ext |
| 20273 | cat >>conftest.$ac_ext <<_ACEOF |
| 20274 | /* end confdefs.h. */ |
| 20275 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20276 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20277 | #define $ac_func innocuous_$ac_func |
| 20278 | |
| 20279 | /* System header to define __stub macros and hopefully few prototypes, |
| 20280 | which can conflict with char $ac_func (); below. |
| 20281 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20282 | <limits.h> exists even on freestanding compilers. */ |
| 20283 | |
| 20284 | #ifdef __STDC__ |
| 20285 | # include <limits.h> |
| 20286 | #else |
| 20287 | # include <assert.h> |
| 20288 | #endif |
| 20289 | |
| 20290 | #undef $ac_func |
| 20291 | |
| 20292 | /* Override any GCC internal prototype to avoid an error. |
| 20293 | Use char because int might match the return type of a GCC |
| 20294 | builtin and then its argument prototype would still apply. */ |
| 20295 | #ifdef __cplusplus |
| 20296 | extern "C" |
| 20297 | #endif |
| 20298 | char $ac_func (); |
| 20299 | /* The GNU C library defines this for functions which it implements |
| 20300 | to always fail with ENOSYS. Some functions are actually named |
| 20301 | something starting with __ and the normal name is an alias. */ |
| 20302 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20303 | choke me |
| 20304 | #endif |
| 20305 | |
| 20306 | int |
| 20307 | main () |
| 20308 | { |
| 20309 | return $ac_func (); |
| 20310 | ; |
| 20311 | return 0; |
| 20312 | } |
| 20313 | _ACEOF |
| 20314 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20315 | if { (ac_try="$ac_link" |
| 20316 | case "(($ac_try" in |
| 20317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20318 | *) ac_try_echo=$ac_try;; |
| 20319 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20321 | (eval "$ac_link") 2>conftest.er1 |
| 20322 | ac_status=$? |
| 20323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20324 | rm -f conftest.er1 |
| 20325 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20327 | (exit $ac_status); } && { |
| 20328 | test -z "$ac_c_werror_flag" || |
| 20329 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20330 | } && test -s conftest$ac_exeext && |
| 20331 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20332 | eval "$as_ac_var=yes" |
| 20333 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20334 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20336 | |
| 20337 | eval "$as_ac_var=no" |
| 20338 | fi |
| 20339 | |
| 20340 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20341 | conftest$ac_exeext conftest.$ac_ext |
| 20342 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20343 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20344 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20345 | echo "${ECHO_T}$ac_res" >&6; } |
| 20346 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20347 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20348 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20349 | _ACEOF |
| 20350 | |
| 20351 | fi |
| 20352 | done |
| 20353 | |
| 20354 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20355 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20356 | |
| 20357 | |
| 20358 | |
| 20359 | |
| 20360 | |
| 20361 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 20362 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 20363 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20364 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20365 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20366 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20367 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20369 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20370 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20371 | /* confdefs.h. */ |
| 20372 | _ACEOF |
| 20373 | cat confdefs.h >>conftest.$ac_ext |
| 20374 | cat >>conftest.$ac_ext <<_ACEOF |
| 20375 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20376 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20377 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20378 | #define $ac_func innocuous_$ac_func |
| 20379 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20380 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20381 | which can conflict with char $ac_func (); below. |
| 20382 | 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] | 20383 | <limits.h> exists even on freestanding compilers. */ |
| 20384 | |
| 20385 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20386 | # include <limits.h> |
| 20387 | #else |
| 20388 | # include <assert.h> |
| 20389 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20390 | |
| 20391 | #undef $ac_func |
| 20392 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20393 | /* Override any GCC internal prototype to avoid an error. |
| 20394 | Use char because int might match the return type of a GCC |
| 20395 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20396 | #ifdef __cplusplus |
| 20397 | extern "C" |
| 20398 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20399 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20400 | /* The GNU C library defines this for functions which it implements |
| 20401 | to always fail with ENOSYS. Some functions are actually named |
| 20402 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20403 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20404 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20405 | #endif |
| 20406 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20407 | int |
| 20408 | main () |
| 20409 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20410 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20411 | ; |
| 20412 | return 0; |
| 20413 | } |
| 20414 | _ACEOF |
| 20415 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20416 | if { (ac_try="$ac_link" |
| 20417 | case "(($ac_try" in |
| 20418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20419 | *) ac_try_echo=$ac_try;; |
| 20420 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20422 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20423 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20424 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20425 | rm -f conftest.er1 |
| 20426 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20428 | (exit $ac_status); } && { |
| 20429 | test -z "$ac_c_werror_flag" || |
| 20430 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20431 | } && test -s conftest$ac_exeext && |
| 20432 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20433 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20434 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20435 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20437 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20438 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20439 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20440 | |
| 20441 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20442 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20443 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20444 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20445 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20446 | echo "${ECHO_T}$ac_res" >&6; } |
| 20447 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20448 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20449 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20450 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20451 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20452 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20453 | done |
| 20454 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20456 | |
| 20457 | |
| 20458 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20459 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20460 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20461 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20462 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20463 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20464 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20466 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20467 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20468 | /* confdefs.h. */ |
| 20469 | _ACEOF |
| 20470 | cat confdefs.h >>conftest.$ac_ext |
| 20471 | cat >>conftest.$ac_ext <<_ACEOF |
| 20472 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20473 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20474 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20475 | #define $ac_func innocuous_$ac_func |
| 20476 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20477 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20478 | which can conflict with char $ac_func (); below. |
| 20479 | 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] | 20480 | <limits.h> exists even on freestanding compilers. */ |
| 20481 | |
| 20482 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20483 | # include <limits.h> |
| 20484 | #else |
| 20485 | # include <assert.h> |
| 20486 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20487 | |
| 20488 | #undef $ac_func |
| 20489 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20490 | /* Override any GCC internal prototype to avoid an error. |
| 20491 | Use char because int might match the return type of a GCC |
| 20492 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20493 | #ifdef __cplusplus |
| 20494 | extern "C" |
| 20495 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20496 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20497 | /* The GNU C library defines this for functions which it implements |
| 20498 | to always fail with ENOSYS. Some functions are actually named |
| 20499 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20500 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20501 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20502 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20503 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20504 | int |
| 20505 | main () |
| 20506 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20507 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20508 | ; |
| 20509 | return 0; |
| 20510 | } |
| 20511 | _ACEOF |
| 20512 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20513 | if { (ac_try="$ac_link" |
| 20514 | case "(($ac_try" in |
| 20515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20516 | *) ac_try_echo=$ac_try;; |
| 20517 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20519 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20520 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20522 | rm -f conftest.er1 |
| 20523 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20525 | (exit $ac_status); } && { |
| 20526 | test -z "$ac_c_werror_flag" || |
| 20527 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20528 | } && test -s conftest$ac_exeext && |
| 20529 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20530 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20531 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20532 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20534 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20535 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20536 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20537 | |
| 20538 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20539 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20540 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20541 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20542 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20543 | echo "${ECHO_T}$ac_res" >&6; } |
| 20544 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20545 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20546 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20547 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20548 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20549 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20550 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20551 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20552 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 20553 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20554 | esac |
| 20555 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20556 | fi |
| 20557 | done |
| 20558 | |
| 20559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20560 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20561 | for ac_func in getpgrp |
| 20562 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20563 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20564 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20565 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20566 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20569 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20570 | /* confdefs.h. */ |
| 20571 | _ACEOF |
| 20572 | cat confdefs.h >>conftest.$ac_ext |
| 20573 | cat >>conftest.$ac_ext <<_ACEOF |
| 20574 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20575 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20576 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20577 | #define $ac_func innocuous_$ac_func |
| 20578 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20579 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20580 | which can conflict with char $ac_func (); below. |
| 20581 | 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] | 20582 | <limits.h> exists even on freestanding compilers. */ |
| 20583 | |
| 20584 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20585 | # include <limits.h> |
| 20586 | #else |
| 20587 | # include <assert.h> |
| 20588 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20589 | |
| 20590 | #undef $ac_func |
| 20591 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20592 | /* Override any GCC internal prototype to avoid an error. |
| 20593 | Use char because int might match the return type of a GCC |
| 20594 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20595 | #ifdef __cplusplus |
| 20596 | extern "C" |
| 20597 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20598 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20599 | /* The GNU C library defines this for functions which it implements |
| 20600 | to always fail with ENOSYS. Some functions are actually named |
| 20601 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20602 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20603 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20604 | #endif |
| 20605 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20606 | int |
| 20607 | main () |
| 20608 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20609 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20610 | ; |
| 20611 | return 0; |
| 20612 | } |
| 20613 | _ACEOF |
| 20614 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20615 | if { (ac_try="$ac_link" |
| 20616 | case "(($ac_try" in |
| 20617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20618 | *) ac_try_echo=$ac_try;; |
| 20619 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20621 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20622 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20624 | rm -f conftest.er1 |
| 20625 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20627 | (exit $ac_status); } && { |
| 20628 | test -z "$ac_c_werror_flag" || |
| 20629 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20630 | } && test -s conftest$ac_exeext && |
| 20631 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20632 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20633 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20634 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20636 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20637 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20638 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20639 | |
| 20640 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20641 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20642 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20643 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20644 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20645 | echo "${ECHO_T}$ac_res" >&6; } |
| 20646 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20647 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20648 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20649 | _ACEOF |
| 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. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20656 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20657 | int |
| 20658 | main () |
| 20659 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20660 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20661 | ; |
| 20662 | return 0; |
| 20663 | } |
| 20664 | _ACEOF |
| 20665 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20666 | if { (ac_try="$ac_compile" |
| 20667 | case "(($ac_try" in |
| 20668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20669 | *) ac_try_echo=$ac_try;; |
| 20670 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20672 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20673 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20675 | rm -f conftest.er1 |
| 20676 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20678 | (exit $ac_status); } && { |
| 20679 | test -z "$ac_c_werror_flag" || |
| 20680 | test ! -s conftest.err |
| 20681 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20682 | |
| 20683 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20684 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20685 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20687 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20688 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20689 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20691 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20692 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20693 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20694 | |
| 20695 | 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] | 20696 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20697 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20698 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20699 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20700 | |
| 20701 | for ac_func in setpgrp |
| 20702 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20703 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20704 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20705 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20706 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20709 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20710 | /* confdefs.h. */ |
| 20711 | _ACEOF |
| 20712 | cat confdefs.h >>conftest.$ac_ext |
| 20713 | cat >>conftest.$ac_ext <<_ACEOF |
| 20714 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20715 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20716 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20717 | #define $ac_func innocuous_$ac_func |
| 20718 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20719 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20720 | which can conflict with char $ac_func (); below. |
| 20721 | 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] | 20722 | <limits.h> exists even on freestanding compilers. */ |
| 20723 | |
| 20724 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20725 | # include <limits.h> |
| 20726 | #else |
| 20727 | # include <assert.h> |
| 20728 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20729 | |
| 20730 | #undef $ac_func |
| 20731 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20732 | /* Override any GCC internal prototype to avoid an error. |
| 20733 | Use char because int might match the return type of a GCC |
| 20734 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20735 | #ifdef __cplusplus |
| 20736 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20737 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20738 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20739 | /* The GNU C library defines this for functions which it implements |
| 20740 | to always fail with ENOSYS. Some functions are actually named |
| 20741 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20742 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20743 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20744 | #endif |
| 20745 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20746 | int |
| 20747 | main () |
| 20748 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20749 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20750 | ; |
| 20751 | return 0; |
| 20752 | } |
| 20753 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20754 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20755 | if { (ac_try="$ac_link" |
| 20756 | case "(($ac_try" in |
| 20757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20758 | *) ac_try_echo=$ac_try;; |
| 20759 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20761 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20762 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20764 | rm -f conftest.er1 |
| 20765 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20767 | (exit $ac_status); } && { |
| 20768 | test -z "$ac_c_werror_flag" || |
| 20769 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20770 | } && test -s conftest$ac_exeext && |
| 20771 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20772 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20773 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20774 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20776 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20777 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20778 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20779 | |
| 20780 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20781 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20782 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20783 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20784 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20785 | echo "${ECHO_T}$ac_res" >&6; } |
| 20786 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20787 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20788 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20789 | _ACEOF |
| 20790 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20791 | /* confdefs.h. */ |
| 20792 | _ACEOF |
| 20793 | cat confdefs.h >>conftest.$ac_ext |
| 20794 | cat >>conftest.$ac_ext <<_ACEOF |
| 20795 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20796 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20797 | int |
| 20798 | main () |
| 20799 | { |
| 20800 | setpgrp(0,0); |
| 20801 | ; |
| 20802 | return 0; |
| 20803 | } |
| 20804 | _ACEOF |
| 20805 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20806 | if { (ac_try="$ac_compile" |
| 20807 | case "(($ac_try" in |
| 20808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20809 | *) ac_try_echo=$ac_try;; |
| 20810 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20812 | (eval "$ac_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20813 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20815 | rm -f conftest.er1 |
| 20816 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20818 | (exit $ac_status); } && { |
| 20819 | test -z "$ac_c_werror_flag" || |
| 20820 | test ! -s conftest.err |
| 20821 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20822 | |
| 20823 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20824 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20825 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20826 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20827 | |
| 20828 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20831 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20832 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20833 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20834 | |
| 20835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20836 | |
| 20837 | fi |
| 20838 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20840 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20841 | for ac_func in gettimeofday |
| 20842 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20843 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20844 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20845 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20846 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20848 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20849 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20850 | /* confdefs.h. */ |
| 20851 | _ACEOF |
| 20852 | cat confdefs.h >>conftest.$ac_ext |
| 20853 | cat >>conftest.$ac_ext <<_ACEOF |
| 20854 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20855 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20856 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20857 | #define $ac_func innocuous_$ac_func |
| 20858 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20859 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20860 | which can conflict with char $ac_func (); below. |
| 20861 | 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] | 20862 | <limits.h> exists even on freestanding compilers. */ |
| 20863 | |
| 20864 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20865 | # include <limits.h> |
| 20866 | #else |
| 20867 | # include <assert.h> |
| 20868 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20869 | |
| 20870 | #undef $ac_func |
| 20871 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20872 | /* Override any GCC internal prototype to avoid an error. |
| 20873 | Use char because int might match the return type of a GCC |
| 20874 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20875 | #ifdef __cplusplus |
| 20876 | extern "C" |
| 20877 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20878 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20879 | /* The GNU C library defines this for functions which it implements |
| 20880 | to always fail with ENOSYS. Some functions are actually named |
| 20881 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20882 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20883 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20884 | #endif |
| 20885 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20886 | int |
| 20887 | main () |
| 20888 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20889 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20890 | ; |
| 20891 | return 0; |
| 20892 | } |
| 20893 | _ACEOF |
| 20894 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20895 | if { (ac_try="$ac_link" |
| 20896 | case "(($ac_try" in |
| 20897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20898 | *) ac_try_echo=$ac_try;; |
| 20899 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20901 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20902 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20904 | rm -f conftest.er1 |
| 20905 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20907 | (exit $ac_status); } && { |
| 20908 | test -z "$ac_c_werror_flag" || |
| 20909 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20910 | } && test -s conftest$ac_exeext && |
| 20911 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20912 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20913 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20914 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20916 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20917 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20918 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20919 | |
| 20920 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20921 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20922 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20923 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20924 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20925 | echo "${ECHO_T}$ac_res" >&6; } |
| 20926 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20927 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20928 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20929 | _ACEOF |
| 20930 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20931 | /* confdefs.h. */ |
| 20932 | _ACEOF |
| 20933 | cat confdefs.h >>conftest.$ac_ext |
| 20934 | cat >>conftest.$ac_ext <<_ACEOF |
| 20935 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20936 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20937 | int |
| 20938 | main () |
| 20939 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20940 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20941 | ; |
| 20942 | return 0; |
| 20943 | } |
| 20944 | _ACEOF |
| 20945 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20946 | if { (ac_try="$ac_compile" |
| 20947 | case "(($ac_try" in |
| 20948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20949 | *) ac_try_echo=$ac_try;; |
| 20950 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20952 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20953 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20954 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20955 | rm -f conftest.er1 |
| 20956 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20958 | (exit $ac_status); } && { |
| 20959 | test -z "$ac_c_werror_flag" || |
| 20960 | test ! -s conftest.err |
| 20961 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20962 | : |
| 20963 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20964 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20967 | |
| 20968 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20969 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20970 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20971 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20972 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20973 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20974 | |
| 20975 | 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] | 20976 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20977 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20978 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20979 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20980 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20981 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 20982 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20983 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20984 | /* confdefs.h. */ |
| 20985 | _ACEOF |
| 20986 | cat confdefs.h >>conftest.$ac_ext |
| 20987 | cat >>conftest.$ac_ext <<_ACEOF |
| 20988 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20989 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 20990 | #if defined(MAJOR_IN_MKDEV) |
| 20991 | #include <sys/mkdev.h> |
| 20992 | #elif defined(MAJOR_IN_SYSMACROS) |
| 20993 | #include <sys/sysmacros.h> |
| 20994 | #else |
| 20995 | #include <sys/types.h> |
| 20996 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20997 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20998 | int |
| 20999 | main () |
| 21000 | { |
| 21001 | |
| 21002 | makedev(major(0),minor(0)); |
| 21003 | |
| 21004 | ; |
| 21005 | return 0; |
| 21006 | } |
| 21007 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 21008 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21009 | if { (ac_try="$ac_link" |
| 21010 | case "(($ac_try" in |
| 21011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21012 | *) ac_try_echo=$ac_try;; |
| 21013 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21015 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21016 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21018 | rm -f conftest.er1 |
| 21019 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21021 | (exit $ac_status); } && { |
| 21022 | test -z "$ac_c_werror_flag" || |
| 21023 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21024 | } && test -s conftest$ac_exeext && |
| 21025 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21026 | |
| 21027 | |
| 21028 | cat >>confdefs.h <<\_ACEOF |
| 21029 | #define HAVE_DEVICE_MACROS 1 |
| 21030 | _ACEOF |
| 21031 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21032 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21033 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21034 | |
| 21035 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21038 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21039 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21040 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21041 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 21042 | |
| 21043 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21044 | |
| 21045 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21046 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21047 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21048 | # 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] | 21049 | # for [no]getaddrinfo in netdb.h. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21050 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 21051 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21052 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21053 | /* confdefs.h. */ |
| 21054 | _ACEOF |
| 21055 | cat confdefs.h >>conftest.$ac_ext |
| 21056 | cat >>conftest.$ac_ext <<_ACEOF |
| 21057 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21058 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 21059 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21060 | #include <sys/socket.h> |
| 21061 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 21062 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21064 | int |
| 21065 | main () |
| 21066 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21067 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21068 | ; |
| 21069 | return 0; |
| 21070 | } |
| 21071 | _ACEOF |
| 21072 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21073 | if { (ac_try="$ac_link" |
| 21074 | case "(($ac_try" in |
| 21075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21076 | *) ac_try_echo=$ac_try;; |
| 21077 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21079 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21080 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21082 | rm -f conftest.er1 |
| 21083 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21085 | (exit $ac_status); } && { |
| 21086 | test -z "$ac_c_werror_flag" || |
| 21087 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21088 | } && test -s conftest$ac_exeext && |
| 21089 | $as_test_x conftest$ac_exeext; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21090 | have_getaddrinfo=yes |
| 21091 | else |
| 21092 | echo "$as_me: failed program was:" >&5 |
| 21093 | sed 's/^/| /' conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21094 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21095 | have_getaddrinfo=no |
| 21096 | fi |
| 21097 | |
| 21098 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21099 | conftest$ac_exeext conftest.$ac_ext |
| 21100 | { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5 |
| 21101 | echo "${ECHO_T}$have_getaddrinfo" >&6; } |
| 21102 | if test $have_getaddrinfo = yes |
| 21103 | then |
| 21104 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21105 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21106 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then |
| 21107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21108 | else |
| 21109 | if test "$cross_compiling" = yes; then |
| 21110 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21112 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21113 | /* confdefs.h. */ |
| 21114 | _ACEOF |
| 21115 | cat confdefs.h >>conftest.$ac_ext |
| 21116 | cat >>conftest.$ac_ext <<_ACEOF |
| 21117 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21118 | |
| 21119 | #include <sys/types.h> |
| 21120 | #include <netdb.h> |
| 21121 | #include <string.h> |
| 21122 | #include <sys/socket.h> |
| 21123 | #include <netinet/in.h> |
| 21124 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21125 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21126 | { |
| 21127 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 21128 | struct addrinfo hints, *ai, *aitop; |
| 21129 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 21130 | |
| 21131 | for (passive = 0; passive <= 1; passive++) { |
| 21132 | memset(&hints, 0, sizeof(hints)); |
| 21133 | hints.ai_family = AF_UNSPEC; |
| 21134 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 21135 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 21136 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21137 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 21138 | (void)gai_strerror(gaierr); |
| 21139 | goto bad; |
| 21140 | } |
| 21141 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 21142 | if (ai->ai_addr == NULL || |
| 21143 | ai->ai_addrlen == 0 || |
| 21144 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 21145 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 21146 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 21147 | goto bad; |
| 21148 | } |
| 21149 | switch (ai->ai_family) { |
| 21150 | case AF_INET: |
| 21151 | if (strcmp(strport, "54321") != 0) { |
| 21152 | goto bad; |
| 21153 | } |
| 21154 | if (passive) { |
| 21155 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 21156 | goto bad; |
| 21157 | } |
| 21158 | } else { |
| 21159 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 21160 | goto bad; |
| 21161 | } |
| 21162 | } |
| 21163 | inet4++; |
| 21164 | break; |
| 21165 | case AF_INET6: |
| 21166 | if (strcmp(strport, "54321") != 0) { |
| 21167 | goto bad; |
| 21168 | } |
| 21169 | if (passive) { |
| 21170 | if (strcmp(straddr, "::") != 0) { |
| 21171 | goto bad; |
| 21172 | } |
| 21173 | } else { |
| 21174 | if (strcmp(straddr, "::1") != 0) { |
| 21175 | goto bad; |
| 21176 | } |
| 21177 | } |
| 21178 | inet6++; |
| 21179 | break; |
| 21180 | case AF_UNSPEC: |
| 21181 | goto bad; |
| 21182 | break; |
| 21183 | default: |
| 21184 | /* another family support? */ |
| 21185 | break; |
| 21186 | } |
| 21187 | } |
| 21188 | } |
| 21189 | |
| 21190 | if (!(inet4 == 0 || inet4 == 2)) |
| 21191 | goto bad; |
| 21192 | if (!(inet6 == 0 || inet6 == 2)) |
| 21193 | goto bad; |
| 21194 | |
| 21195 | if (aitop) |
| 21196 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21197 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21198 | |
| 21199 | bad: |
| 21200 | if (aitop) |
| 21201 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21202 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21203 | } |
| 21204 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21205 | _ACEOF |
| 21206 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21207 | if { (ac_try="$ac_link" |
| 21208 | case "(($ac_try" in |
| 21209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21210 | *) ac_try_echo=$ac_try;; |
| 21211 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21213 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21214 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21216 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21217 | { (case "(($ac_try" in |
| 21218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21219 | *) ac_try_echo=$ac_try;; |
| 21220 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21222 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21223 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21225 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21226 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21227 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21228 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21229 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21232 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21233 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21234 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21235 | 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] | 21236 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21237 | |
| 21238 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21239 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21240 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21241 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21242 | |
Mark Dickinson | 0ef0b91 | 2009-12-31 21:11:48 +0000 | [diff] [blame] | 21243 | if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 21244 | then |
| 21245 | if test $ipv6 = yes |
| 21246 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21247 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 21248 | echo ' or you can specify "--disable-ipv6"'. |
| 21249 | exit 1 |
| 21250 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21251 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21252 | |
| 21253 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21254 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21255 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 21256 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21257 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21258 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 21259 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21260 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21261 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21262 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21263 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21264 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21267 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21268 | /* confdefs.h. */ |
| 21269 | _ACEOF |
| 21270 | cat confdefs.h >>conftest.$ac_ext |
| 21271 | cat >>conftest.$ac_ext <<_ACEOF |
| 21272 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21273 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21274 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21275 | #define $ac_func innocuous_$ac_func |
| 21276 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21277 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21278 | which can conflict with char $ac_func (); below. |
| 21279 | 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] | 21280 | <limits.h> exists even on freestanding compilers. */ |
| 21281 | |
| 21282 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21283 | # include <limits.h> |
| 21284 | #else |
| 21285 | # include <assert.h> |
| 21286 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 21287 | |
| 21288 | #undef $ac_func |
| 21289 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21290 | /* Override any GCC internal prototype to avoid an error. |
| 21291 | Use char because int might match the return type of a GCC |
| 21292 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21293 | #ifdef __cplusplus |
| 21294 | extern "C" |
| 21295 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21296 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21297 | /* The GNU C library defines this for functions which it implements |
| 21298 | to always fail with ENOSYS. Some functions are actually named |
| 21299 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21300 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21301 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21302 | #endif |
| 21303 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21304 | int |
| 21305 | main () |
| 21306 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21307 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21308 | ; |
| 21309 | return 0; |
| 21310 | } |
| 21311 | _ACEOF |
| 21312 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21313 | if { (ac_try="$ac_link" |
| 21314 | case "(($ac_try" in |
| 21315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21316 | *) ac_try_echo=$ac_try;; |
| 21317 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21319 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21320 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21322 | rm -f conftest.er1 |
| 21323 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21325 | (exit $ac_status); } && { |
| 21326 | test -z "$ac_c_werror_flag" || |
| 21327 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21328 | } && test -s conftest$ac_exeext && |
| 21329 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21330 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21331 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21332 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21334 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21335 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21336 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21337 | |
| 21338 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21339 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21340 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21341 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21342 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21343 | echo "${ECHO_T}$ac_res" >&6; } |
| 21344 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21345 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21346 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21347 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21348 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 21349 | fi |
| 21350 | done |
| 21351 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21352 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21353 | # checks for structures |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21354 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 21355 | 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] | 21356 | if test "${ac_cv_header_time+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21358 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21359 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21360 | /* confdefs.h. */ |
| 21361 | _ACEOF |
| 21362 | cat confdefs.h >>conftest.$ac_ext |
| 21363 | cat >>conftest.$ac_ext <<_ACEOF |
| 21364 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21365 | #include <sys/types.h> |
| 21366 | #include <sys/time.h> |
| 21367 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21369 | int |
| 21370 | main () |
| 21371 | { |
| 21372 | if ((struct tm *) 0) |
| 21373 | return 0; |
| 21374 | ; |
| 21375 | return 0; |
| 21376 | } |
| 21377 | _ACEOF |
| 21378 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21379 | if { (ac_try="$ac_compile" |
| 21380 | case "(($ac_try" in |
| 21381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21382 | *) ac_try_echo=$ac_try;; |
| 21383 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21385 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21386 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21388 | rm -f conftest.er1 |
| 21389 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21391 | (exit $ac_status); } && { |
| 21392 | test -z "$ac_c_werror_flag" || |
| 21393 | test ! -s conftest.err |
| 21394 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21395 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21396 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21397 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21399 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21400 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21401 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21402 | |
| 21403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21404 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21405 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 21406 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21407 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21408 | |
| 21409 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21410 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21411 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21412 | |
| 21413 | fi |
| 21414 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21415 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 21416 | 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] | 21417 | if test "${ac_cv_struct_tm+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21419 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21420 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21421 | /* confdefs.h. */ |
| 21422 | _ACEOF |
| 21423 | cat confdefs.h >>conftest.$ac_ext |
| 21424 | cat >>conftest.$ac_ext <<_ACEOF |
| 21425 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21426 | #include <sys/types.h> |
| 21427 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21428 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21429 | int |
| 21430 | main () |
| 21431 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21432 | struct tm tm; |
| 21433 | int *p = &tm.tm_sec; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21434 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21435 | ; |
| 21436 | return 0; |
| 21437 | } |
| 21438 | _ACEOF |
| 21439 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21440 | if { (ac_try="$ac_compile" |
| 21441 | case "(($ac_try" in |
| 21442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21443 | *) ac_try_echo=$ac_try;; |
| 21444 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21446 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21447 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21449 | rm -f conftest.er1 |
| 21450 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21452 | (exit $ac_status); } && { |
| 21453 | test -z "$ac_c_werror_flag" || |
| 21454 | test ! -s conftest.err |
| 21455 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21456 | ac_cv_struct_tm=time.h |
| 21457 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21458 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21460 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21461 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21462 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21463 | |
| 21464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21465 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21466 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 21467 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21468 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21469 | |
| 21470 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21471 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21472 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21473 | |
| 21474 | fi |
| 21475 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21476 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 21477 | 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] | 21478 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21481 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21482 | /* confdefs.h. */ |
| 21483 | _ACEOF |
| 21484 | cat confdefs.h >>conftest.$ac_ext |
| 21485 | cat >>conftest.$ac_ext <<_ACEOF |
| 21486 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21487 | #include <sys/types.h> |
| 21488 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21489 | |
| 21490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21491 | int |
| 21492 | main () |
| 21493 | { |
| 21494 | static struct tm ac_aggr; |
| 21495 | if (ac_aggr.tm_zone) |
| 21496 | return 0; |
| 21497 | ; |
| 21498 | return 0; |
| 21499 | } |
| 21500 | _ACEOF |
| 21501 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21502 | if { (ac_try="$ac_compile" |
| 21503 | case "(($ac_try" in |
| 21504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21505 | *) ac_try_echo=$ac_try;; |
| 21506 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21508 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21509 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21511 | rm -f conftest.er1 |
| 21512 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21514 | (exit $ac_status); } && { |
| 21515 | test -z "$ac_c_werror_flag" || |
| 21516 | test ! -s conftest.err |
| 21517 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21518 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21519 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21520 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21522 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21523 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21524 | /* confdefs.h. */ |
| 21525 | _ACEOF |
| 21526 | cat confdefs.h >>conftest.$ac_ext |
| 21527 | cat >>conftest.$ac_ext <<_ACEOF |
| 21528 | /* end confdefs.h. */ |
| 21529 | #include <sys/types.h> |
| 21530 | #include <$ac_cv_struct_tm> |
| 21531 | |
| 21532 | |
| 21533 | int |
| 21534 | main () |
| 21535 | { |
| 21536 | static struct tm ac_aggr; |
| 21537 | if (sizeof ac_aggr.tm_zone) |
| 21538 | return 0; |
| 21539 | ; |
| 21540 | return 0; |
| 21541 | } |
| 21542 | _ACEOF |
| 21543 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21544 | if { (ac_try="$ac_compile" |
| 21545 | case "(($ac_try" in |
| 21546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21547 | *) ac_try_echo=$ac_try;; |
| 21548 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21550 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21551 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21553 | rm -f conftest.er1 |
| 21554 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21556 | (exit $ac_status); } && { |
| 21557 | test -z "$ac_c_werror_flag" || |
| 21558 | test ! -s conftest.err |
| 21559 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21560 | ac_cv_member_struct_tm_tm_zone=yes |
| 21561 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21562 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21564 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21565 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21566 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21567 | |
| 21568 | 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] | 21569 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21570 | |
| 21571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21572 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21573 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 21574 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 21575 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21576 | |
| 21577 | cat >>confdefs.h <<_ACEOF |
| 21578 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21579 | _ACEOF |
| 21580 | |
| 21581 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21582 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21584 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21585 | |
| 21586 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21587 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21588 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21589 | |
| 21590 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21591 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 21592 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21593 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21595 | else |
| 21596 | cat >conftest.$ac_ext <<_ACEOF |
| 21597 | /* confdefs.h. */ |
| 21598 | _ACEOF |
| 21599 | cat confdefs.h >>conftest.$ac_ext |
| 21600 | cat >>conftest.$ac_ext <<_ACEOF |
| 21601 | /* end confdefs.h. */ |
| 21602 | #include <time.h> |
| 21603 | |
| 21604 | int |
| 21605 | main () |
| 21606 | { |
| 21607 | #ifndef tzname |
| 21608 | (void) tzname; |
| 21609 | #endif |
| 21610 | |
| 21611 | ; |
| 21612 | return 0; |
| 21613 | } |
| 21614 | _ACEOF |
| 21615 | rm -f conftest.$ac_objext |
| 21616 | if { (ac_try="$ac_compile" |
| 21617 | case "(($ac_try" in |
| 21618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21619 | *) ac_try_echo=$ac_try;; |
| 21620 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21622 | (eval "$ac_compile") 2>conftest.er1 |
| 21623 | ac_status=$? |
| 21624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21625 | rm -f conftest.er1 |
| 21626 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21628 | (exit $ac_status); } && { |
| 21629 | test -z "$ac_c_werror_flag" || |
| 21630 | test ! -s conftest.err |
| 21631 | } && test -s conftest.$ac_objext; then |
| 21632 | ac_cv_have_decl_tzname=yes |
| 21633 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21634 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21636 | |
| 21637 | ac_cv_have_decl_tzname=no |
| 21638 | fi |
| 21639 | |
| 21640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21641 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21642 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 21643 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 21644 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21645 | |
| 21646 | cat >>confdefs.h <<_ACEOF |
| 21647 | #define HAVE_DECL_TZNAME 1 |
| 21648 | _ACEOF |
| 21649 | |
| 21650 | |
| 21651 | else |
| 21652 | cat >>confdefs.h <<_ACEOF |
| 21653 | #define HAVE_DECL_TZNAME 0 |
| 21654 | _ACEOF |
| 21655 | |
| 21656 | |
| 21657 | fi |
| 21658 | |
| 21659 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21660 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 21661 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21662 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21664 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21665 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21666 | /* confdefs.h. */ |
| 21667 | _ACEOF |
| 21668 | cat confdefs.h >>conftest.$ac_ext |
| 21669 | cat >>conftest.$ac_ext <<_ACEOF |
| 21670 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21671 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21672 | #if !HAVE_DECL_TZNAME |
| 21673 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21674 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21676 | int |
| 21677 | main () |
| 21678 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21679 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21680 | ; |
| 21681 | return 0; |
| 21682 | } |
| 21683 | _ACEOF |
| 21684 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21685 | if { (ac_try="$ac_link" |
| 21686 | case "(($ac_try" in |
| 21687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21688 | *) ac_try_echo=$ac_try;; |
| 21689 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21691 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21692 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21694 | rm -f conftest.er1 |
| 21695 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21697 | (exit $ac_status); } && { |
| 21698 | test -z "$ac_c_werror_flag" || |
| 21699 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21700 | } && test -s conftest$ac_exeext && |
| 21701 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21702 | ac_cv_var_tzname=yes |
| 21703 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21704 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21706 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21707 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21708 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21709 | |
| 21710 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21711 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21712 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21713 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 21714 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21715 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21716 | |
| 21717 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21718 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21719 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21720 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21721 | fi |
| 21722 | fi |
| 21723 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21724 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 21725 | 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] | 21726 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21728 | else |
| 21729 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21730 | /* confdefs.h. */ |
| 21731 | _ACEOF |
| 21732 | cat confdefs.h >>conftest.$ac_ext |
| 21733 | cat >>conftest.$ac_ext <<_ACEOF |
| 21734 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21735 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21736 | int |
| 21737 | main () |
| 21738 | { |
| 21739 | static struct stat ac_aggr; |
| 21740 | if (ac_aggr.st_rdev) |
| 21741 | return 0; |
| 21742 | ; |
| 21743 | return 0; |
| 21744 | } |
| 21745 | _ACEOF |
| 21746 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21747 | if { (ac_try="$ac_compile" |
| 21748 | case "(($ac_try" in |
| 21749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21750 | *) ac_try_echo=$ac_try;; |
| 21751 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21753 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21754 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21756 | rm -f conftest.er1 |
| 21757 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21759 | (exit $ac_status); } && { |
| 21760 | test -z "$ac_c_werror_flag" || |
| 21761 | test ! -s conftest.err |
| 21762 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21763 | ac_cv_member_struct_stat_st_rdev=yes |
| 21764 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21765 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21767 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21768 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21769 | /* confdefs.h. */ |
| 21770 | _ACEOF |
| 21771 | cat confdefs.h >>conftest.$ac_ext |
| 21772 | cat >>conftest.$ac_ext <<_ACEOF |
| 21773 | /* end confdefs.h. */ |
| 21774 | $ac_includes_default |
| 21775 | int |
| 21776 | main () |
| 21777 | { |
| 21778 | static struct stat ac_aggr; |
| 21779 | if (sizeof ac_aggr.st_rdev) |
| 21780 | return 0; |
| 21781 | ; |
| 21782 | return 0; |
| 21783 | } |
| 21784 | _ACEOF |
| 21785 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21786 | if { (ac_try="$ac_compile" |
| 21787 | case "(($ac_try" in |
| 21788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21789 | *) ac_try_echo=$ac_try;; |
| 21790 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21792 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21793 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21795 | rm -f conftest.er1 |
| 21796 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21798 | (exit $ac_status); } && { |
| 21799 | test -z "$ac_c_werror_flag" || |
| 21800 | test ! -s conftest.err |
| 21801 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21802 | ac_cv_member_struct_stat_st_rdev=yes |
| 21803 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21804 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21806 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21807 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21808 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21809 | |
| 21810 | 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] | 21811 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21812 | |
| 21813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21814 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21815 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 21816 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 21817 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21818 | |
| 21819 | cat >>confdefs.h <<_ACEOF |
| 21820 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 21821 | _ACEOF |
| 21822 | |
| 21823 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21824 | fi |
| 21825 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21826 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 21827 | 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] | 21828 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21830 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21831 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21832 | /* confdefs.h. */ |
| 21833 | _ACEOF |
| 21834 | cat confdefs.h >>conftest.$ac_ext |
| 21835 | cat >>conftest.$ac_ext <<_ACEOF |
| 21836 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21837 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21838 | int |
| 21839 | main () |
| 21840 | { |
| 21841 | static struct stat ac_aggr; |
| 21842 | if (ac_aggr.st_blksize) |
| 21843 | return 0; |
| 21844 | ; |
| 21845 | return 0; |
| 21846 | } |
| 21847 | _ACEOF |
| 21848 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21849 | if { (ac_try="$ac_compile" |
| 21850 | case "(($ac_try" in |
| 21851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21852 | *) ac_try_echo=$ac_try;; |
| 21853 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21855 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21856 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21858 | rm -f conftest.er1 |
| 21859 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21861 | (exit $ac_status); } && { |
| 21862 | test -z "$ac_c_werror_flag" || |
| 21863 | test ! -s conftest.err |
| 21864 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21865 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21866 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21867 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21869 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21870 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21871 | /* confdefs.h. */ |
| 21872 | _ACEOF |
| 21873 | cat confdefs.h >>conftest.$ac_ext |
| 21874 | cat >>conftest.$ac_ext <<_ACEOF |
| 21875 | /* end confdefs.h. */ |
| 21876 | $ac_includes_default |
| 21877 | int |
| 21878 | main () |
| 21879 | { |
| 21880 | static struct stat ac_aggr; |
| 21881 | if (sizeof ac_aggr.st_blksize) |
| 21882 | return 0; |
| 21883 | ; |
| 21884 | return 0; |
| 21885 | } |
| 21886 | _ACEOF |
| 21887 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21888 | if { (ac_try="$ac_compile" |
| 21889 | case "(($ac_try" in |
| 21890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21891 | *) ac_try_echo=$ac_try;; |
| 21892 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21894 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21895 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21897 | rm -f conftest.er1 |
| 21898 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21900 | (exit $ac_status); } && { |
| 21901 | test -z "$ac_c_werror_flag" || |
| 21902 | test ! -s conftest.err |
| 21903 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21904 | ac_cv_member_struct_stat_st_blksize=yes |
| 21905 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21906 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21908 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21909 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21910 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21911 | |
| 21912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21913 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21914 | |
| 21915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21916 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21917 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 21918 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 21919 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21921 | cat >>confdefs.h <<_ACEOF |
| 21922 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 21923 | _ACEOF |
| 21924 | |
| 21925 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21926 | fi |
| 21927 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21928 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 21929 | 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] | 21930 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21932 | else |
| 21933 | cat >conftest.$ac_ext <<_ACEOF |
| 21934 | /* confdefs.h. */ |
| 21935 | _ACEOF |
| 21936 | cat confdefs.h >>conftest.$ac_ext |
| 21937 | cat >>conftest.$ac_ext <<_ACEOF |
| 21938 | /* end confdefs.h. */ |
| 21939 | $ac_includes_default |
| 21940 | int |
| 21941 | main () |
| 21942 | { |
| 21943 | static struct stat ac_aggr; |
| 21944 | if (ac_aggr.st_flags) |
| 21945 | return 0; |
| 21946 | ; |
| 21947 | return 0; |
| 21948 | } |
| 21949 | _ACEOF |
| 21950 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21951 | if { (ac_try="$ac_compile" |
| 21952 | case "(($ac_try" in |
| 21953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21954 | *) ac_try_echo=$ac_try;; |
| 21955 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21957 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21958 | ac_status=$? |
| 21959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21960 | rm -f conftest.er1 |
| 21961 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21963 | (exit $ac_status); } && { |
| 21964 | test -z "$ac_c_werror_flag" || |
| 21965 | test ! -s conftest.err |
| 21966 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21967 | ac_cv_member_struct_stat_st_flags=yes |
| 21968 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21969 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21971 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21972 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21973 | /* confdefs.h. */ |
| 21974 | _ACEOF |
| 21975 | cat confdefs.h >>conftest.$ac_ext |
| 21976 | cat >>conftest.$ac_ext <<_ACEOF |
| 21977 | /* end confdefs.h. */ |
| 21978 | $ac_includes_default |
| 21979 | int |
| 21980 | main () |
| 21981 | { |
| 21982 | static struct stat ac_aggr; |
| 21983 | if (sizeof ac_aggr.st_flags) |
| 21984 | return 0; |
| 21985 | ; |
| 21986 | return 0; |
| 21987 | } |
| 21988 | _ACEOF |
| 21989 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21990 | if { (ac_try="$ac_compile" |
| 21991 | case "(($ac_try" in |
| 21992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21993 | *) ac_try_echo=$ac_try;; |
| 21994 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21996 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21997 | ac_status=$? |
| 21998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21999 | rm -f conftest.er1 |
| 22000 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22002 | (exit $ac_status); } && { |
| 22003 | test -z "$ac_c_werror_flag" || |
| 22004 | test ! -s conftest.err |
| 22005 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22006 | ac_cv_member_struct_stat_st_flags=yes |
| 22007 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22008 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22010 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22011 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22012 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22013 | |
| 22014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22015 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22016 | |
| 22017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22018 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22019 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 22020 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
| 22021 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 22022 | |
| 22023 | cat >>confdefs.h <<_ACEOF |
| 22024 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 22025 | _ACEOF |
| 22026 | |
| 22027 | |
| 22028 | fi |
| 22029 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22030 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 22031 | 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] | 22032 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22034 | else |
| 22035 | cat >conftest.$ac_ext <<_ACEOF |
| 22036 | /* confdefs.h. */ |
| 22037 | _ACEOF |
| 22038 | cat confdefs.h >>conftest.$ac_ext |
| 22039 | cat >>conftest.$ac_ext <<_ACEOF |
| 22040 | /* end confdefs.h. */ |
| 22041 | $ac_includes_default |
| 22042 | int |
| 22043 | main () |
| 22044 | { |
| 22045 | static struct stat ac_aggr; |
| 22046 | if (ac_aggr.st_gen) |
| 22047 | return 0; |
| 22048 | ; |
| 22049 | return 0; |
| 22050 | } |
| 22051 | _ACEOF |
| 22052 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22053 | if { (ac_try="$ac_compile" |
| 22054 | case "(($ac_try" in |
| 22055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22056 | *) ac_try_echo=$ac_try;; |
| 22057 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22059 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22060 | ac_status=$? |
| 22061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22062 | rm -f conftest.er1 |
| 22063 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22065 | (exit $ac_status); } && { |
| 22066 | test -z "$ac_c_werror_flag" || |
| 22067 | test ! -s conftest.err |
| 22068 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22069 | ac_cv_member_struct_stat_st_gen=yes |
| 22070 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22071 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22073 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22074 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22075 | /* confdefs.h. */ |
| 22076 | _ACEOF |
| 22077 | cat confdefs.h >>conftest.$ac_ext |
| 22078 | cat >>conftest.$ac_ext <<_ACEOF |
| 22079 | /* end confdefs.h. */ |
| 22080 | $ac_includes_default |
| 22081 | int |
| 22082 | main () |
| 22083 | { |
| 22084 | static struct stat ac_aggr; |
| 22085 | if (sizeof ac_aggr.st_gen) |
| 22086 | return 0; |
| 22087 | ; |
| 22088 | return 0; |
| 22089 | } |
| 22090 | _ACEOF |
| 22091 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22092 | if { (ac_try="$ac_compile" |
| 22093 | case "(($ac_try" in |
| 22094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22095 | *) ac_try_echo=$ac_try;; |
| 22096 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22098 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22099 | ac_status=$? |
| 22100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22101 | rm -f conftest.er1 |
| 22102 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22104 | (exit $ac_status); } && { |
| 22105 | test -z "$ac_c_werror_flag" || |
| 22106 | test ! -s conftest.err |
| 22107 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22108 | ac_cv_member_struct_stat_st_gen=yes |
| 22109 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22110 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22112 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22113 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22114 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22115 | |
| 22116 | 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] | 22117 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22118 | |
| 22119 | 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] | 22120 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22121 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 22122 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
| 22123 | if test $ac_cv_member_struct_stat_st_gen = yes; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22124 | |
| 22125 | cat >>confdefs.h <<_ACEOF |
| 22126 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 22127 | _ACEOF |
| 22128 | |
| 22129 | |
| 22130 | fi |
| 22131 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22132 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 22133 | 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] | 22134 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22136 | else |
| 22137 | cat >conftest.$ac_ext <<_ACEOF |
| 22138 | /* confdefs.h. */ |
| 22139 | _ACEOF |
| 22140 | cat confdefs.h >>conftest.$ac_ext |
| 22141 | cat >>conftest.$ac_ext <<_ACEOF |
| 22142 | /* end confdefs.h. */ |
| 22143 | $ac_includes_default |
| 22144 | int |
| 22145 | main () |
| 22146 | { |
| 22147 | static struct stat ac_aggr; |
| 22148 | if (ac_aggr.st_birthtime) |
| 22149 | return 0; |
| 22150 | ; |
| 22151 | return 0; |
| 22152 | } |
| 22153 | _ACEOF |
| 22154 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22155 | if { (ac_try="$ac_compile" |
| 22156 | case "(($ac_try" in |
| 22157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22158 | *) ac_try_echo=$ac_try;; |
| 22159 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22161 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22162 | ac_status=$? |
| 22163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22164 | rm -f conftest.er1 |
| 22165 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22167 | (exit $ac_status); } && { |
| 22168 | test -z "$ac_c_werror_flag" || |
| 22169 | test ! -s conftest.err |
| 22170 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22171 | ac_cv_member_struct_stat_st_birthtime=yes |
| 22172 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22173 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22175 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22176 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22177 | /* confdefs.h. */ |
| 22178 | _ACEOF |
| 22179 | cat confdefs.h >>conftest.$ac_ext |
| 22180 | cat >>conftest.$ac_ext <<_ACEOF |
| 22181 | /* end confdefs.h. */ |
| 22182 | $ac_includes_default |
| 22183 | int |
| 22184 | main () |
| 22185 | { |
| 22186 | static struct stat ac_aggr; |
| 22187 | if (sizeof ac_aggr.st_birthtime) |
| 22188 | return 0; |
| 22189 | ; |
| 22190 | return 0; |
| 22191 | } |
| 22192 | _ACEOF |
| 22193 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22194 | if { (ac_try="$ac_compile" |
| 22195 | case "(($ac_try" in |
| 22196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22197 | *) ac_try_echo=$ac_try;; |
| 22198 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22200 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22201 | ac_status=$? |
| 22202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22203 | rm -f conftest.er1 |
| 22204 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22206 | (exit $ac_status); } && { |
| 22207 | test -z "$ac_c_werror_flag" || |
| 22208 | test ! -s conftest.err |
| 22209 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22210 | ac_cv_member_struct_stat_st_birthtime=yes |
| 22211 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22212 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22214 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22215 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22216 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22217 | |
| 22218 | 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] | 22219 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22220 | |
| 22221 | 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] | 22222 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22223 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 22224 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 22225 | if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 22226 | |
| 22227 | cat >>confdefs.h <<_ACEOF |
| 22228 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 22229 | _ACEOF |
| 22230 | |
| 22231 | |
| 22232 | fi |
| 22233 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22234 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 22235 | 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] | 22236 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22238 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22239 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22240 | /* confdefs.h. */ |
| 22241 | _ACEOF |
| 22242 | cat confdefs.h >>conftest.$ac_ext |
| 22243 | cat >>conftest.$ac_ext <<_ACEOF |
| 22244 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22245 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22246 | int |
| 22247 | main () |
| 22248 | { |
| 22249 | static struct stat ac_aggr; |
| 22250 | if (ac_aggr.st_blocks) |
| 22251 | return 0; |
| 22252 | ; |
| 22253 | return 0; |
| 22254 | } |
| 22255 | _ACEOF |
| 22256 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22257 | if { (ac_try="$ac_compile" |
| 22258 | case "(($ac_try" in |
| 22259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22260 | *) ac_try_echo=$ac_try;; |
| 22261 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22263 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22264 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22266 | rm -f conftest.er1 |
| 22267 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22269 | (exit $ac_status); } && { |
| 22270 | test -z "$ac_c_werror_flag" || |
| 22271 | test ! -s conftest.err |
| 22272 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22273 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22274 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22275 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22277 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22278 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22279 | /* confdefs.h. */ |
| 22280 | _ACEOF |
| 22281 | cat confdefs.h >>conftest.$ac_ext |
| 22282 | cat >>conftest.$ac_ext <<_ACEOF |
| 22283 | /* end confdefs.h. */ |
| 22284 | $ac_includes_default |
| 22285 | int |
| 22286 | main () |
| 22287 | { |
| 22288 | static struct stat ac_aggr; |
| 22289 | if (sizeof ac_aggr.st_blocks) |
| 22290 | return 0; |
| 22291 | ; |
| 22292 | return 0; |
| 22293 | } |
| 22294 | _ACEOF |
| 22295 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22296 | if { (ac_try="$ac_compile" |
| 22297 | case "(($ac_try" in |
| 22298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22299 | *) ac_try_echo=$ac_try;; |
| 22300 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22302 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22303 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22305 | rm -f conftest.er1 |
| 22306 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22308 | (exit $ac_status); } && { |
| 22309 | test -z "$ac_c_werror_flag" || |
| 22310 | test ! -s conftest.err |
| 22311 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22312 | ac_cv_member_struct_stat_st_blocks=yes |
| 22313 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22314 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22316 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22317 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22318 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22319 | |
| 22320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22321 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22322 | |
| 22323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22324 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22325 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 22326 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 22327 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22329 | cat >>confdefs.h <<_ACEOF |
| 22330 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 22331 | _ACEOF |
| 22332 | |
| 22333 | |
| 22334 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22335 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22336 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22337 | |
| 22338 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22339 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22340 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22341 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 22342 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22343 | esac |
| 22344 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 22345 | fi |
| 22346 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22347 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22348 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22349 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 22350 | 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] | 22351 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22354 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22355 | /* confdefs.h. */ |
| 22356 | _ACEOF |
| 22357 | cat confdefs.h >>conftest.$ac_ext |
| 22358 | cat >>conftest.$ac_ext <<_ACEOF |
| 22359 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22360 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22361 | int |
| 22362 | main () |
| 22363 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22364 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22365 | ; |
| 22366 | return 0; |
| 22367 | } |
| 22368 | _ACEOF |
| 22369 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22370 | if { (ac_try="$ac_compile" |
| 22371 | case "(($ac_try" in |
| 22372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22373 | *) ac_try_echo=$ac_try;; |
| 22374 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22376 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22377 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22379 | rm -f conftest.er1 |
| 22380 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22382 | (exit $ac_status); } && { |
| 22383 | test -z "$ac_c_werror_flag" || |
| 22384 | test ! -s conftest.err |
| 22385 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22386 | ac_cv_header_time_altzone=yes |
| 22387 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22388 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22390 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22391 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22392 | fi |
| 22393 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22395 | fi |
| 22396 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22397 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 22398 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22399 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22400 | |
| 22401 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22402 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22403 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22404 | |
| 22405 | fi |
| 22406 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22407 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22408 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 22409 | 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] | 22410 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22411 | /* confdefs.h. */ |
| 22412 | _ACEOF |
| 22413 | cat confdefs.h >>conftest.$ac_ext |
| 22414 | cat >>conftest.$ac_ext <<_ACEOF |
| 22415 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22416 | |
| 22417 | #include <sys/types.h> |
| 22418 | #include <sys/select.h> |
| 22419 | #include <sys/time.h> |
| 22420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22421 | int |
| 22422 | main () |
| 22423 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22424 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22425 | ; |
| 22426 | return 0; |
| 22427 | } |
| 22428 | _ACEOF |
| 22429 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22430 | if { (ac_try="$ac_compile" |
| 22431 | case "(($ac_try" in |
| 22432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22433 | *) ac_try_echo=$ac_try;; |
| 22434 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22436 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22437 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22439 | rm -f conftest.er1 |
| 22440 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22442 | (exit $ac_status); } && { |
| 22443 | test -z "$ac_c_werror_flag" || |
| 22444 | test ! -s conftest.err |
| 22445 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22446 | |
| 22447 | |
| 22448 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22449 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22450 | _ACEOF |
| 22451 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22452 | was_it_defined=yes |
| 22453 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22454 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22455 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22457 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 22458 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22459 | fi |
| 22460 | |
| 22461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22462 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 22463 | echo "${ECHO_T}$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22464 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22465 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 22466 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22467 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22470 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22471 | /* confdefs.h. */ |
| 22472 | _ACEOF |
| 22473 | cat confdefs.h >>conftest.$ac_ext |
| 22474 | cat >>conftest.$ac_ext <<_ACEOF |
| 22475 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22476 | |
| 22477 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22478 | int |
| 22479 | main () |
| 22480 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22481 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22482 | ; |
| 22483 | return 0; |
| 22484 | } |
| 22485 | _ACEOF |
| 22486 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22487 | if { (ac_try="$ac_compile" |
| 22488 | case "(($ac_try" in |
| 22489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22490 | *) ac_try_echo=$ac_try;; |
| 22491 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22493 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22494 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22496 | rm -f conftest.er1 |
| 22497 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22499 | (exit $ac_status); } && { |
| 22500 | test -z "$ac_c_werror_flag" || |
| 22501 | test ! -s conftest.err |
| 22502 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22503 | ac_cv_struct_addrinfo=yes |
| 22504 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22505 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22507 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22508 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22509 | fi |
| 22510 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22512 | fi |
| 22513 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22514 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 22515 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22516 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22517 | |
| 22518 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22519 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22520 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22521 | |
| 22522 | fi |
| 22523 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22524 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 22525 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22526 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22529 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22530 | /* confdefs.h. */ |
| 22531 | _ACEOF |
| 22532 | cat confdefs.h >>conftest.$ac_ext |
| 22533 | cat >>conftest.$ac_ext <<_ACEOF |
| 22534 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22535 | |
| 22536 | # include <sys/types.h> |
| 22537 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22538 | int |
| 22539 | main () |
| 22540 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22541 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22542 | ; |
| 22543 | return 0; |
| 22544 | } |
| 22545 | _ACEOF |
| 22546 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22547 | if { (ac_try="$ac_compile" |
| 22548 | case "(($ac_try" in |
| 22549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22550 | *) ac_try_echo=$ac_try;; |
| 22551 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22553 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22554 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22556 | rm -f conftest.er1 |
| 22557 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22559 | (exit $ac_status); } && { |
| 22560 | test -z "$ac_c_werror_flag" || |
| 22561 | test ! -s conftest.err |
| 22562 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22563 | ac_cv_struct_sockaddr_storage=yes |
| 22564 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22565 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22567 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22568 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22569 | fi |
| 22570 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22572 | fi |
| 22573 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22574 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 22575 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22576 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22577 | |
| 22578 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22579 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22580 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22581 | |
| 22582 | fi |
| 22583 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22584 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22585 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22586 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22587 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 22588 | 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] | 22589 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22591 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22592 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22593 | /* confdefs.h. */ |
| 22594 | _ACEOF |
| 22595 | cat confdefs.h >>conftest.$ac_ext |
| 22596 | cat >>conftest.$ac_ext <<_ACEOF |
| 22597 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22598 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22599 | int |
| 22600 | main () |
| 22601 | { |
| 22602 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 22603 | test_array [0] = 0 |
| 22604 | |
| 22605 | ; |
| 22606 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22607 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22608 | _ACEOF |
| 22609 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22610 | if { (ac_try="$ac_compile" |
| 22611 | case "(($ac_try" in |
| 22612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22613 | *) ac_try_echo=$ac_try;; |
| 22614 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22616 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22617 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22619 | rm -f conftest.er1 |
| 22620 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22622 | (exit $ac_status); } && { |
| 22623 | test -z "$ac_c_werror_flag" || |
| 22624 | test ! -s conftest.err |
| 22625 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22626 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22627 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22628 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22630 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22631 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22632 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22633 | |
| 22634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22635 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22636 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 22637 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22638 | 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] | 22639 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22640 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22641 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22642 | |
| 22643 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22644 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22645 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 22646 | 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] | 22647 | if test "${ac_cv_c_const+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22649 | else |
| 22650 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22651 | /* confdefs.h. */ |
| 22652 | _ACEOF |
| 22653 | cat confdefs.h >>conftest.$ac_ext |
| 22654 | cat >>conftest.$ac_ext <<_ACEOF |
| 22655 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22657 | int |
| 22658 | main () |
| 22659 | { |
| 22660 | /* FIXME: Include the comments suggested by Paul. */ |
| 22661 | #ifndef __cplusplus |
| 22662 | /* Ultrix mips cc rejects this. */ |
| 22663 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22664 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22665 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22666 | char const *const *pcpcc; |
| 22667 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22668 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 22669 | struct point {int x, y;}; |
| 22670 | static struct point const zero = {0,0}; |
| 22671 | /* AIX XL C 1.02.0.0 rejects this. |
| 22672 | It does not let you subtract one const X* pointer from another in |
| 22673 | an arm of an if-expression whose if-part is not a constant |
| 22674 | expression */ |
| 22675 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22676 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22677 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22678 | ++pcpcc; |
| 22679 | ppc = (char**) pcpcc; |
| 22680 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22681 | { /* SCO 3.2v4 cc rejects this. */ |
| 22682 | char *t; |
| 22683 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22685 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22686 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22687 | } |
| 22688 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 22689 | int x[] = {25, 17}; |
| 22690 | const int *foo = &x[0]; |
| 22691 | ++foo; |
| 22692 | } |
| 22693 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 22694 | typedef const int *iptr; |
| 22695 | iptr p = 0; |
| 22696 | ++p; |
| 22697 | } |
| 22698 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 22699 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 22700 | struct s { int j; const int *ap[3]; }; |
| 22701 | struct s *b; b->j = 5; |
| 22702 | } |
| 22703 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 22704 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22705 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22706 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22707 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22708 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22710 | ; |
| 22711 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22712 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22713 | _ACEOF |
| 22714 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22715 | if { (ac_try="$ac_compile" |
| 22716 | case "(($ac_try" in |
| 22717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22718 | *) ac_try_echo=$ac_try;; |
| 22719 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22721 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22722 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22724 | rm -f conftest.er1 |
| 22725 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22727 | (exit $ac_status); } && { |
| 22728 | test -z "$ac_c_werror_flag" || |
| 22729 | test ! -s conftest.err |
| 22730 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22731 | ac_cv_c_const=yes |
| 22732 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22733 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22735 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22736 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22737 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22738 | |
| 22739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22740 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22741 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 22742 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22743 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22744 | |
| 22745 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22746 | #define const |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22747 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22748 | |
| 22749 | fi |
| 22750 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22751 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22752 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22753 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 22754 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22755 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22756 | /* confdefs.h. */ |
| 22757 | _ACEOF |
| 22758 | cat confdefs.h >>conftest.$ac_ext |
| 22759 | cat >>conftest.$ac_ext <<_ACEOF |
| 22760 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22761 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22762 | int |
| 22763 | main () |
| 22764 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22765 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22766 | ; |
| 22767 | return 0; |
| 22768 | } |
| 22769 | _ACEOF |
| 22770 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22771 | if { (ac_try="$ac_compile" |
| 22772 | case "(($ac_try" in |
| 22773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22774 | *) ac_try_echo=$ac_try;; |
| 22775 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22777 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22778 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22780 | rm -f conftest.er1 |
| 22781 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22783 | (exit $ac_status); } && { |
| 22784 | test -z "$ac_c_werror_flag" || |
| 22785 | test ! -s conftest.err |
| 22786 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22787 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22788 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22789 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22792 | |
| 22793 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22794 | #define volatile |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22795 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22796 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22797 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22798 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22799 | |
| 22800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22801 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22802 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22803 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22804 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22805 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 22806 | 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] | 22807 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22808 | /* confdefs.h. */ |
| 22809 | _ACEOF |
| 22810 | cat confdefs.h >>conftest.$ac_ext |
| 22811 | cat >>conftest.$ac_ext <<_ACEOF |
| 22812 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22814 | int |
| 22815 | main () |
| 22816 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22817 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22818 | ; |
| 22819 | return 0; |
| 22820 | } |
| 22821 | _ACEOF |
| 22822 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22823 | if { (ac_try="$ac_compile" |
| 22824 | case "(($ac_try" in |
| 22825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22826 | *) ac_try_echo=$ac_try;; |
| 22827 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22829 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22830 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22832 | rm -f conftest.er1 |
| 22833 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22835 | (exit $ac_status); } && { |
| 22836 | test -z "$ac_c_werror_flag" || |
| 22837 | test ! -s conftest.err |
| 22838 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22839 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22840 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22841 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22844 | |
| 22845 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22846 | #define signed |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22847 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22848 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22849 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22850 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22851 | |
| 22852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22853 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22854 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22855 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22856 | have_prototypes=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22857 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 22858 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22859 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22860 | /* confdefs.h. */ |
| 22861 | _ACEOF |
| 22862 | cat confdefs.h >>conftest.$ac_ext |
| 22863 | cat >>conftest.$ac_ext <<_ACEOF |
| 22864 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22865 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22866 | int |
| 22867 | main () |
| 22868 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22869 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22870 | ; |
| 22871 | return 0; |
| 22872 | } |
| 22873 | _ACEOF |
| 22874 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22875 | if { (ac_try="$ac_compile" |
| 22876 | case "(($ac_try" in |
| 22877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22878 | *) ac_try_echo=$ac_try;; |
| 22879 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22881 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22882 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22884 | rm -f conftest.er1 |
| 22885 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22887 | (exit $ac_status); } && { |
| 22888 | test -z "$ac_c_werror_flag" || |
| 22889 | test ! -s conftest.err |
| 22890 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22891 | |
| 22892 | |
| 22893 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22894 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22895 | _ACEOF |
| 22896 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22897 | have_prototypes=yes |
| 22898 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22899 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22900 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22902 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22903 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22904 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22905 | |
| 22906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22907 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 22908 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22909 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22910 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22911 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 22912 | 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] | 22913 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22914 | /* confdefs.h. */ |
| 22915 | _ACEOF |
| 22916 | cat confdefs.h >>conftest.$ac_ext |
| 22917 | cat >>conftest.$ac_ext <<_ACEOF |
| 22918 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22919 | |
| 22920 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22921 | int foo(int x, ...) { |
| 22922 | va_list va; |
| 22923 | va_start(va, x); |
| 22924 | va_arg(va, int); |
| 22925 | va_arg(va, char *); |
| 22926 | va_arg(va, double); |
| 22927 | return 0; |
| 22928 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22930 | int |
| 22931 | main () |
| 22932 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22933 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22934 | ; |
| 22935 | return 0; |
| 22936 | } |
| 22937 | _ACEOF |
| 22938 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22939 | if { (ac_try="$ac_compile" |
| 22940 | case "(($ac_try" in |
| 22941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22942 | *) ac_try_echo=$ac_try;; |
| 22943 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22945 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22946 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22948 | rm -f conftest.er1 |
| 22949 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22951 | (exit $ac_status); } && { |
| 22952 | test -z "$ac_c_werror_flag" || |
| 22953 | test ! -s conftest.err |
| 22954 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22955 | |
| 22956 | |
| 22957 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22958 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22959 | _ACEOF |
| 22960 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22961 | works=yes |
| 22962 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22963 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22964 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22966 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22967 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22968 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22969 | |
| 22970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22971 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22972 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22973 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22974 | # check for socketpair |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22975 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 22976 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22977 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22978 | /* confdefs.h. */ |
| 22979 | _ACEOF |
| 22980 | cat confdefs.h >>conftest.$ac_ext |
| 22981 | cat >>conftest.$ac_ext <<_ACEOF |
| 22982 | /* end confdefs.h. */ |
| 22983 | |
| 22984 | #include <sys/types.h> |
| 22985 | #include <sys/socket.h> |
| 22986 | |
| 22987 | int |
| 22988 | main () |
| 22989 | { |
| 22990 | void *x=socketpair |
| 22991 | ; |
| 22992 | return 0; |
| 22993 | } |
| 22994 | _ACEOF |
| 22995 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22996 | if { (ac_try="$ac_compile" |
| 22997 | case "(($ac_try" in |
| 22998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22999 | *) ac_try_echo=$ac_try;; |
| 23000 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23002 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23003 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23005 | rm -f conftest.er1 |
| 23006 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23008 | (exit $ac_status); } && { |
| 23009 | test -z "$ac_c_werror_flag" || |
| 23010 | test ! -s conftest.err |
| 23011 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23012 | |
| 23013 | cat >>confdefs.h <<\_ACEOF |
| 23014 | #define HAVE_SOCKETPAIR 1 |
| 23015 | _ACEOF |
| 23016 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23017 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23018 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23019 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23020 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23022 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23023 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23024 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 23025 | |
| 23026 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23027 | |
| 23028 | 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] | 23029 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23030 | # check if sockaddr has sa_len member |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23031 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 23032 | 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] | 23033 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23034 | /* confdefs.h. */ |
| 23035 | _ACEOF |
| 23036 | cat confdefs.h >>conftest.$ac_ext |
| 23037 | cat >>conftest.$ac_ext <<_ACEOF |
| 23038 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23039 | #include <sys/types.h> |
| 23040 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23041 | int |
| 23042 | main () |
| 23043 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23044 | struct sockaddr x; |
| 23045 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23046 | ; |
| 23047 | return 0; |
| 23048 | } |
| 23049 | _ACEOF |
| 23050 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23051 | if { (ac_try="$ac_compile" |
| 23052 | case "(($ac_try" in |
| 23053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23054 | *) ac_try_echo=$ac_try;; |
| 23055 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23057 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23058 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23060 | rm -f conftest.er1 |
| 23061 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23063 | (exit $ac_status); } && { |
| 23064 | test -z "$ac_c_werror_flag" || |
| 23065 | test ! -s conftest.err |
| 23066 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23067 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23068 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23069 | |
| 23070 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23071 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23072 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23073 | |
| 23074 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23075 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23077 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23078 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23079 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 23080 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23081 | |
| 23082 | 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] | 23083 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 23084 | va_list_is_array=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23085 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 23086 | 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] | 23087 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23088 | /* confdefs.h. */ |
| 23089 | _ACEOF |
| 23090 | cat confdefs.h >>conftest.$ac_ext |
| 23091 | cat >>conftest.$ac_ext <<_ACEOF |
| 23092 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23093 | |
| 23094 | #ifdef HAVE_STDARG_PROTOTYPES |
| 23095 | #include <stdarg.h> |
| 23096 | #else |
| 23097 | #include <varargs.h> |
| 23098 | #endif |
| 23099 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23100 | int |
| 23101 | main () |
| 23102 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23103 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23104 | ; |
| 23105 | return 0; |
| 23106 | } |
| 23107 | _ACEOF |
| 23108 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23109 | if { (ac_try="$ac_compile" |
| 23110 | case "(($ac_try" in |
| 23111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23112 | *) ac_try_echo=$ac_try;; |
| 23113 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23115 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23116 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23118 | rm -f conftest.er1 |
| 23119 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23121 | (exit $ac_status); } && { |
| 23122 | test -z "$ac_c_werror_flag" || |
| 23123 | test ! -s conftest.err |
| 23124 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23125 | : |
| 23126 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23127 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23130 | |
| 23131 | |
| 23132 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23133 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23134 | _ACEOF |
| 23135 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 23136 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 23137 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23138 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23139 | |
| 23140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23141 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 23142 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23143 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23144 | # 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] | 23145 | |
| 23146 | |
| 23147 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23148 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 23149 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23150 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23152 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23153 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23154 | /* confdefs.h. */ |
| 23155 | _ACEOF |
| 23156 | cat confdefs.h >>conftest.$ac_ext |
| 23157 | cat >>conftest.$ac_ext <<_ACEOF |
| 23158 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23159 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 23160 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23161 | #define gethostbyname_r innocuous_gethostbyname_r |
| 23162 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23163 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23164 | which can conflict with char gethostbyname_r (); below. |
| 23165 | 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] | 23166 | <limits.h> exists even on freestanding compilers. */ |
| 23167 | |
| 23168 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23169 | # include <limits.h> |
| 23170 | #else |
| 23171 | # include <assert.h> |
| 23172 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23173 | |
| 23174 | #undef gethostbyname_r |
| 23175 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23176 | /* Override any GCC internal prototype to avoid an error. |
| 23177 | Use char because int might match the return type of a GCC |
| 23178 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23179 | #ifdef __cplusplus |
| 23180 | extern "C" |
| 23181 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23182 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23183 | /* The GNU C library defines this for functions which it implements |
| 23184 | to always fail with ENOSYS. Some functions are actually named |
| 23185 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23186 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23187 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23188 | #endif |
| 23189 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23190 | int |
| 23191 | main () |
| 23192 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23193 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23194 | ; |
| 23195 | return 0; |
| 23196 | } |
| 23197 | _ACEOF |
| 23198 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23199 | if { (ac_try="$ac_link" |
| 23200 | case "(($ac_try" in |
| 23201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23202 | *) ac_try_echo=$ac_try;; |
| 23203 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23205 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23206 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23208 | rm -f conftest.er1 |
| 23209 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23211 | (exit $ac_status); } && { |
| 23212 | test -z "$ac_c_werror_flag" || |
| 23213 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23214 | } && test -s conftest$ac_exeext && |
| 23215 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23216 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23217 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23218 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23220 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23221 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23222 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23223 | |
| 23224 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23225 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23226 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23227 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 23228 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
| 23229 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23231 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23232 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23233 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23234 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23235 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 23236 | 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] | 23237 | OLD_CFLAGS=$CFLAGS |
| 23238 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23239 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23240 | /* confdefs.h. */ |
| 23241 | _ACEOF |
| 23242 | cat confdefs.h >>conftest.$ac_ext |
| 23243 | cat >>conftest.$ac_ext <<_ACEOF |
| 23244 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23245 | |
| 23246 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23247 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23248 | int |
| 23249 | main () |
| 23250 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23251 | |
| 23252 | char *name; |
| 23253 | struct hostent *he, *res; |
| 23254 | char buffer[2048]; |
| 23255 | int buflen = 2048; |
| 23256 | int h_errnop; |
| 23257 | |
| 23258 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23259 | |
| 23260 | ; |
| 23261 | return 0; |
| 23262 | } |
| 23263 | _ACEOF |
| 23264 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23265 | if { (ac_try="$ac_compile" |
| 23266 | case "(($ac_try" in |
| 23267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23268 | *) ac_try_echo=$ac_try;; |
| 23269 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23271 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23272 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23274 | rm -f conftest.er1 |
| 23275 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23277 | (exit $ac_status); } && { |
| 23278 | test -z "$ac_c_werror_flag" || |
| 23279 | test ! -s conftest.err |
| 23280 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23281 | |
| 23282 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23283 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23284 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23286 | |
| 23287 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23288 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23289 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23290 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23291 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23292 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23293 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23294 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23295 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23297 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23298 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23299 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23300 | echo "${ECHO_T}no" >&6; } |
| 23301 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 23302 | 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] | 23303 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23304 | /* confdefs.h. */ |
| 23305 | _ACEOF |
| 23306 | cat confdefs.h >>conftest.$ac_ext |
| 23307 | cat >>conftest.$ac_ext <<_ACEOF |
| 23308 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23309 | |
| 23310 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23312 | int |
| 23313 | main () |
| 23314 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23315 | |
| 23316 | char *name; |
| 23317 | struct hostent *he; |
| 23318 | char buffer[2048]; |
| 23319 | int buflen = 2048; |
| 23320 | int h_errnop; |
| 23321 | |
| 23322 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23323 | |
| 23324 | ; |
| 23325 | return 0; |
| 23326 | } |
| 23327 | _ACEOF |
| 23328 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23329 | if { (ac_try="$ac_compile" |
| 23330 | case "(($ac_try" in |
| 23331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23332 | *) ac_try_echo=$ac_try;; |
| 23333 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23335 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23336 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23338 | rm -f conftest.er1 |
| 23339 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23341 | (exit $ac_status); } && { |
| 23342 | test -z "$ac_c_werror_flag" || |
| 23343 | test ! -s conftest.err |
| 23344 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23345 | |
| 23346 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23347 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23348 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23349 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23350 | |
| 23351 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23352 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23353 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23354 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23355 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23356 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23357 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23358 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23359 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23362 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23363 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23364 | echo "${ECHO_T}no" >&6; } |
| 23365 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 23366 | 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] | 23367 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23368 | /* confdefs.h. */ |
| 23369 | _ACEOF |
| 23370 | cat confdefs.h >>conftest.$ac_ext |
| 23371 | cat >>conftest.$ac_ext <<_ACEOF |
| 23372 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23373 | |
| 23374 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23376 | int |
| 23377 | main () |
| 23378 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23379 | |
| 23380 | char *name; |
| 23381 | struct hostent *he; |
| 23382 | struct hostent_data data; |
| 23383 | |
| 23384 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23385 | |
| 23386 | ; |
| 23387 | return 0; |
| 23388 | } |
| 23389 | _ACEOF |
| 23390 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23391 | if { (ac_try="$ac_compile" |
| 23392 | case "(($ac_try" in |
| 23393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23394 | *) ac_try_echo=$ac_try;; |
| 23395 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23397 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23398 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23400 | rm -f conftest.er1 |
| 23401 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23403 | (exit $ac_status); } && { |
| 23404 | test -z "$ac_c_werror_flag" || |
| 23405 | test ! -s conftest.err |
| 23406 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23407 | |
| 23408 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23409 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23410 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23411 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23412 | |
| 23413 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23414 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23415 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23416 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23417 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23418 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23419 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23420 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23421 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23424 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23425 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23426 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23427 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23428 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23429 | |
| 23430 | 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] | 23431 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23432 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23433 | |
| 23434 | 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] | 23435 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23436 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23437 | |
| 23438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23439 | CFLAGS=$OLD_CFLAGS |
| 23440 | |
| 23441 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23443 | |
| 23444 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23445 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23446 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23447 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23448 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23449 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23451 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23452 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23453 | /* confdefs.h. */ |
| 23454 | _ACEOF |
| 23455 | cat confdefs.h >>conftest.$ac_ext |
| 23456 | cat >>conftest.$ac_ext <<_ACEOF |
| 23457 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23458 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23459 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23460 | #define $ac_func innocuous_$ac_func |
| 23461 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23462 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23463 | which can conflict with char $ac_func (); below. |
| 23464 | 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] | 23465 | <limits.h> exists even on freestanding compilers. */ |
| 23466 | |
| 23467 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23468 | # include <limits.h> |
| 23469 | #else |
| 23470 | # include <assert.h> |
| 23471 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23472 | |
| 23473 | #undef $ac_func |
| 23474 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23475 | /* Override any GCC internal prototype to avoid an error. |
| 23476 | Use char because int might match the return type of a GCC |
| 23477 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23478 | #ifdef __cplusplus |
| 23479 | extern "C" |
| 23480 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23481 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23482 | /* The GNU C library defines this for functions which it implements |
| 23483 | to always fail with ENOSYS. Some functions are actually named |
| 23484 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23485 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23486 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23487 | #endif |
| 23488 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23489 | int |
| 23490 | main () |
| 23491 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23492 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23493 | ; |
| 23494 | return 0; |
| 23495 | } |
| 23496 | _ACEOF |
| 23497 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23498 | if { (ac_try="$ac_link" |
| 23499 | case "(($ac_try" in |
| 23500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23501 | *) ac_try_echo=$ac_try;; |
| 23502 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23504 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23505 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23507 | rm -f conftest.er1 |
| 23508 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23510 | (exit $ac_status); } && { |
| 23511 | test -z "$ac_c_werror_flag" || |
| 23512 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23513 | } && test -s conftest$ac_exeext && |
| 23514 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23515 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23516 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23517 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23519 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23520 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23521 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23522 | |
| 23523 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23524 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23525 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23526 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23527 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23528 | echo "${ECHO_T}$ac_res" >&6; } |
| 23529 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23530 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23531 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23532 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23533 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23534 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23535 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23536 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23537 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23538 | fi |
| 23539 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23540 | |
| 23541 | |
| 23542 | |
| 23543 | |
| 23544 | |
| 23545 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23546 | # checks for system services |
| 23547 | # (none yet) |
| 23548 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23549 | # Linux requires this for correct f.p. operations |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23550 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 23551 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23552 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23554 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23555 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23556 | /* confdefs.h. */ |
| 23557 | _ACEOF |
| 23558 | cat confdefs.h >>conftest.$ac_ext |
| 23559 | cat >>conftest.$ac_ext <<_ACEOF |
| 23560 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23561 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 23562 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23563 | #define __fpu_control innocuous___fpu_control |
| 23564 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23565 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23566 | which can conflict with char __fpu_control (); below. |
| 23567 | 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] | 23568 | <limits.h> exists even on freestanding compilers. */ |
| 23569 | |
| 23570 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23571 | # include <limits.h> |
| 23572 | #else |
| 23573 | # include <assert.h> |
| 23574 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23575 | |
| 23576 | #undef __fpu_control |
| 23577 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23578 | /* Override any GCC internal prototype to avoid an error. |
| 23579 | Use char because int might match the return type of a GCC |
| 23580 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23581 | #ifdef __cplusplus |
| 23582 | extern "C" |
| 23583 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23584 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23585 | /* The GNU C library defines this for functions which it implements |
| 23586 | to always fail with ENOSYS. Some functions are actually named |
| 23587 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23588 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23589 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23590 | #endif |
| 23591 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23592 | int |
| 23593 | main () |
| 23594 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23595 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23596 | ; |
| 23597 | return 0; |
| 23598 | } |
| 23599 | _ACEOF |
| 23600 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23601 | if { (ac_try="$ac_link" |
| 23602 | case "(($ac_try" in |
| 23603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23604 | *) ac_try_echo=$ac_try;; |
| 23605 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23607 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23608 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23610 | rm -f conftest.er1 |
| 23611 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23613 | (exit $ac_status); } && { |
| 23614 | test -z "$ac_c_werror_flag" || |
| 23615 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23616 | } && test -s conftest$ac_exeext && |
| 23617 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23618 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23619 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23620 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23622 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23623 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23624 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23625 | |
| 23626 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23627 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23628 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23629 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 23630 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
| 23631 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23632 | : |
| 23633 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23634 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23635 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 23636 | 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] | 23637 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23640 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23641 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23642 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23643 | /* confdefs.h. */ |
| 23644 | _ACEOF |
| 23645 | cat confdefs.h >>conftest.$ac_ext |
| 23646 | cat >>conftest.$ac_ext <<_ACEOF |
| 23647 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23648 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23649 | /* Override any GCC internal prototype to avoid an error. |
| 23650 | Use char because int might match the return type of a GCC |
| 23651 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23652 | #ifdef __cplusplus |
| 23653 | extern "C" |
| 23654 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23655 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23656 | int |
| 23657 | main () |
| 23658 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23659 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23660 | ; |
| 23661 | return 0; |
| 23662 | } |
| 23663 | _ACEOF |
| 23664 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23665 | if { (ac_try="$ac_link" |
| 23666 | case "(($ac_try" in |
| 23667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23668 | *) ac_try_echo=$ac_try;; |
| 23669 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23671 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23672 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23674 | rm -f conftest.er1 |
| 23675 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23677 | (exit $ac_status); } && { |
| 23678 | test -z "$ac_c_werror_flag" || |
| 23679 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23680 | } && test -s conftest$ac_exeext && |
| 23681 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23682 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23683 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23684 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23686 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23687 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23688 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23689 | |
| 23690 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23691 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23692 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23693 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23694 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 23695 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
| 23696 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23697 | cat >>confdefs.h <<_ACEOF |
| 23698 | #define HAVE_LIBIEEE 1 |
| 23699 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23700 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23701 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23702 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23703 | fi |
| 23704 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23705 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23706 | fi |
| 23707 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23708 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23709 | # Check for --with-fpectl |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23710 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 23711 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23712 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23713 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23714 | if test "${with_fpectl+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23715 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23716 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23717 | then |
| 23718 | |
| 23719 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23720 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23721 | _ACEOF |
| 23722 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23723 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23724 | echo "${ECHO_T}yes" >&6; } |
| 23725 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 23726 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23727 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23728 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23729 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23730 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23731 | fi |
| 23732 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23733 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23734 | # check for --with-libm=... |
| 23735 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23736 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 23737 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 23738 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23739 | *) LIBM=-lm |
| 23740 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23741 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 23742 | 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] | 23743 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23744 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23745 | if test "${with_libm+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23746 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23747 | if test "$withval" = no |
| 23748 | then LIBM= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23749 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 23750 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23751 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23752 | then LIBM=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23753 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 23754 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
| 23755 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 23756 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23757 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23758 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23759 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23760 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 23761 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23762 | fi |
| 23763 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23764 | |
| 23765 | # check for --with-libc=... |
| 23766 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23767 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 23768 | 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] | 23769 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23770 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23771 | if test "${with_libc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23772 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23773 | if test "$withval" = no |
| 23774 | then LIBC= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23775 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 23776 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23777 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23778 | then LIBC=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23779 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 23780 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
| 23781 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 23782 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23783 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23784 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23785 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23786 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 23787 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23788 | fi |
| 23789 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23790 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23791 | # ************************************************** |
| 23792 | # * Check for various properties of floating point * |
| 23793 | # ************************************************** |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23794 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23795 | { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 23796 | echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23797 | if test "${ac_cv_little_endian_double+set}" = set; then |
| 23798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23799 | else |
| 23800 | |
| 23801 | if test "$cross_compiling" = yes; then |
| 23802 | ac_cv_little_endian_double=no |
| 23803 | else |
| 23804 | cat >conftest.$ac_ext <<_ACEOF |
| 23805 | /* confdefs.h. */ |
| 23806 | _ACEOF |
| 23807 | cat confdefs.h >>conftest.$ac_ext |
| 23808 | cat >>conftest.$ac_ext <<_ACEOF |
| 23809 | /* end confdefs.h. */ |
| 23810 | |
| 23811 | #include <string.h> |
| 23812 | int main() { |
| 23813 | double x = 9006104071832581.0; |
| 23814 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 23815 | return 0; |
| 23816 | else |
| 23817 | return 1; |
| 23818 | } |
| 23819 | |
| 23820 | _ACEOF |
| 23821 | rm -f conftest$ac_exeext |
| 23822 | if { (ac_try="$ac_link" |
| 23823 | case "(($ac_try" in |
| 23824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23825 | *) ac_try_echo=$ac_try;; |
| 23826 | esac |
| 23827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23828 | (eval "$ac_link") 2>&5 |
| 23829 | ac_status=$? |
| 23830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23831 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23832 | { (case "(($ac_try" in |
| 23833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23834 | *) ac_try_echo=$ac_try;; |
| 23835 | esac |
| 23836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23837 | (eval "$ac_try") 2>&5 |
| 23838 | ac_status=$? |
| 23839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23840 | (exit $ac_status); }; }; then |
| 23841 | ac_cv_little_endian_double=yes |
| 23842 | else |
| 23843 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23844 | echo "$as_me: failed program was:" >&5 |
| 23845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23846 | |
| 23847 | ( exit $ac_status ) |
| 23848 | ac_cv_little_endian_double=no |
| 23849 | fi |
| 23850 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23851 | fi |
| 23852 | |
| 23853 | |
| 23854 | fi |
| 23855 | |
| 23856 | { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5 |
| 23857 | echo "${ECHO_T}$ac_cv_little_endian_double" >&6; } |
| 23858 | if test "$ac_cv_little_endian_double" = yes |
| 23859 | then |
| 23860 | |
| 23861 | cat >>confdefs.h <<\_ACEOF |
| 23862 | #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 |
| 23863 | _ACEOF |
| 23864 | |
| 23865 | fi |
| 23866 | |
| 23867 | { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 23868 | echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23869 | if test "${ac_cv_big_endian_double+set}" = set; then |
| 23870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23871 | else |
| 23872 | |
| 23873 | if test "$cross_compiling" = yes; then |
| 23874 | ac_cv_big_endian_double=no |
| 23875 | else |
| 23876 | cat >conftest.$ac_ext <<_ACEOF |
| 23877 | /* confdefs.h. */ |
| 23878 | _ACEOF |
| 23879 | cat confdefs.h >>conftest.$ac_ext |
| 23880 | cat >>conftest.$ac_ext <<_ACEOF |
| 23881 | /* end confdefs.h. */ |
| 23882 | |
| 23883 | #include <string.h> |
| 23884 | int main() { |
| 23885 | double x = 9006104071832581.0; |
| 23886 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 23887 | return 0; |
| 23888 | else |
| 23889 | return 1; |
| 23890 | } |
| 23891 | |
| 23892 | _ACEOF |
| 23893 | rm -f conftest$ac_exeext |
| 23894 | if { (ac_try="$ac_link" |
| 23895 | case "(($ac_try" in |
| 23896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23897 | *) ac_try_echo=$ac_try;; |
| 23898 | esac |
| 23899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23900 | (eval "$ac_link") 2>&5 |
| 23901 | ac_status=$? |
| 23902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23903 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23904 | { (case "(($ac_try" in |
| 23905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23906 | *) ac_try_echo=$ac_try;; |
| 23907 | esac |
| 23908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23909 | (eval "$ac_try") 2>&5 |
| 23910 | ac_status=$? |
| 23911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23912 | (exit $ac_status); }; }; then |
| 23913 | ac_cv_big_endian_double=yes |
| 23914 | else |
| 23915 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23916 | echo "$as_me: failed program was:" >&5 |
| 23917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23918 | |
| 23919 | ( exit $ac_status ) |
| 23920 | ac_cv_big_endian_double=no |
| 23921 | fi |
| 23922 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23923 | fi |
| 23924 | |
| 23925 | |
| 23926 | fi |
| 23927 | |
| 23928 | { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5 |
| 23929 | echo "${ECHO_T}$ac_cv_big_endian_double" >&6; } |
| 23930 | if test "$ac_cv_big_endian_double" = yes |
| 23931 | then |
| 23932 | |
| 23933 | cat >>confdefs.h <<\_ACEOF |
| 23934 | #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1 |
| 23935 | _ACEOF |
| 23936 | |
| 23937 | fi |
| 23938 | |
| 23939 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 23940 | # While Python doesn't currently have full support for these platforms |
| 23941 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 23942 | # conversions work. |
| 23943 | { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 23944 | echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23945 | if test "${ac_cv_mixed_endian_double+set}" = set; then |
| 23946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23947 | else |
| 23948 | |
| 23949 | if test "$cross_compiling" = yes; then |
| 23950 | ac_cv_mixed_endian_double=no |
| 23951 | else |
| 23952 | cat >conftest.$ac_ext <<_ACEOF |
| 23953 | /* confdefs.h. */ |
| 23954 | _ACEOF |
| 23955 | cat confdefs.h >>conftest.$ac_ext |
| 23956 | cat >>conftest.$ac_ext <<_ACEOF |
| 23957 | /* end confdefs.h. */ |
| 23958 | |
| 23959 | #include <string.h> |
| 23960 | int main() { |
| 23961 | double x = 9006104071832581.0; |
| 23962 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 23963 | return 0; |
| 23964 | else |
| 23965 | return 1; |
| 23966 | } |
| 23967 | |
| 23968 | _ACEOF |
| 23969 | rm -f conftest$ac_exeext |
| 23970 | if { (ac_try="$ac_link" |
| 23971 | case "(($ac_try" in |
| 23972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23973 | *) ac_try_echo=$ac_try;; |
| 23974 | esac |
| 23975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23976 | (eval "$ac_link") 2>&5 |
| 23977 | ac_status=$? |
| 23978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23979 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23980 | { (case "(($ac_try" in |
| 23981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23982 | *) ac_try_echo=$ac_try;; |
| 23983 | esac |
| 23984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23985 | (eval "$ac_try") 2>&5 |
| 23986 | ac_status=$? |
| 23987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23988 | (exit $ac_status); }; }; then |
| 23989 | ac_cv_mixed_endian_double=yes |
| 23990 | else |
| 23991 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23992 | echo "$as_me: failed program was:" >&5 |
| 23993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23994 | |
| 23995 | ( exit $ac_status ) |
| 23996 | ac_cv_mixed_endian_double=no |
| 23997 | fi |
| 23998 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23999 | fi |
| 24000 | |
| 24001 | |
| 24002 | fi |
| 24003 | |
| 24004 | { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5 |
| 24005 | echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; } |
| 24006 | if test "$ac_cv_mixed_endian_double" = yes |
| 24007 | then |
| 24008 | |
| 24009 | cat >>confdefs.h <<\_ACEOF |
| 24010 | #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1 |
| 24011 | _ACEOF |
| 24012 | |
| 24013 | fi |
| 24014 | |
| 24015 | # The short float repr introduced in Python 3.1 requires the |
| 24016 | # correctly-rounded string <-> double conversion functions from |
| 24017 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
| 24018 | # rounding; this is a problem on x86, where the x87 FPU has a default |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24019 | # rounding precision of 64 bits. For gcc/x86, we can fix this by |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24020 | # using inline assembler to get and set the x87 FPU control word. |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24021 | |
| 24022 | # This inline assembler syntax may also work for suncc and icc, |
| 24023 | # so we try it on all platforms. |
| 24024 | |
| 24025 | { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24026 | echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; } |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24027 | cat >conftest.$ac_ext <<_ACEOF |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24028 | /* confdefs.h. */ |
| 24029 | _ACEOF |
| 24030 | cat confdefs.h >>conftest.$ac_ext |
| 24031 | cat >>conftest.$ac_ext <<_ACEOF |
| 24032 | /* end confdefs.h. */ |
| 24033 | |
| 24034 | int |
| 24035 | main () |
| 24036 | { |
| 24037 | |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24038 | unsigned short cw; |
| 24039 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 24040 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24041 | |
| 24042 | ; |
| 24043 | return 0; |
| 24044 | } |
| 24045 | _ACEOF |
| 24046 | rm -f conftest.$ac_objext |
| 24047 | if { (ac_try="$ac_compile" |
| 24048 | case "(($ac_try" in |
| 24049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24050 | *) ac_try_echo=$ac_try;; |
| 24051 | esac |
| 24052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24053 | (eval "$ac_compile") 2>conftest.er1 |
| 24054 | ac_status=$? |
| 24055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24056 | rm -f conftest.er1 |
| 24057 | cat conftest.err >&5 |
| 24058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24059 | (exit $ac_status); } && { |
| 24060 | test -z "$ac_c_werror_flag" || |
| 24061 | test ! -s conftest.err |
| 24062 | } && test -s conftest.$ac_objext; then |
| 24063 | have_gcc_asm_for_x87=yes |
| 24064 | else |
| 24065 | echo "$as_me: failed program was:" >&5 |
| 24066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24067 | |
| 24068 | have_gcc_asm_for_x87=no |
| 24069 | fi |
| 24070 | |
| 24071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24072 | { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5 |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24073 | echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; } |
Mark Dickinson | a548dee | 2009-11-15 13:12:43 +0000 | [diff] [blame] | 24074 | if test "$have_gcc_asm_for_x87" = yes |
| 24075 | then |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24076 | |
| 24077 | cat >>confdefs.h <<\_ACEOF |
| 24078 | #define HAVE_GCC_ASM_FOR_X87 1 |
| 24079 | _ACEOF |
| 24080 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24081 | fi |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 24082 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24083 | # Detect whether system arithmetic is subject to x87-style double |
| 24084 | # rounding issues. The result of this test has little meaning on non |
| 24085 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 24086 | # mode is round-to-nearest and double rounding issues are present, and |
| 24087 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24088 | { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 24089 | echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; } |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 24090 | # $BASECFLAGS may affect the result |
| 24091 | ac_save_cc="$CC" |
| 24092 | CC="$CC $BASECFLAGS" |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24093 | if test "$cross_compiling" = yes; then |
| 24094 | ac_cv_x87_double_rounding=no |
| 24095 | else |
| 24096 | cat >conftest.$ac_ext <<_ACEOF |
| 24097 | /* confdefs.h. */ |
| 24098 | _ACEOF |
| 24099 | cat confdefs.h >>conftest.$ac_ext |
| 24100 | cat >>conftest.$ac_ext <<_ACEOF |
| 24101 | /* end confdefs.h. */ |
| 24102 | |
| 24103 | #include <stdlib.h> |
| 24104 | #include <math.h> |
| 24105 | int main() { |
| 24106 | volatile double x, y, z; |
| 24107 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 24108 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 24109 | y = 1./x; |
| 24110 | if (y != 1.) |
| 24111 | exit(0); |
| 24112 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 24113 | x = 1e16; |
| 24114 | y = 2.99999; |
| 24115 | z = x + y; |
| 24116 | if (z != 1e16+4.) |
| 24117 | exit(0); |
| 24118 | /* both tests show evidence of double rounding */ |
| 24119 | exit(1); |
| 24120 | } |
| 24121 | |
| 24122 | _ACEOF |
| 24123 | rm -f conftest$ac_exeext |
| 24124 | if { (ac_try="$ac_link" |
| 24125 | case "(($ac_try" in |
| 24126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24127 | *) ac_try_echo=$ac_try;; |
| 24128 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24130 | (eval "$ac_link") 2>&5 |
| 24131 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24133 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24134 | { (case "(($ac_try" in |
| 24135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24136 | *) ac_try_echo=$ac_try;; |
| 24137 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24139 | (eval "$ac_try") 2>&5 |
| 24140 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24142 | (exit $ac_status); }; }; then |
| 24143 | ac_cv_x87_double_rounding=no |
| 24144 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24145 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24146 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24148 | |
| 24149 | ( exit $ac_status ) |
| 24150 | ac_cv_x87_double_rounding=yes |
| 24151 | fi |
| 24152 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24153 | fi |
| 24154 | |
| 24155 | |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 24156 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24157 | { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 24158 | echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 24159 | if test "$ac_cv_x87_double_rounding" = yes |
| 24160 | then |
| 24161 | |
| 24162 | cat >>confdefs.h <<\_ACEOF |
| 24163 | #define X87_DOUBLE_ROUNDING 1 |
| 24164 | _ACEOF |
| 24165 | |
| 24166 | fi |
| 24167 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 24168 | # ************************************ |
| 24169 | # * Check for mathematical functions * |
| 24170 | # ************************************ |
| 24171 | |
| 24172 | LIBS_SAVE=$LIBS |
| 24173 | LIBS="$LIBS $LIBM" |
| 24174 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24175 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 24176 | # -0. on some architectures. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24177 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 24178 | echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24179 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24181 | else |
| 24182 | |
| 24183 | if test "$cross_compiling" = yes; then |
| 24184 | ac_cv_tanh_preserves_zero_sign=no |
| 24185 | else |
| 24186 | cat >conftest.$ac_ext <<_ACEOF |
| 24187 | /* confdefs.h. */ |
| 24188 | _ACEOF |
| 24189 | cat confdefs.h >>conftest.$ac_ext |
| 24190 | cat >>conftest.$ac_ext <<_ACEOF |
| 24191 | /* end confdefs.h. */ |
| 24192 | |
| 24193 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 24194 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24195 | int main() { |
| 24196 | /* return 0 if either negative zeros don't exist |
| 24197 | on this platform or if negative zeros exist |
| 24198 | and tanh(-0.) == -0. */ |
| 24199 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 24200 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 24201 | else exit(1); |
| 24202 | } |
| 24203 | |
| 24204 | _ACEOF |
| 24205 | rm -f conftest$ac_exeext |
| 24206 | if { (ac_try="$ac_link" |
| 24207 | case "(($ac_try" in |
| 24208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24209 | *) ac_try_echo=$ac_try;; |
| 24210 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24212 | (eval "$ac_link") 2>&5 |
| 24213 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24215 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24216 | { (case "(($ac_try" in |
| 24217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24218 | *) ac_try_echo=$ac_try;; |
| 24219 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24221 | (eval "$ac_try") 2>&5 |
| 24222 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24224 | (exit $ac_status); }; }; then |
| 24225 | ac_cv_tanh_preserves_zero_sign=yes |
| 24226 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24227 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24228 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24230 | |
| 24231 | ( exit $ac_status ) |
| 24232 | ac_cv_tanh_preserves_zero_sign=no |
| 24233 | fi |
| 24234 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24235 | fi |
| 24236 | |
| 24237 | |
| 24238 | fi |
| 24239 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24240 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 24241 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 24242 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 24243 | then |
| 24244 | |
| 24245 | cat >>confdefs.h <<\_ACEOF |
| 24246 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 24247 | _ACEOF |
| 24248 | |
| 24249 | fi |
| 24250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24251 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 24252 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24253 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24254 | |
| 24255 | |
| 24256 | |
| 24257 | |
| 24258 | |
Mark Dickinson | 8e5446f | 2009-04-18 14:41:37 +0000 | [diff] [blame] | 24259 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 24260 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 24261 | do |
| 24262 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24263 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24264 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 24265 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 24266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24267 | else |
| 24268 | cat >conftest.$ac_ext <<_ACEOF |
| 24269 | /* confdefs.h. */ |
| 24270 | _ACEOF |
| 24271 | cat confdefs.h >>conftest.$ac_ext |
| 24272 | cat >>conftest.$ac_ext <<_ACEOF |
| 24273 | /* end confdefs.h. */ |
| 24274 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24275 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24276 | #define $ac_func innocuous_$ac_func |
| 24277 | |
| 24278 | /* System header to define __stub macros and hopefully few prototypes, |
| 24279 | which can conflict with char $ac_func (); below. |
| 24280 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24281 | <limits.h> exists even on freestanding compilers. */ |
| 24282 | |
| 24283 | #ifdef __STDC__ |
| 24284 | # include <limits.h> |
| 24285 | #else |
| 24286 | # include <assert.h> |
| 24287 | #endif |
| 24288 | |
| 24289 | #undef $ac_func |
| 24290 | |
| 24291 | /* Override any GCC internal prototype to avoid an error. |
| 24292 | Use char because int might match the return type of a GCC |
| 24293 | builtin and then its argument prototype would still apply. */ |
| 24294 | #ifdef __cplusplus |
| 24295 | extern "C" |
| 24296 | #endif |
| 24297 | char $ac_func (); |
| 24298 | /* The GNU C library defines this for functions which it implements |
| 24299 | to always fail with ENOSYS. Some functions are actually named |
| 24300 | something starting with __ and the normal name is an alias. */ |
| 24301 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24302 | choke me |
| 24303 | #endif |
| 24304 | |
| 24305 | int |
| 24306 | main () |
| 24307 | { |
| 24308 | return $ac_func (); |
| 24309 | ; |
| 24310 | return 0; |
| 24311 | } |
| 24312 | _ACEOF |
| 24313 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24314 | if { (ac_try="$ac_link" |
| 24315 | case "(($ac_try" in |
| 24316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24317 | *) ac_try_echo=$ac_try;; |
| 24318 | esac |
| 24319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24320 | (eval "$ac_link") 2>conftest.er1 |
| 24321 | ac_status=$? |
| 24322 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24323 | rm -f conftest.er1 |
| 24324 | cat conftest.err >&5 |
| 24325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24326 | (exit $ac_status); } && { |
| 24327 | test -z "$ac_c_werror_flag" || |
| 24328 | test ! -s conftest.err |
| 24329 | } && test -s conftest$ac_exeext && |
| 24330 | $as_test_x conftest$ac_exeext; then |
| 24331 | eval "$as_ac_var=yes" |
| 24332 | else |
| 24333 | echo "$as_me: failed program was:" >&5 |
| 24334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24335 | |
| 24336 | eval "$as_ac_var=no" |
| 24337 | fi |
| 24338 | |
| 24339 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24340 | conftest$ac_exeext conftest.$ac_ext |
| 24341 | fi |
| 24342 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24343 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24344 | echo "${ECHO_T}$ac_res" >&6; } |
| 24345 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 24346 | cat >>confdefs.h <<_ACEOF |
| 24347 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24348 | _ACEOF |
| 24349 | |
| 24350 | fi |
| 24351 | done |
| 24352 | |
| 24353 | |
| 24354 | |
| 24355 | |
| 24356 | |
| 24357 | |
| 24358 | for ac_func in hypot lgamma log1p round tgamma |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24359 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24360 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24361 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24362 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24363 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24365 | else |
| 24366 | cat >conftest.$ac_ext <<_ACEOF |
| 24367 | /* confdefs.h. */ |
| 24368 | _ACEOF |
| 24369 | cat confdefs.h >>conftest.$ac_ext |
| 24370 | cat >>conftest.$ac_ext <<_ACEOF |
| 24371 | /* end confdefs.h. */ |
| 24372 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24373 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24374 | #define $ac_func innocuous_$ac_func |
| 24375 | |
| 24376 | /* System header to define __stub macros and hopefully few prototypes, |
| 24377 | which can conflict with char $ac_func (); below. |
| 24378 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24379 | <limits.h> exists even on freestanding compilers. */ |
| 24380 | |
| 24381 | #ifdef __STDC__ |
| 24382 | # include <limits.h> |
| 24383 | #else |
| 24384 | # include <assert.h> |
| 24385 | #endif |
| 24386 | |
| 24387 | #undef $ac_func |
| 24388 | |
| 24389 | /* Override any GCC internal prototype to avoid an error. |
| 24390 | Use char because int might match the return type of a GCC |
| 24391 | builtin and then its argument prototype would still apply. */ |
| 24392 | #ifdef __cplusplus |
| 24393 | extern "C" |
| 24394 | #endif |
| 24395 | char $ac_func (); |
| 24396 | /* The GNU C library defines this for functions which it implements |
| 24397 | to always fail with ENOSYS. Some functions are actually named |
| 24398 | something starting with __ and the normal name is an alias. */ |
| 24399 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24400 | choke me |
| 24401 | #endif |
| 24402 | |
| 24403 | int |
| 24404 | main () |
| 24405 | { |
| 24406 | return $ac_func (); |
| 24407 | ; |
| 24408 | return 0; |
| 24409 | } |
| 24410 | _ACEOF |
| 24411 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24412 | if { (ac_try="$ac_link" |
| 24413 | case "(($ac_try" in |
| 24414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24415 | *) ac_try_echo=$ac_try;; |
| 24416 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24418 | (eval "$ac_link") 2>conftest.er1 |
| 24419 | ac_status=$? |
| 24420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24421 | rm -f conftest.er1 |
| 24422 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24424 | (exit $ac_status); } && { |
| 24425 | test -z "$ac_c_werror_flag" || |
| 24426 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24427 | } && test -s conftest$ac_exeext && |
| 24428 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24429 | eval "$as_ac_var=yes" |
| 24430 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24431 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24433 | |
| 24434 | eval "$as_ac_var=no" |
| 24435 | fi |
| 24436 | |
| 24437 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24438 | conftest$ac_exeext conftest.$ac_ext |
| 24439 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24440 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24441 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24442 | echo "${ECHO_T}$ac_res" >&6; } |
| 24443 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24444 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24445 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24446 | _ACEOF |
| 24447 | |
| 24448 | fi |
| 24449 | done |
| 24450 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24451 | { echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 24452 | echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24453 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24455 | else |
| 24456 | cat >conftest.$ac_ext <<_ACEOF |
| 24457 | /* confdefs.h. */ |
| 24458 | _ACEOF |
| 24459 | cat confdefs.h >>conftest.$ac_ext |
| 24460 | cat >>conftest.$ac_ext <<_ACEOF |
| 24461 | /* end confdefs.h. */ |
| 24462 | #include <math.h> |
| 24463 | |
| 24464 | int |
| 24465 | main () |
| 24466 | { |
| 24467 | #ifndef isinf |
| 24468 | (void) isinf; |
| 24469 | #endif |
| 24470 | |
| 24471 | ; |
| 24472 | return 0; |
| 24473 | } |
| 24474 | _ACEOF |
| 24475 | rm -f conftest.$ac_objext |
| 24476 | if { (ac_try="$ac_compile" |
| 24477 | case "(($ac_try" in |
| 24478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24479 | *) ac_try_echo=$ac_try;; |
| 24480 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24482 | (eval "$ac_compile") 2>conftest.er1 |
| 24483 | ac_status=$? |
| 24484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24485 | rm -f conftest.er1 |
| 24486 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24488 | (exit $ac_status); } && { |
| 24489 | test -z "$ac_c_werror_flag" || |
| 24490 | test ! -s conftest.err |
| 24491 | } && test -s conftest.$ac_objext; then |
| 24492 | ac_cv_have_decl_isinf=yes |
| 24493 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24494 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24496 | |
| 24497 | ac_cv_have_decl_isinf=no |
| 24498 | fi |
| 24499 | |
| 24500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24501 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24502 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 24503 | echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; } |
| 24504 | if test $ac_cv_have_decl_isinf = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24505 | |
| 24506 | cat >>confdefs.h <<_ACEOF |
| 24507 | #define HAVE_DECL_ISINF 1 |
| 24508 | _ACEOF |
| 24509 | |
| 24510 | |
| 24511 | else |
| 24512 | cat >>confdefs.h <<_ACEOF |
| 24513 | #define HAVE_DECL_ISINF 0 |
| 24514 | _ACEOF |
| 24515 | |
| 24516 | |
| 24517 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24518 | { echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 24519 | echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24520 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24522 | else |
| 24523 | cat >conftest.$ac_ext <<_ACEOF |
| 24524 | /* confdefs.h. */ |
| 24525 | _ACEOF |
| 24526 | cat confdefs.h >>conftest.$ac_ext |
| 24527 | cat >>conftest.$ac_ext <<_ACEOF |
| 24528 | /* end confdefs.h. */ |
| 24529 | #include <math.h> |
| 24530 | |
| 24531 | int |
| 24532 | main () |
| 24533 | { |
| 24534 | #ifndef isnan |
| 24535 | (void) isnan; |
| 24536 | #endif |
| 24537 | |
| 24538 | ; |
| 24539 | return 0; |
| 24540 | } |
| 24541 | _ACEOF |
| 24542 | rm -f conftest.$ac_objext |
| 24543 | if { (ac_try="$ac_compile" |
| 24544 | case "(($ac_try" in |
| 24545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24546 | *) ac_try_echo=$ac_try;; |
| 24547 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24549 | (eval "$ac_compile") 2>conftest.er1 |
| 24550 | ac_status=$? |
| 24551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24552 | rm -f conftest.er1 |
| 24553 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24555 | (exit $ac_status); } && { |
| 24556 | test -z "$ac_c_werror_flag" || |
| 24557 | test ! -s conftest.err |
| 24558 | } && test -s conftest.$ac_objext; then |
| 24559 | ac_cv_have_decl_isnan=yes |
| 24560 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24561 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24563 | |
| 24564 | ac_cv_have_decl_isnan=no |
| 24565 | fi |
| 24566 | |
| 24567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24568 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24569 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 24570 | echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; } |
| 24571 | if test $ac_cv_have_decl_isnan = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24572 | |
| 24573 | cat >>confdefs.h <<_ACEOF |
| 24574 | #define HAVE_DECL_ISNAN 1 |
| 24575 | _ACEOF |
| 24576 | |
| 24577 | |
| 24578 | else |
| 24579 | cat >>confdefs.h <<_ACEOF |
| 24580 | #define HAVE_DECL_ISNAN 0 |
| 24581 | _ACEOF |
| 24582 | |
| 24583 | |
| 24584 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24585 | { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 24586 | echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24587 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24589 | else |
| 24590 | cat >conftest.$ac_ext <<_ACEOF |
| 24591 | /* confdefs.h. */ |
| 24592 | _ACEOF |
| 24593 | cat confdefs.h >>conftest.$ac_ext |
| 24594 | cat >>conftest.$ac_ext <<_ACEOF |
| 24595 | /* end confdefs.h. */ |
| 24596 | #include <math.h> |
| 24597 | |
| 24598 | int |
| 24599 | main () |
| 24600 | { |
| 24601 | #ifndef isfinite |
| 24602 | (void) isfinite; |
| 24603 | #endif |
| 24604 | |
| 24605 | ; |
| 24606 | return 0; |
| 24607 | } |
| 24608 | _ACEOF |
| 24609 | rm -f conftest.$ac_objext |
| 24610 | if { (ac_try="$ac_compile" |
| 24611 | case "(($ac_try" in |
| 24612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24613 | *) ac_try_echo=$ac_try;; |
| 24614 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24616 | (eval "$ac_compile") 2>conftest.er1 |
| 24617 | ac_status=$? |
| 24618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24619 | rm -f conftest.er1 |
| 24620 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24622 | (exit $ac_status); } && { |
| 24623 | test -z "$ac_c_werror_flag" || |
| 24624 | test ! -s conftest.err |
| 24625 | } && test -s conftest.$ac_objext; then |
| 24626 | ac_cv_have_decl_isfinite=yes |
| 24627 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24628 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24630 | |
| 24631 | ac_cv_have_decl_isfinite=no |
| 24632 | fi |
| 24633 | |
| 24634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24635 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24636 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 24637 | echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; } |
| 24638 | if test $ac_cv_have_decl_isfinite = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24639 | |
| 24640 | cat >>confdefs.h <<_ACEOF |
| 24641 | #define HAVE_DECL_ISFINITE 1 |
| 24642 | _ACEOF |
| 24643 | |
| 24644 | |
| 24645 | else |
| 24646 | cat >>confdefs.h <<_ACEOF |
| 24647 | #define HAVE_DECL_ISFINITE 0 |
| 24648 | _ACEOF |
| 24649 | |
| 24650 | |
| 24651 | fi |
| 24652 | |
| 24653 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24654 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 24655 | LIBS=$LIBS_SAVE |
| 24656 | |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24657 | # For multiprocessing module, check that sem_open |
| 24658 | # actually works. For FreeBSD versions <= 7.2, |
| 24659 | # the kernel module that provides POSIX semaphores |
| 24660 | # isn't loaded by default, so an attempt to call |
| 24661 | # sem_open results in a 'Signal 12' error. |
| 24662 | { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5 |
| 24663 | echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; } |
| 24664 | if test "${ac_cv_posix_semaphores_enabled+set}" = set; then |
| 24665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24666 | else |
| 24667 | if test "$cross_compiling" = yes; then |
| 24668 | ac_cv_posix_semaphores_enabled=yes |
| 24669 | else |
| 24670 | cat >conftest.$ac_ext <<_ACEOF |
| 24671 | /* confdefs.h. */ |
| 24672 | _ACEOF |
| 24673 | cat confdefs.h >>conftest.$ac_ext |
| 24674 | cat >>conftest.$ac_ext <<_ACEOF |
| 24675 | /* end confdefs.h. */ |
| 24676 | |
| 24677 | #include <unistd.h> |
| 24678 | #include <fcntl.h> |
| 24679 | #include <stdio.h> |
| 24680 | #include <semaphore.h> |
| 24681 | #include <sys/stat.h> |
| 24682 | |
| 24683 | int main(void) { |
| 24684 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 24685 | if (a == SEM_FAILED) { |
| 24686 | perror("sem_open"); |
| 24687 | return 1; |
| 24688 | } |
| 24689 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24690 | sem_unlink("/autoconf"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24691 | return 0; |
| 24692 | } |
| 24693 | |
| 24694 | _ACEOF |
| 24695 | rm -f conftest$ac_exeext |
| 24696 | if { (ac_try="$ac_link" |
| 24697 | case "(($ac_try" in |
| 24698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24699 | *) ac_try_echo=$ac_try;; |
| 24700 | esac |
| 24701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24702 | (eval "$ac_link") 2>&5 |
| 24703 | ac_status=$? |
| 24704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24705 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24706 | { (case "(($ac_try" in |
| 24707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24708 | *) ac_try_echo=$ac_try;; |
| 24709 | esac |
| 24710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24711 | (eval "$ac_try") 2>&5 |
| 24712 | ac_status=$? |
| 24713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24714 | (exit $ac_status); }; }; then |
| 24715 | ac_cv_posix_semaphores_enabled=yes |
| 24716 | else |
| 24717 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24718 | echo "$as_me: failed program was:" >&5 |
| 24719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24720 | |
| 24721 | ( exit $ac_status ) |
| 24722 | ac_cv_posix_semaphores_enabled=no |
| 24723 | fi |
| 24724 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24725 | fi |
| 24726 | |
| 24727 | |
| 24728 | |
| 24729 | fi |
| 24730 | |
| 24731 | { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5 |
| 24732 | echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; } |
| 24733 | if test $ac_cv_posix_semaphores_enabled = no |
| 24734 | then |
| 24735 | |
| 24736 | cat >>confdefs.h <<\_ACEOF |
| 24737 | #define POSIX_SEMAPHORES_NOT_ENABLED 1 |
| 24738 | _ACEOF |
| 24739 | |
| 24740 | fi |
| 24741 | |
| 24742 | # Multiprocessing check for broken sem_getvalue |
| 24743 | { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 24744 | echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; } |
| 24745 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then |
| 24746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24747 | else |
| 24748 | if test "$cross_compiling" = yes; then |
| 24749 | ac_cv_broken_sem_getvalue=yes |
| 24750 | else |
| 24751 | cat >conftest.$ac_ext <<_ACEOF |
| 24752 | /* confdefs.h. */ |
| 24753 | _ACEOF |
| 24754 | cat confdefs.h >>conftest.$ac_ext |
| 24755 | cat >>conftest.$ac_ext <<_ACEOF |
| 24756 | /* end confdefs.h. */ |
| 24757 | |
| 24758 | #include <unistd.h> |
| 24759 | #include <fcntl.h> |
| 24760 | #include <stdio.h> |
| 24761 | #include <semaphore.h> |
| 24762 | #include <sys/stat.h> |
| 24763 | |
| 24764 | int main(void){ |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24765 | sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24766 | int count; |
| 24767 | int res; |
| 24768 | if(a==SEM_FAILED){ |
| 24769 | perror("sem_open"); |
| 24770 | return 1; |
| 24771 | |
| 24772 | } |
| 24773 | res = sem_getvalue(a, &count); |
| 24774 | sem_close(a); |
Mark Dickinson | 59dc89e | 2009-12-13 21:06:06 +0000 | [diff] [blame] | 24775 | sem_unlink("/autocftw"); |
Mark Dickinson | c63392c | 2009-11-28 13:13:13 +0000 | [diff] [blame] | 24776 | return res==-1 ? 1 : 0; |
| 24777 | } |
| 24778 | |
| 24779 | _ACEOF |
| 24780 | rm -f conftest$ac_exeext |
| 24781 | if { (ac_try="$ac_link" |
| 24782 | case "(($ac_try" in |
| 24783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24784 | *) ac_try_echo=$ac_try;; |
| 24785 | esac |
| 24786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24787 | (eval "$ac_link") 2>&5 |
| 24788 | ac_status=$? |
| 24789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24790 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24791 | { (case "(($ac_try" in |
| 24792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24793 | *) ac_try_echo=$ac_try;; |
| 24794 | esac |
| 24795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24796 | (eval "$ac_try") 2>&5 |
| 24797 | ac_status=$? |
| 24798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24799 | (exit $ac_status); }; }; then |
| 24800 | ac_cv_broken_sem_getvalue=no |
| 24801 | else |
| 24802 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24803 | echo "$as_me: failed program was:" >&5 |
| 24804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24805 | |
| 24806 | ( exit $ac_status ) |
| 24807 | ac_cv_broken_sem_getvalue=yes |
| 24808 | fi |
| 24809 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24810 | fi |
| 24811 | |
| 24812 | |
| 24813 | |
| 24814 | fi |
| 24815 | |
| 24816 | { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5 |
| 24817 | echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; } |
| 24818 | if test $ac_cv_broken_sem_getvalue = yes |
| 24819 | then |
| 24820 | |
| 24821 | cat >>confdefs.h <<\_ACEOF |
| 24822 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 24823 | _ACEOF |
| 24824 | |
| 24825 | fi |
| 24826 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24827 | # determine what size digit to use for Python's longs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24828 | { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 24829 | echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24830 | # Check whether --enable-big-digits was given. |
| 24831 | if test "${enable_big_digits+set}" = set; then |
| 24832 | enableval=$enable_big_digits; case $enable_big_digits in |
| 24833 | yes) |
| 24834 | enable_big_digits=30 ;; |
| 24835 | no) |
| 24836 | enable_big_digits=15 ;; |
| 24837 | 15|30) |
| 24838 | ;; |
| 24839 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24840 | { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 24841 | echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;} |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24842 | { (exit 1); exit 1; }; } ;; |
| 24843 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24844 | { echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 24845 | echo "${ECHO_T}$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24846 | |
| 24847 | cat >>confdefs.h <<_ACEOF |
| 24848 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 24849 | _ACEOF |
| 24850 | |
| 24851 | |
| 24852 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24853 | { echo "$as_me:$LINENO: result: no value specified" >&5 |
| 24854 | echo "${ECHO_T}no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24855 | fi |
| 24856 | |
| 24857 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24858 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24859 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24860 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24861 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24862 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24864 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24865 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24866 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24867 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24868 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24869 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 24870 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24871 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24872 | /* confdefs.h. */ |
| 24873 | _ACEOF |
| 24874 | cat confdefs.h >>conftest.$ac_ext |
| 24875 | cat >>conftest.$ac_ext <<_ACEOF |
| 24876 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24877 | $ac_includes_default |
| 24878 | #include <wchar.h> |
| 24879 | _ACEOF |
| 24880 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24881 | if { (ac_try="$ac_compile" |
| 24882 | case "(($ac_try" in |
| 24883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24884 | *) ac_try_echo=$ac_try;; |
| 24885 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24887 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24888 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24890 | rm -f conftest.er1 |
| 24891 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24893 | (exit $ac_status); } && { |
| 24894 | test -z "$ac_c_werror_flag" || |
| 24895 | test ! -s conftest.err |
| 24896 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24897 | ac_header_compiler=yes |
| 24898 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24899 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24901 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24902 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24903 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24904 | |
| 24905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24906 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24907 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24908 | |
| 24909 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24910 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 24911 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24912 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24913 | /* confdefs.h. */ |
| 24914 | _ACEOF |
| 24915 | cat confdefs.h >>conftest.$ac_ext |
| 24916 | cat >>conftest.$ac_ext <<_ACEOF |
| 24917 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24918 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24919 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24920 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 24921 | case "(($ac_try" in |
| 24922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24923 | *) ac_try_echo=$ac_try;; |
| 24924 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24926 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24927 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24928 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24929 | rm -f conftest.er1 |
| 24930 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24932 | (exit $ac_status); } >/dev/null && { |
| 24933 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24934 | test ! -s conftest.err |
| 24935 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24936 | ac_header_preproc=yes |
| 24937 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24938 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24941 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24942 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24943 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24944 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24945 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24946 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24947 | |
| 24948 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24949 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 24950 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24951 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24952 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 24953 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 24954 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24955 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24956 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24957 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24958 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 24959 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 24960 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 24961 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 24962 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 24963 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 24964 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 24965 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 24966 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 24967 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 24968 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 24969 | echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24970 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 24971 | ## -------------------------------------- ## |
| 24972 | ## Report this to http://bugs.python.org/ ## |
| 24973 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24974 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24975 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24976 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24977 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24978 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24979 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24980 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24982 | else |
| 24983 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24984 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24985 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24986 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24987 | |
| 24988 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24989 | if test $ac_cv_header_wchar_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24990 | |
| 24991 | |
| 24992 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24993 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24994 | _ACEOF |
| 24995 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 24996 | wchar_h="yes" |
| 24997 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24999 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25000 | |
| 25001 | fi |
| 25002 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25003 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25004 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25005 | # determine wchar_t size |
| 25006 | if test "$wchar_h" = yes |
| 25007 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25008 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 25009 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 25010 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 25011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25012 | else |
| 25013 | cat >conftest.$ac_ext <<_ACEOF |
| 25014 | /* confdefs.h. */ |
| 25015 | _ACEOF |
| 25016 | cat confdefs.h >>conftest.$ac_ext |
| 25017 | cat >>conftest.$ac_ext <<_ACEOF |
| 25018 | /* end confdefs.h. */ |
| 25019 | #include <wchar.h> |
| 25020 | |
| 25021 | typedef wchar_t ac__type_new_; |
| 25022 | int |
| 25023 | main () |
| 25024 | { |
| 25025 | if ((ac__type_new_ *) 0) |
| 25026 | return 0; |
| 25027 | if (sizeof (ac__type_new_)) |
| 25028 | return 0; |
| 25029 | ; |
| 25030 | return 0; |
| 25031 | } |
| 25032 | _ACEOF |
| 25033 | rm -f conftest.$ac_objext |
| 25034 | if { (ac_try="$ac_compile" |
| 25035 | case "(($ac_try" in |
| 25036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25037 | *) ac_try_echo=$ac_try;; |
| 25038 | esac |
| 25039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25040 | (eval "$ac_compile") 2>conftest.er1 |
| 25041 | ac_status=$? |
| 25042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25043 | rm -f conftest.er1 |
| 25044 | cat conftest.err >&5 |
| 25045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25046 | (exit $ac_status); } && { |
| 25047 | test -z "$ac_c_werror_flag" || |
| 25048 | test ! -s conftest.err |
| 25049 | } && test -s conftest.$ac_objext; then |
| 25050 | ac_cv_type_wchar_t=yes |
| 25051 | else |
| 25052 | echo "$as_me: failed program was:" >&5 |
| 25053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25054 | |
| 25055 | ac_cv_type_wchar_t=no |
| 25056 | fi |
| 25057 | |
| 25058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25059 | fi |
| 25060 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 25061 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 25062 | |
| 25063 | # The cast to long int works around a bug in the HP C Compiler |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25064 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 25065 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 25066 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25067 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 25068 | 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] | 25069 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25071 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25072 | if test "$cross_compiling" = yes; then |
| 25073 | # Depending upon the size, compute the lo and hi bounds. |
| 25074 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25075 | /* confdefs.h. */ |
| 25076 | _ACEOF |
| 25077 | cat confdefs.h >>conftest.$ac_ext |
| 25078 | cat >>conftest.$ac_ext <<_ACEOF |
| 25079 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25080 | #include <wchar.h> |
| 25081 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25082 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25083 | int |
| 25084 | main () |
| 25085 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25086 | 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] | 25087 | test_array [0] = 0 |
| 25088 | |
| 25089 | ; |
| 25090 | return 0; |
| 25091 | } |
| 25092 | _ACEOF |
| 25093 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25094 | if { (ac_try="$ac_compile" |
| 25095 | case "(($ac_try" in |
| 25096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25097 | *) ac_try_echo=$ac_try;; |
| 25098 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25100 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25101 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25103 | rm -f conftest.er1 |
| 25104 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25106 | (exit $ac_status); } && { |
| 25107 | test -z "$ac_c_werror_flag" || |
| 25108 | test ! -s conftest.err |
| 25109 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25110 | ac_lo=0 ac_mid=0 |
| 25111 | while :; do |
| 25112 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25113 | /* confdefs.h. */ |
| 25114 | _ACEOF |
| 25115 | cat confdefs.h >>conftest.$ac_ext |
| 25116 | cat >>conftest.$ac_ext <<_ACEOF |
| 25117 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25118 | #include <wchar.h> |
| 25119 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25120 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25121 | int |
| 25122 | main () |
| 25123 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25124 | 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] | 25125 | test_array [0] = 0 |
| 25126 | |
| 25127 | ; |
| 25128 | return 0; |
| 25129 | } |
| 25130 | _ACEOF |
| 25131 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25132 | if { (ac_try="$ac_compile" |
| 25133 | case "(($ac_try" in |
| 25134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25135 | *) ac_try_echo=$ac_try;; |
| 25136 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25138 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25139 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25141 | rm -f conftest.er1 |
| 25142 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25144 | (exit $ac_status); } && { |
| 25145 | test -z "$ac_c_werror_flag" || |
| 25146 | test ! -s conftest.err |
| 25147 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25148 | ac_hi=$ac_mid; break |
| 25149 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25150 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25152 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25153 | ac_lo=`expr $ac_mid + 1` |
| 25154 | if test $ac_lo -le $ac_mid; then |
| 25155 | ac_lo= ac_hi= |
| 25156 | break |
| 25157 | fi |
| 25158 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25159 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25160 | |
| 25161 | 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] | 25162 | done |
| 25163 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25164 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25166 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25167 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25168 | /* confdefs.h. */ |
| 25169 | _ACEOF |
| 25170 | cat confdefs.h >>conftest.$ac_ext |
| 25171 | cat >>conftest.$ac_ext <<_ACEOF |
| 25172 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25173 | #include <wchar.h> |
| 25174 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25175 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25176 | int |
| 25177 | main () |
| 25178 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25179 | 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] | 25180 | test_array [0] = 0 |
| 25181 | |
| 25182 | ; |
| 25183 | return 0; |
| 25184 | } |
| 25185 | _ACEOF |
| 25186 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25187 | if { (ac_try="$ac_compile" |
| 25188 | case "(($ac_try" in |
| 25189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25190 | *) ac_try_echo=$ac_try;; |
| 25191 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25193 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25194 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25196 | rm -f conftest.er1 |
| 25197 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25199 | (exit $ac_status); } && { |
| 25200 | test -z "$ac_c_werror_flag" || |
| 25201 | test ! -s conftest.err |
| 25202 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25203 | ac_hi=-1 ac_mid=-1 |
| 25204 | while :; do |
| 25205 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25206 | /* confdefs.h. */ |
| 25207 | _ACEOF |
| 25208 | cat confdefs.h >>conftest.$ac_ext |
| 25209 | cat >>conftest.$ac_ext <<_ACEOF |
| 25210 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25211 | #include <wchar.h> |
| 25212 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25213 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25214 | int |
| 25215 | main () |
| 25216 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25217 | 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] | 25218 | test_array [0] = 0 |
| 25219 | |
| 25220 | ; |
| 25221 | return 0; |
| 25222 | } |
| 25223 | _ACEOF |
| 25224 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25225 | if { (ac_try="$ac_compile" |
| 25226 | case "(($ac_try" in |
| 25227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25228 | *) ac_try_echo=$ac_try;; |
| 25229 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25231 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25232 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25234 | rm -f conftest.er1 |
| 25235 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25237 | (exit $ac_status); } && { |
| 25238 | test -z "$ac_c_werror_flag" || |
| 25239 | test ! -s conftest.err |
| 25240 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25241 | ac_lo=$ac_mid; break |
| 25242 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25243 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25245 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25246 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 25247 | if test $ac_mid -le $ac_hi; then |
| 25248 | ac_lo= ac_hi= |
| 25249 | break |
| 25250 | fi |
| 25251 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25252 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25253 | |
| 25254 | 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] | 25255 | done |
| 25256 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25257 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25259 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25260 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25261 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25262 | |
| 25263 | 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] | 25264 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25265 | |
| 25266 | 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] | 25267 | # Binary search between lo and hi bounds. |
| 25268 | while test "x$ac_lo" != "x$ac_hi"; do |
| 25269 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 25270 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25271 | /* confdefs.h. */ |
| 25272 | _ACEOF |
| 25273 | cat confdefs.h >>conftest.$ac_ext |
| 25274 | cat >>conftest.$ac_ext <<_ACEOF |
| 25275 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25276 | #include <wchar.h> |
| 25277 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25278 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25279 | int |
| 25280 | main () |
| 25281 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25282 | 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] | 25283 | test_array [0] = 0 |
| 25284 | |
| 25285 | ; |
| 25286 | return 0; |
| 25287 | } |
| 25288 | _ACEOF |
| 25289 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25290 | if { (ac_try="$ac_compile" |
| 25291 | case "(($ac_try" in |
| 25292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25293 | *) ac_try_echo=$ac_try;; |
| 25294 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25296 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25297 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25299 | rm -f conftest.er1 |
| 25300 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25302 | (exit $ac_status); } && { |
| 25303 | test -z "$ac_c_werror_flag" || |
| 25304 | test ! -s conftest.err |
| 25305 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25306 | ac_hi=$ac_mid |
| 25307 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25308 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25310 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25311 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25312 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25313 | |
| 25314 | 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] | 25315 | done |
| 25316 | case $ac_lo in |
| 25317 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25318 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25319 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25320 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25321 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25322 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25323 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25324 | else |
| 25325 | ac_cv_sizeof_wchar_t=0 |
| 25326 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25327 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25328 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25329 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25330 | /* confdefs.h. */ |
| 25331 | _ACEOF |
| 25332 | cat confdefs.h >>conftest.$ac_ext |
| 25333 | cat >>conftest.$ac_ext <<_ACEOF |
| 25334 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25335 | #include <wchar.h> |
| 25336 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25337 | typedef wchar_t ac__type_sizeof_; |
| 25338 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 25339 | 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] | 25340 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25341 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25342 | int |
| 25343 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25344 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25345 | |
| 25346 | FILE *f = fopen ("conftest.val", "w"); |
| 25347 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25348 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25349 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25350 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25351 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25352 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25353 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25354 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25355 | } |
| 25356 | else |
| 25357 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25358 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25359 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25360 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25361 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25362 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25363 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25364 | |
| 25365 | ; |
| 25366 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25367 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25368 | _ACEOF |
| 25369 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25370 | if { (ac_try="$ac_link" |
| 25371 | case "(($ac_try" in |
| 25372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25373 | *) ac_try_echo=$ac_try;; |
| 25374 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25376 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25377 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25379 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25380 | { (case "(($ac_try" in |
| 25381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25382 | *) ac_try_echo=$ac_try;; |
| 25383 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25385 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25386 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25388 | (exit $ac_status); }; }; then |
| 25389 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25390 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25391 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25392 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25394 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25395 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25396 | if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25397 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25398 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25399 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25400 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25401 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25402 | else |
| 25403 | ac_cv_sizeof_wchar_t=0 |
| 25404 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25405 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25406 | 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] | 25407 | fi |
| 25408 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25409 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25410 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 25411 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25412 | |
| 25413 | |
| 25414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25415 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25416 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25417 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25418 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25419 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25420 | fi |
| 25421 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25422 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 25423 | 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] | 25424 | have_ucs4_tcl=no |
| 25425 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25426 | /* confdefs.h. */ |
| 25427 | _ACEOF |
| 25428 | cat confdefs.h >>conftest.$ac_ext |
| 25429 | cat >>conftest.$ac_ext <<_ACEOF |
| 25430 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25431 | |
| 25432 | #include <tcl.h> |
| 25433 | #if TCL_UTF_MAX != 6 |
| 25434 | # error "NOT UCS4_TCL" |
| 25435 | #endif |
| 25436 | int |
| 25437 | main () |
| 25438 | { |
| 25439 | |
| 25440 | ; |
| 25441 | return 0; |
| 25442 | } |
| 25443 | _ACEOF |
| 25444 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25445 | if { (ac_try="$ac_compile" |
| 25446 | case "(($ac_try" in |
| 25447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25448 | *) ac_try_echo=$ac_try;; |
| 25449 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25451 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25452 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25454 | rm -f conftest.er1 |
| 25455 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25457 | (exit $ac_status); } && { |
| 25458 | test -z "$ac_c_werror_flag" || |
| 25459 | test ! -s conftest.err |
| 25460 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25461 | |
| 25462 | |
| 25463 | cat >>confdefs.h <<\_ACEOF |
| 25464 | #define HAVE_UCS4_TCL 1 |
| 25465 | _ACEOF |
| 25466 | |
| 25467 | have_ucs4_tcl=yes |
| 25468 | |
| 25469 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25470 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25472 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25473 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25474 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25475 | |
| 25476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25477 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 25478 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25479 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25480 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25481 | if test "$wchar_h" = yes |
| 25482 | then |
| 25483 | # check whether wchar_t is signed or not |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25484 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 25485 | 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] | 25486 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25488 | else |
| 25489 | |
| 25490 | if test "$cross_compiling" = yes; then |
| 25491 | ac_cv_wchar_t_signed=yes |
| 25492 | else |
| 25493 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25494 | /* confdefs.h. */ |
| 25495 | _ACEOF |
| 25496 | cat confdefs.h >>conftest.$ac_ext |
| 25497 | cat >>conftest.$ac_ext <<_ACEOF |
| 25498 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25499 | |
| 25500 | #include <wchar.h> |
| 25501 | int main() |
| 25502 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 25503 | /* Success: exit code 0 */ |
| 25504 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25505 | } |
| 25506 | |
| 25507 | _ACEOF |
| 25508 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25509 | if { (ac_try="$ac_link" |
| 25510 | case "(($ac_try" in |
| 25511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25512 | *) ac_try_echo=$ac_try;; |
| 25513 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25515 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25516 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25518 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25519 | { (case "(($ac_try" in |
| 25520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25521 | *) ac_try_echo=$ac_try;; |
| 25522 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25524 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25525 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25527 | (exit $ac_status); }; }; then |
| 25528 | ac_cv_wchar_t_signed=yes |
| 25529 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25530 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25533 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25534 | ( exit $ac_status ) |
| 25535 | ac_cv_wchar_t_signed=no |
| 25536 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25537 | 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] | 25538 | fi |
| 25539 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25540 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25541 | fi |
| 25542 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25543 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 25544 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25545 | fi |
| 25546 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25547 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 25548 | echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25549 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25550 | if test "${enable_unicode+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25551 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25552 | else |
| 25553 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25554 | fi |
| 25555 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25556 | |
| 25557 | if test $enable_unicode = yes |
| 25558 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 25559 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25560 | case "$have_ucs4_tcl" in |
| 25561 | yes) enable_unicode="ucs4" |
| 25562 | ;; |
| 25563 | *) enable_unicode="ucs2" |
| 25564 | ;; |
| 25565 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25566 | fi |
| 25567 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25568 | |
| 25569 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25570 | case "$enable_unicode" in |
| 25571 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25572 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25573 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25574 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25575 | |
| 25576 | ;; |
| 25577 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25578 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25579 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25580 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25581 | |
| 25582 | ;; |
| 25583 | esac |
| 25584 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25586 | |
| 25587 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25588 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25589 | if test "$enable_unicode" = "no" |
| 25590 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25591 | UNICODE_OBJS="" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25592 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 25593 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25594 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25595 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25596 | |
| 25597 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25598 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25599 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25600 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25601 | |
| 25602 | # wchar_t is only usable if it maps to an unsigned type |
| 25603 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 25604 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25605 | then |
| 25606 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25608 | cat >>confdefs.h <<\_ACEOF |
| 25609 | #define HAVE_USABLE_WCHAR_T 1 |
| 25610 | _ACEOF |
| 25611 | |
| 25612 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25613 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25614 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25615 | |
| 25616 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 25617 | then |
| 25618 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25619 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25620 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25621 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25622 | |
| 25623 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 25624 | then |
| 25625 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25626 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25627 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25628 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25629 | |
| 25630 | else |
| 25631 | PY_UNICODE_TYPE="no type found" |
| 25632 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25633 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 25634 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25635 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25636 | |
| 25637 | # check for endianness |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25638 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 25639 | 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] | 25640 | if test "${ac_cv_c_bigendian+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25642 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25643 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 25644 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25645 | /* confdefs.h. */ |
| 25646 | _ACEOF |
| 25647 | cat confdefs.h >>conftest.$ac_ext |
| 25648 | cat >>conftest.$ac_ext <<_ACEOF |
| 25649 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25650 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25651 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25653 | int |
| 25654 | main () |
| 25655 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25656 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 25657 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 25658 | bogus endian macros |
| 25659 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25660 | |
| 25661 | ; |
| 25662 | return 0; |
| 25663 | } |
| 25664 | _ACEOF |
| 25665 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25666 | if { (ac_try="$ac_compile" |
| 25667 | case "(($ac_try" in |
| 25668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25669 | *) ac_try_echo=$ac_try;; |
| 25670 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25672 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25673 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25675 | rm -f conftest.er1 |
| 25676 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25678 | (exit $ac_status); } && { |
| 25679 | test -z "$ac_c_werror_flag" || |
| 25680 | test ! -s conftest.err |
| 25681 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25682 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25683 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25684 | /* confdefs.h. */ |
| 25685 | _ACEOF |
| 25686 | cat confdefs.h >>conftest.$ac_ext |
| 25687 | cat >>conftest.$ac_ext <<_ACEOF |
| 25688 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25689 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25690 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25692 | int |
| 25693 | main () |
| 25694 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25695 | #if BYTE_ORDER != BIG_ENDIAN |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25696 | not big endian |
| 25697 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25698 | |
| 25699 | ; |
| 25700 | return 0; |
| 25701 | } |
| 25702 | _ACEOF |
| 25703 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25704 | if { (ac_try="$ac_compile" |
| 25705 | case "(($ac_try" in |
| 25706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25707 | *) ac_try_echo=$ac_try;; |
| 25708 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25710 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25711 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25713 | rm -f conftest.er1 |
| 25714 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25716 | (exit $ac_status); } && { |
| 25717 | test -z "$ac_c_werror_flag" || |
| 25718 | test ! -s conftest.err |
| 25719 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25720 | ac_cv_c_bigendian=yes |
| 25721 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25722 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25724 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25725 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25726 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25727 | |
| 25728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25729 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25730 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25732 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25733 | # It does not; compile a test program. |
| 25734 | if test "$cross_compiling" = yes; then |
| 25735 | # try to guess the endianness by grepping values into an object file |
| 25736 | ac_cv_c_bigendian=unknown |
| 25737 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25738 | /* confdefs.h. */ |
| 25739 | _ACEOF |
| 25740 | cat confdefs.h >>conftest.$ac_ext |
| 25741 | cat >>conftest.$ac_ext <<_ACEOF |
| 25742 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25743 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 25744 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 25745 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 25746 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 25747 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 25748 | 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] | 25749 | int |
| 25750 | main () |
| 25751 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25752 | _ascii (); _ebcdic (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25753 | ; |
| 25754 | return 0; |
| 25755 | } |
| 25756 | _ACEOF |
| 25757 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25758 | if { (ac_try="$ac_compile" |
| 25759 | case "(($ac_try" in |
| 25760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25761 | *) ac_try_echo=$ac_try;; |
| 25762 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25764 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25765 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25767 | rm -f conftest.er1 |
| 25768 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25770 | (exit $ac_status); } && { |
| 25771 | test -z "$ac_c_werror_flag" || |
| 25772 | test ! -s conftest.err |
| 25773 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25774 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25775 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25776 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25777 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 25778 | if test "$ac_cv_c_bigendian" = unknown; then |
| 25779 | ac_cv_c_bigendian=no |
| 25780 | else |
| 25781 | # finding both strings is unlikely to happen, but who knows? |
| 25782 | ac_cv_c_bigendian=unknown |
| 25783 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25784 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25785 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25786 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25788 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25790 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25791 | |
| 25792 | 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] | 25793 | else |
| 25794 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25795 | /* confdefs.h. */ |
| 25796 | _ACEOF |
| 25797 | cat confdefs.h >>conftest.$ac_ext |
| 25798 | cat >>conftest.$ac_ext <<_ACEOF |
| 25799 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25800 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25801 | int |
| 25802 | main () |
| 25803 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25804 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25805 | /* Are we little or big endian? From Harbison&Steele. */ |
| 25806 | union |
| 25807 | { |
| 25808 | long int l; |
| 25809 | char c[sizeof (long int)]; |
| 25810 | } u; |
| 25811 | u.l = 1; |
| 25812 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25813 | |
| 25814 | ; |
| 25815 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25816 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25817 | _ACEOF |
| 25818 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25819 | if { (ac_try="$ac_link" |
| 25820 | case "(($ac_try" in |
| 25821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25822 | *) ac_try_echo=$ac_try;; |
| 25823 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25825 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25826 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25828 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25829 | { (case "(($ac_try" in |
| 25830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25831 | *) ac_try_echo=$ac_try;; |
| 25832 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25834 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25835 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25837 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25838 | ac_cv_c_bigendian=no |
| 25839 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25840 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25841 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25844 | ( exit $ac_status ) |
| 25845 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25846 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25847 | 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] | 25848 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25849 | |
| 25850 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25851 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25852 | |
| 25853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25854 | fi |
| 25855 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 25856 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 25857 | case $ac_cv_c_bigendian in |
| 25858 | yes) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25859 | |
| 25860 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25861 | #define WORDS_BIGENDIAN 1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25862 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25863 | ;; |
| 25864 | no) |
| 25865 | ;; |
| 25866 | *) |
| 25867 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 25868 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 25869 | echo "$as_me: error: unknown endianness |
| 25870 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25871 | { (exit 1); exit 1; }; } ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25872 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25873 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25874 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25875 | # Check whether right shifting a negative integer extends the sign bit |
| 25876 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25877 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 25878 | 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] | 25879 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25881 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25882 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25883 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 25884 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25886 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25887 | /* confdefs.h. */ |
| 25888 | _ACEOF |
| 25889 | cat confdefs.h >>conftest.$ac_ext |
| 25890 | cat >>conftest.$ac_ext <<_ACEOF |
| 25891 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25892 | |
| 25893 | int main() |
| 25894 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25895 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25896 | } |
| 25897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25898 | _ACEOF |
| 25899 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25900 | if { (ac_try="$ac_link" |
| 25901 | case "(($ac_try" in |
| 25902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25903 | *) ac_try_echo=$ac_try;; |
| 25904 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25906 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25907 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25909 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25910 | { (case "(($ac_try" in |
| 25911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25912 | *) ac_try_echo=$ac_try;; |
| 25913 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25915 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25916 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25918 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25919 | ac_cv_rshift_extends_sign=yes |
| 25920 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25921 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25922 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25924 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25925 | ( exit $ac_status ) |
| 25926 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25927 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25928 | 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] | 25929 | fi |
| 25930 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25931 | |
| 25932 | fi |
| 25933 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25934 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 25935 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25936 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25937 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25938 | |
| 25939 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25940 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25941 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25942 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25943 | fi |
| 25944 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25945 | # check for getc_unlocked and related locking functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25946 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 25947 | 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] | 25948 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25951 | |
| 25952 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25953 | /* confdefs.h. */ |
| 25954 | _ACEOF |
| 25955 | cat confdefs.h >>conftest.$ac_ext |
| 25956 | cat >>conftest.$ac_ext <<_ACEOF |
| 25957 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25958 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25959 | int |
| 25960 | main () |
| 25961 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25962 | |
| 25963 | FILE *f = fopen("/dev/null", "r"); |
| 25964 | flockfile(f); |
| 25965 | getc_unlocked(f); |
| 25966 | funlockfile(f); |
| 25967 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25968 | ; |
| 25969 | return 0; |
| 25970 | } |
| 25971 | _ACEOF |
| 25972 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25973 | if { (ac_try="$ac_link" |
| 25974 | case "(($ac_try" in |
| 25975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25976 | *) ac_try_echo=$ac_try;; |
| 25977 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25979 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25980 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25982 | rm -f conftest.er1 |
| 25983 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25985 | (exit $ac_status); } && { |
| 25986 | test -z "$ac_c_werror_flag" || |
| 25987 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25988 | } && test -s conftest$ac_exeext && |
| 25989 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25990 | ac_cv_have_getc_unlocked=yes |
| 25991 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25992 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25994 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25995 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25996 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25997 | |
| 25998 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25999 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26000 | fi |
| 26001 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26002 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 26003 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26004 | if test "$ac_cv_have_getc_unlocked" = yes |
| 26005 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26006 | |
| 26007 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26008 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26009 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 26010 | |
| 26011 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 26012 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26013 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 26014 | # save the value of LIBS so we don't actually link Python with readline |
| 26015 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26016 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26017 | # On some systems we need to link readline to a termcap compatible |
| 26018 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 26019 | # with setup.py. |
| 26020 | py_cv_lib_readline=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26021 | { echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 26022 | echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26023 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 26024 | if test -z "$py_libtermcap"; then |
| 26025 | READLINE_LIBS="-lreadline" |
| 26026 | else |
| 26027 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 26028 | fi |
| 26029 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 26030 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26031 | /* confdefs.h. */ |
| 26032 | _ACEOF |
| 26033 | cat confdefs.h >>conftest.$ac_ext |
| 26034 | cat >>conftest.$ac_ext <<_ACEOF |
| 26035 | /* end confdefs.h. */ |
| 26036 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26037 | /* Override any GCC internal prototype to avoid an error. |
| 26038 | Use char because int might match the return type of a GCC |
| 26039 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26040 | #ifdef __cplusplus |
| 26041 | extern "C" |
| 26042 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26043 | char readline (); |
| 26044 | int |
| 26045 | main () |
| 26046 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26047 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26048 | ; |
| 26049 | return 0; |
| 26050 | } |
| 26051 | _ACEOF |
| 26052 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26053 | if { (ac_try="$ac_link" |
| 26054 | case "(($ac_try" in |
| 26055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26056 | *) ac_try_echo=$ac_try;; |
| 26057 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26059 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26060 | ac_status=$? |
| 26061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26062 | rm -f conftest.er1 |
| 26063 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26065 | (exit $ac_status); } && { |
| 26066 | test -z "$ac_c_werror_flag" || |
| 26067 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26068 | } && test -s conftest$ac_exeext && |
| 26069 | $as_test_x conftest$ac_exeext; then |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26070 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26071 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26072 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26074 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26075 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26076 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26077 | |
| 26078 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26079 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26080 | if test $py_cv_lib_readline = yes; then |
| 26081 | break |
| 26082 | fi |
| 26083 | done |
| 26084 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 26085 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 26086 | if test $py_cv_lib_readline = no; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26087 | { echo "$as_me:$LINENO: result: none" >&5 |
| 26088 | echo "${ECHO_T}none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26089 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26090 | { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 26091 | echo "${ECHO_T}$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 26092 | |
| 26093 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26094 | #define HAVE_LIBREADLINE 1 |
| 26095 | _ACEOF |
| 26096 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 26097 | fi |
| 26098 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26099 | # check for readline 2.1 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26100 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 26101 | 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] | 26102 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26104 | else |
| 26105 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26106 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26107 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26108 | /* confdefs.h. */ |
| 26109 | _ACEOF |
| 26110 | cat confdefs.h >>conftest.$ac_ext |
| 26111 | cat >>conftest.$ac_ext <<_ACEOF |
| 26112 | /* end confdefs.h. */ |
| 26113 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26114 | /* Override any GCC internal prototype to avoid an error. |
| 26115 | Use char because int might match the return type of a GCC |
| 26116 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26117 | #ifdef __cplusplus |
| 26118 | extern "C" |
| 26119 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26120 | char rl_callback_handler_install (); |
| 26121 | int |
| 26122 | main () |
| 26123 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26124 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26125 | ; |
| 26126 | return 0; |
| 26127 | } |
| 26128 | _ACEOF |
| 26129 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26130 | if { (ac_try="$ac_link" |
| 26131 | case "(($ac_try" in |
| 26132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26133 | *) ac_try_echo=$ac_try;; |
| 26134 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26136 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26137 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26139 | rm -f conftest.er1 |
| 26140 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26142 | (exit $ac_status); } && { |
| 26143 | test -z "$ac_c_werror_flag" || |
| 26144 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26145 | } && test -s conftest$ac_exeext && |
| 26146 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26147 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 26148 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26149 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26151 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26152 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26153 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26154 | |
| 26155 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26156 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26157 | LIBS=$ac_check_lib_save_LIBS |
| 26158 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26159 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 26160 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 26161 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26162 | |
| 26163 | cat >>confdefs.h <<\_ACEOF |
| 26164 | #define HAVE_RL_CALLBACK 1 |
| 26165 | _ACEOF |
| 26166 | |
| 26167 | fi |
| 26168 | |
| 26169 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26170 | # check for readline 2.2 |
| 26171 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26172 | /* confdefs.h. */ |
| 26173 | _ACEOF |
| 26174 | cat confdefs.h >>conftest.$ac_ext |
| 26175 | cat >>conftest.$ac_ext <<_ACEOF |
| 26176 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26177 | #include <readline/readline.h> |
| 26178 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26179 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 26180 | case "(($ac_try" in |
| 26181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26182 | *) ac_try_echo=$ac_try;; |
| 26183 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26185 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26186 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26187 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26188 | rm -f conftest.er1 |
| 26189 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26191 | (exit $ac_status); } >/dev/null && { |
| 26192 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 26193 | test ! -s conftest.err |
| 26194 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26195 | have_readline=yes |
| 26196 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26197 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26199 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26200 | have_readline=no |
| 26201 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26202 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26203 | rm -f conftest.err conftest.$ac_ext |
| 26204 | if test $have_readline = yes |
| 26205 | then |
| 26206 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26207 | /* confdefs.h. */ |
| 26208 | _ACEOF |
| 26209 | cat confdefs.h >>conftest.$ac_ext |
| 26210 | cat >>conftest.$ac_ext <<_ACEOF |
| 26211 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26212 | #include <readline/readline.h> |
| 26213 | |
| 26214 | _ACEOF |
| 26215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26216 | $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] | 26217 | |
| 26218 | cat >>confdefs.h <<\_ACEOF |
| 26219 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 26220 | _ACEOF |
| 26221 | |
| 26222 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 26223 | rm -f conftest* |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 26224 | |
| 26225 | cat >conftest.$ac_ext <<_ACEOF |
| 26226 | /* confdefs.h. */ |
| 26227 | _ACEOF |
| 26228 | cat confdefs.h >>conftest.$ac_ext |
| 26229 | cat >>conftest.$ac_ext <<_ACEOF |
| 26230 | /* end confdefs.h. */ |
| 26231 | #include <readline/readline.h> |
| 26232 | |
| 26233 | _ACEOF |
| 26234 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26235 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then |
| 26236 | |
| 26237 | cat >>confdefs.h <<\_ACEOF |
| 26238 | #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1 |
| 26239 | _ACEOF |
| 26240 | |
| 26241 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 26242 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 26243 | |
| 26244 | fi |
| 26245 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26246 | # check for readline 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26247 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 26248 | 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] | 26249 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26251 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26252 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26253 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26254 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26255 | /* confdefs.h. */ |
| 26256 | _ACEOF |
| 26257 | cat confdefs.h >>conftest.$ac_ext |
| 26258 | cat >>conftest.$ac_ext <<_ACEOF |
| 26259 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26260 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26261 | /* Override any GCC internal prototype to avoid an error. |
| 26262 | Use char because int might match the return type of a GCC |
| 26263 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26264 | #ifdef __cplusplus |
| 26265 | extern "C" |
| 26266 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26267 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26268 | int |
| 26269 | main () |
| 26270 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26271 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26272 | ; |
| 26273 | return 0; |
| 26274 | } |
| 26275 | _ACEOF |
| 26276 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26277 | if { (ac_try="$ac_link" |
| 26278 | case "(($ac_try" in |
| 26279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26280 | *) ac_try_echo=$ac_try;; |
| 26281 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26283 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26284 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26286 | rm -f conftest.er1 |
| 26287 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26289 | (exit $ac_status); } && { |
| 26290 | test -z "$ac_c_werror_flag" || |
| 26291 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26292 | } && test -s conftest$ac_exeext && |
| 26293 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26294 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26295 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26296 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26298 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26299 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26300 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26301 | |
| 26302 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26303 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26304 | LIBS=$ac_check_lib_save_LIBS |
| 26305 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26306 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 26307 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 26308 | 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] | 26309 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26310 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26311 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26312 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26313 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26314 | fi |
| 26315 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26316 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26317 | # also in 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26318 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 26319 | echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; } |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26320 | if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26322 | else |
| 26323 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26324 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26325 | cat >conftest.$ac_ext <<_ACEOF |
| 26326 | /* confdefs.h. */ |
| 26327 | _ACEOF |
| 26328 | cat confdefs.h >>conftest.$ac_ext |
| 26329 | cat >>conftest.$ac_ext <<_ACEOF |
| 26330 | /* end confdefs.h. */ |
| 26331 | |
| 26332 | /* Override any GCC internal prototype to avoid an error. |
| 26333 | Use char because int might match the return type of a GCC |
| 26334 | builtin and then its argument prototype would still apply. */ |
| 26335 | #ifdef __cplusplus |
| 26336 | extern "C" |
| 26337 | #endif |
| 26338 | char rl_completion_display_matches_hook (); |
| 26339 | int |
| 26340 | main () |
| 26341 | { |
| 26342 | return rl_completion_display_matches_hook (); |
| 26343 | ; |
| 26344 | return 0; |
| 26345 | } |
| 26346 | _ACEOF |
| 26347 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26348 | if { (ac_try="$ac_link" |
| 26349 | case "(($ac_try" in |
| 26350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26351 | *) ac_try_echo=$ac_try;; |
| 26352 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26354 | (eval "$ac_link") 2>conftest.er1 |
| 26355 | ac_status=$? |
| 26356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26357 | rm -f conftest.er1 |
| 26358 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26360 | (exit $ac_status); } && { |
| 26361 | test -z "$ac_c_werror_flag" || |
| 26362 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26363 | } && test -s conftest$ac_exeext && |
| 26364 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26365 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 26366 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26367 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26369 | |
| 26370 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 26371 | fi |
| 26372 | |
| 26373 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 26374 | conftest$ac_exeext conftest.$ac_ext |
| 26375 | LIBS=$ac_check_lib_save_LIBS |
| 26376 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26377 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 26378 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 26379 | if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 26380 | |
| 26381 | cat >>confdefs.h <<\_ACEOF |
| 26382 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 26383 | _ACEOF |
| 26384 | |
| 26385 | fi |
| 26386 | |
| 26387 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26388 | # check for readline 4.2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26389 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 26390 | 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] | 26391 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 26393 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26394 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 26395 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26396 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26397 | /* confdefs.h. */ |
| 26398 | _ACEOF |
| 26399 | cat confdefs.h >>conftest.$ac_ext |
| 26400 | cat >>conftest.$ac_ext <<_ACEOF |
| 26401 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26402 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26403 | /* Override any GCC internal prototype to avoid an error. |
| 26404 | Use char because int might match the return type of a GCC |
| 26405 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26406 | #ifdef __cplusplus |
| 26407 | extern "C" |
| 26408 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26409 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26410 | int |
| 26411 | main () |
| 26412 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26413 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26414 | ; |
| 26415 | return 0; |
| 26416 | } |
| 26417 | _ACEOF |
| 26418 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26419 | if { (ac_try="$ac_link" |
| 26420 | case "(($ac_try" in |
| 26421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26422 | *) ac_try_echo=$ac_try;; |
| 26423 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26425 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26426 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26428 | rm -f conftest.er1 |
| 26429 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26431 | (exit $ac_status); } && { |
| 26432 | test -z "$ac_c_werror_flag" || |
| 26433 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26434 | } && test -s conftest$ac_exeext && |
| 26435 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26436 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26437 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26438 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26440 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26441 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26442 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26443 | |
| 26444 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26445 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26446 | LIBS=$ac_check_lib_save_LIBS |
| 26447 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26448 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 26449 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 26450 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26452 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26453 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26454 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26455 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 26456 | fi |
| 26457 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 26458 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26459 | # also in readline 4.2 |
| 26460 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26461 | /* confdefs.h. */ |
| 26462 | _ACEOF |
| 26463 | cat confdefs.h >>conftest.$ac_ext |
| 26464 | cat >>conftest.$ac_ext <<_ACEOF |
| 26465 | /* end confdefs.h. */ |
| 26466 | #include <readline/readline.h> |
| 26467 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26468 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 26469 | case "(($ac_try" in |
| 26470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26471 | *) ac_try_echo=$ac_try;; |
| 26472 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26474 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26475 | ac_status=$? |
| 26476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26477 | rm -f conftest.er1 |
| 26478 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26480 | (exit $ac_status); } >/dev/null && { |
| 26481 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 26482 | test ! -s conftest.err |
| 26483 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26484 | have_readline=yes |
| 26485 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26486 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26488 | |
| 26489 | have_readline=no |
| 26490 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26491 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26492 | rm -f conftest.err conftest.$ac_ext |
| 26493 | if test $have_readline = yes |
| 26494 | then |
| 26495 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26496 | /* confdefs.h. */ |
| 26497 | _ACEOF |
| 26498 | cat confdefs.h >>conftest.$ac_ext |
| 26499 | cat >>conftest.$ac_ext <<_ACEOF |
| 26500 | /* end confdefs.h. */ |
| 26501 | #include <readline/readline.h> |
| 26502 | |
| 26503 | _ACEOF |
| 26504 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26505 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 26506 | |
| 26507 | cat >>confdefs.h <<\_ACEOF |
| 26508 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 26509 | _ACEOF |
| 26510 | |
| 26511 | fi |
Martin v. Löwis | 5e2dd86 | 2010-02-15 08:32:00 +0000 | [diff] [blame^] | 26512 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26513 | |
| 26514 | fi |
| 26515 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 26516 | # End of readline checks: restore LIBS |
| 26517 | LIBS=$LIBS_no_readline |
| 26518 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26519 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 26520 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26521 | if test "${ac_cv_broken_nice+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26523 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26524 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26525 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 26526 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26527 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26528 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26529 | /* confdefs.h. */ |
| 26530 | _ACEOF |
| 26531 | cat confdefs.h >>conftest.$ac_ext |
| 26532 | cat >>conftest.$ac_ext <<_ACEOF |
| 26533 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26534 | |
| 26535 | int main() |
| 26536 | { |
| 26537 | int val1 = nice(1); |
| 26538 | if (val1 != -1 && val1 == nice(2)) |
| 26539 | exit(0); |
| 26540 | exit(1); |
| 26541 | } |
| 26542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26543 | _ACEOF |
| 26544 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26545 | if { (ac_try="$ac_link" |
| 26546 | case "(($ac_try" in |
| 26547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26548 | *) ac_try_echo=$ac_try;; |
| 26549 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26551 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26552 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26554 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26555 | { (case "(($ac_try" in |
| 26556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26557 | *) ac_try_echo=$ac_try;; |
| 26558 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26560 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26561 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26563 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26564 | ac_cv_broken_nice=yes |
| 26565 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26566 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26567 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26569 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26570 | ( exit $ac_status ) |
| 26571 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26572 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26573 | 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] | 26574 | fi |
| 26575 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26576 | |
| 26577 | fi |
| 26578 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26579 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 26580 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26581 | if test "$ac_cv_broken_nice" = yes |
| 26582 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26583 | |
| 26584 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26585 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26586 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26587 | |
| 26588 | fi |
| 26589 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26590 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 26591 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26592 | if test "${ac_cv_broken_poll+set}" = set; then |
| 26593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26594 | else |
| 26595 | if test "$cross_compiling" = yes; then |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26596 | ac_cv_broken_poll=no |
| 26597 | else |
| 26598 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26599 | /* confdefs.h. */ |
| 26600 | _ACEOF |
| 26601 | cat confdefs.h >>conftest.$ac_ext |
| 26602 | cat >>conftest.$ac_ext <<_ACEOF |
| 26603 | /* end confdefs.h. */ |
| 26604 | |
| 26605 | #include <poll.h> |
| 26606 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26607 | int main() |
| 26608 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26609 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26610 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26611 | |
| 26612 | close (42); |
| 26613 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26614 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26615 | if (poll_test < 0) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26616 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26617 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26618 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26619 | else |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26620 | return 1; |
| 26621 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26622 | |
| 26623 | _ACEOF |
| 26624 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26625 | if { (ac_try="$ac_link" |
| 26626 | case "(($ac_try" in |
| 26627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26628 | *) ac_try_echo=$ac_try;; |
| 26629 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26631 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26632 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26634 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26635 | { (case "(($ac_try" in |
| 26636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26637 | *) ac_try_echo=$ac_try;; |
| 26638 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26640 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26641 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26643 | (exit $ac_status); }; }; then |
| 26644 | ac_cv_broken_poll=yes |
| 26645 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26646 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26647 | echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26649 | |
| 26650 | ( exit $ac_status ) |
| 26651 | ac_cv_broken_poll=no |
| 26652 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26653 | 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] | 26654 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26655 | |
| 26656 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26657 | fi |
| 26658 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26659 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 26660 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26661 | if test "$ac_cv_broken_poll" = yes |
| 26662 | then |
| 26663 | |
| 26664 | cat >>confdefs.h <<\_ACEOF |
| 26665 | #define HAVE_BROKEN_POLL 1 |
| 26666 | _ACEOF |
| 26667 | |
| 26668 | fi |
| 26669 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26670 | # 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] | 26671 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 26672 | # tzname[] |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26673 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 26674 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26675 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26677 | else |
| 26678 | cat >conftest.$ac_ext <<_ACEOF |
| 26679 | /* confdefs.h. */ |
| 26680 | _ACEOF |
| 26681 | cat confdefs.h >>conftest.$ac_ext |
| 26682 | cat >>conftest.$ac_ext <<_ACEOF |
| 26683 | /* end confdefs.h. */ |
| 26684 | #include <sys/types.h> |
| 26685 | #include <$ac_cv_struct_tm> |
| 26686 | |
| 26687 | |
| 26688 | int |
| 26689 | main () |
| 26690 | { |
| 26691 | static struct tm ac_aggr; |
| 26692 | if (ac_aggr.tm_zone) |
| 26693 | return 0; |
| 26694 | ; |
| 26695 | return 0; |
| 26696 | } |
| 26697 | _ACEOF |
| 26698 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26699 | if { (ac_try="$ac_compile" |
| 26700 | case "(($ac_try" in |
| 26701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26702 | *) ac_try_echo=$ac_try;; |
| 26703 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26705 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26706 | ac_status=$? |
| 26707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26708 | rm -f conftest.er1 |
| 26709 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26711 | (exit $ac_status); } && { |
| 26712 | test -z "$ac_c_werror_flag" || |
| 26713 | test ! -s conftest.err |
| 26714 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26715 | ac_cv_member_struct_tm_tm_zone=yes |
| 26716 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26717 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26719 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26720 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26721 | /* confdefs.h. */ |
| 26722 | _ACEOF |
| 26723 | cat confdefs.h >>conftest.$ac_ext |
| 26724 | cat >>conftest.$ac_ext <<_ACEOF |
| 26725 | /* end confdefs.h. */ |
| 26726 | #include <sys/types.h> |
| 26727 | #include <$ac_cv_struct_tm> |
| 26728 | |
| 26729 | |
| 26730 | int |
| 26731 | main () |
| 26732 | { |
| 26733 | static struct tm ac_aggr; |
| 26734 | if (sizeof ac_aggr.tm_zone) |
| 26735 | return 0; |
| 26736 | ; |
| 26737 | return 0; |
| 26738 | } |
| 26739 | _ACEOF |
| 26740 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26741 | if { (ac_try="$ac_compile" |
| 26742 | case "(($ac_try" in |
| 26743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26744 | *) ac_try_echo=$ac_try;; |
| 26745 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26747 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26748 | ac_status=$? |
| 26749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26750 | rm -f conftest.er1 |
| 26751 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26753 | (exit $ac_status); } && { |
| 26754 | test -z "$ac_c_werror_flag" || |
| 26755 | test ! -s conftest.err |
| 26756 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26757 | ac_cv_member_struct_tm_tm_zone=yes |
| 26758 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26759 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26761 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26762 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26763 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26764 | |
| 26765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26766 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26767 | |
| 26768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26769 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26770 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 26771 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 26772 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26773 | |
| 26774 | cat >>confdefs.h <<_ACEOF |
| 26775 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 26776 | _ACEOF |
| 26777 | |
| 26778 | |
| 26779 | fi |
| 26780 | |
| 26781 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 26782 | |
| 26783 | cat >>confdefs.h <<\_ACEOF |
| 26784 | #define HAVE_TM_ZONE 1 |
| 26785 | _ACEOF |
| 26786 | |
| 26787 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26788 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 26789 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26790 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26792 | else |
| 26793 | cat >conftest.$ac_ext <<_ACEOF |
| 26794 | /* confdefs.h. */ |
| 26795 | _ACEOF |
| 26796 | cat confdefs.h >>conftest.$ac_ext |
| 26797 | cat >>conftest.$ac_ext <<_ACEOF |
| 26798 | /* end confdefs.h. */ |
| 26799 | #include <time.h> |
| 26800 | |
| 26801 | int |
| 26802 | main () |
| 26803 | { |
| 26804 | #ifndef tzname |
| 26805 | (void) tzname; |
| 26806 | #endif |
| 26807 | |
| 26808 | ; |
| 26809 | return 0; |
| 26810 | } |
| 26811 | _ACEOF |
| 26812 | rm -f conftest.$ac_objext |
| 26813 | if { (ac_try="$ac_compile" |
| 26814 | case "(($ac_try" in |
| 26815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26816 | *) ac_try_echo=$ac_try;; |
| 26817 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26819 | (eval "$ac_compile") 2>conftest.er1 |
| 26820 | ac_status=$? |
| 26821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26822 | rm -f conftest.er1 |
| 26823 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26825 | (exit $ac_status); } && { |
| 26826 | test -z "$ac_c_werror_flag" || |
| 26827 | test ! -s conftest.err |
| 26828 | } && test -s conftest.$ac_objext; then |
| 26829 | ac_cv_have_decl_tzname=yes |
| 26830 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26831 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26833 | |
| 26834 | ac_cv_have_decl_tzname=no |
| 26835 | fi |
| 26836 | |
| 26837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26838 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26839 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 26840 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 26841 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26842 | |
| 26843 | cat >>confdefs.h <<_ACEOF |
| 26844 | #define HAVE_DECL_TZNAME 1 |
| 26845 | _ACEOF |
| 26846 | |
| 26847 | |
| 26848 | else |
| 26849 | cat >>confdefs.h <<_ACEOF |
| 26850 | #define HAVE_DECL_TZNAME 0 |
| 26851 | _ACEOF |
| 26852 | |
| 26853 | |
| 26854 | fi |
| 26855 | |
| 26856 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26857 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 26858 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26859 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26861 | else |
| 26862 | cat >conftest.$ac_ext <<_ACEOF |
| 26863 | /* confdefs.h. */ |
| 26864 | _ACEOF |
| 26865 | cat confdefs.h >>conftest.$ac_ext |
| 26866 | cat >>conftest.$ac_ext <<_ACEOF |
| 26867 | /* end confdefs.h. */ |
| 26868 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26869 | #if !HAVE_DECL_TZNAME |
| 26870 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26871 | #endif |
| 26872 | |
| 26873 | int |
| 26874 | main () |
| 26875 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26876 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26877 | ; |
| 26878 | return 0; |
| 26879 | } |
| 26880 | _ACEOF |
| 26881 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26882 | if { (ac_try="$ac_link" |
| 26883 | case "(($ac_try" in |
| 26884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26885 | *) ac_try_echo=$ac_try;; |
| 26886 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26888 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26889 | ac_status=$? |
| 26890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26891 | rm -f conftest.er1 |
| 26892 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26894 | (exit $ac_status); } && { |
| 26895 | test -z "$ac_c_werror_flag" || |
| 26896 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26897 | } && test -s conftest$ac_exeext && |
| 26898 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26899 | ac_cv_var_tzname=yes |
| 26900 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26901 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26903 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26904 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26905 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26906 | |
| 26907 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26908 | conftest$ac_exeext conftest.$ac_ext |
| 26909 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26910 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 26911 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26912 | if test $ac_cv_var_tzname = yes; then |
| 26913 | |
| 26914 | cat >>confdefs.h <<\_ACEOF |
| 26915 | #define HAVE_TZNAME 1 |
| 26916 | _ACEOF |
| 26917 | |
| 26918 | fi |
| 26919 | fi |
| 26920 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26921 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26922 | # check tzset(3) exists and works like we expect it to |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26923 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 26924 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26925 | if test "${ac_cv_working_tzset+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26927 | else |
| 26928 | |
| 26929 | if test "$cross_compiling" = yes; then |
| 26930 | ac_cv_working_tzset=no |
| 26931 | else |
| 26932 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26933 | /* confdefs.h. */ |
| 26934 | _ACEOF |
| 26935 | cat confdefs.h >>conftest.$ac_ext |
| 26936 | cat >>conftest.$ac_ext <<_ACEOF |
| 26937 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26938 | |
| 26939 | #include <stdlib.h> |
| 26940 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26941 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26942 | |
| 26943 | #if HAVE_TZNAME |
| 26944 | extern char *tzname[]; |
| 26945 | #endif |
| 26946 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26947 | int main() |
| 26948 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26949 | /* Note that we need to ensure that not only does tzset(3) |
| 26950 | do 'something' with localtime, but it works as documented |
| 26951 | 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] | 26952 | This includes making sure that tzname is set properly if |
| 26953 | tm->tm_zone does not exist since it is the alternative way |
| 26954 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26955 | |
| 26956 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26957 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26958 | */ |
| 26959 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26960 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26961 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 26962 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26963 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26964 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26965 | if (localtime(&groundhogday)->tm_hour != 0) |
| 26966 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26967 | #if HAVE_TZNAME |
| 26968 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 26969 | if (strcmp(tzname[0], "UTC") || |
| 26970 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 26971 | exit(1); |
| 26972 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26973 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26974 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26975 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26976 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26977 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26978 | #if HAVE_TZNAME |
| 26979 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 26980 | exit(1); |
| 26981 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26982 | |
| 26983 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 26984 | tzset(); |
| 26985 | if (localtime(&groundhogday)->tm_hour != 11) |
| 26986 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26987 | #if HAVE_TZNAME |
| 26988 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 26989 | exit(1); |
| 26990 | #endif |
| 26991 | |
| 26992 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26993 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 26994 | exit(1); |
| 26995 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 26996 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26997 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26998 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26999 | exit(0); |
| 27000 | } |
| 27001 | |
| 27002 | _ACEOF |
| 27003 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27004 | if { (ac_try="$ac_link" |
| 27005 | case "(($ac_try" in |
| 27006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27007 | *) ac_try_echo=$ac_try;; |
| 27008 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27010 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27011 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27013 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27014 | { (case "(($ac_try" in |
| 27015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27016 | *) ac_try_echo=$ac_try;; |
| 27017 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27019 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27020 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27022 | (exit $ac_status); }; }; then |
| 27023 | ac_cv_working_tzset=yes |
| 27024 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27025 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27026 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27028 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27029 | ( exit $ac_status ) |
| 27030 | ac_cv_working_tzset=no |
| 27031 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27032 | 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] | 27033 | fi |
| 27034 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27035 | |
| 27036 | fi |
| 27037 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27038 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 27039 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 27040 | if test "$ac_cv_working_tzset" = yes |
| 27041 | then |
| 27042 | |
| 27043 | cat >>confdefs.h <<\_ACEOF |
| 27044 | #define HAVE_WORKING_TZSET 1 |
| 27045 | _ACEOF |
| 27046 | |
| 27047 | fi |
| 27048 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27049 | # Look for subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27050 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 27051 | 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] | 27052 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27054 | else |
| 27055 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27056 | /* confdefs.h. */ |
| 27057 | _ACEOF |
| 27058 | cat confdefs.h >>conftest.$ac_ext |
| 27059 | cat >>conftest.$ac_ext <<_ACEOF |
| 27060 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27061 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27062 | int |
| 27063 | main () |
| 27064 | { |
| 27065 | |
| 27066 | struct stat st; |
| 27067 | st.st_mtim.tv_nsec = 1; |
| 27068 | |
| 27069 | ; |
| 27070 | return 0; |
| 27071 | } |
| 27072 | _ACEOF |
| 27073 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27074 | if { (ac_try="$ac_compile" |
| 27075 | case "(($ac_try" in |
| 27076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27077 | *) ac_try_echo=$ac_try;; |
| 27078 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27080 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27081 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27083 | rm -f conftest.er1 |
| 27084 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27086 | (exit $ac_status); } && { |
| 27087 | test -z "$ac_c_werror_flag" || |
| 27088 | test ! -s conftest.err |
| 27089 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 27090 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27091 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27092 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27094 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27095 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27096 | fi |
| 27097 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27099 | fi |
| 27100 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27101 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 27102 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 27103 | if test "$ac_cv_stat_tv_nsec" = yes |
| 27104 | then |
| 27105 | |
| 27106 | cat >>confdefs.h <<\_ACEOF |
| 27107 | #define HAVE_STAT_TV_NSEC 1 |
| 27108 | _ACEOF |
| 27109 | |
| 27110 | fi |
| 27111 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27112 | # Look for BSD style subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27113 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 27114 | 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] | 27115 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27117 | else |
| 27118 | cat >conftest.$ac_ext <<_ACEOF |
| 27119 | /* confdefs.h. */ |
| 27120 | _ACEOF |
| 27121 | cat confdefs.h >>conftest.$ac_ext |
| 27122 | cat >>conftest.$ac_ext <<_ACEOF |
| 27123 | /* end confdefs.h. */ |
| 27124 | #include <sys/stat.h> |
| 27125 | int |
| 27126 | main () |
| 27127 | { |
| 27128 | |
| 27129 | struct stat st; |
| 27130 | st.st_mtimespec.tv_nsec = 1; |
| 27131 | |
| 27132 | ; |
| 27133 | return 0; |
| 27134 | } |
| 27135 | _ACEOF |
| 27136 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27137 | if { (ac_try="$ac_compile" |
| 27138 | case "(($ac_try" in |
| 27139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27140 | *) ac_try_echo=$ac_try;; |
| 27141 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27143 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27144 | ac_status=$? |
| 27145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27146 | rm -f conftest.er1 |
| 27147 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27149 | (exit $ac_status); } && { |
| 27150 | test -z "$ac_c_werror_flag" || |
| 27151 | test ! -s conftest.err |
| 27152 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27153 | ac_cv_stat_tv_nsec2=yes |
| 27154 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27155 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27157 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27158 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27159 | fi |
| 27160 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27162 | fi |
| 27163 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27164 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 27165 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 27166 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 27167 | then |
| 27168 | |
| 27169 | cat >>confdefs.h <<\_ACEOF |
| 27170 | #define HAVE_STAT_TV_NSEC2 1 |
| 27171 | _ACEOF |
| 27172 | |
| 27173 | fi |
| 27174 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27175 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27176 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 27177 | 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] | 27178 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27180 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27181 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27182 | /* confdefs.h. */ |
| 27183 | _ACEOF |
| 27184 | cat confdefs.h >>conftest.$ac_ext |
| 27185 | cat >>conftest.$ac_ext <<_ACEOF |
| 27186 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27187 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27188 | int |
| 27189 | main () |
| 27190 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27191 | |
| 27192 | int rtn; |
| 27193 | rtn = mvwdelch(0,0,0); |
| 27194 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27195 | ; |
| 27196 | return 0; |
| 27197 | } |
| 27198 | _ACEOF |
| 27199 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27200 | if { (ac_try="$ac_compile" |
| 27201 | case "(($ac_try" in |
| 27202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27203 | *) ac_try_echo=$ac_try;; |
| 27204 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27206 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27207 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27209 | rm -f conftest.er1 |
| 27210 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27212 | (exit $ac_status); } && { |
| 27213 | test -z "$ac_c_werror_flag" || |
| 27214 | test ! -s conftest.err |
| 27215 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27216 | ac_cv_mvwdelch_is_expression=yes |
| 27217 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27218 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27220 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27221 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27222 | fi |
| 27223 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27225 | fi |
| 27226 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27227 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 27228 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27229 | |
| 27230 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 27231 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27232 | |
| 27233 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27234 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27235 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27236 | |
| 27237 | fi |
| 27238 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27239 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 27240 | 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] | 27241 | if test "${ac_cv_window_has_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27244 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27245 | /* confdefs.h. */ |
| 27246 | _ACEOF |
| 27247 | cat confdefs.h >>conftest.$ac_ext |
| 27248 | cat >>conftest.$ac_ext <<_ACEOF |
| 27249 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27250 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27251 | int |
| 27252 | main () |
| 27253 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27254 | |
| 27255 | WINDOW *w; |
| 27256 | w->_flags = 0; |
| 27257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27258 | ; |
| 27259 | return 0; |
| 27260 | } |
| 27261 | _ACEOF |
| 27262 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27263 | if { (ac_try="$ac_compile" |
| 27264 | case "(($ac_try" in |
| 27265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27266 | *) ac_try_echo=$ac_try;; |
| 27267 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27269 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27270 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27272 | rm -f conftest.er1 |
| 27273 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27275 | (exit $ac_status); } && { |
| 27276 | test -z "$ac_c_werror_flag" || |
| 27277 | test ! -s conftest.err |
| 27278 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27279 | ac_cv_window_has_flags=yes |
| 27280 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27281 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27283 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27284 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27285 | fi |
| 27286 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27288 | fi |
| 27289 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27290 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 27291 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27292 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27293 | |
| 27294 | if test "$ac_cv_window_has_flags" = yes |
| 27295 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27296 | |
| 27297 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27298 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27299 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 27300 | |
| 27301 | fi |
| 27302 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27303 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 27304 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27305 | cat >conftest.$ac_ext <<_ACEOF |
| 27306 | /* confdefs.h. */ |
| 27307 | _ACEOF |
| 27308 | cat confdefs.h >>conftest.$ac_ext |
| 27309 | cat >>conftest.$ac_ext <<_ACEOF |
| 27310 | /* end confdefs.h. */ |
| 27311 | #include <curses.h> |
| 27312 | int |
| 27313 | main () |
| 27314 | { |
| 27315 | void *x=is_term_resized |
| 27316 | ; |
| 27317 | return 0; |
| 27318 | } |
| 27319 | _ACEOF |
| 27320 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27321 | if { (ac_try="$ac_compile" |
| 27322 | case "(($ac_try" in |
| 27323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27324 | *) ac_try_echo=$ac_try;; |
| 27325 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27327 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27328 | ac_status=$? |
| 27329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27330 | rm -f conftest.er1 |
| 27331 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27333 | (exit $ac_status); } && { |
| 27334 | test -z "$ac_c_werror_flag" || |
| 27335 | test ! -s conftest.err |
| 27336 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27337 | |
| 27338 | cat >>confdefs.h <<\_ACEOF |
| 27339 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 27340 | _ACEOF |
| 27341 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27342 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27343 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27344 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27345 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27347 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27348 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27349 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27350 | |
| 27351 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27352 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27354 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27355 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 27356 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27357 | cat >conftest.$ac_ext <<_ACEOF |
| 27358 | /* confdefs.h. */ |
| 27359 | _ACEOF |
| 27360 | cat confdefs.h >>conftest.$ac_ext |
| 27361 | cat >>conftest.$ac_ext <<_ACEOF |
| 27362 | /* end confdefs.h. */ |
| 27363 | #include <curses.h> |
| 27364 | int |
| 27365 | main () |
| 27366 | { |
| 27367 | void *x=resize_term |
| 27368 | ; |
| 27369 | return 0; |
| 27370 | } |
| 27371 | _ACEOF |
| 27372 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27373 | if { (ac_try="$ac_compile" |
| 27374 | case "(($ac_try" in |
| 27375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27376 | *) ac_try_echo=$ac_try;; |
| 27377 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27379 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27380 | ac_status=$? |
| 27381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27382 | rm -f conftest.er1 |
| 27383 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27385 | (exit $ac_status); } && { |
| 27386 | test -z "$ac_c_werror_flag" || |
| 27387 | test ! -s conftest.err |
| 27388 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27389 | |
| 27390 | cat >>confdefs.h <<\_ACEOF |
| 27391 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 27392 | _ACEOF |
| 27393 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27394 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27395 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27396 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27397 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27399 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27400 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27401 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27402 | |
| 27403 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27404 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27406 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27407 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 27408 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27409 | cat >conftest.$ac_ext <<_ACEOF |
| 27410 | /* confdefs.h. */ |
| 27411 | _ACEOF |
| 27412 | cat confdefs.h >>conftest.$ac_ext |
| 27413 | cat >>conftest.$ac_ext <<_ACEOF |
| 27414 | /* end confdefs.h. */ |
| 27415 | #include <curses.h> |
| 27416 | int |
| 27417 | main () |
| 27418 | { |
| 27419 | void *x=resizeterm |
| 27420 | ; |
| 27421 | return 0; |
| 27422 | } |
| 27423 | _ACEOF |
| 27424 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27425 | if { (ac_try="$ac_compile" |
| 27426 | case "(($ac_try" in |
| 27427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27428 | *) ac_try_echo=$ac_try;; |
| 27429 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27431 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27432 | ac_status=$? |
| 27433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27434 | rm -f conftest.er1 |
| 27435 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27437 | (exit $ac_status); } && { |
| 27438 | test -z "$ac_c_werror_flag" || |
| 27439 | test ! -s conftest.err |
| 27440 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27441 | |
| 27442 | cat >>confdefs.h <<\_ACEOF |
| 27443 | #define HAVE_CURSES_RESIZETERM 1 |
| 27444 | _ACEOF |
| 27445 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27446 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27447 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27448 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27449 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27451 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27452 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27453 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27454 | |
| 27455 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 27456 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27458 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27459 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 27460 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27461 | |
| 27462 | if test -r /dev/ptmx |
| 27463 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27464 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27465 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 27466 | |
| 27467 | cat >>confdefs.h <<\_ACEOF |
| 27468 | #define HAVE_DEV_PTMX 1 |
| 27469 | _ACEOF |
| 27470 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27471 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27472 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27473 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 27474 | fi |
| 27475 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27476 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 27477 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27478 | |
| 27479 | if test -r /dev/ptc |
| 27480 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27481 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27482 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27483 | |
| 27484 | cat >>confdefs.h <<\_ACEOF |
| 27485 | #define HAVE_DEV_PTC 1 |
| 27486 | _ACEOF |
| 27487 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27488 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27489 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27490 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27491 | fi |
| 27492 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27493 | if test "$have_long_long" = yes |
| 27494 | then |
| 27495 | { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5 |
| 27496 | echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; } |
| 27497 | if test "${ac_cv_have_long_long_format+set}" = set; then |
| 27498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27499 | else |
| 27500 | if test "$cross_compiling" = yes; then |
| 27501 | ac_cv_have_long_long_format=no |
| 27502 | else |
| 27503 | cat >conftest.$ac_ext <<_ACEOF |
| 27504 | /* confdefs.h. */ |
| 27505 | _ACEOF |
| 27506 | cat confdefs.h >>conftest.$ac_ext |
| 27507 | cat >>conftest.$ac_ext <<_ACEOF |
| 27508 | /* end confdefs.h. */ |
| 27509 | |
| 27510 | #include <stdio.h> |
| 27511 | #include <stddef.h> |
| 27512 | #include <string.h> |
| 27513 | |
| 27514 | #ifdef HAVE_SYS_TYPES_H |
| 27515 | #include <sys/types.h> |
| 27516 | #endif |
| 27517 | |
| 27518 | int main() |
| 27519 | { |
| 27520 | char buffer[256]; |
| 27521 | |
| 27522 | if (sprintf(buffer, "%lld", (long long)123) < 0) |
| 27523 | return 1; |
| 27524 | if (strcmp(buffer, "123")) |
| 27525 | return 1; |
| 27526 | |
| 27527 | if (sprintf(buffer, "%lld", (long long)-123) < 0) |
| 27528 | return 1; |
| 27529 | if (strcmp(buffer, "-123")) |
| 27530 | return 1; |
| 27531 | |
| 27532 | if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) |
| 27533 | return 1; |
| 27534 | if (strcmp(buffer, "123")) |
| 27535 | return 1; |
| 27536 | |
| 27537 | return 0; |
| 27538 | } |
| 27539 | |
| 27540 | _ACEOF |
| 27541 | rm -f conftest$ac_exeext |
| 27542 | if { (ac_try="$ac_link" |
| 27543 | case "(($ac_try" in |
| 27544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27545 | *) ac_try_echo=$ac_try;; |
| 27546 | esac |
| 27547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27548 | (eval "$ac_link") 2>&5 |
| 27549 | ac_status=$? |
| 27550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27551 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27552 | { (case "(($ac_try" in |
| 27553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27554 | *) ac_try_echo=$ac_try;; |
| 27555 | esac |
| 27556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27557 | (eval "$ac_try") 2>&5 |
| 27558 | ac_status=$? |
| 27559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27560 | (exit $ac_status); }; }; then |
| 27561 | ac_cv_have_long_long_format=yes |
| 27562 | else |
| 27563 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27564 | echo "$as_me: failed program was:" >&5 |
| 27565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27566 | |
| 27567 | ( exit $ac_status ) |
| 27568 | ac_cv_have_long_long_format=no |
| 27569 | fi |
| 27570 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 27571 | fi |
| 27572 | |
| 27573 | |
| 27574 | |
| 27575 | fi |
| 27576 | |
| 27577 | { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5 |
| 27578 | echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; } |
| 27579 | fi |
| 27580 | |
Mark Dickinson | 5ce8474 | 2009-12-31 20:48:04 +0000 | [diff] [blame] | 27581 | if test "$ac_cv_have_long_long_format" = yes |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27582 | then |
| 27583 | |
| 27584 | cat >>confdefs.h <<\_ACEOF |
| 27585 | #define PY_FORMAT_LONG_LONG "ll" |
| 27586 | _ACEOF |
| 27587 | |
| 27588 | fi |
| 27589 | |
Ronald Oussoren | 315cd0c | 2009-11-19 16:25:21 +0000 | [diff] [blame] | 27590 | if test $ac_sys_system = Darwin |
| 27591 | then |
| 27592 | LIBS="$LIBS -framework CoreFoundation" |
| 27593 | fi |
| 27594 | |
Mark Dickinson | 82864d1 | 2009-11-15 16:18:58 +0000 | [diff] [blame] | 27595 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27596 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 27597 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27598 | if test "${ac_cv_have_size_t_format+set}" = set; then |
| 27599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27600 | else |
| 27601 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27602 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 27603 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27604 | else |
| 27605 | cat >conftest.$ac_ext <<_ACEOF |
| 27606 | /* confdefs.h. */ |
| 27607 | _ACEOF |
| 27608 | cat confdefs.h >>conftest.$ac_ext |
| 27609 | cat >>conftest.$ac_ext <<_ACEOF |
| 27610 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27611 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27612 | #include <stdio.h> |
| 27613 | #include <stddef.h> |
| 27614 | #include <string.h> |
| 27615 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27616 | #ifdef HAVE_SYS_TYPES_H |
| 27617 | #include <sys/types.h> |
| 27618 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27619 | |
| 27620 | #ifdef HAVE_SSIZE_T |
| 27621 | typedef ssize_t Py_ssize_t; |
| 27622 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 27623 | typedef long Py_ssize_t; |
| 27624 | #else |
| 27625 | typedef int Py_ssize_t; |
| 27626 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27627 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27628 | int main() |
| 27629 | { |
| 27630 | char buffer[256]; |
| 27631 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27632 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 27633 | return 1; |
| 27634 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27635 | if (strcmp(buffer, "123")) |
| 27636 | return 1; |
| 27637 | |
| 27638 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 27639 | return 1; |
| 27640 | |
| 27641 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27642 | return 1; |
| 27643 | |
| 27644 | return 0; |
| 27645 | } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27646 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27647 | _ACEOF |
| 27648 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27649 | if { (ac_try="$ac_link" |
| 27650 | case "(($ac_try" in |
| 27651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27652 | *) ac_try_echo=$ac_try;; |
| 27653 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27655 | (eval "$ac_link") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27656 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27658 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27659 | { (case "(($ac_try" in |
| 27660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27661 | *) ac_try_echo=$ac_try;; |
| 27662 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27664 | (eval "$ac_try") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27665 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27667 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27668 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27669 | else |
| 27670 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27671 | echo "$as_me: failed program was:" >&5 |
| 27672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27673 | |
| 27674 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27675 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27676 | fi |
| 27677 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 27678 | fi |
| 27679 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27680 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27681 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27682 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5 |
| 27683 | echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; } |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27684 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27685 | |
| 27686 | cat >>confdefs.h <<\_ACEOF |
| 27687 | #define PY_FORMAT_SIZE_T "z" |
| 27688 | _ACEOF |
| 27689 | |
| 27690 | fi |
| 27691 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27692 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 27693 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27694 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27696 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27697 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27698 | /* confdefs.h. */ |
| 27699 | _ACEOF |
| 27700 | cat confdefs.h >>conftest.$ac_ext |
| 27701 | cat >>conftest.$ac_ext <<_ACEOF |
| 27702 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27703 | |
| 27704 | #ifdef HAVE_SYS_TYPES_H |
| 27705 | #include <sys/types.h> |
| 27706 | #endif |
| 27707 | #ifdef HAVE_SYS_SOCKET_H |
| 27708 | #include <sys/socket.h> |
| 27709 | #endif |
| 27710 | |
| 27711 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27712 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27713 | int |
| 27714 | main () |
| 27715 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27716 | if ((ac__type_new_ *) 0) |
| 27717 | return 0; |
| 27718 | if (sizeof (ac__type_new_)) |
| 27719 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27720 | ; |
| 27721 | return 0; |
| 27722 | } |
| 27723 | _ACEOF |
| 27724 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27725 | if { (ac_try="$ac_compile" |
| 27726 | case "(($ac_try" in |
| 27727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27728 | *) ac_try_echo=$ac_try;; |
| 27729 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27731 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27732 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27734 | rm -f conftest.er1 |
| 27735 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27737 | (exit $ac_status); } && { |
| 27738 | test -z "$ac_c_werror_flag" || |
| 27739 | test ! -s conftest.err |
| 27740 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27741 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27742 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27743 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27745 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27746 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27747 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27748 | |
| 27749 | 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] | 27750 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27751 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 27752 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
| 27753 | if test $ac_cv_type_socklen_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27754 | : |
| 27755 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27756 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27757 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27758 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27759 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27760 | |
| 27761 | fi |
| 27762 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27763 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27764 | |
| 27765 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 27766 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 27767 | do |
| 27768 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 27769 | done |
| 27770 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27771 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 27772 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27773 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 27774 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27775 | for dir in $SRCDIRS; do |
| 27776 | if test ! -d $dir; then |
| 27777 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 27778 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27779 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27780 | { echo "$as_me:$LINENO: result: done" >&5 |
| 27781 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 27782 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27783 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 27784 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 27785 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27786 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27787 | # This file is a shell script that caches the results of configure |
| 27788 | # 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] | 27789 | # scripts and configure runs, see configure's option --config-cache. |
| 27790 | # It is not useful on other systems. If it contains results you don't |
| 27791 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27792 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27793 | # config.status only pays attention to the cache file if you give it |
| 27794 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27795 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27796 | # `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] | 27797 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 27798 | # following values. |
| 27799 | |
| 27800 | _ACEOF |
| 27801 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 27802 | # The following way of writing the cache mishandles newlines in values, |
| 27803 | # but we know of no workaround that is simple, portable, and efficient. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27804 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27805 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 27806 | # and sets the high bit in the cache file unless we assign to the vars. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27807 | ( |
| 27808 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 27809 | eval ac_val=\$$ac_var |
| 27810 | case $ac_val in #( |
| 27811 | *${as_nl}*) |
| 27812 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27813 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 27814 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27815 | esac |
| 27816 | case $ac_var in #( |
| 27817 | _ | IFS | as_nl) ;; #( |
| 27818 | *) $as_unset $ac_var ;; |
| 27819 | esac ;; |
| 27820 | esac |
| 27821 | done |
| 27822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27823 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27824 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 27825 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27826 | # `set' does not quote correctly, so add quotes (double-quote |
| 27827 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 27828 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27829 | "s/'/'\\\\''/g; |
| 27830 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27831 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27832 | *) |
| 27833 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27834 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27835 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27836 | esac | |
| 27837 | sort |
| 27838 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27839 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27840 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27841 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27842 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27843 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 27844 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27845 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 27846 | :end' >>confcache |
| 27847 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 27848 | if test -w "$cache_file"; then |
| 27849 | test "x$cache_file" != "x/dev/null" && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27850 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 27851 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27852 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27853 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27854 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 27855 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27856 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27857 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27858 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27859 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27860 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 27861 | # Let make expand exec_prefix. |
| 27862 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27863 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27864 | DEFS=-DHAVE_CONFIG_H |
| 27865 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27866 | ac_libobjs= |
| 27867 | ac_ltlibobjs= |
| 27868 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 27869 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27870 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27871 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27872 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 27873 | # will be set to the directory where LIBOBJS objects are built. |
| 27874 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 27875 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27876 | done |
| 27877 | LIBOBJS=$ac_libobjs |
| 27878 | |
| 27879 | LTLIBOBJS=$ac_ltlibobjs |
| 27880 | |
| 27881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27882 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27883 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27884 | ac_clean_files_save=$ac_clean_files |
| 27885 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27886 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 27887 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 27888 | cat >$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27889 | #! $SHELL |
| 27890 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27891 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27892 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27893 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27895 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27896 | ac_cs_recheck=false |
| 27897 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27898 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 27899 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27900 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27901 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27902 | ## --------------------- ## |
| 27903 | ## M4sh Initialization. ## |
| 27904 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27905 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27906 | # Be more Bourne compatible |
| 27907 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27908 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 27909 | emulate sh |
| 27910 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27911 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27912 | # is contrary to our usage. Disable this feature. |
| 27913 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27914 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27915 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27916 | case `(set -o) 2>/dev/null` in |
| 27917 | *posix*) set -o posix ;; |
| 27918 | esac |
| 27919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27920 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27921 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27923 | |
| 27924 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27925 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27926 | # Avoid depending upon Character Ranges. |
| 27927 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 27928 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 27929 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 27930 | as_cr_digits='0123456789' |
| 27931 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 27932 | |
| 27933 | # The user is always right. |
| 27934 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27935 | echo "#! /bin/sh" >conf$$.sh |
| 27936 | echo "exit 0" >>conf$$.sh |
| 27937 | chmod +x conf$$.sh |
| 27938 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 27939 | PATH_SEPARATOR=';' |
| 27940 | else |
| 27941 | PATH_SEPARATOR=: |
| 27942 | fi |
| 27943 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27944 | fi |
| 27945 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27946 | # Support unset when possible. |
| 27947 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 27948 | as_unset=unset |
| 27949 | else |
| 27950 | as_unset=false |
| 27951 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27952 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27953 | |
| 27954 | # IFS |
| 27955 | # We need space, tab and new line, in precisely that order. Quoting is |
| 27956 | # there to prevent editors from complaining about space-tab. |
| 27957 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 27958 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27959 | as_nl=' |
| 27960 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27961 | IFS=" "" $as_nl" |
| 27962 | |
| 27963 | # Find who we are. Look in the path if we contain no directory separator. |
| 27964 | case $0 in |
| 27965 | *[\\/]* ) as_myself=$0 ;; |
| 27966 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27967 | for as_dir in $PATH |
| 27968 | do |
| 27969 | IFS=$as_save_IFS |
| 27970 | test -z "$as_dir" && as_dir=. |
| 27971 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 27972 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27973 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27974 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27975 | ;; |
| 27976 | esac |
| 27977 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 27978 | # in which case we are not to be found in the path. |
| 27979 | if test "x$as_myself" = x; then |
| 27980 | as_myself=$0 |
| 27981 | fi |
| 27982 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27983 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27984 | { (exit 1); exit 1; } |
| 27985 | fi |
| 27986 | |
| 27987 | # Work around bugs in pre-3.0 UWIN ksh. |
| 27988 | for as_var in ENV MAIL MAILPATH |
| 27989 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 27990 | done |
| 27991 | PS1='$ ' |
| 27992 | PS2='> ' |
| 27993 | PS4='+ ' |
| 27994 | |
| 27995 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27996 | for as_var in \ |
| 27997 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 27998 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 27999 | LC_TELEPHONE LC_TIME |
| 28000 | do |
| 28001 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 28002 | eval $as_var=C; export $as_var |
| 28003 | else |
| 28004 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 28005 | fi |
| 28006 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28007 | |
| 28008 | # Required to use basename. |
| 28009 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 28010 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 28011 | as_expr=expr |
| 28012 | else |
| 28013 | as_expr=false |
| 28014 | fi |
| 28015 | |
| 28016 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 28017 | as_basename=basename |
| 28018 | else |
| 28019 | as_basename=false |
| 28020 | fi |
| 28021 | |
| 28022 | |
| 28023 | # Name of the executable. |
| 28024 | as_me=`$as_basename -- "$0" || |
| 28025 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 28026 | X"$0" : 'X\(//\)$' \| \ |
| 28027 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28028 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28029 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 28030 | s//\1/ |
| 28031 | q |
| 28032 | } |
| 28033 | /^X\/\(\/\/\)$/{ |
| 28034 | s//\1/ |
| 28035 | q |
| 28036 | } |
| 28037 | /^X\/\(\/\).*/{ |
| 28038 | s//\1/ |
| 28039 | q |
| 28040 | } |
| 28041 | s/.*/./; q'` |
| 28042 | |
| 28043 | # CDPATH. |
| 28044 | $as_unset CDPATH |
| 28045 | |
| 28046 | |
| 28047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28048 | as_lineno_1=$LINENO |
| 28049 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28050 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28051 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 28052 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28053 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 28054 | # uniformly replaced by the line number. The first 'sed' inserts a |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28055 | # line-number line after each line using $LINENO; the second 'sed' |
| 28056 | # does the real work. The second script uses 'N' to pair each |
| 28057 | # line-number line with the line containing $LINENO, and appends |
| 28058 | # trailing '-' during substitution so that $LINENO is not a special |
| 28059 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28060 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28061 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 28062 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 28063 | sed -n ' |
| 28064 | p |
| 28065 | /[$]LINENO/= |
| 28066 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28067 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28068 | s/[$]LINENO.*/&-/ |
| 28069 | t lineno |
| 28070 | b |
| 28071 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28072 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28073 | :loop |
| 28074 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28075 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28076 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28077 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28078 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28079 | { 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] | 28080 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 28081 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28082 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 28083 | # (the dirname of $[0] is not the place where we might find the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28084 | # original and so on. Autoconf is especially sensitive to this). |
| 28085 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28086 | # Exit status is that of the last command. |
| 28087 | exit |
| 28088 | } |
| 28089 | |
| 28090 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28091 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 28092 | as_dirname=dirname |
| 28093 | else |
| 28094 | as_dirname=false |
| 28095 | fi |
| 28096 | |
| 28097 | ECHO_C= ECHO_N= ECHO_T= |
| 28098 | case `echo -n x` in |
| 28099 | -n*) |
| 28100 | case `echo 'x\c'` in |
| 28101 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 28102 | *) ECHO_C='\c';; |
| 28103 | esac;; |
| 28104 | *) |
| 28105 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28106 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28107 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28108 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 28109 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28110 | as_expr=expr |
| 28111 | else |
| 28112 | as_expr=false |
| 28113 | fi |
| 28114 | |
| 28115 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28116 | if test -d conf$$.dir; then |
| 28117 | rm -f conf$$.dir/conf$$.file |
| 28118 | else |
| 28119 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28120 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28121 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28122 | echo >conf$$.file |
| 28123 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 28124 | as_ln_s='ln -s' |
| 28125 | # ... but there are two gotchas: |
| 28126 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 28127 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 28128 | # In both cases, we have to default to `cp -p'. |
| 28129 | 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] | 28130 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28131 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 28132 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28133 | else |
| 28134 | as_ln_s='cp -p' |
| 28135 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28136 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 28137 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28138 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28139 | if mkdir -p . 2>/dev/null; then |
| 28140 | as_mkdir_p=: |
| 28141 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28142 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28143 | as_mkdir_p=false |
| 28144 | fi |
| 28145 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28146 | if test -x / >/dev/null 2>&1; then |
| 28147 | as_test_x='test -x' |
| 28148 | else |
| 28149 | if ls -dL / >/dev/null 2>&1; then |
| 28150 | as_ls_L_option=L |
| 28151 | else |
| 28152 | as_ls_L_option= |
| 28153 | fi |
| 28154 | as_test_x=' |
| 28155 | eval sh -c '\'' |
| 28156 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28157 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28158 | else |
| 28159 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28160 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28161 | esac; |
| 28162 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 28163 | ???[sx]*):;;*)false;;esac;fi |
| 28164 | '\'' sh |
| 28165 | ' |
| 28166 | fi |
| 28167 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28168 | |
| 28169 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28170 | 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] | 28171 | |
| 28172 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28173 | 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] | 28174 | |
| 28175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28176 | exec 6>&1 |
| 28177 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28178 | # 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] | 28179 | # report actual input values of CONFIG_FILES etc. instead of their |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28180 | # values after options handling. |
| 28181 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 28182 | This file was extended by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28183 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28184 | |
| 28185 | CONFIG_FILES = $CONFIG_FILES |
| 28186 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 28187 | CONFIG_LINKS = $CONFIG_LINKS |
| 28188 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 28189 | $ $0 $@ |
| 28190 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28191 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 28192 | " |
| 28193 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28194 | _ACEOF |
| 28195 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28196 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28197 | # Files that config.status was made for. |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 28198 | config_files="$ac_config_files" |
| 28199 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28200 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28201 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28202 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28203 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28204 | ac_cs_usage="\ |
| 28205 | \`$as_me' instantiates files from templates according to the |
| 28206 | current configuration. |
| 28207 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28208 | Usage: $0 [OPTIONS] [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28209 | |
| 28210 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28211 | -V, --version print version number and configuration settings, then exit |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28212 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28213 | -d, --debug don't remove temporary files |
| 28214 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28215 | --file=FILE[:TEMPLATE] |
| 28216 | instantiate the configuration file FILE |
| 28217 | --header=FILE[:TEMPLATE] |
| 28218 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28219 | |
| 28220 | Configuration files: |
| 28221 | $config_files |
| 28222 | |
| 28223 | Configuration headers: |
| 28224 | $config_headers |
| 28225 | |
| 28226 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28227 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28228 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28229 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28230 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 28231 | python config.status 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28232 | configured by $0, generated by GNU Autoconf 2.61, |
| 28233 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28234 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28235 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28236 | This config.status script is free software; the Free Software Foundation |
| 28237 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28238 | |
| 28239 | ac_pwd='$ac_pwd' |
| 28240 | srcdir='$srcdir' |
| 28241 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28242 | _ACEOF |
| 28243 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28244 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 28245 | # If no file are specified by the user, then we need to provide default |
| 28246 | # value. By we need to know if files were specified by the user. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28247 | ac_need_defaults=: |
| 28248 | while test $# != 0 |
| 28249 | do |
| 28250 | case $1 in |
| 28251 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28252 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 28253 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28254 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28255 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28256 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28257 | ac_option=$1 |
| 28258 | ac_optarg=$2 |
| 28259 | ac_shift=shift |
| 28260 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28261 | esac |
| 28262 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28263 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28264 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28265 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 28266 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28267 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28268 | echo "$ac_cs_version"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28269 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28270 | debug=: ;; |
| 28271 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28272 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28273 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28274 | ac_need_defaults=false;; |
| 28275 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28276 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28277 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28278 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28279 | --he | --h) |
| 28280 | # Conflict between --help and --header |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28281 | { echo "$as_me: error: ambiguous option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28282 | Try \`$0 --help' for more information." >&2 |
| 28283 | { (exit 1); exit 1; }; };; |
| 28284 | --help | --hel | -h ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28285 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28286 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 28287 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 28288 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28289 | |
| 28290 | # This is an error. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28291 | -*) { echo "$as_me: error: unrecognized option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28292 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28293 | { (exit 1); exit 1; }; } ;; |
| 28294 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28295 | *) ac_config_targets="$ac_config_targets $1" |
| 28296 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28297 | |
| 28298 | esac |
| 28299 | shift |
| 28300 | done |
| 28301 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28302 | ac_configure_extra_args= |
| 28303 | |
| 28304 | if $ac_cs_silent; then |
| 28305 | exec 6>/dev/null |
| 28306 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 28307 | fi |
| 28308 | |
| 28309 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28310 | cat >>$CONFIG_STATUS <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28311 | if \$ac_cs_recheck; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28312 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 28313 | CONFIG_SHELL=$SHELL |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28314 | export CONFIG_SHELL |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28315 | 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] | 28316 | fi |
| 28317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28318 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28319 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28320 | exec 5>>config.log |
| 28321 | { |
| 28322 | echo |
| 28323 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 28324 | ## Running $as_me. ## |
| 28325 | _ASBOX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28326 | echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28327 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28328 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28329 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28330 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28331 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28332 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28333 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28334 | |
| 28335 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28336 | for ac_config_target in $ac_config_targets |
| 28337 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28338 | case $ac_config_target in |
| 28339 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 28340 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 28341 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 28342 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 28343 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 28344 | "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28345 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 28346 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 28347 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28348 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28349 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 28350 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28351 | { (exit 1); exit 1; }; };; |
| 28352 | esac |
| 28353 | done |
| 28354 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28356 | # If the user did not use the arguments to specify the items to instantiate, |
| 28357 | # then the envvar interface is used. Set only those that are not. |
| 28358 | # We use the long form for the default assignment because of an extremely |
| 28359 | # bizarre bug on SunOS 4.1.3. |
| 28360 | if $ac_need_defaults; then |
| 28361 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 28362 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 28363 | fi |
| 28364 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28365 | # Have a temporary directory for convenience. Make it in the build tree |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28366 | # 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] | 28367 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28368 | # Hook for its removal unless debugging. |
| 28369 | # Note that there is a small window in which the directory will not be cleaned: |
| 28370 | # 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] | 28371 | $debug || |
| 28372 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28373 | tmp= |
| 28374 | trap 'exit_status=$? |
| 28375 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 28376 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28377 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 28378 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28379 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28381 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28382 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28383 | test -n "$tmp" && test -d "$tmp" |
| 28384 | } || |
| 28385 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28386 | tmp=./conf$$-$RANDOM |
| 28387 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28388 | } || |
| 28389 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28390 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28391 | { (exit 1); exit 1; } |
| 28392 | } |
| 28393 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28394 | # |
| 28395 | # Set up the sed scripts for CONFIG_FILES section. |
| 28396 | # |
| 28397 | |
| 28398 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 28399 | # This happens for instance when ./config.status config.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28400 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28401 | |
| 28402 | _ACEOF |
| 28403 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28404 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28405 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28406 | ac_delim='%!_!# ' |
| 28407 | for ac_last_try in false false false false false :; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28408 | cat >conf$$subs.sed <<_ACEOF |
| 28409 | SHELL!$SHELL$ac_delim |
| 28410 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 28411 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 28412 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 28413 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 28414 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 28415 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 28416 | exec_prefix!$exec_prefix$ac_delim |
| 28417 | prefix!$prefix$ac_delim |
| 28418 | program_transform_name!$program_transform_name$ac_delim |
| 28419 | bindir!$bindir$ac_delim |
| 28420 | sbindir!$sbindir$ac_delim |
| 28421 | libexecdir!$libexecdir$ac_delim |
| 28422 | datarootdir!$datarootdir$ac_delim |
| 28423 | datadir!$datadir$ac_delim |
| 28424 | sysconfdir!$sysconfdir$ac_delim |
| 28425 | sharedstatedir!$sharedstatedir$ac_delim |
| 28426 | localstatedir!$localstatedir$ac_delim |
| 28427 | includedir!$includedir$ac_delim |
| 28428 | oldincludedir!$oldincludedir$ac_delim |
| 28429 | docdir!$docdir$ac_delim |
| 28430 | infodir!$infodir$ac_delim |
| 28431 | htmldir!$htmldir$ac_delim |
| 28432 | dvidir!$dvidir$ac_delim |
| 28433 | pdfdir!$pdfdir$ac_delim |
| 28434 | psdir!$psdir$ac_delim |
| 28435 | libdir!$libdir$ac_delim |
| 28436 | localedir!$localedir$ac_delim |
| 28437 | mandir!$mandir$ac_delim |
| 28438 | DEFS!$DEFS$ac_delim |
| 28439 | ECHO_C!$ECHO_C$ac_delim |
| 28440 | ECHO_N!$ECHO_N$ac_delim |
| 28441 | ECHO_T!$ECHO_T$ac_delim |
| 28442 | LIBS!$LIBS$ac_delim |
| 28443 | build_alias!$build_alias$ac_delim |
| 28444 | host_alias!$host_alias$ac_delim |
| 28445 | target_alias!$target_alias$ac_delim |
| 28446 | VERSION!$VERSION$ac_delim |
| 28447 | SOVERSION!$SOVERSION$ac_delim |
| 28448 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 28449 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 28450 | ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28451 | LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28452 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 28453 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
| 28454 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 28455 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 28456 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 28457 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 28458 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 28459 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 28460 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 28461 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 28462 | MACHDEP!$MACHDEP$ac_delim |
| 28463 | SGI_ABI!$SGI_ABI$ac_delim |
| 28464 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 28465 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 28466 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 28467 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 28468 | CC!$CC$ac_delim |
| 28469 | CFLAGS!$CFLAGS$ac_delim |
| 28470 | LDFLAGS!$LDFLAGS$ac_delim |
| 28471 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 28472 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 28473 | EXEEXT!$EXEEXT$ac_delim |
| 28474 | OBJEXT!$OBJEXT$ac_delim |
| 28475 | CXX!$CXX$ac_delim |
| 28476 | MAINCC!$MAINCC$ac_delim |
| 28477 | CPP!$CPP$ac_delim |
| 28478 | GREP!$GREP$ac_delim |
| 28479 | EGREP!$EGREP$ac_delim |
| 28480 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 28481 | LIBRARY!$LIBRARY$ac_delim |
| 28482 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 28483 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 28484 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 28485 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 28486 | INSTSONAME!$INSTSONAME$ac_delim |
| 28487 | RUNSHARED!$RUNSHARED$ac_delim |
| 28488 | LINKCC!$LINKCC$ac_delim |
| 28489 | GNULD!$GNULD$ac_delim |
| 28490 | RANLIB!$RANLIB$ac_delim |
| 28491 | AR!$AR$ac_delim |
| 28492 | ARFLAGS!$ARFLAGS$ac_delim |
| 28493 | SVNVERSION!$SVNVERSION$ac_delim |
| 28494 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 28495 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 28496 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 28497 | LN!$LN$ac_delim |
| 28498 | OPT!$OPT$ac_delim |
| 28499 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 28500 | UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim |
| 28501 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 28502 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 28503 | SO!$SO$ac_delim |
| 28504 | LDSHARED!$LDSHARED$ac_delim |
| 28505 | BLDSHARED!$BLDSHARED$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28506 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28507 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28508 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28509 | break |
| 28510 | elif $ac_last_try; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28511 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 28512 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28513 | { (exit 1); exit 1; }; } |
| 28514 | else |
| 28515 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28516 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28517 | done |
| 28518 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28519 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28520 | if test -n "$ac_eof"; then |
| 28521 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28522 | ac_eof=`expr $ac_eof + 1` |
| 28523 | fi |
| 28524 | |
| 28525 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28526 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 28527 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28528 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28529 | sed ' |
| 28530 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28531 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28532 | :n |
| 28533 | t n |
| 28534 | s/'"$ac_delim"'$/,g/; t |
| 28535 | s/$/\\/; p |
| 28536 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28537 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28538 | rm -f conf$$subs.sed |
| 28539 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28540 | CEOF$ac_eof |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28541 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28542 | |
| 28543 | |
| 28544 | ac_delim='%!_!# ' |
| 28545 | for ac_last_try in false false false false false :; do |
| 28546 | cat >conf$$subs.sed <<_ACEOF |
Ronald Oussoren | 92919a6 | 2009-12-24 13:30:58 +0000 | [diff] [blame] | 28547 | CCSHARED!$CCSHARED$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28548 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 28549 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 28550 | SHLIBS!$SHLIBS$ac_delim |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 28551 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
| 28552 | LIBFFI_INCLUDEDIR!$LIBFFI_INCLUDEDIR$ac_delim |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28553 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 28554 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 28555 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 28556 | LDLAST!$LDLAST$ac_delim |
| 28557 | THREADOBJ!$THREADOBJ$ac_delim |
| 28558 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 28559 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 28560 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 28561 | TRUE!$TRUE$ac_delim |
| 28562 | LIBOBJS!$LIBOBJS$ac_delim |
| 28563 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 28564 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 28565 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 28566 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 28567 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 28568 | LIBM!$LIBM$ac_delim |
| 28569 | LIBC!$LIBC$ac_delim |
| 28570 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 28571 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 28572 | SRCDIRS!$SRCDIRS$ac_delim |
| 28573 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 28574 | _ACEOF |
| 28575 | |
Benjamin Peterson | 1c335e6 | 2010-01-01 15:16:29 +0000 | [diff] [blame] | 28576 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28577 | break |
| 28578 | elif $ac_last_try; then |
| 28579 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 28580 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28581 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28582 | else |
| 28583 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 28584 | fi |
| 28585 | done |
| 28586 | |
| 28587 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28588 | if test -n "$ac_eof"; then |
| 28589 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28590 | ac_eof=`expr $ac_eof + 1` |
| 28591 | fi |
| 28592 | |
| 28593 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28594 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 28595 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28596 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28597 | sed ' |
| 28598 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28599 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28600 | :n |
| 28601 | t n |
| 28602 | s/'"$ac_delim"'$/,g/; t |
| 28603 | s/$/\\/; p |
| 28604 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28605 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28606 | rm -f conf$$subs.sed |
| 28607 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28608 | :end |
| 28609 | s/|#_!!_#|//g |
| 28610 | CEOF$ac_eof |
| 28611 | _ACEOF |
| 28612 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28613 | |
| 28614 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 28615 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 28616 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 28617 | # (actually we leave an empty line to preserve line numbers). |
| 28618 | if test "x$srcdir" = x.; then |
| 28619 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 28620 | s/:*\$(srcdir):*/:/ |
| 28621 | s/:*\${srcdir}:*/:/ |
| 28622 | s/:*@srcdir@:*/:/ |
| 28623 | s/^\([^=]*=[ ]*\):*/\1/ |
| 28624 | s/:*$// |
| 28625 | s/^[^=]*=[ ]*$// |
| 28626 | }' |
| 28627 | fi |
| 28628 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28629 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28630 | fi # test -n "$CONFIG_FILES" |
| 28631 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28632 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28633 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28634 | do |
| 28635 | case $ac_tag in |
| 28636 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 28637 | esac |
| 28638 | case $ac_mode$ac_tag in |
| 28639 | :[FHL]*:*);; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28640 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 28641 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28642 | { (exit 1); exit 1; }; };; |
| 28643 | :[FH]-) ac_tag=-:-;; |
| 28644 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 28645 | esac |
| 28646 | ac_save_IFS=$IFS |
| 28647 | IFS=: |
| 28648 | set x $ac_tag |
| 28649 | IFS=$ac_save_IFS |
| 28650 | shift |
| 28651 | ac_file=$1 |
| 28652 | shift |
| 28653 | |
| 28654 | case $ac_mode in |
| 28655 | :L) ac_source=$1;; |
| 28656 | :[FH]) |
| 28657 | ac_file_inputs= |
| 28658 | for ac_f |
| 28659 | do |
| 28660 | case $ac_f in |
| 28661 | -) ac_f="$tmp/stdin";; |
| 28662 | *) # Look for the file first in the build tree, then in the source tree |
| 28663 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 28664 | # because $ac_f cannot contain `:'. |
| 28665 | test -f "$ac_f" || |
| 28666 | case $ac_f in |
| 28667 | [\\/$]*) false;; |
| 28668 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 28669 | esac || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28670 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 28671 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28672 | { (exit 1); exit 1; }; };; |
| 28673 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28674 | ac_file_inputs="$ac_file_inputs $ac_f" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28675 | done |
| 28676 | |
| 28677 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 28678 | # use $as_me), people would be surprised to read: |
| 28679 | # /* config.h. Generated by config.status. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28680 | configure_input="Generated from "`IFS=: |
| 28681 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28682 | if test x"$ac_file" != x-; then |
| 28683 | configure_input="$ac_file. $configure_input" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28684 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 28685 | echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28686 | fi |
| 28687 | |
| 28688 | case $ac_tag in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28689 | *:-:* | *:-) cat >"$tmp/stdin";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28690 | esac |
| 28691 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28692 | esac |
| 28693 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28694 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28695 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28696 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 28697 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28698 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28699 | echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28700 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28701 | s//\1/ |
| 28702 | q |
| 28703 | } |
| 28704 | /^X\(\/\/\)[^/].*/{ |
| 28705 | s//\1/ |
| 28706 | q |
| 28707 | } |
| 28708 | /^X\(\/\/\)$/{ |
| 28709 | s//\1/ |
| 28710 | q |
| 28711 | } |
| 28712 | /^X\(\/\).*/{ |
| 28713 | s//\1/ |
| 28714 | q |
| 28715 | } |
| 28716 | s/.*/./; q'` |
| 28717 | { as_dir="$ac_dir" |
| 28718 | case $as_dir in #( |
| 28719 | -*) as_dir=./$as_dir;; |
| 28720 | esac |
| 28721 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28722 | as_dirs= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28723 | while :; do |
| 28724 | case $as_dir in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28725 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28726 | *) as_qdir=$as_dir;; |
| 28727 | esac |
| 28728 | as_dirs="'$as_qdir' $as_dirs" |
| 28729 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28730 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28731 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 28732 | X"$as_dir" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28733 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28734 | echo X"$as_dir" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28735 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28736 | s//\1/ |
| 28737 | q |
| 28738 | } |
| 28739 | /^X\(\/\/\)[^/].*/{ |
| 28740 | s//\1/ |
| 28741 | q |
| 28742 | } |
| 28743 | /^X\(\/\/\)$/{ |
| 28744 | s//\1/ |
| 28745 | q |
| 28746 | } |
| 28747 | /^X\(\/\).*/{ |
| 28748 | s//\1/ |
| 28749 | q |
| 28750 | } |
| 28751 | s/.*/./; q'` |
| 28752 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28753 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28754 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28755 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 28756 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28757 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28758 | ac_builddir=. |
| 28759 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28760 | case "$ac_dir" in |
| 28761 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28762 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28763 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28764 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28765 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28766 | case $ac_top_builddir_sub in |
| 28767 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28768 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 28769 | esac ;; |
| 28770 | esac |
| 28771 | ac_abs_top_builddir=$ac_pwd |
| 28772 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 28773 | # for backward compatibility: |
| 28774 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28775 | |
| 28776 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28777 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28778 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28779 | ac_top_srcdir=$ac_top_builddir_sub |
| 28780 | ac_abs_top_srcdir=$ac_pwd ;; |
| 28781 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28782 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28783 | ac_top_srcdir=$srcdir |
| 28784 | ac_abs_top_srcdir=$srcdir ;; |
| 28785 | *) # Relative name. |
| 28786 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 28787 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 28788 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28789 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28790 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28792 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28793 | case $ac_mode in |
| 28794 | :F) |
| 28795 | # |
| 28796 | # CONFIG_FILE |
| 28797 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28798 | |
| 28799 | case $INSTALL in |
| 28800 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28801 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28802 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 28803 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28804 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28805 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28806 | # If the template does not know about datarootdir, expand it. |
| 28807 | # FIXME: This hack should be removed a few years after 2.60. |
| 28808 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 28809 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28810 | case `sed -n '/datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28811 | p |
| 28812 | q |
| 28813 | } |
| 28814 | /@datadir@/p |
| 28815 | /@docdir@/p |
| 28816 | /@infodir@/p |
| 28817 | /@localedir@/p |
| 28818 | /@mandir@/p |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28819 | ' $ac_file_inputs` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28820 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 28821 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28822 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 28823 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28824 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28825 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28826 | ac_datarootdir_hack=' |
| 28827 | s&@datadir@&$datadir&g |
| 28828 | s&@docdir@&$docdir&g |
| 28829 | s&@infodir@&$infodir&g |
| 28830 | s&@localedir@&$localedir&g |
| 28831 | s&@mandir@&$mandir&g |
| 28832 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 28833 | esac |
| 28834 | _ACEOF |
| 28835 | |
| 28836 | # Neutralize VPATH when `$srcdir' = `.'. |
| 28837 | # Shell code in configure.ac might set extrasub. |
| 28838 | # FIXME: do we really want to maintain this feature? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28839 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28840 | sed "$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28841 | $extrasub |
| 28842 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28843 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28844 | :t |
| 28845 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28846 | s&@configure_input@&$configure_input&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28847 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 28848 | s&@srcdir@&$ac_srcdir&;t t |
| 28849 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 28850 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 28851 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 28852 | s&@builddir@&$ac_builddir&;t t |
| 28853 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 28854 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 28855 | s&@INSTALL@&$ac_INSTALL&;t t |
| 28856 | $ac_datarootdir_hack |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28857 | " $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] | 28858 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28859 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 28860 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 28861 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28862 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28863 | which seems to be undefined. Please make sure it is defined." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28864 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28865 | which seems to be undefined. Please make sure it is defined." >&2;} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 28866 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28867 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28868 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28869 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 28870 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 28871 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28872 | ;; |
| 28873 | :H) |
| 28874 | # |
| 28875 | # CONFIG_HEADER |
| 28876 | # |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28877 | _ACEOF |
| 28878 | |
| 28879 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 28880 | # substitutes the proper values into config.h.in to produce config.h. |
| 28881 | rm -f conftest.defines conftest.tail |
| 28882 | # First, append a space to every undef/define line, to ease matching. |
| 28883 | echo 's/$/ /' >conftest.defines |
| 28884 | # Then, protect against being on the right side of a sed subst, or in |
| 28885 | # an unquoted here document, in config.status. If some macros were |
| 28886 | # called several times there might be several #defines for the same |
| 28887 | # symbol, which is useless. But do not sort them, since the last |
| 28888 | # AC_DEFINE must be honored. |
| 28889 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 28890 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 28891 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 28892 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 28893 | # just an empty string. |
| 28894 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 28895 | ac_dB='\\)[ (].*,\\1define\\2' |
| 28896 | ac_dC=' ' |
| 28897 | ac_dD=' ,' |
| 28898 | |
| 28899 | uniq confdefs.h | |
| 28900 | sed -n ' |
| 28901 | t rset |
| 28902 | :rset |
| 28903 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 28904 | t ok |
| 28905 | d |
| 28906 | :ok |
| 28907 | s/[\\&,]/\\&/g |
| 28908 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 28909 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 28910 | ' >>conftest.defines |
| 28911 | |
| 28912 | # Remove the space that was appended to ease matching. |
| 28913 | # Then replace #undef with comments. This is necessary, for |
| 28914 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 28915 | # on some systems where configure will not decide to define it. |
| 28916 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 28917 | echo 's/ $// |
| 28918 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 28919 | |
| 28920 | # Break up conftest.defines: |
| 28921 | ac_max_sed_lines=50 |
| 28922 | |
| 28923 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 28924 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 28925 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 28926 | # et cetera. |
| 28927 | ac_in='$ac_file_inputs' |
| 28928 | ac_out='"$tmp/out1"' |
| 28929 | ac_nxt='"$tmp/out2"' |
| 28930 | |
| 28931 | while : |
| 28932 | do |
| 28933 | # Write a here document: |
| 28934 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28935 | # First, check the format of the line: |
| 28936 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 28937 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 28938 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 28939 | b |
| 28940 | :def |
| 28941 | _ACEOF |
| 28942 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 28943 | echo 'CEOF |
| 28944 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 28945 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 28946 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 28947 | grep . conftest.tail >/dev/null || break |
| 28948 | rm -f conftest.defines |
| 28949 | mv conftest.tail conftest.defines |
| 28950 | done |
| 28951 | rm -f conftest.defines conftest.tail |
| 28952 | |
| 28953 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 28954 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28955 | if test x"$ac_file" != x-; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28956 | echo "/* $configure_input */" >"$tmp/config.h" |
| 28957 | cat "$ac_result" >>"$tmp/config.h" |
| 28958 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 28959 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 28960 | echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28961 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28962 | rm -f $ac_file |
| 28963 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28964 | fi |
| 28965 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28966 | echo "/* $configure_input */" |
| 28967 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28968 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28969 | rm -f "$tmp/out12" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28970 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 28971 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28972 | |
| 28973 | esac |
| 28974 | |
| 28975 | done # for ac_tag |
| 28976 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 28977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28978 | { (exit 0); exit 0; } |
| 28979 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 28980 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28981 | ac_clean_files=$ac_clean_files_save |
| 28982 | |
| 28983 | |
| 28984 | # configure is writing to config.log, and then calls config.status. |
| 28985 | # config.status does its own redirection, appending to config.log. |
| 28986 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 28987 | # by configure, so config.status won't be able to write to it; its |
| 28988 | # output is simply discarded. So we exec the FD to /dev/null, |
| 28989 | # effectively closing config.log, so it can be properly (re)opened and |
| 28990 | # appended to by config.status. When coming back to configure, we |
| 28991 | # need to make the FD available again. |
| 28992 | if test "$no_create" != yes; then |
| 28993 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28994 | ac_config_status_args= |
| 28995 | test "$silent" = yes && |
| 28996 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28997 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28998 | $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] | 28999 | exec 5>>config.log |
| 29000 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 29001 | # would make configure fail if this is the last instruction. |
| 29002 | $ac_cs_success || { (exit 1); exit 1; } |
| 29003 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 29004 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29005 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 29006 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29007 | if test ! -f Modules/Setup |
| 29008 | then |
| 29009 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 29010 | fi |
| 29011 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 29012 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 29013 | if test ! -f Modules/Setup.local |
| 29014 | then |
| 29015 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 29016 | fi |
| 29017 | |
| 29018 | echo "creating Makefile" |
| 29019 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 29020 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 29021 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29022 | |
| 29023 | case $ac_sys_system in |
| 29024 | BeOS) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29025 | { echo "$as_me:$LINENO: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29026 | |
| 29027 | Support for BeOS is deprecated as of Python 2.6. |
| 29028 | See PEP 11 for the gory details. |
| 29029 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 29030 | echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 29031 | |
| 29032 | Support for BeOS is deprecated as of Python 2.6. |
| 29033 | See PEP 11 for the gory details. |
| 29034 | " >&2;} |
| 29035 | ;; |
| 29036 | *) ;; |
| 29037 | esac |
| 29038 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 29039 | mv config.c Modules |