Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 76052 . |
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 |
| 661 | PYTHONFRAMEWORK |
| 662 | PYTHONFRAMEWORKIDENTIFIER |
| 663 | PYTHONFRAMEWORKDIR |
| 664 | PYTHONFRAMEWORKPREFIX |
| 665 | PYTHONFRAMEWORKINSTALLDIR |
| 666 | FRAMEWORKINSTALLFIRST |
| 667 | FRAMEWORKINSTALLLAST |
| 668 | FRAMEWORKALTINSTALLFIRST |
| 669 | FRAMEWORKALTINSTALLLAST |
| 670 | FRAMEWORKUNIXTOOLSPREFIX |
| 671 | MACHDEP |
| 672 | SGI_ABI |
| 673 | EXTRAPLATDIR |
| 674 | EXTRAMACHDEPPATH |
| 675 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET |
| 676 | EXPORT_MACOSX_DEPLOYMENT_TARGET |
| 677 | CC |
| 678 | CFLAGS |
| 679 | LDFLAGS |
| 680 | CPPFLAGS |
| 681 | ac_ct_CC |
| 682 | EXEEXT |
| 683 | OBJEXT |
| 684 | CXX |
| 685 | MAINCC |
| 686 | CPP |
| 687 | GREP |
| 688 | EGREP |
| 689 | BUILDEXEEXT |
| 690 | LIBRARY |
| 691 | LDLIBRARY |
| 692 | DLLLIBRARY |
| 693 | BLDLIBRARY |
| 694 | LDLIBRARYDIR |
| 695 | INSTSONAME |
| 696 | RUNSHARED |
| 697 | LINKCC |
| 698 | GNULD |
| 699 | RANLIB |
| 700 | AR |
| 701 | ARFLAGS |
| 702 | SVNVERSION |
| 703 | INSTALL_PROGRAM |
| 704 | INSTALL_SCRIPT |
| 705 | INSTALL_DATA |
| 706 | LN |
| 707 | OPT |
| 708 | BASECFLAGS |
| 709 | UNIVERSAL_ARCH_FLAGS |
| 710 | OTHER_LIBTOOL_OPT |
| 711 | LIBTOOL_CRUFT |
| 712 | SO |
| 713 | LDSHARED |
| 714 | BLDSHARED |
| 715 | CCSHARED |
| 716 | LINKFORSHARED |
| 717 | CFLAGSFORSHARED |
| 718 | SHLIBS |
| 719 | USE_SIGNAL_MODULE |
| 720 | SIGNAL_OBJS |
| 721 | USE_THREAD_MODULE |
| 722 | LDLAST |
| 723 | THREADOBJ |
| 724 | DLINCLDIR |
| 725 | DYNLOADFILE |
| 726 | MACHDEP_OBJS |
| 727 | TRUE |
| 728 | LIBOBJS |
| 729 | HAVE_GETHOSTBYNAME_R_6_ARG |
| 730 | HAVE_GETHOSTBYNAME_R_5_ARG |
| 731 | HAVE_GETHOSTBYNAME_R_3_ARG |
| 732 | HAVE_GETHOSTBYNAME_R |
| 733 | HAVE_GETHOSTBYNAME |
| 734 | LIBM |
| 735 | LIBC |
| 736 | UNICODE_OBJS |
| 737 | THREADHEADERS |
| 738 | SRCDIRS |
| 739 | LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 740 | ac_subst_files='' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 741 | ac_precious_vars='build_alias |
| 742 | host_alias |
| 743 | target_alias |
| 744 | CC |
| 745 | CFLAGS |
| 746 | LDFLAGS |
| 747 | LIBS |
| 748 | CPPFLAGS |
| 749 | CPP' |
| 750 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 751 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 752 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 753 | ac_init_help= |
| 754 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 755 | # The variables have the same names as the options, with |
| 756 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 757 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 758 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 759 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 760 | no_recursion= |
| 761 | prefix=NONE |
| 762 | program_prefix=NONE |
| 763 | program_suffix=NONE |
| 764 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 765 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 766 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 767 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 768 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 769 | x_includes=NONE |
| 770 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 771 | |
| 772 | # Installation directory options. |
| 773 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 774 | # and all the variables that are supposed to be based on exec_prefix |
| 775 | # by default will actually change. |
| 776 | # 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] | 777 | # (The list follows the same order as the GNU Coding Standards.) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 778 | bindir='${exec_prefix}/bin' |
| 779 | sbindir='${exec_prefix}/sbin' |
| 780 | libexecdir='${exec_prefix}/libexec' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 781 | datarootdir='${prefix}/share' |
| 782 | datadir='${datarootdir}' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 783 | sysconfdir='${prefix}/etc' |
| 784 | sharedstatedir='${prefix}/com' |
| 785 | localstatedir='${prefix}/var' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 786 | includedir='${prefix}/include' |
| 787 | oldincludedir='/usr/include' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 788 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 789 | infodir='${datarootdir}/info' |
| 790 | htmldir='${docdir}' |
| 791 | dvidir='${docdir}' |
| 792 | pdfdir='${docdir}' |
| 793 | psdir='${docdir}' |
| 794 | libdir='${exec_prefix}/lib' |
| 795 | localedir='${datarootdir}/locale' |
| 796 | mandir='${datarootdir}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 797 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 798 | ac_prev= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 799 | ac_dashdash= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 800 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 801 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 802 | # If the previous option needs an argument, assign it. |
| 803 | if test -n "$ac_prev"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 804 | eval $ac_prev=\$ac_option |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 805 | ac_prev= |
| 806 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 807 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 808 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 809 | case $ac_option in |
| 810 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 811 | *) ac_optarg=yes ;; |
| 812 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 813 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 814 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 815 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 816 | case $ac_dashdash$ac_option in |
| 817 | --) |
| 818 | ac_dashdash=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 819 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 820 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 821 | ac_prev=bindir ;; |
| 822 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 823 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 824 | |
| 825 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 826 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 827 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 828 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 829 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 830 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 831 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 832 | ac_prev=cache_file ;; |
| 833 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 834 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 835 | cache_file=$ac_optarg ;; |
| 836 | |
| 837 | --config-cache | -C) |
| 838 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 839 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 840 | -datadir | --datadir | --datadi | --datad) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 841 | ac_prev=datadir ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 842 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 843 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 844 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 845 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 846 | | --dataroo | --dataro | --datar) |
| 847 | ac_prev=datarootdir ;; |
| 848 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 849 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 850 | datarootdir=$ac_optarg ;; |
| 851 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 852 | -disable-* | --disable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 853 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 854 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 855 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 856 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 857 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 858 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 859 | eval enable_$ac_feature=no ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 860 | |
| 861 | -docdir | --docdir | --docdi | --doc | --do) |
| 862 | ac_prev=docdir ;; |
| 863 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 864 | docdir=$ac_optarg ;; |
| 865 | |
| 866 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 867 | ac_prev=dvidir ;; |
| 868 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 869 | dvidir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 870 | |
| 871 | -enable-* | --enable-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 872 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 873 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 874 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 875 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 876 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 877 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 878 | eval enable_$ac_feature=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 879 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 880 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 881 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 882 | | --exec | --exe | --ex) |
| 883 | ac_prev=exec_prefix ;; |
| 884 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 885 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 886 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 887 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 888 | |
| 889 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 890 | # Obsolete; use --with-gas. |
| 891 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 893 | -help | --help | --hel | --he | -h) |
| 894 | ac_init_help=long ;; |
| 895 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 896 | ac_init_help=recursive ;; |
| 897 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 898 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 899 | |
| 900 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 901 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 902 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 903 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 904 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 905 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 906 | ac_prev=htmldir ;; |
| 907 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 908 | | --ht=*) |
| 909 | htmldir=$ac_optarg ;; |
| 910 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 911 | -includedir | --includedir | --includedi | --included | --include \ |
| 912 | | --includ | --inclu | --incl | --inc) |
| 913 | ac_prev=includedir ;; |
| 914 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 915 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 916 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 917 | |
| 918 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 919 | ac_prev=infodir ;; |
| 920 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 921 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 922 | |
| 923 | -libdir | --libdir | --libdi | --libd) |
| 924 | ac_prev=libdir ;; |
| 925 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 926 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 927 | |
| 928 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 929 | | --libexe | --libex | --libe) |
| 930 | ac_prev=libexecdir ;; |
| 931 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 932 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 933 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 934 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 935 | -localedir | --localedir | --localedi | --localed | --locale) |
| 936 | ac_prev=localedir ;; |
| 937 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 938 | localedir=$ac_optarg ;; |
| 939 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 940 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 941 | | --localstate | --localstat | --localsta | --localst | --locals) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 942 | ac_prev=localstatedir ;; |
| 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=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 945 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 946 | |
| 947 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 948 | ac_prev=mandir ;; |
| 949 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 950 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 951 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 952 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 953 | # Obsolete; use --without-fp. |
| 954 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 955 | |
| 956 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 957 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 958 | no_create=yes ;; |
| 959 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 960 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 961 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 962 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 963 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 964 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 965 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 966 | | --oldin | --oldi | --old | --ol | --o) |
| 967 | ac_prev=oldincludedir ;; |
| 968 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 969 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 970 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 971 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 972 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 973 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 974 | ac_prev=prefix ;; |
| 975 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 976 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 977 | |
| 978 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 979 | | --program-pre | --program-pr | --program-p) |
| 980 | ac_prev=program_prefix ;; |
| 981 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 982 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 983 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 984 | |
| 985 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 986 | | --program-suf | --program-su | --program-s) |
| 987 | ac_prev=program_suffix ;; |
| 988 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 989 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 990 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 991 | |
| 992 | -program-transform-name | --program-transform-name \ |
| 993 | | --program-transform-nam | --program-transform-na \ |
| 994 | | --program-transform-n | --program-transform- \ |
| 995 | | --program-transform | --program-transfor \ |
| 996 | | --program-transfo | --program-transf \ |
| 997 | | --program-trans | --program-tran \ |
| 998 | | --progr-tra | --program-tr | --program-t) |
| 999 | ac_prev=program_transform_name ;; |
| 1000 | -program-transform-name=* | --program-transform-name=* \ |
| 1001 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1002 | | --program-transform-n=* | --program-transform-=* \ |
| 1003 | | --program-transform=* | --program-transfor=* \ |
| 1004 | | --program-transfo=* | --program-transf=* \ |
| 1005 | | --program-trans=* | --program-tran=* \ |
| 1006 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1007 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1008 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1009 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1010 | ac_prev=pdfdir ;; |
| 1011 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1012 | pdfdir=$ac_optarg ;; |
| 1013 | |
| 1014 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1015 | ac_prev=psdir ;; |
| 1016 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1017 | psdir=$ac_optarg ;; |
| 1018 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1019 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1020 | | -silent | --silent | --silen | --sile | --sil) |
| 1021 | silent=yes ;; |
| 1022 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1023 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1024 | ac_prev=sbindir ;; |
| 1025 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1026 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1027 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1028 | |
| 1029 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1030 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1031 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1032 | | --sha | --sh) |
| 1033 | ac_prev=sharedstatedir ;; |
| 1034 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1035 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1036 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1037 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1038 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1039 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1040 | -site | --site | --sit) |
| 1041 | ac_prev=site ;; |
| 1042 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1043 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1044 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1045 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1046 | ac_prev=srcdir ;; |
| 1047 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1048 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1049 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1050 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1051 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1052 | ac_prev=sysconfdir ;; |
| 1053 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1054 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1055 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1056 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1057 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1058 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1059 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1060 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1061 | |
| 1062 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1063 | verbose=yes ;; |
| 1064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | -version | --version | --versio | --versi | --vers | -V) |
| 1066 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1067 | |
| 1068 | -with-* | --with-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1069 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1070 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1071 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1072 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1073 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1074 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1075 | eval with_$ac_package=\$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1076 | |
| 1077 | -without-* | --without-*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1078 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1079 | # Reject names that are not valid shell variable names. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1080 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1081 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1082 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1083 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1084 | eval with_$ac_package=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1085 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1086 | --x) |
| 1087 | # Obsolete; use --with-x. |
| 1088 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1089 | |
| 1090 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1091 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1092 | ac_prev=x_includes ;; |
| 1093 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1094 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1095 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1096 | |
| 1097 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1098 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1099 | ac_prev=x_libraries ;; |
| 1100 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1101 | | --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] | 1102 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1103 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1104 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1105 | Try \`$0 --help' for more information." >&2 |
| 1106 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1107 | ;; |
| 1108 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1109 | *=*) |
| 1110 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1111 | # Reject names that are not valid shell variable names. |
| 1112 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1113 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1114 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1115 | eval $ac_envvar=\$ac_optarg |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1116 | export $ac_envvar ;; |
| 1117 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1118 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1119 | # FIXME: should be removed in autoconf 3.0. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1120 | 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] | 1121 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1122 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1123 | : ${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] | 1124 | ;; |
| 1125 | |
| 1126 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1127 | done |
| 1128 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1129 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1131 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1132 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1133 | fi |
| 1134 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1135 | # Be sure to have absolute directory names. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1136 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1137 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1138 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1139 | libdir localedir mandir |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1140 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1141 | eval ac_val=\$$ac_var |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1142 | case $ac_val in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1143 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1144 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1145 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1146 | { 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] | 1147 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1148 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1150 | # There might be people who depend on the old broken behavior: `$host' |
| 1151 | # used to hold the argument of --host etc. |
| 1152 | # FIXME: To remove some day. |
| 1153 | build=$build_alias |
| 1154 | host=$host_alias |
| 1155 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1157 | # FIXME: To remove some day. |
| 1158 | if test "x$host_alias" != x; then |
| 1159 | if test "x$build_alias" = x; then |
| 1160 | cross_compiling=maybe |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1161 | 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] | 1162 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1163 | elif test "x$build_alias" != "x$host_alias"; then |
| 1164 | cross_compiling=yes |
| 1165 | fi |
| 1166 | fi |
| 1167 | |
| 1168 | ac_tool_prefix= |
| 1169 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1170 | |
| 1171 | test "$silent" = yes && exec 6>/dev/null |
| 1172 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1173 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1174 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1175 | ac_ls_di=`ls -di .` && |
| 1176 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1177 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1178 | { (exit 1); exit 1; }; } |
| 1179 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1180 | { 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] | 1181 | { (exit 1); exit 1; }; } |
| 1182 | |
| 1183 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1184 | # Find the source files, if location was not specified. |
| 1185 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1186 | ac_srcdir_defaulted=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1187 | # Try the directory containing this script, then the parent directory. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1188 | ac_confdir=`$as_dirname -- "$0" || |
| 1189 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1190 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1191 | X"$0" : 'X\(//\)$' \| \ |
| 1192 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1193 | echo X"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1194 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1195 | s//\1/ |
| 1196 | q |
| 1197 | } |
| 1198 | /^X\(\/\/\)[^/].*/{ |
| 1199 | s//\1/ |
| 1200 | q |
| 1201 | } |
| 1202 | /^X\(\/\/\)$/{ |
| 1203 | s//\1/ |
| 1204 | q |
| 1205 | } |
| 1206 | /^X\(\/\).*/{ |
| 1207 | s//\1/ |
| 1208 | q |
| 1209 | } |
| 1210 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1211 | srcdir=$ac_confdir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1212 | if test ! -r "$srcdir/$ac_unique_file"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1213 | srcdir=.. |
| 1214 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1215 | else |
| 1216 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1217 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1218 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1219 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1220 | { 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] | 1221 | { (exit 1); exit 1; }; } |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 1222 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1223 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1224 | ac_abs_confdir=`( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1225 | 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] | 1226 | { (exit 1); exit 1; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1227 | pwd)` |
| 1228 | # When building in place, set srcdir=. |
| 1229 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1230 | srcdir=. |
| 1231 | fi |
| 1232 | # Remove unnecessary trailing slashes from srcdir. |
| 1233 | # Double slashes in file names in object file debugging info |
| 1234 | # mess up M-x gdb in Emacs. |
| 1235 | case $srcdir in |
| 1236 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1237 | esac |
| 1238 | for ac_var in $ac_precious_vars; do |
| 1239 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1240 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1241 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1242 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1243 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1244 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1245 | # |
| 1246 | # Report the --help message. |
| 1247 | # |
| 1248 | if test "$ac_init_help" = "long"; then |
| 1249 | # Omit some internal or obsolete options to make the list less imposing. |
| 1250 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1251 | cat <<_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1252 | \`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] | 1253 | |
| 1254 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1255 | |
| 1256 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1257 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1258 | |
| 1259 | Defaults for the options are specified in brackets. |
| 1260 | |
| 1261 | Configuration: |
| 1262 | -h, --help display this help and exit |
| 1263 | --help=short display options specific to this package |
| 1264 | --help=recursive display the short help of all the included packages |
| 1265 | -V, --version display version information and exit |
| 1266 | -q, --quiet, --silent do not print \`checking...' messages |
| 1267 | --cache-file=FILE cache test results in FILE [disabled] |
| 1268 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1269 | -n, --no-create do not create output files |
| 1270 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1272 | Installation directories: |
| 1273 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1274 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1276 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1277 | |
| 1278 | By default, \`make install' will install all the files in |
| 1279 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1280 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1281 | for instance \`--prefix=\$HOME'. |
| 1282 | |
| 1283 | For better control, use the options below. |
| 1284 | |
| 1285 | Fine tuning of the installation directories: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1286 | --bindir=DIR user executables [EPREFIX/bin] |
| 1287 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1288 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1289 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1290 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1291 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1292 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1293 | --includedir=DIR C header files [PREFIX/include] |
| 1294 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1295 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1296 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1297 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1298 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1299 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1300 | --docdir=DIR documentation root [DATAROOTDIR/doc/python] |
| 1301 | --htmldir=DIR html documentation [DOCDIR] |
| 1302 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1303 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1304 | --psdir=DIR ps documentation [DOCDIR] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1305 | _ACEOF |
| 1306 | |
| 1307 | cat <<\_ACEOF |
| 1308 | _ACEOF |
| 1309 | fi |
| 1310 | |
| 1311 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1312 | case $ac_init_help in |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1313 | short | recursive ) echo "Configuration of python 2.7:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1314 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1315 | cat <<\_ACEOF |
| 1316 | |
| 1317 | Optional Features: |
| 1318 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1319 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Brett Cannon | 91a1dec | 2008-02-13 19:15:44 +0000 | [diff] [blame] | 1320 | --enable-universalsdk[=SDKDIR] |
Brett Cannon | 9a8bb0e | 2008-02-03 02:07:55 +0000 | [diff] [blame] | 1321 | Build against Mac OS X 10.4u SDK (ppc/i386) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1322 | --enable-framework[=INSTALLDIR] |
| 1323 | Build (MacOSX|Darwin) framework |
| 1324 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 1325 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1326 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 1327 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 1328 | --disable-ipv6 Disable ipv6 support |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 1329 | --enable-big-digits[=BITS] |
| 1330 | use big digits for Python longs [BITS=30] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1331 | --enable-unicode[=ucs[24]] |
| 1332 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1333 | |
| 1334 | Optional Packages: |
| 1335 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1336 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1337 | --with-universal-archs=ARCH |
| 1338 | select architectures for universal build ("32-bit", |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 1339 | "64-bit", "3-way", "intel" or "all") |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1340 | --with-framework-name=FRAMEWORK |
| 1341 | specify an alternate name of the framework built |
| 1342 | with --enable-framework |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1343 | --without-gcc never use gcc |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 1344 | --with-cxx-main=<compiler> |
| 1345 | compile main() and link python executable with C++ |
| 1346 | compiler |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1347 | --with-suffix=.exe set executable suffix |
| 1348 | --with-pydebug build with Py_DEBUG defined |
| 1349 | --with-libs='lib1 ...' link against additional libs |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 1350 | --with-system-ffi build _ctypes module using an installed ffi library |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 1351 | --with-dbmliborder=db1:db2:... |
| 1352 | order to check db backends for dbm. Valid value is a |
| 1353 | colon separated string with the backend names |
| 1354 | `ndbm', `gdbm' and `bdb'. |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1355 | --with-signal-module disable/enable signal module |
| 1356 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 1357 | --with(out)-threads[=DIRECTORY] |
| 1358 | disable/enable thread support |
| 1359 | --with(out)-thread[=DIRECTORY] |
| 1360 | deprecated; use --with(out)-threads |
| 1361 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1362 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 1363 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1364 | --with(out)-pymalloc disable/enable specialized mallocs |
| 1365 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1366 | --with-fpectl enable SIGFPE catching |
| 1367 | --with-libm=STRING math library |
| 1368 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1369 | |
| 1370 | Some influential environment variables: |
| 1371 | CC C compiler command |
| 1372 | CFLAGS C compiler flags |
| 1373 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1374 | nonstandard directory <lib dir> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1375 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1376 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1377 | you have headers in a nonstandard directory <include dir> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1378 | CPP C preprocessor |
| 1379 | |
| 1380 | Use these variables to override the choices made by `configure' or to help |
| 1381 | it to find libraries and programs with nonstandard names/locations. |
| 1382 | |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 1383 | Report bugs to <http://bugs.python.org/>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1384 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1385 | ac_status=$? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1386 | fi |
| 1387 | |
| 1388 | if test "$ac_init_help" = "recursive"; then |
| 1389 | # If there are subdirs, report their specific --help. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 | 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] | 1391 | test -d "$ac_dir" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | ac_builddir=. |
| 1393 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1394 | case "$ac_dir" in |
| 1395 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1396 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1397 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1398 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1399 | 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] | 1400 | case $ac_top_builddir_sub in |
| 1401 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1402 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1403 | esac ;; |
| 1404 | esac |
| 1405 | ac_abs_top_builddir=$ac_pwd |
| 1406 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1407 | # for backward compatibility: |
| 1408 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1409 | |
| 1410 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1411 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1412 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1413 | ac_top_srcdir=$ac_top_builddir_sub |
| 1414 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1415 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1416 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1417 | ac_top_srcdir=$srcdir |
| 1418 | ac_abs_top_srcdir=$srcdir ;; |
| 1419 | *) # Relative name. |
| 1420 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1421 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1422 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1424 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1425 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1426 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1427 | # Check for guested configure. |
| 1428 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1429 | echo && |
| 1430 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1431 | elif test -f "$ac_srcdir/configure"; then |
| 1432 | echo && |
| 1433 | $SHELL "$ac_srcdir/configure" --help=recursive |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1434 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1435 | 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] | 1436 | fi || ac_status=$? |
| 1437 | cd "$ac_pwd" || { ac_status=$?; break; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1438 | done |
| 1439 | fi |
| 1440 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1441 | test -n "$ac_init_help" && exit $ac_status |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1442 | if $ac_init_version; then |
| 1443 | cat <<\_ACEOF |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1444 | python configure 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1445 | generated by GNU Autoconf 2.61 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1447 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1448 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1449 | This configure script is free software; the Free Software Foundation |
| 1450 | gives unlimited permission to copy, distribute and modify it. |
| 1451 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1452 | exit |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1453 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1454 | cat >config.log <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 | This file contains any messages produced by compilers while |
| 1456 | running configure, to aid debugging if configure makes a mistake. |
| 1457 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1458 | It was created by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1459 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1460 | |
| 1461 | $ $0 $@ |
| 1462 | |
| 1463 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1464 | exec 5>>config.log |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1465 | { |
| 1466 | cat <<_ASUNAME |
| 1467 | ## --------- ## |
| 1468 | ## Platform. ## |
| 1469 | ## --------- ## |
| 1470 | |
| 1471 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1472 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1473 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1474 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1475 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1476 | |
| 1477 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1478 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1479 | |
| 1480 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1481 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1482 | /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] | 1483 | /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] | 1484 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1485 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1486 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1487 | |
| 1488 | _ASUNAME |
| 1489 | |
| 1490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1491 | for as_dir in $PATH |
| 1492 | do |
| 1493 | IFS=$as_save_IFS |
| 1494 | test -z "$as_dir" && as_dir=. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1495 | echo "PATH: $as_dir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1496 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1497 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1498 | |
| 1499 | } >&5 |
| 1500 | |
| 1501 | cat >&5 <<_ACEOF |
| 1502 | |
| 1503 | |
| 1504 | ## ----------- ## |
| 1505 | ## Core tests. ## |
| 1506 | ## ----------- ## |
| 1507 | |
| 1508 | _ACEOF |
| 1509 | |
| 1510 | |
| 1511 | # Keep a trace of the command line. |
| 1512 | # 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] | 1513 | # 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] | 1514 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1515 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1516 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1517 | ac_configure_args0= |
| 1518 | ac_configure_args1= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1519 | ac_must_keep_next=false |
| 1520 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1521 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1522 | for ac_arg |
| 1523 | do |
| 1524 | case $ac_arg in |
| 1525 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1526 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1527 | | -silent | --silent | --silen | --sile | --sil) |
| 1528 | continue ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1529 | *\'*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1530 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1531 | esac |
| 1532 | case $ac_pass in |
| 1533 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1534 | 2) |
| 1535 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1536 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1537 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1538 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1539 | case $ac_arg in |
| 1540 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1541 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1542 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1543 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1544 | case "$ac_configure_args0 " in |
| 1545 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1546 | esac |
| 1547 | ;; |
| 1548 | -* ) ac_must_keep_next=true ;; |
| 1549 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1550 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1551 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1552 | ;; |
| 1553 | esac |
| 1554 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1555 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1556 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1557 | $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] | 1558 | |
| 1559 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1560 | # config.log. We remove comments because anyway the quotes in there |
| 1561 | # would cause problems or look ugly. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1562 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1563 | # 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] | 1564 | trap 'exit_status=$? |
| 1565 | # Save into config.log some information that might help in debugging. |
| 1566 | { |
| 1567 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1569 | cat <<\_ASBOX |
| 1570 | ## ---------------- ## |
| 1571 | ## Cache variables. ## |
| 1572 | ## ---------------- ## |
| 1573 | _ASBOX |
| 1574 | echo |
| 1575 | # 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] | 1576 | ( |
| 1577 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1578 | eval ac_val=\$$ac_var |
| 1579 | case $ac_val in #( |
| 1580 | *${as_nl}*) |
| 1581 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1582 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1583 | 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] | 1584 | esac |
| 1585 | case $ac_var in #( |
| 1586 | _ | IFS | as_nl) ;; #( |
| 1587 | *) $as_unset $ac_var ;; |
| 1588 | esac ;; |
| 1589 | esac |
| 1590 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1591 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1592 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1593 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1594 | sed -n \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1595 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1596 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1597 | ;; #( |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1598 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1599 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 1600 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1601 | esac | |
| 1602 | sort |
| 1603 | ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1604 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1605 | |
| 1606 | cat <<\_ASBOX |
| 1607 | ## ----------------- ## |
| 1608 | ## Output variables. ## |
| 1609 | ## ----------------- ## |
| 1610 | _ASBOX |
| 1611 | echo |
| 1612 | for ac_var in $ac_subst_vars |
| 1613 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1614 | eval ac_val=\$$ac_var |
| 1615 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1616 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1617 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1618 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1619 | done | sort |
| 1620 | echo |
| 1621 | |
| 1622 | if test -n "$ac_subst_files"; then |
| 1623 | cat <<\_ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1624 | ## ------------------- ## |
| 1625 | ## File substitutions. ## |
| 1626 | ## ------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1627 | _ASBOX |
| 1628 | echo |
| 1629 | for ac_var in $ac_subst_files |
| 1630 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1631 | eval ac_val=\$$ac_var |
| 1632 | case $ac_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1633 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1634 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1635 | echo "$ac_var='\''$ac_val'\''" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1636 | done | sort |
| 1637 | echo |
| 1638 | fi |
| 1639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1640 | if test -s confdefs.h; then |
| 1641 | cat <<\_ASBOX |
| 1642 | ## ----------- ## |
| 1643 | ## confdefs.h. ## |
| 1644 | ## ----------- ## |
| 1645 | _ASBOX |
| 1646 | echo |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1647 | cat confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1648 | echo |
| 1649 | fi |
| 1650 | test "$ac_signal" != 0 && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1651 | echo "$as_me: caught signal $ac_signal" |
| 1652 | echo "$as_me: exit $exit_status" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1653 | } >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1654 | rm -f core *.core core.conftest.* && |
| 1655 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1656 | exit $exit_status |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1657 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1658 | for ac_signal in 1 2 13 15; do |
| 1659 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1660 | done |
| 1661 | ac_signal=0 |
| 1662 | |
| 1663 | # 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] | 1664 | rm -f -r conftest* confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1665 | |
| 1666 | # Predefined preprocessor variables. |
| 1667 | |
| 1668 | cat >>confdefs.h <<_ACEOF |
| 1669 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1670 | _ACEOF |
| 1671 | |
| 1672 | |
| 1673 | cat >>confdefs.h <<_ACEOF |
| 1674 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1675 | _ACEOF |
| 1676 | |
| 1677 | |
| 1678 | cat >>confdefs.h <<_ACEOF |
| 1679 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1680 | _ACEOF |
| 1681 | |
| 1682 | |
| 1683 | cat >>confdefs.h <<_ACEOF |
| 1684 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1685 | _ACEOF |
| 1686 | |
| 1687 | |
| 1688 | cat >>confdefs.h <<_ACEOF |
| 1689 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1690 | _ACEOF |
| 1691 | |
| 1692 | |
| 1693 | # 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] | 1694 | # Prefer explicitly selected file to automatically selected ones. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1695 | if test -n "$CONFIG_SITE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1696 | set x "$CONFIG_SITE" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1697 | elif test "x$prefix" != xNONE; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1698 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1699 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1700 | set x "$ac_default_prefix/share/config.site" \ |
| 1701 | "$ac_default_prefix/etc/config.site" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1702 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1703 | shift |
| 1704 | for ac_site_file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1705 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1706 | if test -r "$ac_site_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1707 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1708 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1709 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1710 | . "$ac_site_file" |
| 1711 | fi |
| 1712 | done |
| 1713 | |
| 1714 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1715 | # Some versions of bash will fail to source /dev/null (special |
| 1716 | # files actually), so we avoid doing that. |
| 1717 | if test -f "$cache_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1718 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1719 | echo "$as_me: loading cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1720 | case $cache_file in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1721 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1722 | *) . "./$cache_file";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1723 | esac |
| 1724 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1725 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1726 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1727 | echo "$as_me: creating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1728 | >$cache_file |
| 1729 | fi |
| 1730 | |
| 1731 | # Check that the precious variables saved in the cache have kept the same |
| 1732 | # value. |
| 1733 | ac_cache_corrupted=false |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1734 | for ac_var in $ac_precious_vars; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1735 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1736 | eval ac_new_set=\$ac_env_${ac_var}_set |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1737 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1738 | eval ac_new_val=\$ac_env_${ac_var}_value |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1739 | case $ac_old_set,$ac_new_set in |
| 1740 | set,) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1741 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1742 | 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] | 1743 | ac_cache_corrupted=: ;; |
| 1744 | ,set) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1745 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1746 | 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] | 1747 | ac_cache_corrupted=: ;; |
| 1748 | ,);; |
| 1749 | *) |
| 1750 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1751 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1752 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1753 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1754 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1755 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1756 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1757 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1758 | fi;; |
| 1759 | esac |
| 1760 | # Pass precious variables to config.status. |
| 1761 | if test "$ac_new_set" = set; then |
| 1762 | case $ac_new_val in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1763 | *\'*) 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] | 1764 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1765 | esac |
| 1766 | case " $ac_configure_args " in |
| 1767 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1768 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1769 | esac |
| 1770 | fi |
| 1771 | done |
| 1772 | if $ac_cache_corrupted; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1773 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1774 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1775 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1776 | 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] | 1777 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1778 | fi |
| 1779 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | |
| 1785 | |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | |
| 1803 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1804 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1805 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1809 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1810 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1811 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1812 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1813 | |
| 1814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1815 | |
Georg Brandl | bcd64a3 | 2009-03-31 21:45:18 +0000 | [diff] [blame] | 1816 | if test "$prefix" != "/"; then |
| 1817 | prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
| 1818 | fi |
| 1819 | |
| 1820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1821 | |
| 1822 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1823 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1824 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1825 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1826 | # with other autoconf-based packages that include Python.h |
| 1827 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1828 | rm confdefs.h |
| 1829 | mv confdefs.h.new confdefs.h |
| 1830 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1831 | |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 1832 | VERSION=2.7 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1833 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1834 | |
| 1835 | SOVERSION=1.0 |
| 1836 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1837 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1838 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1839 | |
| 1840 | cat >>confdefs.h <<\_ACEOF |
| 1841 | #define _GNU_SOURCE 1 |
| 1842 | _ACEOF |
| 1843 | |
| 1844 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1845 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1846 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1847 | # them. |
| 1848 | |
| 1849 | cat >>confdefs.h <<\_ACEOF |
| 1850 | #define _NETBSD_SOURCE 1 |
| 1851 | _ACEOF |
| 1852 | |
| 1853 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1854 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1855 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1856 | # them. |
| 1857 | |
| 1858 | cat >>confdefs.h <<\_ACEOF |
| 1859 | #define __BSD_VISIBLE 1 |
| 1860 | _ACEOF |
| 1861 | |
| 1862 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1863 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1864 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1865 | |
| 1866 | cat >>confdefs.h <<\_ACEOF |
| 1867 | #define _BSD_TYPES 1 |
| 1868 | _ACEOF |
| 1869 | |
| 1870 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1871 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1872 | # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
| 1873 | # them. |
| 1874 | |
| 1875 | cat >>confdefs.h <<\_ACEOF |
| 1876 | #define _DARWIN_C_SOURCE 1 |
| 1877 | _ACEOF |
| 1878 | |
| 1879 | |
| 1880 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1881 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1882 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1883 | # Arguments passed to configure. |
| 1884 | |
| 1885 | CONFIG_ARGS="$ac_configure_args" |
| 1886 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1887 | # Check whether --enable-universalsdk was given. |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1888 | if test "${enable_universalsdk+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1889 | enableval=$enable_universalsdk; |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1890 | case $enableval in |
| 1891 | yes) |
| 1892 | enableval=/Developer/SDKs/MacOSX10.4u.sdk |
| 1893 | ;; |
| 1894 | esac |
| 1895 | case $enableval in |
| 1896 | no) |
| 1897 | UNIVERSALSDK= |
| 1898 | enable_universalsdk= |
| 1899 | ;; |
| 1900 | *) |
| 1901 | UNIVERSALSDK=$enableval |
| 1902 | ;; |
| 1903 | esac |
| 1904 | |
| 1905 | else |
| 1906 | |
| 1907 | UNIVERSALSDK= |
| 1908 | enable_universalsdk= |
| 1909 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1910 | fi |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 1911 | |
| 1912 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1913 | |
Benjamin Peterson | 0e6ea5d | 2008-07-16 20:17:04 +0000 | [diff] [blame] | 1914 | |
| 1915 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1916 | UNIVERSAL_ARCHS="32-bit" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1917 | { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5 |
| 1918 | echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1919 | |
| 1920 | # Check whether --with-universal-archs was given. |
| 1921 | if test "${with_universal_archs+set}" = set; then |
| 1922 | withval=$with_universal_archs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1923 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 1924 | echo "${ECHO_T}$withval" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1925 | UNIVERSAL_ARCHS="$withval" |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1926 | if test "${enable_universalsdk}" ; then |
| 1927 | : |
| 1928 | else |
| 1929 | { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5 |
| 1930 | echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;} |
| 1931 | { (exit 1); exit 1; }; } |
| 1932 | fi |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1933 | |
| 1934 | else |
| 1935 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 1936 | { echo "$as_me:$LINENO: result: 32-bit" >&5 |
| 1937 | echo "${ECHO_T}32-bit" >&6; } |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1938 | |
| 1939 | fi |
| 1940 | |
| 1941 | |
| 1942 | |
| 1943 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1944 | |
| 1945 | # Check whether --with-framework-name was given. |
| 1946 | if test "${with_framework_name+set}" = set; then |
| 1947 | withval=$with_framework_name; |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 1948 | if test "${enable_framework}"; then |
| 1949 | : |
| 1950 | else |
| 1951 | { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5 |
| 1952 | echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;} |
| 1953 | { (exit 1); exit 1; }; } |
| 1954 | fi |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 1955 | PYTHONFRAMEWORK=${withval} |
| 1956 | PYTHONFRAMEWORKDIR=${withval}.framework |
| 1957 | PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` |
| 1958 | |
| 1959 | else |
| 1960 | |
| 1961 | PYTHONFRAMEWORK=Python |
| 1962 | PYTHONFRAMEWORKDIR=Python.framework |
| 1963 | PYTHONFRAMEWORKIDENTIFIER=org.python.python |
| 1964 | |
| 1965 | fi |
| 1966 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1967 | # Check whether --enable-framework was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1968 | if test "${enable_framework+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 1969 | enableval=$enable_framework; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1970 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1971 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1972 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1973 | esac |
| 1974 | case $enableval in |
| 1975 | no) |
| 1976 | PYTHONFRAMEWORK= |
| 1977 | PYTHONFRAMEWORKDIR=no-framework |
| 1978 | PYTHONFRAMEWORKPREFIX= |
| 1979 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1980 | FRAMEWORKINSTALLFIRST= |
| 1981 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 1982 | FRAMEWORKALTINSTALLFIRST= |
| 1983 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 1984 | if test "x${prefix}" = "xNONE"; then |
| 1985 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 1986 | else |
| 1987 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 1988 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1989 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1990 | ;; |
| 1991 | *) |
| 1992 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1993 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 1994 | FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 1995 | FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
| 1996 | if test "$UNIVERSAL_ARCHS" = "all" |
| 1997 | then |
| 1998 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way" |
Ronald Oussoren | bb8cb0e | 2009-03-30 17:53:39 +0000 | [diff] [blame] | 1999 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2000 | else |
Ronald Oussoren | bb8cb0e | 2009-03-30 17:53:39 +0000 | [diff] [blame] | 2001 | FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2002 | FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
| 2003 | fi |
| 2004 | |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2005 | if test "x${prefix}" = "xNONE" ; then |
| 2006 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2007 | else |
| 2008 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2009 | fi |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2010 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2011 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2012 | # Add files for Mac specific code to the list of output |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2013 | # files: |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2014 | ac_config_files="$ac_config_files Mac/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2015 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2016 | ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2017 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2018 | ac_config_files="$ac_config_files Mac/IDLE/Makefile" |
Ronald Oussoren | 836b039 | 2006-05-14 19:56:34 +0000 | [diff] [blame] | 2019 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2020 | ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" |
| 2021 | |
| 2022 | ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" |
| 2023 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2024 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2025 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2026 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2027 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2028 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 2029 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2030 | PYTHONFRAMEWORKPREFIX= |
| 2031 | PYTHONFRAMEWORKINSTALLDIR= |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2032 | FRAMEWORKINSTALLFIRST= |
| 2033 | FRAMEWORKINSTALLLAST= |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2034 | FRAMEWORKALTINSTALLFIRST= |
| 2035 | FRAMEWORKALTINSTALLLAST= |
Ronald Oussoren | 2db3a8f | 2006-06-07 19:06:01 +0000 | [diff] [blame] | 2036 | if test "x${prefix}" = "xNONE" ; then |
| 2037 | FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
| 2038 | else |
| 2039 | FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
| 2040 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2041 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2042 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 2043 | if test "$UNIVERSAL_ARCHS" = "all" |
| 2044 | then |
| 2045 | FRAMEWORKINSTALLLAST=update4wayuniversal |
| 2046 | FRAMEWORKALTINSTALLLAST=update4wayuniversal |
| 2047 | fi |
| 2048 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2049 | fi |
| 2050 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2051 | |
| 2052 | |
| 2053 | |
| 2054 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2055 | |
Ronald Oussoren | 567a8ff | 2006-05-26 11:43:26 +0000 | [diff] [blame] | 2056 | |
| 2057 | |
Ronald Oussoren | 5b78732 | 2006-06-06 19:50:24 +0000 | [diff] [blame] | 2058 | |
| 2059 | |
| 2060 | |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 2061 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2062 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 2063 | ## AC_HELP_STRING(--with-dyld, |
| 2064 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2065 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2066 | # Set name for machine-dependent library files |
| 2067 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2068 | { echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 2069 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2070 | if test -z "$MACHDEP" |
| 2071 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2072 | ac_sys_system=`uname -s` |
Georg Brandl | fe18a11 | 2009-09-04 07:55:14 +0000 | [diff] [blame] | 2073 | if test "$ac_sys_system" = "AIX" \ |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 2074 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2075 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2076 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2077 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2078 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2079 | ac_md_system=`echo $ac_sys_system | |
| 2080 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 2081 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 2082 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2083 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2084 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2085 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 2086 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 2087 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 2088 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 2089 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 2090 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2091 | esac |
| 2092 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2093 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2094 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 2095 | # disable features if it is defined, without any means to access these |
| 2096 | # features as extensions. For these systems, we skip the definition of |
| 2097 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 2098 | # some feature, make sure there is no alternative way to access this |
| 2099 | # feature. Also, when using wildcards, make sure you have verified the |
| 2100 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 2101 | # wildcard, and that the wildcard does not include future systems |
| 2102 | # (which may remove their limitations). |
| 2103 | case $ac_sys_system/$ac_sys_release in |
| 2104 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 2105 | # 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] | 2106 | # 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] | 2107 | OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123]) |
Martin v. Löwis | cb78de6 | 2007-12-29 18:49:21 +0000 | [diff] [blame] | 2108 | define_xopen_source=no |
| 2109 | # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
| 2110 | # also defined. This can be overridden by defining _BSD_SOURCE |
| 2111 | # As this has a different meaning on Linux, only define it on OpenBSD |
| 2112 | |
| 2113 | cat >>confdefs.h <<\_ACEOF |
| 2114 | #define _BSD_SOURCE 1 |
| 2115 | _ACEOF |
| 2116 | |
| 2117 | ;; |
Martin v. Löwis | 4d542ec | 2006-11-25 15:39:19 +0000 | [diff] [blame] | 2118 | # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
| 2119 | # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
| 2120 | # Marc Recht |
Benjamin Peterson | eac68f4 | 2008-11-16 17:54:55 +0000 | [diff] [blame] | 2121 | 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] | 2122 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 2123 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 2124 | # of union __?sigval. Reported by Stuart Bishop. |
| 2125 | SunOS/5.6) |
| 2126 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2127 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 2128 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2129 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 2130 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 2131 | define_xopen_source=no;; |
| 2132 | # 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] | 2133 | # 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] | 2134 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 2135 | define_xopen_source=no;; |
Martin v. Löwis | bb86d83 | 2008-11-04 20:40:09 +0000 | [diff] [blame] | 2136 | # On FreeBSD 4, the math functions C89 does not cover are never defined |
| 2137 | # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
| 2138 | FreeBSD/4.*) |
| 2139 | define_xopen_source=no;; |
| 2140 | # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
| 2141 | # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
| 2142 | # identifies itself as Darwin/7.* |
| 2143 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2144 | # disables platform specific features beyond repair. |
| 2145 | # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 2146 | # has no effect, don't bother defining them |
| 2147 | Darwin/[6789].*) |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 2148 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2149 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 2150 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 2151 | # 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] | 2152 | AIX/4) |
| 2153 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2154 | AIX/5) |
| 2155 | if test `uname -r` -eq 1; then |
| 2156 | define_xopen_source=no |
| 2157 | fi |
| 2158 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 2159 | # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
| 2160 | # defining NI_NUMERICHOST. |
| 2161 | QNX/6.3.2) |
| 2162 | define_xopen_source=no |
| 2163 | ;; |
Martin v. Löwis | a058836 | 2006-04-04 06:03:50 +0000 | [diff] [blame] | 2164 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2165 | esac |
| 2166 | |
| 2167 | if test $define_xopen_source = yes |
| 2168 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2169 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 2170 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2171 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 2172 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2173 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2174 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2175 | |
| 2176 | cat >>confdefs.h <<\_ACEOF |
| 2177 | #define _XOPEN_SOURCE 500 |
| 2178 | _ACEOF |
| 2179 | |
| 2180 | ;; |
| 2181 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2182 | |
| 2183 | cat >>confdefs.h <<\_ACEOF |
| 2184 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2185 | _ACEOF |
| 2186 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2187 | ;; |
| 2188 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2189 | |
| 2190 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 2191 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 2192 | # several APIs are not declared. Since this is also needed in some |
| 2193 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2194 | # except for Solaris 10, where it must not be defined, |
| 2195 | # as it implies XPG4.2 |
| 2196 | case $ac_sys_system/$ac_sys_release in |
| 2197 | SunOS/5.10) |
| 2198 | ;; |
| 2199 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2200 | |
| 2201 | cat >>confdefs.h <<\_ACEOF |
| 2202 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 2203 | _ACEOF |
| 2204 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 2205 | ;; |
| 2206 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2207 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 2208 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 2209 | cat >>confdefs.h <<\_ACEOF |
| 2210 | #define _POSIX_C_SOURCE 200112L |
| 2211 | _ACEOF |
| 2212 | |
| 2213 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2214 | fi |
| 2215 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2216 | # |
| 2217 | # SGI compilers allow the specification of the both the ABI and the |
| 2218 | # ISA on the command line. Depending on the values of these switches, |
| 2219 | # different and often incompatable code will be generated. |
| 2220 | # |
| 2221 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 2222 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 2223 | # variable is also adjusted. |
| 2224 | # |
| 2225 | |
| 2226 | if test ! -z "$SGI_ABI" |
| 2227 | then |
| 2228 | CC="cc $SGI_ABI" |
| 2229 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 2230 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 2231 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2232 | { echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 2233 | echo "${ECHO_T}$MACHDEP" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2234 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2235 | # And add extra plat-mac for darwin |
| 2236 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2237 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2238 | { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 2239 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2240 | if test -z "$EXTRAPLATDIR" |
| 2241 | then |
| 2242 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 2243 | darwin) |
| 2244 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 2245 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 2246 | ;; |
| 2247 | *) |
| 2248 | EXTRAPLATDIR="" |
| 2249 | EXTRAMACHDEPPATH="" |
| 2250 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2251 | esac |
| 2252 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2253 | { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 2254 | echo "${ECHO_T}$EXTRAPLATDIR" >&6; } |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 2255 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2256 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 2257 | # it may influence the way we can build extensions, so distutils |
| 2258 | # needs to check it |
| 2259 | |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2260 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2261 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 2262 | EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 2263 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2264 | { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5 |
| 2265 | 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] | 2266 | ac_sys_machine=`uname -m` |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2267 | { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5 |
| 2268 | echo "${ECHO_T}$ac_sys_machine" >&6; } |
Mark Dickinson | 6513466 | 2008-04-25 16:11:04 +0000 | [diff] [blame] | 2269 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2270 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2271 | |
| 2272 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 2273 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 2274 | # just to get things to compile and link. Users are free to override OPT |
| 2275 | # when running configure or make. The build should not break if they do. |
| 2276 | # BASECFLAGS should generally not be messed with, however. |
| 2277 | |
| 2278 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 2279 | # on that fiddles with OPT and BASECFLAGS? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2280 | { echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 2281 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2282 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2283 | # Check whether --with-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2284 | if test "${with_gcc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2285 | withval=$with_gcc; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2286 | case $withval in |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 2287 | no) CC=${CC:-cc} |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2288 | without_gcc=yes;; |
| 2289 | yes) CC=gcc |
| 2290 | without_gcc=no;; |
| 2291 | *) CC=$withval |
| 2292 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2293 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2295 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2296 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2297 | AIX*) CC=cc_r |
| 2298 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2299 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2300 | case $BE_HOST_CPU in |
| 2301 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2302 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2303 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2304 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 2305 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2306 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2307 | ;; |
| 2308 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 2309 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2310 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 2311 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2312 | ;; |
| 2313 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2314 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 2315 | 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] | 2316 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2317 | ;; |
| 2318 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2319 | AR="\$(srcdir)/Modules/ar_beos" |
| 2320 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 2321 | ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 2322 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 2323 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2324 | fi |
| 2325 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2326 | { echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 2327 | echo "${ECHO_T}$without_gcc" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2328 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2329 | # If the user switches compilers, we can't believe the cache |
| 2330 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 2331 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2332 | { { 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] | 2333 | (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] | 2334 | 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] | 2335 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 2336 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 2337 | fi |
| 2338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2339 | ac_ext=c |
| 2340 | ac_cpp='$CPP $CPPFLAGS' |
| 2341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2344 | if test -n "$ac_tool_prefix"; then |
| 2345 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2346 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2347 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2349 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2351 | else |
| 2352 | if test -n "$CC"; then |
| 2353 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2354 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2356 | for as_dir in $PATH |
| 2357 | do |
| 2358 | IFS=$as_save_IFS |
| 2359 | test -z "$as_dir" && as_dir=. |
| 2360 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2361 | 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] | 2362 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2363 | 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] | 2364 | break 2 |
| 2365 | fi |
| 2366 | done |
| 2367 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2368 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2369 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2370 | fi |
| 2371 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2372 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2373 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2374 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2375 | echo "${ECHO_T}$CC" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2376 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2377 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2378 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2379 | fi |
| 2380 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2382 | fi |
| 2383 | if test -z "$ac_cv_prog_CC"; then |
| 2384 | ac_ct_CC=$CC |
| 2385 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2386 | set dummy gcc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2387 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2388 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2389 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2391 | else |
| 2392 | if test -n "$ac_ct_CC"; then |
| 2393 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2394 | else |
| 2395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2396 | for as_dir in $PATH |
| 2397 | do |
| 2398 | IFS=$as_save_IFS |
| 2399 | test -z "$as_dir" && as_dir=. |
| 2400 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2401 | 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] | 2402 | ac_cv_prog_ac_ct_CC="gcc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2403 | 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] | 2404 | break 2 |
| 2405 | fi |
| 2406 | done |
| 2407 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2408 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2409 | |
| 2410 | fi |
| 2411 | fi |
| 2412 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2413 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2414 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2415 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2416 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2417 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2418 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2419 | fi |
| 2420 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2421 | if test "x$ac_ct_CC" = x; then |
| 2422 | CC="" |
| 2423 | else |
| 2424 | case $cross_compiling:$ac_tool_warned in |
| 2425 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2426 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2427 | whose name does not start with the host triplet. If you think this |
| 2428 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2429 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2430 | whose name does not start with the host triplet. If you think this |
| 2431 | 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] | 2432 | ac_tool_warned=yes ;; |
| 2433 | esac |
| 2434 | CC=$ac_ct_CC |
| 2435 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2436 | else |
| 2437 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2438 | fi |
| 2439 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2440 | if test -z "$CC"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2441 | if test -n "$ac_tool_prefix"; then |
| 2442 | # 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] | 2443 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2444 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2446 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2448 | else |
| 2449 | if test -n "$CC"; then |
| 2450 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2451 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2453 | for as_dir in $PATH |
| 2454 | do |
| 2455 | IFS=$as_save_IFS |
| 2456 | test -z "$as_dir" && as_dir=. |
| 2457 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2458 | 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] | 2459 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2460 | 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] | 2461 | break 2 |
| 2462 | fi |
| 2463 | done |
| 2464 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2465 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2466 | |
| 2467 | fi |
| 2468 | fi |
| 2469 | CC=$ac_cv_prog_CC |
| 2470 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2471 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2472 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2473 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2474 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2475 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2476 | fi |
| 2477 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2479 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2480 | fi |
| 2481 | if test -z "$CC"; then |
| 2482 | # Extract the first word of "cc", so it can be a program name with args. |
| 2483 | set dummy cc; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2484 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2485 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2486 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2488 | else |
| 2489 | if test -n "$CC"; then |
| 2490 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2491 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2492 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2494 | for as_dir in $PATH |
| 2495 | do |
| 2496 | IFS=$as_save_IFS |
| 2497 | test -z "$as_dir" && as_dir=. |
| 2498 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2499 | 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] | 2500 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2501 | ac_prog_rejected=yes |
| 2502 | continue |
| 2503 | fi |
| 2504 | ac_cv_prog_CC="cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2505 | 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] | 2506 | break 2 |
| 2507 | fi |
| 2508 | done |
| 2509 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2510 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2511 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2512 | if test $ac_prog_rejected = yes; then |
| 2513 | # We found a bogon in the path, so make sure we never use it. |
| 2514 | set dummy $ac_cv_prog_CC |
| 2515 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2516 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2517 | # We chose a different compiler from the bogus one. |
| 2518 | # However, it has the same basename, so the bogon will be chosen |
| 2519 | # first if we set CC to just the basename; use the full file name. |
| 2520 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2521 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2522 | fi |
| 2523 | fi |
| 2524 | fi |
| 2525 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2526 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2527 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2528 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2529 | echo "${ECHO_T}$CC" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2530 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2531 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2532 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2533 | fi |
| 2534 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2536 | fi |
| 2537 | if test -z "$CC"; then |
| 2538 | if test -n "$ac_tool_prefix"; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2539 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2540 | do |
| 2541 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2542 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2543 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2545 | if test "${ac_cv_prog_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2547 | else |
| 2548 | if test -n "$CC"; then |
| 2549 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2552 | for as_dir in $PATH |
| 2553 | do |
| 2554 | IFS=$as_save_IFS |
| 2555 | test -z "$as_dir" && as_dir=. |
| 2556 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2557 | 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] | 2558 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2559 | 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] | 2560 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2561 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2562 | done |
| 2563 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2564 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2565 | |
| 2566 | fi |
| 2567 | fi |
| 2568 | CC=$ac_cv_prog_CC |
| 2569 | if test -n "$CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2570 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2571 | echo "${ECHO_T}$CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2572 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2573 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2574 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2575 | fi |
| 2576 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2577 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2578 | test -n "$CC" && break |
| 2579 | done |
| 2580 | fi |
| 2581 | if test -z "$CC"; then |
| 2582 | ac_ct_CC=$CC |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2583 | for ac_prog in cl.exe |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2584 | do |
| 2585 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2586 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2587 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2589 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2591 | else |
| 2592 | if test -n "$ac_ct_CC"; then |
| 2593 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2594 | else |
| 2595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2596 | for as_dir in $PATH |
| 2597 | do |
| 2598 | IFS=$as_save_IFS |
| 2599 | test -z "$as_dir" && as_dir=. |
| 2600 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2601 | 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] | 2602 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2603 | 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] | 2604 | break 2 |
| 2605 | fi |
| 2606 | done |
| 2607 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2608 | IFS=$as_save_IFS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2610 | fi |
| 2611 | fi |
| 2612 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2613 | if test -n "$ac_ct_CC"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2614 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2615 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2616 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2617 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2618 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2619 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2620 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2622 | test -n "$ac_ct_CC" && break |
| 2623 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2624 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2625 | if test "x$ac_ct_CC" = x; then |
| 2626 | CC="" |
| 2627 | else |
| 2628 | case $cross_compiling:$ac_tool_warned in |
| 2629 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2630 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2631 | whose name does not start with the host triplet. If you think this |
| 2632 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2633 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2634 | whose name does not start with the host triplet. If you think this |
| 2635 | 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] | 2636 | ac_tool_warned=yes ;; |
| 2637 | esac |
| 2638 | CC=$ac_ct_CC |
| 2639 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2640 | fi |
| 2641 | |
| 2642 | fi |
| 2643 | |
| 2644 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2645 | 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] | 2646 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2647 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2648 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2649 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2650 | |
| 2651 | # Provide some information about the compiler. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2652 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2653 | ac_compiler=`set X $ac_compile; echo $2` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2654 | { (ac_try="$ac_compiler --version >&5" |
| 2655 | case "(($ac_try" in |
| 2656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2657 | *) ac_try_echo=$ac_try;; |
| 2658 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2660 | (eval "$ac_compiler --version >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2661 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2663 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2664 | { (ac_try="$ac_compiler -v >&5" |
| 2665 | case "(($ac_try" in |
| 2666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2667 | *) ac_try_echo=$ac_try;; |
| 2668 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2670 | (eval "$ac_compiler -v >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2671 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2673 | (exit $ac_status); } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2674 | { (ac_try="$ac_compiler -V >&5" |
| 2675 | case "(($ac_try" in |
| 2676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2677 | *) ac_try_echo=$ac_try;; |
| 2678 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2680 | (eval "$ac_compiler -V >&5") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2681 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2683 | (exit $ac_status); } |
| 2684 | |
| 2685 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2686 | /* confdefs.h. */ |
| 2687 | _ACEOF |
| 2688 | cat confdefs.h >>conftest.$ac_ext |
| 2689 | cat >>conftest.$ac_ext <<_ACEOF |
| 2690 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2692 | int |
| 2693 | main () |
| 2694 | { |
| 2695 | |
| 2696 | ; |
| 2697 | return 0; |
| 2698 | } |
| 2699 | _ACEOF |
| 2700 | ac_clean_files_save=$ac_clean_files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2701 | 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] | 2702 | # Try to create an executable without -o first, disregard a.out. |
| 2703 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2704 | # of exeext. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2705 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2706 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2707 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2708 | # |
| 2709 | # List of possible output files, starting from the most likely. |
| 2710 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2711 | # only as a last resort. b.out is created by i960 compilers. |
| 2712 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2713 | # |
| 2714 | # The IRIX 6 linker writes into existing files which may not be |
| 2715 | # executable, retaining their permissions. Remove them first so a |
| 2716 | # subsequent execution test works. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2717 | ac_rmfiles= |
| 2718 | for ac_file in $ac_files |
| 2719 | do |
| 2720 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2721 | *.$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] | 2722 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2723 | esac |
| 2724 | done |
| 2725 | rm -f $ac_rmfiles |
| 2726 | |
| 2727 | if { (ac_try="$ac_link_default" |
| 2728 | case "(($ac_try" in |
| 2729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2730 | *) ac_try_echo=$ac_try;; |
| 2731 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2733 | (eval "$ac_link_default") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2734 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2736 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2737 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2738 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2739 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2740 | # so that the user can short-circuit this test for compilers unknown to |
| 2741 | # Autoconf. |
| 2742 | for ac_file in $ac_files '' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2743 | do |
| 2744 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2745 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2746 | *.$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] | 2747 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2748 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2749 | # We found the default executable, but exeext='' is most |
| 2750 | # certainly right. |
| 2751 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2752 | *.* ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2753 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2754 | then :; else |
| 2755 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2756 | fi |
| 2757 | # We set ac_cv_exeext here because the later test for it is not |
| 2758 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2759 | # argument, so we may need to know it at that point already. |
| 2760 | # Even if this section looks crufty: it has the advantage of |
| 2761 | # actually working. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2762 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2763 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2764 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2765 | esac |
| 2766 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2767 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2768 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2769 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2770 | ac_file='' |
| 2771 | fi |
| 2772 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2773 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2774 | echo "${ECHO_T}$ac_file" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2775 | if test -z "$ac_file"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2776 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2778 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2779 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2780 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2781 | echo "$as_me: error: C compiler cannot create executables |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2782 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2783 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2784 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2785 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2786 | ac_exeext=$ac_cv_exeext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2787 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2788 | # 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] | 2789 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2790 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2791 | 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] | 2792 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2793 | # If not cross compiling, check that we can run a simple program. |
| 2794 | if test "$cross_compiling" != yes; then |
| 2795 | if { ac_try='./$ac_file' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2796 | { (case "(($ac_try" in |
| 2797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2798 | *) ac_try_echo=$ac_try;; |
| 2799 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2801 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2802 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2804 | (exit $ac_status); }; }; then |
| 2805 | cross_compiling=no |
| 2806 | else |
| 2807 | if test "$cross_compiling" = maybe; then |
| 2808 | cross_compiling=yes |
| 2809 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2810 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2811 | If you meant to cross compile, use \`--host'. |
| 2812 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2813 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2814 | If you meant to cross compile, use \`--host'. |
| 2815 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2816 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2817 | fi |
| 2818 | fi |
| 2819 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2820 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2821 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2822 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2823 | 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] | 2824 | ac_clean_files=$ac_clean_files_save |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2825 | # 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] | 2826 | # the compiler is broken, or we cross compile. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2827 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2828 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2829 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2830 | echo "${ECHO_T}$cross_compiling" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2831 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2832 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2833 | 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] | 2834 | if { (ac_try="$ac_link" |
| 2835 | case "(($ac_try" in |
| 2836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2837 | *) ac_try_echo=$ac_try;; |
| 2838 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2840 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2841 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2843 | (exit $ac_status); }; then |
| 2844 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2845 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2846 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2847 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2848 | for ac_file in conftest.exe conftest conftest.*; do |
| 2849 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2850 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2851 | *.$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] | 2852 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2853 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2854 | * ) break;; |
| 2855 | esac |
| 2856 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2857 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2858 | { { 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] | 2859 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2860 | 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] | 2861 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2862 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2863 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2865 | rm -f conftest$ac_cv_exeext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2866 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2867 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2868 | |
| 2869 | rm -f conftest.$ac_ext |
| 2870 | EXEEXT=$ac_cv_exeext |
| 2871 | ac_exeext=$EXEEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2872 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2873 | 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] | 2874 | if test "${ac_cv_objext+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2876 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2877 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2878 | /* confdefs.h. */ |
| 2879 | _ACEOF |
| 2880 | cat confdefs.h >>conftest.$ac_ext |
| 2881 | cat >>conftest.$ac_ext <<_ACEOF |
| 2882 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2884 | int |
| 2885 | main () |
| 2886 | { |
| 2887 | |
| 2888 | ; |
| 2889 | return 0; |
| 2890 | } |
| 2891 | _ACEOF |
| 2892 | rm -f conftest.o conftest.obj |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2893 | if { (ac_try="$ac_compile" |
| 2894 | case "(($ac_try" in |
| 2895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2896 | *) ac_try_echo=$ac_try;; |
| 2897 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2899 | (eval "$ac_compile") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2900 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2902 | (exit $ac_status); }; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2903 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2904 | test -f "$ac_file" || continue; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2905 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2906 | *.$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] | 2907 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2908 | break;; |
| 2909 | esac |
| 2910 | done |
| 2911 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2912 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2914 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2915 | { { 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] | 2916 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2917 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2918 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2919 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2920 | fi |
| 2921 | |
| 2922 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2923 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2924 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2925 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2926 | OBJEXT=$ac_cv_objext |
| 2927 | ac_objext=$OBJEXT |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2928 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2929 | 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] | 2930 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2932 | else |
| 2933 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2934 | /* confdefs.h. */ |
| 2935 | _ACEOF |
| 2936 | cat confdefs.h >>conftest.$ac_ext |
| 2937 | cat >>conftest.$ac_ext <<_ACEOF |
| 2938 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2940 | int |
| 2941 | main () |
| 2942 | { |
| 2943 | #ifndef __GNUC__ |
| 2944 | choke me |
| 2945 | #endif |
| 2946 | |
| 2947 | ; |
| 2948 | return 0; |
| 2949 | } |
| 2950 | _ACEOF |
| 2951 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2952 | if { (ac_try="$ac_compile" |
| 2953 | case "(($ac_try" in |
| 2954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2955 | *) ac_try_echo=$ac_try;; |
| 2956 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2958 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2959 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2961 | rm -f conftest.er1 |
| 2962 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2964 | (exit $ac_status); } && { |
| 2965 | test -z "$ac_c_werror_flag" || |
| 2966 | test ! -s conftest.err |
| 2967 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2968 | ac_compiler_gnu=yes |
| 2969 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2970 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2972 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2973 | ac_compiler_gnu=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2974 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2975 | |
| 2976 | 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] | 2977 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2978 | |
| 2979 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2980 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2981 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2982 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2983 | ac_test_CFLAGS=${CFLAGS+set} |
| 2984 | ac_save_CFLAGS=$CFLAGS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2985 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2986 | 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] | 2987 | if test "${ac_cv_prog_cc_g+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 2988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2989 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 2990 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2991 | ac_c_werror_flag=yes |
| 2992 | ac_cv_prog_cc_g=no |
| 2993 | CFLAGS="-g" |
| 2994 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2995 | /* confdefs.h. */ |
| 2996 | _ACEOF |
| 2997 | cat confdefs.h >>conftest.$ac_ext |
| 2998 | cat >>conftest.$ac_ext <<_ACEOF |
| 2999 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3001 | int |
| 3002 | main () |
| 3003 | { |
| 3004 | |
| 3005 | ; |
| 3006 | return 0; |
| 3007 | } |
| 3008 | _ACEOF |
| 3009 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3010 | if { (ac_try="$ac_compile" |
| 3011 | case "(($ac_try" in |
| 3012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3013 | *) ac_try_echo=$ac_try;; |
| 3014 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3016 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3017 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3019 | rm -f conftest.er1 |
| 3020 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3022 | (exit $ac_status); } && { |
| 3023 | test -z "$ac_c_werror_flag" || |
| 3024 | test ! -s conftest.err |
| 3025 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3026 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3027 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3028 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3030 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3031 | CFLAGS="" |
| 3032 | cat >conftest.$ac_ext <<_ACEOF |
| 3033 | /* confdefs.h. */ |
| 3034 | _ACEOF |
| 3035 | cat confdefs.h >>conftest.$ac_ext |
| 3036 | cat >>conftest.$ac_ext <<_ACEOF |
| 3037 | /* end confdefs.h. */ |
| 3038 | |
| 3039 | int |
| 3040 | main () |
| 3041 | { |
| 3042 | |
| 3043 | ; |
| 3044 | return 0; |
| 3045 | } |
| 3046 | _ACEOF |
| 3047 | rm -f conftest.$ac_objext |
| 3048 | if { (ac_try="$ac_compile" |
| 3049 | case "(($ac_try" in |
| 3050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3051 | *) ac_try_echo=$ac_try;; |
| 3052 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3054 | (eval "$ac_compile") 2>conftest.er1 |
| 3055 | ac_status=$? |
| 3056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3057 | rm -f conftest.er1 |
| 3058 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3060 | (exit $ac_status); } && { |
| 3061 | test -z "$ac_c_werror_flag" || |
| 3062 | test ! -s conftest.err |
| 3063 | } && test -s conftest.$ac_objext; then |
| 3064 | : |
| 3065 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3066 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3068 | |
| 3069 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3070 | CFLAGS="-g" |
| 3071 | cat >conftest.$ac_ext <<_ACEOF |
| 3072 | /* confdefs.h. */ |
| 3073 | _ACEOF |
| 3074 | cat confdefs.h >>conftest.$ac_ext |
| 3075 | cat >>conftest.$ac_ext <<_ACEOF |
| 3076 | /* end confdefs.h. */ |
| 3077 | |
| 3078 | int |
| 3079 | main () |
| 3080 | { |
| 3081 | |
| 3082 | ; |
| 3083 | return 0; |
| 3084 | } |
| 3085 | _ACEOF |
| 3086 | rm -f conftest.$ac_objext |
| 3087 | if { (ac_try="$ac_compile" |
| 3088 | case "(($ac_try" in |
| 3089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3090 | *) ac_try_echo=$ac_try;; |
| 3091 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3093 | (eval "$ac_compile") 2>conftest.er1 |
| 3094 | ac_status=$? |
| 3095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3096 | rm -f conftest.er1 |
| 3097 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3099 | (exit $ac_status); } && { |
| 3100 | test -z "$ac_c_werror_flag" || |
| 3101 | test ! -s conftest.err |
| 3102 | } && test -s conftest.$ac_objext; then |
| 3103 | ac_cv_prog_cc_g=yes |
| 3104 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3105 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3107 | |
| 3108 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3109 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3110 | |
| 3111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3112 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3113 | |
| 3114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3115 | fi |
| 3116 | |
| 3117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3118 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3119 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3120 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3121 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3122 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3123 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3124 | elif test $ac_cv_prog_cc_g = yes; then |
| 3125 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3126 | CFLAGS="-g -O2" |
| 3127 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3128 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3129 | fi |
| 3130 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3131 | if test "$GCC" = yes; then |
| 3132 | CFLAGS="-O2" |
| 3133 | else |
| 3134 | CFLAGS= |
| 3135 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3136 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3137 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3138 | 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] | 3139 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3141 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3142 | ac_cv_prog_cc_c89=no |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3143 | ac_save_CC=$CC |
| 3144 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3145 | /* confdefs.h. */ |
| 3146 | _ACEOF |
| 3147 | cat confdefs.h >>conftest.$ac_ext |
| 3148 | cat >>conftest.$ac_ext <<_ACEOF |
| 3149 | /* end confdefs.h. */ |
| 3150 | #include <stdarg.h> |
| 3151 | #include <stdio.h> |
| 3152 | #include <sys/types.h> |
| 3153 | #include <sys/stat.h> |
| 3154 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3155 | struct buf { int x; }; |
| 3156 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3157 | static char *e (p, i) |
| 3158 | char **p; |
| 3159 | int i; |
| 3160 | { |
| 3161 | return p[i]; |
| 3162 | } |
| 3163 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3164 | { |
| 3165 | char *s; |
| 3166 | va_list v; |
| 3167 | va_start (v,p); |
| 3168 | s = g (p, va_arg (v,int)); |
| 3169 | va_end (v); |
| 3170 | return s; |
| 3171 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3172 | |
| 3173 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3174 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3175 | 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] | 3176 | 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] | 3177 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3178 | 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] | 3179 | that's true only with -std. */ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3180 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3181 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3182 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3183 | inside strings and character constants. */ |
| 3184 | #define FOO(x) 'x' |
| 3185 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3186 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3187 | int test (int i, double x); |
| 3188 | struct s1 {int (*f) (int a);}; |
| 3189 | struct s2 {int (*f) (double a);}; |
| 3190 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3191 | int argc; |
| 3192 | char **argv; |
| 3193 | int |
| 3194 | main () |
| 3195 | { |
| 3196 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3197 | ; |
| 3198 | return 0; |
| 3199 | } |
| 3200 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3201 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3202 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3203 | do |
| 3204 | CC="$ac_save_CC $ac_arg" |
| 3205 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3206 | if { (ac_try="$ac_compile" |
| 3207 | case "(($ac_try" in |
| 3208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3209 | *) ac_try_echo=$ac_try;; |
| 3210 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3212 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3213 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3215 | rm -f conftest.er1 |
| 3216 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3218 | (exit $ac_status); } && { |
| 3219 | test -z "$ac_c_werror_flag" || |
| 3220 | test ! -s conftest.err |
| 3221 | } && test -s conftest.$ac_objext; then |
| 3222 | ac_cv_prog_cc_c89=$ac_arg |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3223 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3224 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3226 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3227 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3228 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3229 | |
| 3230 | rm -f core conftest.err conftest.$ac_objext |
| 3231 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3232 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3233 | rm -f conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3234 | CC=$ac_save_CC |
| 3235 | |
| 3236 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3237 | # AC_CACHE_VAL |
| 3238 | case "x$ac_cv_prog_cc_c89" in |
| 3239 | x) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3240 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3241 | echo "${ECHO_T}none needed" >&6; } ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3242 | xno) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3243 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3244 | echo "${ECHO_T}unsupported" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3245 | *) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3246 | CC="$CC $ac_cv_prog_cc_c89" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3247 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3248 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3249 | esac |
| 3250 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3252 | ac_ext=c |
| 3253 | ac_cpp='$CPP $CPPFLAGS' |
| 3254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3257 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3258 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3259 | |
| 3260 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3261 | { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5 |
| 3262 | 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] | 3263 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3264 | # Check whether --with-cxx_main was given. |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3265 | if test "${with_cxx_main+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3266 | withval=$with_cxx_main; |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3267 | |
| 3268 | case $withval in |
| 3269 | no) with_cxx_main=no |
| 3270 | MAINCC='$(CC)';; |
| 3271 | yes) with_cxx_main=yes |
| 3272 | MAINCC='$(CXX)';; |
| 3273 | *) with_cxx_main=yes |
| 3274 | MAINCC=$withval |
| 3275 | if test -z "$CXX" |
| 3276 | then |
| 3277 | CXX=$withval |
| 3278 | fi;; |
| 3279 | esac |
| 3280 | else |
| 3281 | |
| 3282 | with_cxx_main=no |
| 3283 | MAINCC='$(CC)' |
| 3284 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3285 | fi |
| 3286 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3287 | { echo "$as_me:$LINENO: result: $with_cxx_main" >&5 |
| 3288 | echo "${ECHO_T}$with_cxx_main" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3289 | |
| 3290 | preset_cxx="$CXX" |
| 3291 | if test -z "$CXX" |
| 3292 | then |
| 3293 | case "$CC" in |
| 3294 | gcc) # Extract the first word of "g++", so it can be a program name with args. |
| 3295 | set dummy g++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3296 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3298 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3300 | else |
| 3301 | case $CXX in |
| 3302 | [\\/]* | ?:[\\/]*) |
| 3303 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3304 | ;; |
| 3305 | *) |
| 3306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3307 | for as_dir in notfound |
| 3308 | do |
| 3309 | IFS=$as_save_IFS |
| 3310 | test -z "$as_dir" && as_dir=. |
| 3311 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3312 | 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] | 3313 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3314 | 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] | 3315 | break 2 |
| 3316 | fi |
| 3317 | done |
| 3318 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3319 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3320 | |
| 3321 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++" |
| 3322 | ;; |
| 3323 | esac |
| 3324 | fi |
| 3325 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3326 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3327 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3328 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3329 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3330 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3331 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3332 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3333 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3334 | ;; |
| 3335 | cc) # Extract the first word of "c++", so it can be a program name with args. |
| 3336 | set dummy c++; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3337 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3338 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3339 | if test "${ac_cv_path_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3341 | else |
| 3342 | case $CXX in |
| 3343 | [\\/]* | ?:[\\/]*) |
| 3344 | ac_cv_path_CXX="$CXX" # Let the user override the test with a path. |
| 3345 | ;; |
| 3346 | *) |
| 3347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3348 | for as_dir in notfound |
| 3349 | do |
| 3350 | IFS=$as_save_IFS |
| 3351 | test -z "$as_dir" && as_dir=. |
| 3352 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3353 | 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] | 3354 | ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3355 | 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] | 3356 | break 2 |
| 3357 | fi |
| 3358 | done |
| 3359 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3360 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3361 | |
| 3362 | test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++" |
| 3363 | ;; |
| 3364 | esac |
| 3365 | fi |
| 3366 | CXX=$ac_cv_path_CXX |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3367 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3368 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3369 | echo "${ECHO_T}$CXX" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3370 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3371 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3372 | echo "${ECHO_T}no" >&6; } |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 3373 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3374 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3375 | ;; |
| 3376 | esac |
| 3377 | if test "$CXX" = "notfound" |
| 3378 | then |
| 3379 | CXX="" |
| 3380 | fi |
| 3381 | fi |
| 3382 | if test -z "$CXX" |
| 3383 | then |
| 3384 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 3385 | do |
| 3386 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3387 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3388 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3389 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3390 | if test "${ac_cv_prog_CXX+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3392 | else |
| 3393 | if test -n "$CXX"; then |
| 3394 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3395 | else |
| 3396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3397 | for as_dir in $PATH |
| 3398 | do |
| 3399 | IFS=$as_save_IFS |
| 3400 | test -z "$as_dir" && as_dir=. |
| 3401 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3402 | 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] | 3403 | ac_cv_prog_CXX="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3404 | 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] | 3405 | break 2 |
| 3406 | fi |
| 3407 | done |
| 3408 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3409 | IFS=$as_save_IFS |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3410 | |
| 3411 | fi |
| 3412 | fi |
| 3413 | CXX=$ac_cv_prog_CXX |
| 3414 | if test -n "$CXX"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3415 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3416 | echo "${ECHO_T}$CXX" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3417 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3418 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3419 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3420 | fi |
| 3421 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3422 | |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3423 | test -n "$CXX" && break |
| 3424 | done |
| 3425 | test -n "$CXX" || CXX="notfound" |
| 3426 | |
| 3427 | if test "$CXX" = "notfound" |
| 3428 | then |
| 3429 | CXX="" |
| 3430 | fi |
| 3431 | fi |
| 3432 | if test "$preset_cxx" != "$CXX" |
| 3433 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3434 | { echo "$as_me:$LINENO: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3435 | |
| 3436 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3437 | If this is not intended, then set CXX on the configure command line. |
| 3438 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3439 | echo "$as_me: WARNING: |
Martin v. Löwis | 0f48d98 | 2006-04-14 14:34:26 +0000 | [diff] [blame] | 3440 | |
| 3441 | By default, distutils will build C++ extension modules with \"$CXX\". |
| 3442 | If this is not intended, then set CXX on the configure command line. |
| 3443 | " >&2;} |
| 3444 | fi |
| 3445 | |
| 3446 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3447 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3448 | |
| 3449 | ac_ext=c |
| 3450 | ac_cpp='$CPP $CPPFLAGS' |
| 3451 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3452 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3453 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3454 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3455 | 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] | 3456 | # On Suns, sometimes $CPP names a directory. |
| 3457 | if test -n "$CPP" && test -d "$CPP"; then |
| 3458 | CPP= |
| 3459 | fi |
| 3460 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3461 | if test "${ac_cv_prog_CPP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3463 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3464 | # Double quotes because CPP needs to be expanded |
| 3465 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3466 | do |
| 3467 | ac_preproc_ok=false |
| 3468 | for ac_c_preproc_warn_flag in '' yes |
| 3469 | do |
| 3470 | # Use a header file that comes with gcc, so configuring glibc |
| 3471 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3472 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3473 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3474 | # 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] | 3475 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3476 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3477 | /* confdefs.h. */ |
| 3478 | _ACEOF |
| 3479 | cat confdefs.h >>conftest.$ac_ext |
| 3480 | cat >>conftest.$ac_ext <<_ACEOF |
| 3481 | /* end confdefs.h. */ |
| 3482 | #ifdef __STDC__ |
| 3483 | # include <limits.h> |
| 3484 | #else |
| 3485 | # include <assert.h> |
| 3486 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3487 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3488 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3489 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3490 | case "(($ac_try" in |
| 3491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3492 | *) ac_try_echo=$ac_try;; |
| 3493 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3495 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3496 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3497 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3498 | rm -f conftest.er1 |
| 3499 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3501 | (exit $ac_status); } >/dev/null && { |
| 3502 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3503 | test ! -s conftest.err |
| 3504 | }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3505 | : |
| 3506 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3507 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3510 | # Broken: fails on valid input. |
| 3511 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3512 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3514 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3515 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3516 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3517 | # can be detected and how. |
| 3518 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3519 | /* confdefs.h. */ |
| 3520 | _ACEOF |
| 3521 | cat confdefs.h >>conftest.$ac_ext |
| 3522 | cat >>conftest.$ac_ext <<_ACEOF |
| 3523 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3524 | #include <ac_nonexistent.h> |
| 3525 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3526 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3527 | case "(($ac_try" in |
| 3528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3529 | *) ac_try_echo=$ac_try;; |
| 3530 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3532 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3533 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3534 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3535 | rm -f conftest.er1 |
| 3536 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3538 | (exit $ac_status); } >/dev/null && { |
| 3539 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3540 | test ! -s conftest.err |
| 3541 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3542 | # Broken: success on invalid input. |
| 3543 | continue |
| 3544 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3545 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3548 | # Passes both tests. |
| 3549 | ac_preproc_ok=: |
| 3550 | break |
| 3551 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3553 | rm -f conftest.err conftest.$ac_ext |
| 3554 | |
| 3555 | done |
| 3556 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3557 | rm -f conftest.err conftest.$ac_ext |
| 3558 | if $ac_preproc_ok; then |
| 3559 | break |
| 3560 | fi |
| 3561 | |
| 3562 | done |
| 3563 | ac_cv_prog_CPP=$CPP |
| 3564 | |
| 3565 | fi |
| 3566 | CPP=$ac_cv_prog_CPP |
| 3567 | else |
| 3568 | ac_cv_prog_CPP=$CPP |
| 3569 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3570 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3571 | echo "${ECHO_T}$CPP" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3572 | ac_preproc_ok=false |
| 3573 | for ac_c_preproc_warn_flag in '' yes |
| 3574 | do |
| 3575 | # Use a header file that comes with gcc, so configuring glibc |
| 3576 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3577 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3578 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3579 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3580 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3581 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3582 | /* confdefs.h. */ |
| 3583 | _ACEOF |
| 3584 | cat confdefs.h >>conftest.$ac_ext |
| 3585 | cat >>conftest.$ac_ext <<_ACEOF |
| 3586 | /* end confdefs.h. */ |
| 3587 | #ifdef __STDC__ |
| 3588 | # include <limits.h> |
| 3589 | #else |
| 3590 | # include <assert.h> |
| 3591 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3592 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3593 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3594 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3595 | case "(($ac_try" in |
| 3596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3597 | *) ac_try_echo=$ac_try;; |
| 3598 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3600 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3601 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3602 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3603 | rm -f conftest.er1 |
| 3604 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3606 | (exit $ac_status); } >/dev/null && { |
| 3607 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3608 | test ! -s conftest.err |
| 3609 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3610 | : |
| 3611 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3612 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3614 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3615 | # Broken: fails on valid input. |
| 3616 | continue |
| 3617 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3618 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3619 | rm -f conftest.err conftest.$ac_ext |
| 3620 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3621 | # OK, works on sane cases. Now check whether nonexistent headers |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3622 | # can be detected and how. |
| 3623 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3624 | /* confdefs.h. */ |
| 3625 | _ACEOF |
| 3626 | cat confdefs.h >>conftest.$ac_ext |
| 3627 | cat >>conftest.$ac_ext <<_ACEOF |
| 3628 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3629 | #include <ac_nonexistent.h> |
| 3630 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3631 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3632 | case "(($ac_try" in |
| 3633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3634 | *) ac_try_echo=$ac_try;; |
| 3635 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3637 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3638 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3639 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3640 | rm -f conftest.er1 |
| 3641 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3643 | (exit $ac_status); } >/dev/null && { |
| 3644 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3645 | test ! -s conftest.err |
| 3646 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3647 | # Broken: success on invalid input. |
| 3648 | continue |
| 3649 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3650 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | # Passes both tests. |
| 3654 | ac_preproc_ok=: |
| 3655 | break |
| 3656 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3658 | rm -f conftest.err conftest.$ac_ext |
| 3659 | |
| 3660 | done |
| 3661 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3662 | rm -f conftest.err conftest.$ac_ext |
| 3663 | if $ac_preproc_ok; then |
| 3664 | : |
| 3665 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3666 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3667 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3668 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3669 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3670 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3671 | fi |
| 3672 | |
| 3673 | ac_ext=c |
| 3674 | ac_cpp='$CPP $CPPFLAGS' |
| 3675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3678 | |
| 3679 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3680 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3681 | 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] | 3682 | if test "${ac_cv_path_GREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3684 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3685 | # Extract the first word of "grep ggrep" to use in msg output |
| 3686 | if test -z "$GREP"; then |
| 3687 | set dummy grep ggrep; ac_prog_name=$2 |
| 3688 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3690 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3691 | ac_path_GREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3692 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3694 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3695 | do |
| 3696 | IFS=$as_save_IFS |
| 3697 | test -z "$as_dir" && as_dir=. |
| 3698 | for ac_prog in grep ggrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3699 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3700 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3701 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3702 | # 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] | 3703 | # Check for GNU $ac_path_GREP |
| 3704 | case `"$ac_path_GREP" --version 2>&1` in |
| 3705 | *GNU*) |
| 3706 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3707 | *) |
| 3708 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3709 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3710 | while : |
| 3711 | do |
| 3712 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3713 | mv "conftest.tmp" "conftest.in" |
| 3714 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3715 | echo 'GREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3716 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3717 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3718 | ac_count=`expr $ac_count + 1` |
| 3719 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3720 | # Best one so far, save it but keep looking for a better one |
| 3721 | ac_cv_path_GREP="$ac_path_GREP" |
| 3722 | ac_path_GREP_max=$ac_count |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3723 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3724 | # 10*(2^10) chars as input seems more than enough |
| 3725 | test $ac_count -gt 10 && break |
| 3726 | done |
| 3727 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3728 | esac |
| 3729 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3730 | |
| 3731 | $ac_path_GREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3732 | done |
| 3733 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3734 | |
| 3735 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3736 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3737 | |
| 3738 | |
| 3739 | fi |
| 3740 | |
| 3741 | GREP="$ac_cv_path_GREP" |
| 3742 | if test -z "$GREP"; then |
| 3743 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3744 | 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] | 3745 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3746 | fi |
| 3747 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3748 | else |
| 3749 | ac_cv_path_GREP=$GREP |
| 3750 | fi |
| 3751 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3752 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3753 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3754 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3755 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3756 | GREP="$ac_cv_path_GREP" |
| 3757 | |
| 3758 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3759 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3760 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3761 | if test "${ac_cv_path_EGREP+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3763 | else |
| 3764 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3765 | then ac_cv_path_EGREP="$GREP -E" |
| 3766 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3767 | # Extract the first word of "egrep" to use in msg output |
| 3768 | if test -z "$EGREP"; then |
| 3769 | set dummy egrep; ac_prog_name=$2 |
| 3770 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3772 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3773 | ac_path_EGREP_found=false |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3774 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3776 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3777 | do |
| 3778 | IFS=$as_save_IFS |
| 3779 | test -z "$as_dir" && as_dir=. |
| 3780 | for ac_prog in egrep; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3781 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3782 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3783 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3784 | # 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] | 3785 | # Check for GNU $ac_path_EGREP |
| 3786 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3787 | *GNU*) |
| 3788 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3789 | *) |
| 3790 | ac_count=0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3791 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3792 | while : |
| 3793 | do |
| 3794 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3795 | mv "conftest.tmp" "conftest.in" |
| 3796 | cp "conftest.in" "conftest.nl" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3797 | echo 'EGREP' >> "conftest.nl" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3798 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3799 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3800 | ac_count=`expr $ac_count + 1` |
| 3801 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3802 | # Best one so far, save it but keep looking for a better one |
| 3803 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3804 | ac_path_EGREP_max=$ac_count |
| 3805 | fi |
| 3806 | # 10*(2^10) chars as input seems more than enough |
| 3807 | test $ac_count -gt 10 && break |
| 3808 | done |
| 3809 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3810 | esac |
| 3811 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3812 | |
| 3813 | $ac_path_EGREP_found && break 3 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3814 | done |
| 3815 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3816 | |
| 3817 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3818 | IFS=$as_save_IFS |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3819 | |
| 3820 | |
| 3821 | fi |
| 3822 | |
| 3823 | EGREP="$ac_cv_path_EGREP" |
| 3824 | if test -z "$EGREP"; then |
| 3825 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3826 | 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] | 3827 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3828 | fi |
| 3829 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3830 | else |
| 3831 | ac_cv_path_EGREP=$EGREP |
| 3832 | fi |
| 3833 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3834 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3835 | fi |
| 3836 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3837 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3838 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 3839 | EGREP="$ac_cv_path_EGREP" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3840 | |
| 3841 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3842 | |
| 3843 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3844 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
| 3845 | cat >conftest.$ac_ext <<_ACEOF |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3846 | /* confdefs.h. */ |
| 3847 | _ACEOF |
| 3848 | cat confdefs.h >>conftest.$ac_ext |
| 3849 | cat >>conftest.$ac_ext <<_ACEOF |
| 3850 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3851 | #ifdef _AIX |
| 3852 | yes |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3853 | #endif |
| 3854 | |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3855 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3856 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3857 | $EGREP "yes" >/dev/null 2>&1; then |
| 3858 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3859 | echo "${ECHO_T}yes" >&6; } |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 3860 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3861 | #define _ALL_SOURCE 1 |
| 3862 | _ACEOF |
| 3863 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3864 | else |
| 3865 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3866 | echo "${ECHO_T}no" >&6; } |
| 3867 | fi |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 3868 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3869 | |
| 3870 | |
| 3871 | |
| 3872 | # Check for unsupported systems |
| 3873 | case $ac_sys_system/$ac_sys_release in |
| 3874 | atheos*|Linux*/1*) |
| 3875 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3876 | echo See README for details. |
| 3877 | exit 1;; |
| 3878 | esac |
| 3879 | |
| 3880 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3881 | { echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3882 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3883 | |
| 3884 | # Check whether --with-suffix was given. |
| 3885 | if test "${with_suffix+set}" = set; then |
| 3886 | withval=$with_suffix; |
| 3887 | case $withval in |
| 3888 | no) EXEEXT=;; |
| 3889 | yes) EXEEXT=.exe;; |
| 3890 | *) EXEEXT=$withval;; |
| 3891 | esac |
| 3892 | fi |
| 3893 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3894 | { echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3895 | echo "${ECHO_T}$EXEEXT" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3896 | |
| 3897 | # Test whether we're running on a non-case-sensitive system, in which |
| 3898 | # case we give a warning if no ext is given |
| 3899 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3900 | { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3901 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3902 | if test ! -d CaseSensitiveTestDir; then |
| 3903 | mkdir CaseSensitiveTestDir |
| 3904 | fi |
| 3905 | |
| 3906 | if test -d casesensitivetestdir |
| 3907 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3908 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3909 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3910 | BUILDEXEEXT=.exe |
| 3911 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3912 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3913 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3914 | BUILDEXEEXT=$EXEEXT |
| 3915 | fi |
| 3916 | rmdir CaseSensitiveTestDir |
| 3917 | |
| 3918 | case $MACHDEP in |
| 3919 | bsdos*) |
| 3920 | case $CC in |
| 3921 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3922 | esac;; |
| 3923 | esac |
| 3924 | |
| 3925 | case $ac_sys_system in |
| 3926 | hp*|HP*) |
| 3927 | case $CC in |
| 3928 | cc|*/cc) CC="$CC -Ae";; |
| 3929 | esac;; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3930 | SunOS*) |
| 3931 | # Some functions have a prototype only with that define, e.g. confstr |
| 3932 | |
| 3933 | cat >>confdefs.h <<\_ACEOF |
| 3934 | #define __EXTENSIONS__ 1 |
| 3935 | _ACEOF |
| 3936 | |
| 3937 | ;; |
| 3938 | esac |
| 3939 | |
| 3940 | |
| 3941 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3942 | { echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3943 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3944 | if test -z "$LIBRARY" |
| 3945 | then |
| 3946 | LIBRARY='libpython$(VERSION).a' |
| 3947 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3948 | { echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3949 | echo "${ECHO_T}$LIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3950 | |
| 3951 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 3952 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3953 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3954 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3955 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3956 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3957 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3958 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 3959 | # |
| 3960 | # RUNSHARED is used to run shared python without installed libraries |
| 3961 | # |
| 3962 | # INSTSONAME is the name of the shared library that will be use to install |
| 3963 | # on the system - some systems like version suffix, others don't |
| 3964 | |
| 3965 | |
| 3966 | |
| 3967 | |
| 3968 | |
| 3969 | |
| 3970 | LDLIBRARY="$LIBRARY" |
| 3971 | BLDLIBRARY='$(LDLIBRARY)' |
| 3972 | INSTSONAME='$(LDLIBRARY)' |
| 3973 | DLLLIBRARY='' |
| 3974 | LDLIBRARYDIR='' |
| 3975 | RUNSHARED='' |
| 3976 | |
| 3977 | # LINKCC is the command that links the python executable -- default is $(CC). |
| 3978 | # If CXX is set, and if it is needed to link a main function that was |
| 3979 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3980 | # python might then depend on the C++ runtime |
| 3981 | # This is altered for AIX in order to build the export list before |
| 3982 | # linking. |
| 3983 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 3984 | { echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3985 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3986 | if test -z "$LINKCC" |
| 3987 | then |
| 3988 | LINKCC='$(PURIFY) $(MAINCC)' |
| 3989 | case $ac_sys_system in |
| 3990 | AIX*) |
| 3991 | exp_extra="\"\"" |
| 3992 | if test $ac_sys_release -ge 5 -o \ |
| 3993 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3994 | exp_extra="." |
| 3995 | fi |
| 3996 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 3997 | QNX*) |
| 3998 | # qcc must be used because the other compilers do not |
| 3999 | # support -N. |
| 4000 | LINKCC=qcc;; |
| 4001 | esac |
| 4002 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4003 | { echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 4004 | echo "${ECHO_T}$LINKCC" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4005 | |
| 4006 | # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
| 4007 | # make sure we default having it set to "no": this is used by |
| 4008 | # distutils.unixccompiler to know if it should add --enable-new-dtags |
| 4009 | # to linker command lines, and failing to detect GNU ld simply results |
| 4010 | # in the same bahaviour as before. |
| 4011 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4012 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4013 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4014 | ac_prog=ld |
| 4015 | if test "$GCC" = yes; then |
| 4016 | ac_prog=`$CC -print-prog-name=ld` |
| 4017 | fi |
| 4018 | case `"$ac_prog" -V 2>&1 < /dev/null` in |
| 4019 | *GNU*) |
| 4020 | GNULD=yes;; |
| 4021 | *) |
| 4022 | GNULD=no;; |
| 4023 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4024 | { echo "$as_me:$LINENO: result: $GNULD" >&5 |
| 4025 | echo "${ECHO_T}$GNULD" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4026 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4027 | { echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 4028 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4029 | # Check whether --enable-shared was given. |
| 4030 | if test "${enable_shared+set}" = set; then |
| 4031 | enableval=$enable_shared; |
| 4032 | fi |
| 4033 | |
| 4034 | |
| 4035 | if test -z "$enable_shared" |
| 4036 | then |
| 4037 | case $ac_sys_system in |
| 4038 | CYGWIN* | atheos*) |
| 4039 | enable_shared="yes";; |
| 4040 | *) |
| 4041 | enable_shared="no";; |
| 4042 | esac |
| 4043 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4044 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 4045 | echo "${ECHO_T}$enable_shared" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4046 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4047 | { echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 4048 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4049 | # Check whether --enable-profiling was given. |
| 4050 | if test "${enable_profiling+set}" = set; then |
| 4051 | enableval=$enable_profiling; ac_save_cc="$CC" |
| 4052 | CC="$CC -pg" |
| 4053 | if test "$cross_compiling" = yes; then |
| 4054 | ac_enable_profiling="no" |
| 4055 | else |
| 4056 | cat >conftest.$ac_ext <<_ACEOF |
| 4057 | /* confdefs.h. */ |
| 4058 | _ACEOF |
| 4059 | cat confdefs.h >>conftest.$ac_ext |
| 4060 | cat >>conftest.$ac_ext <<_ACEOF |
| 4061 | /* end confdefs.h. */ |
| 4062 | int main() { return 0; } |
| 4063 | _ACEOF |
| 4064 | rm -f conftest$ac_exeext |
| 4065 | if { (ac_try="$ac_link" |
| 4066 | case "(($ac_try" in |
| 4067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4068 | *) ac_try_echo=$ac_try;; |
| 4069 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4071 | (eval "$ac_link") 2>&5 |
| 4072 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4074 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4075 | { (case "(($ac_try" in |
| 4076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4077 | *) ac_try_echo=$ac_try;; |
| 4078 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4080 | (eval "$ac_try") 2>&5 |
| 4081 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4083 | (exit $ac_status); }; }; then |
| 4084 | ac_enable_profiling="yes" |
| 4085 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4086 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4087 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4089 | |
| 4090 | ( exit $ac_status ) |
| 4091 | ac_enable_profiling="no" |
| 4092 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4093 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4094 | fi |
| 4095 | |
| 4096 | |
| 4097 | CC="$ac_save_cc" |
| 4098 | fi |
| 4099 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4100 | { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 4101 | echo "${ECHO_T}$ac_enable_profiling" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4102 | |
| 4103 | case "$ac_enable_profiling" in |
| 4104 | "yes") |
| 4105 | BASECFLAGS="-pg $BASECFLAGS" |
| 4106 | LDFLAGS="-pg $LDFLAGS" |
| 4107 | ;; |
| 4108 | esac |
| 4109 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4110 | { echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 4111 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4112 | |
| 4113 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 4114 | # library that we build, but we do not want to link against it (we |
| 4115 | # will find it with a -framework option). For this reason there is an |
| 4116 | # extra variable BLDLIBRARY against which Python and the extension |
| 4117 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 4118 | # LDLIBRARY, but empty for MacOSX framework builds. |
| 4119 | if test "$enable_framework" |
| 4120 | then |
| 4121 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 4122 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
| 4123 | BLDLIBRARY='' |
| 4124 | else |
| 4125 | BLDLIBRARY='$(LDLIBRARY)' |
| 4126 | fi |
| 4127 | |
| 4128 | # Other platforms follow |
| 4129 | if test $enable_shared = "yes"; then |
| 4130 | |
| 4131 | cat >>confdefs.h <<\_ACEOF |
| 4132 | #define Py_ENABLE_SHARED 1 |
| 4133 | _ACEOF |
| 4134 | |
| 4135 | case $ac_sys_system in |
| 4136 | BeOS*) |
| 4137 | LDLIBRARY='libpython$(VERSION).so' |
| 4138 | ;; |
| 4139 | CYGWIN*) |
| 4140 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4141 | DLLLIBRARY='libpython$(VERSION).dll' |
| 4142 | ;; |
| 4143 | SunOS*) |
| 4144 | LDLIBRARY='libpython$(VERSION).so' |
| 4145 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4146 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4147 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4148 | ;; |
| 4149 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
| 4150 | LDLIBRARY='libpython$(VERSION).so' |
| 4151 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4152 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4153 | case $ac_sys_system in |
| 4154 | FreeBSD*) |
| 4155 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 4156 | ;; |
| 4157 | esac |
| 4158 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 4159 | ;; |
| 4160 | hp*|HP*) |
| 4161 | case `uname -m` in |
| 4162 | ia64) |
| 4163 | LDLIBRARY='libpython$(VERSION).so' |
| 4164 | ;; |
| 4165 | *) |
| 4166 | LDLIBRARY='libpython$(VERSION).sl' |
| 4167 | ;; |
| 4168 | esac |
| 4169 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 4170 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
| 4171 | ;; |
| 4172 | OSF*) |
| 4173 | LDLIBRARY='libpython$(VERSION).so' |
| 4174 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 4175 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
| 4176 | ;; |
| 4177 | atheos*) |
| 4178 | LDLIBRARY='libpython$(VERSION).so' |
| 4179 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4180 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 4181 | ;; |
| 4182 | Darwin*) |
| 4183 | LDLIBRARY='libpython$(VERSION).dylib' |
| 4184 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 4185 | RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
| 4186 | ;; |
| 4187 | |
| 4188 | esac |
| 4189 | else # shared is disabled |
| 4190 | case $ac_sys_system in |
| 4191 | CYGWIN*) |
| 4192 | BLDLIBRARY='$(LIBRARY)' |
| 4193 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 4194 | ;; |
| 4195 | esac |
| 4196 | fi |
| 4197 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4198 | { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 4199 | echo "${ECHO_T}$LDLIBRARY" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4200 | |
| 4201 | if test -n "$ac_tool_prefix"; then |
| 4202 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4203 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4204 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4206 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4208 | else |
| 4209 | if test -n "$RANLIB"; then |
| 4210 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4211 | else |
| 4212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4213 | for as_dir in $PATH |
| 4214 | do |
| 4215 | IFS=$as_save_IFS |
| 4216 | test -z "$as_dir" && as_dir=. |
| 4217 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4219 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4220 | 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] | 4221 | break 2 |
| 4222 | fi |
| 4223 | done |
| 4224 | done |
| 4225 | IFS=$as_save_IFS |
| 4226 | |
| 4227 | fi |
| 4228 | fi |
| 4229 | RANLIB=$ac_cv_prog_RANLIB |
| 4230 | if test -n "$RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4231 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4232 | echo "${ECHO_T}$RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4233 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4234 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4235 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4236 | fi |
| 4237 | |
| 4238 | |
| 4239 | fi |
| 4240 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4241 | ac_ct_RANLIB=$RANLIB |
| 4242 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4243 | set dummy ranlib; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4244 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4245 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4246 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4248 | else |
| 4249 | if test -n "$ac_ct_RANLIB"; then |
| 4250 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4251 | else |
| 4252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4253 | for as_dir in $PATH |
| 4254 | do |
| 4255 | IFS=$as_save_IFS |
| 4256 | test -z "$as_dir" && as_dir=. |
| 4257 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4258 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4259 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4260 | 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] | 4261 | break 2 |
| 4262 | fi |
| 4263 | done |
| 4264 | done |
| 4265 | IFS=$as_save_IFS |
| 4266 | |
| 4267 | fi |
| 4268 | fi |
| 4269 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4270 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4271 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4272 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4273 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4274 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4275 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4276 | fi |
| 4277 | |
| 4278 | if test "x$ac_ct_RANLIB" = x; then |
| 4279 | RANLIB=":" |
| 4280 | else |
| 4281 | case $cross_compiling:$ac_tool_warned in |
| 4282 | yes:) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4283 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4284 | whose name does not start with the host triplet. If you think this |
| 4285 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4286 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4287 | whose name does not start with the host triplet. If you think this |
| 4288 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4289 | ac_tool_warned=yes ;; |
| 4290 | esac |
| 4291 | RANLIB=$ac_ct_RANLIB |
| 4292 | fi |
| 4293 | else |
| 4294 | RANLIB="$ac_cv_prog_RANLIB" |
| 4295 | fi |
| 4296 | |
| 4297 | |
| 4298 | for ac_prog in ar aal |
| 4299 | do |
| 4300 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4301 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4302 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4304 | if test "${ac_cv_prog_AR+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4306 | else |
| 4307 | if test -n "$AR"; then |
| 4308 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4309 | else |
| 4310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4311 | for as_dir in $PATH |
| 4312 | do |
| 4313 | IFS=$as_save_IFS |
| 4314 | test -z "$as_dir" && as_dir=. |
| 4315 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4317 | ac_cv_prog_AR="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4318 | 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] | 4319 | break 2 |
| 4320 | fi |
| 4321 | done |
| 4322 | done |
| 4323 | IFS=$as_save_IFS |
| 4324 | |
| 4325 | fi |
| 4326 | fi |
| 4327 | AR=$ac_cv_prog_AR |
| 4328 | if test -n "$AR"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4329 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 4330 | echo "${ECHO_T}$AR" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4331 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4332 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4333 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4334 | fi |
| 4335 | |
| 4336 | |
| 4337 | test -n "$AR" && break |
| 4338 | done |
| 4339 | test -n "$AR" || AR="ar" |
| 4340 | |
| 4341 | |
| 4342 | # tweak ARFLAGS only if the user didn't set it on the command line |
| 4343 | |
| 4344 | if test -z "$ARFLAGS" |
| 4345 | then |
| 4346 | ARFLAGS="rc" |
| 4347 | fi |
| 4348 | |
| 4349 | |
| 4350 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 4351 | set dummy svnversion; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4352 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4354 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4356 | else |
| 4357 | if test -n "$SVNVERSION"; then |
| 4358 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 4359 | else |
| 4360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4361 | for as_dir in $PATH |
| 4362 | do |
| 4363 | IFS=$as_save_IFS |
| 4364 | test -z "$as_dir" && as_dir=. |
| 4365 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4367 | ac_cv_prog_SVNVERSION="found" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4368 | 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] | 4369 | break 2 |
| 4370 | fi |
| 4371 | done |
| 4372 | done |
| 4373 | IFS=$as_save_IFS |
| 4374 | |
| 4375 | test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" |
| 4376 | fi |
| 4377 | fi |
| 4378 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 4379 | if test -n "$SVNVERSION"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4380 | { echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 4381 | echo "${ECHO_T}$SVNVERSION" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4382 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4383 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4384 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4385 | fi |
| 4386 | |
| 4387 | |
| 4388 | if test $SVNVERSION = found |
| 4389 | then |
| 4390 | SVNVERSION="svnversion \$(srcdir)" |
| 4391 | else |
| 4392 | SVNVERSION="echo Unversioned directory" |
| 4393 | fi |
| 4394 | |
| 4395 | case $MACHDEP in |
| 4396 | bsdos*|hp*|HP*) |
| 4397 | # install -d does not work on BSDI or HP-UX |
| 4398 | if test -z "$INSTALL" |
| 4399 | then |
| 4400 | INSTALL="${srcdir}/install-sh -c" |
| 4401 | fi |
| 4402 | esac |
| 4403 | ac_aux_dir= |
| 4404 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4405 | if test -f "$ac_dir/install-sh"; then |
| 4406 | ac_aux_dir=$ac_dir |
| 4407 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4408 | break |
| 4409 | elif test -f "$ac_dir/install.sh"; then |
| 4410 | ac_aux_dir=$ac_dir |
| 4411 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4412 | break |
| 4413 | elif test -f "$ac_dir/shtool"; then |
| 4414 | ac_aux_dir=$ac_dir |
| 4415 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4416 | break |
| 4417 | fi |
| 4418 | done |
| 4419 | if test -z "$ac_aux_dir"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4420 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 4421 | 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] | 4422 | { (exit 1); exit 1; }; } |
| 4423 | fi |
| 4424 | |
| 4425 | # These three variables are undocumented and unsupported, |
| 4426 | # and are intended to be withdrawn in a future Autoconf release. |
| 4427 | # They can cause serious problems if a builder's source tree is in a directory |
| 4428 | # whose full name contains unusual characters. |
| 4429 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4430 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4431 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4432 | |
| 4433 | |
| 4434 | # Find a good install program. We prefer a C program (faster), |
| 4435 | # so one script is as good as another. But avoid the broken or |
| 4436 | # incompatible versions: |
| 4437 | # SysV /etc/install, /usr/sbin/install |
| 4438 | # SunOS /usr/etc/install |
| 4439 | # IRIX /sbin/install |
| 4440 | # AIX /bin/install |
| 4441 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4442 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4443 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4444 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4445 | # OS/2's system install, which has a completely different semantic |
| 4446 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4447 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4448 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4449 | if test -z "$INSTALL"; then |
| 4450 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4452 | else |
| 4453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4454 | for as_dir in $PATH |
| 4455 | do |
| 4456 | IFS=$as_save_IFS |
| 4457 | test -z "$as_dir" && as_dir=. |
| 4458 | # Account for people who put trailing slashes in PATH elements. |
| 4459 | case $as_dir/ in |
| 4460 | ./ | .// | /cC/* | \ |
| 4461 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4462 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4463 | /usr/ucb/* ) ;; |
| 4464 | *) |
| 4465 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4466 | # Don't use installbsd from OSF since it installs stuff as root |
| 4467 | # by default. |
| 4468 | for ac_prog in ginstall scoinst install; do |
| 4469 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4470 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 4471 | if test $ac_prog = install && |
| 4472 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4473 | # AIX install. It has an incompatible calling convention. |
| 4474 | : |
| 4475 | elif test $ac_prog = install && |
| 4476 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4477 | # program-specific install script used by HP pwplus--don't use. |
| 4478 | : |
| 4479 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4480 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4481 | break 3 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4482 | fi |
| 4483 | fi |
| 4484 | done |
| 4485 | done |
| 4486 | ;; |
| 4487 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4488 | done |
| 4489 | IFS=$as_save_IFS |
| 4490 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4491 | |
| 4492 | fi |
| 4493 | if test "${ac_cv_path_install+set}" = set; then |
| 4494 | INSTALL=$ac_cv_path_install |
| 4495 | else |
| 4496 | # As a last resort, use the slow shell script. Don't cache a |
| 4497 | # value for INSTALL within a source directory, because that will |
| 4498 | # break other packages using the cache if that directory is |
| 4499 | # removed, or if the value is a relative name. |
| 4500 | INSTALL=$ac_install_sh |
| 4501 | fi |
| 4502 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4503 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4504 | echo "${ECHO_T}$INSTALL" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4505 | |
| 4506 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4507 | # It thinks the first close brace ends the variable substitution. |
| 4508 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4509 | |
| 4510 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4511 | |
| 4512 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4513 | |
| 4514 | |
| 4515 | # Not every filesystem supports hard links |
| 4516 | |
| 4517 | if test -z "$LN" ; then |
| 4518 | case $ac_sys_system in |
| 4519 | BeOS*) LN="ln -s";; |
| 4520 | CYGWIN*) LN="ln -s";; |
| 4521 | atheos*) LN="ln -s";; |
| 4522 | *) LN=ln;; |
| 4523 | esac |
| 4524 | fi |
| 4525 | |
| 4526 | # Check for --with-pydebug |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4527 | { echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 4528 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4529 | |
| 4530 | # Check whether --with-pydebug was given. |
| 4531 | if test "${with_pydebug+set}" = set; then |
| 4532 | withval=$with_pydebug; |
| 4533 | if test "$withval" != no |
| 4534 | then |
| 4535 | |
| 4536 | cat >>confdefs.h <<\_ACEOF |
| 4537 | #define Py_DEBUG 1 |
| 4538 | _ACEOF |
| 4539 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4540 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4541 | echo "${ECHO_T}yes" >&6; }; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4542 | Py_DEBUG='true' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4543 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 4544 | echo "${ECHO_T}no" >&6; }; Py_DEBUG='false' |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4545 | fi |
| 4546 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4547 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4548 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4549 | fi |
| 4550 | |
| 4551 | |
| 4552 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 4553 | # merged with this chunk of code? |
| 4554 | |
| 4555 | # Optimizer/debugger flags |
| 4556 | # ------------------------ |
| 4557 | # (The following bit of code is complicated enough - please keep things |
| 4558 | # indented properly. Just pretend you're editing Python code. ;-) |
| 4559 | |
| 4560 | # There are two parallel sets of case statements below, one that checks to |
| 4561 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 4562 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 4563 | # user set OPT. |
| 4564 | |
| 4565 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 4566 | # it on the command line |
| 4567 | |
| 4568 | if test -z "$OPT" |
| 4569 | then |
| 4570 | case $GCC in |
| 4571 | yes) |
| 4572 | if test "$CC" != 'g++' ; then |
| 4573 | STRICT_PROTO="-Wstrict-prototypes" |
| 4574 | fi |
| 4575 | # For gcc 4.x we need to use -fwrapv so lets check if its supported |
| 4576 | if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
| 4577 | WRAP="-fwrapv" |
| 4578 | fi |
| 4579 | case $ac_cv_prog_cc_g in |
| 4580 | yes) |
| 4581 | if test "$Py_DEBUG" = 'true' ; then |
| 4582 | # Optimization messes up debuggers, so turn it off for |
| 4583 | # debug builds. |
| 4584 | OPT="-g -Wall $STRICT_PROTO" |
| 4585 | else |
| 4586 | OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
| 4587 | fi |
| 4588 | ;; |
| 4589 | *) |
| 4590 | OPT="-O3 -Wall $STRICT_PROTO" |
| 4591 | ;; |
| 4592 | esac |
| 4593 | case $ac_sys_system in |
| 4594 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 4595 | ;; |
| 4596 | esac |
| 4597 | ;; |
| 4598 | |
| 4599 | *) |
| 4600 | OPT="-O" |
| 4601 | ;; |
| 4602 | esac |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4603 | fi |
| 4604 | |
| 4605 | |
| 4606 | |
| 4607 | # The -arch flags for universal builds on OSX |
| 4608 | UNIVERSAL_ARCH_FLAGS= |
| 4609 | |
| 4610 | |
| 4611 | # tweak BASECFLAGS based on compiler and platform |
| 4612 | case $GCC in |
| 4613 | yes) |
| 4614 | # Python violates C99 rules, by casting between incompatible |
| 4615 | # pointer types. GCC may generate bad code as a result of that, |
| 4616 | # so use -fno-strict-aliasing if supported. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4617 | { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 4618 | 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] | 4619 | ac_save_cc="$CC" |
| 4620 | CC="$CC -fno-strict-aliasing" |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4621 | if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then |
| 4622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4623 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4624 | cat >conftest.$ac_ext <<_ACEOF |
| 4625 | /* confdefs.h. */ |
| 4626 | _ACEOF |
| 4627 | cat confdefs.h >>conftest.$ac_ext |
| 4628 | cat >>conftest.$ac_ext <<_ACEOF |
| 4629 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4630 | |
| 4631 | int |
| 4632 | main () |
| 4633 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4634 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4635 | ; |
| 4636 | return 0; |
| 4637 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4638 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4639 | rm -f conftest.$ac_objext |
| 4640 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4641 | case "(($ac_try" in |
| 4642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4643 | *) ac_try_echo=$ac_try;; |
| 4644 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4646 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4647 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4649 | rm -f conftest.er1 |
| 4650 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4652 | (exit $ac_status); } && { |
| 4653 | test -z "$ac_c_werror_flag" || |
| 4654 | test ! -s conftest.err |
| 4655 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4656 | ac_cv_no_strict_aliasing_ok=yes |
| 4657 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4658 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4660 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4661 | ac_cv_no_strict_aliasing_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4662 | fi |
| 4663 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 4665 | fi |
| 4666 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4667 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4668 | { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 4669 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4670 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 4671 | then |
| 4672 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 4673 | fi |
| 4674 | |
| 4675 | # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
| 4676 | # support. Without this, treatment of subnormals doesn't follow |
| 4677 | # the standard. |
| 4678 | case $ac_sys_machine in |
| 4679 | alpha*) |
| 4680 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4681 | ;; |
| 4682 | esac |
| 4683 | |
| 4684 | case $ac_sys_system in |
| 4685 | SCO_SV*) |
| 4686 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 4687 | ;; |
| 4688 | # is there any other compiler on Darwin besides gcc? |
| 4689 | Darwin*) |
| 4690 | # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
| 4691 | # used to be here, but non-Apple gcc doesn't accept them. |
| 4692 | |
| 4693 | |
| 4694 | if test "${enable_universalsdk}"; then |
| 4695 | UNIVERSAL_ARCH_FLAGS="" |
| 4696 | if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
| 4697 | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 4698 | ARCH_RUN_32BIT="" |
| 4699 | |
| 4700 | elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
| 4701 | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4702 | ARCH_RUN_32BIT="true" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4703 | |
| 4704 | elif test "$UNIVERSAL_ARCHS" = "all" ; then |
| 4705 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 4706 | ARCH_RUN_32BIT="arch -i386 -ppc" |
| 4707 | |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 4708 | elif test "$UNIVERSAL_ARCHS" = "intel" ; then |
| 4709 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 4710 | ARCH_RUN_32BIT="arch -i386" |
| 4711 | |
| 4712 | elif test "$UNIVERSAL_ARCHS" = "3-way" ; then |
| 4713 | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 4714 | ARCH_RUN_32BIT="arch -i386 -ppc" |
| 4715 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4716 | else |
Ronald Oussoren | a9cfbde | 2009-09-20 20:05:44 +0000 | [diff] [blame] | 4717 | { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5 |
| 4718 | echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;} |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4719 | { (exit 1); exit 1; }; } |
| 4720 | |
| 4721 | fi |
| 4722 | |
| 4723 | |
| 4724 | BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
| 4725 | tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4726 | if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
| 4727 | CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
| 4728 | fi |
| 4729 | fi |
| 4730 | |
| 4731 | # Calculate the right deployment target for this build. |
| 4732 | # |
| 4733 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
| 4734 | if test ${cur_target} '>' 10.2; then |
| 4735 | cur_target=10.3 |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4736 | if test ${enable_universalsdk}; then |
| 4737 | if test "${UNIVERSAL_ARCHS}" = "all"; then |
| 4738 | # Ensure that the default platform for a |
| 4739 | # 4-way universal build is OSX 10.5, |
| 4740 | # that's the first OS release where |
| 4741 | # 4-way builds make sense. |
| 4742 | cur_target='10.5' |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 4743 | |
| 4744 | elif test "${UNIVERSAL_ARCHS}" = "3-way"; then |
| 4745 | cur_target='10.5' |
| 4746 | |
| 4747 | elif test "${UNIVERSAL_ARCHS}" = "intel"; then |
| 4748 | cur_target='10.5' |
| 4749 | |
| 4750 | elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then |
| 4751 | cur_target='10.5' |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 4752 | fi |
| 4753 | else |
| 4754 | if test `arch` = "i386"; then |
| 4755 | # On Intel macs default to a deployment |
| 4756 | # target of 10.4, that's the first OSX |
| 4757 | # release with Intel support. |
| 4758 | cur_target="10.4" |
| 4759 | fi |
| 4760 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4761 | fi |
| 4762 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
| 4763 | |
| 4764 | # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
| 4765 | # environment with a value that is the same as what we'll use |
| 4766 | # in the Makefile to ensure that we'll get the same compiler |
| 4767 | # environment during configure and build time. |
| 4768 | MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
| 4769 | export MACOSX_DEPLOYMENT_TARGET |
| 4770 | EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
| 4771 | |
| 4772 | ;; |
| 4773 | OSF*) |
| 4774 | BASECFLAGS="$BASECFLAGS -mieee" |
| 4775 | ;; |
| 4776 | esac |
| 4777 | ;; |
| 4778 | |
| 4779 | *) |
| 4780 | case $ac_sys_system in |
| 4781 | OpenUNIX*|UnixWare*) |
| 4782 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 4783 | ;; |
| 4784 | OSF*) |
| 4785 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 4786 | ;; |
| 4787 | SCO_SV*) |
| 4788 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 4789 | ;; |
| 4790 | esac |
| 4791 | ;; |
| 4792 | esac |
| 4793 | |
| 4794 | if test "$Py_DEBUG" = 'true'; then |
| 4795 | : |
| 4796 | else |
| 4797 | OPT="-DNDEBUG $OPT" |
| 4798 | fi |
| 4799 | |
| 4800 | if test "$ac_arch_flags" |
| 4801 | then |
| 4802 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 4803 | fi |
| 4804 | |
| 4805 | # disable check for icc since it seems to pass, but generates a warning |
| 4806 | if test "$CC" = icc |
| 4807 | then |
| 4808 | ac_cv_opt_olimit_ok=no |
| 4809 | fi |
| 4810 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4811 | { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 4812 | 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] | 4813 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4815 | else |
| 4816 | ac_save_cc="$CC" |
| 4817 | CC="$CC -OPT:Olimit=0" |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4818 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4819 | /* confdefs.h. */ |
| 4820 | _ACEOF |
| 4821 | cat confdefs.h >>conftest.$ac_ext |
| 4822 | cat >>conftest.$ac_ext <<_ACEOF |
| 4823 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4824 | |
| 4825 | int |
| 4826 | main () |
| 4827 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4828 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4829 | ; |
| 4830 | return 0; |
| 4831 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4832 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4833 | rm -f conftest.$ac_objext |
| 4834 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4835 | case "(($ac_try" in |
| 4836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4837 | *) ac_try_echo=$ac_try;; |
| 4838 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4840 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4841 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4843 | rm -f conftest.er1 |
| 4844 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4846 | (exit $ac_status); } && { |
| 4847 | test -z "$ac_c_werror_flag" || |
| 4848 | test ! -s conftest.err |
| 4849 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4850 | ac_cv_opt_olimit_ok=yes |
| 4851 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4852 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4854 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4855 | ac_cv_opt_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4856 | fi |
| 4857 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4859 | CC="$ac_save_cc" |
| 4860 | fi |
| 4861 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4862 | { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 4863 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4864 | if test $ac_cv_opt_olimit_ok = yes; then |
| 4865 | case $ac_sys_system in |
| 4866 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 4867 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 4868 | # environment? |
| 4869 | Darwin*) |
| 4870 | ;; |
| 4871 | *) |
| 4872 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 4873 | ;; |
| 4874 | esac |
| 4875 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4876 | { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 4877 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4878 | if test "${ac_cv_olimit_ok+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4880 | else |
| 4881 | ac_save_cc="$CC" |
| 4882 | CC="$CC -Olimit 1500" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4883 | cat >conftest.$ac_ext <<_ACEOF |
| 4884 | /* confdefs.h. */ |
| 4885 | _ACEOF |
| 4886 | cat confdefs.h >>conftest.$ac_ext |
| 4887 | cat >>conftest.$ac_ext <<_ACEOF |
| 4888 | /* end confdefs.h. */ |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4889 | |
| 4890 | int |
| 4891 | main () |
| 4892 | { |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4893 | int main() { return 0; } |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4894 | ; |
| 4895 | return 0; |
| 4896 | } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4897 | _ACEOF |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4898 | rm -f conftest.$ac_objext |
| 4899 | if { (ac_try="$ac_compile" |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4900 | case "(($ac_try" in |
| 4901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4902 | *) ac_try_echo=$ac_try;; |
| 4903 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4905 | (eval "$ac_compile") 2>conftest.er1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4906 | ac_status=$? |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4908 | rm -f conftest.er1 |
| 4909 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4911 | (exit $ac_status); } && { |
| 4912 | test -z "$ac_c_werror_flag" || |
| 4913 | test ! -s conftest.err |
| 4914 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4915 | ac_cv_olimit_ok=yes |
| 4916 | else |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4917 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4919 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4920 | ac_cv_olimit_ok=no |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4921 | fi |
| 4922 | |
Gregory P. Smith | 373469a | 2009-11-01 21:03:38 +0000 | [diff] [blame] | 4923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4924 | CC="$ac_save_cc" |
| 4925 | fi |
| 4926 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4927 | { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4928 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4929 | if test $ac_cv_olimit_ok = yes; then |
| 4930 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
| 4931 | fi |
| 4932 | fi |
| 4933 | |
| 4934 | # Check whether GCC supports PyArg_ParseTuple format |
| 4935 | if test "$GCC" = "yes" |
| 4936 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4937 | { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5 |
| 4938 | echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4939 | save_CFLAGS=$CFLAGS |
| 4940 | CFLAGS="$CFLAGS -Werror" |
| 4941 | cat >conftest.$ac_ext <<_ACEOF |
| 4942 | /* confdefs.h. */ |
| 4943 | _ACEOF |
| 4944 | cat confdefs.h >>conftest.$ac_ext |
| 4945 | cat >>conftest.$ac_ext <<_ACEOF |
| 4946 | /* end confdefs.h. */ |
| 4947 | |
| 4948 | void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
| 4949 | |
| 4950 | int |
| 4951 | main () |
| 4952 | { |
| 4953 | |
| 4954 | ; |
| 4955 | return 0; |
| 4956 | } |
| 4957 | _ACEOF |
| 4958 | rm -f conftest.$ac_objext |
| 4959 | if { (ac_try="$ac_compile" |
| 4960 | case "(($ac_try" in |
| 4961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4962 | *) ac_try_echo=$ac_try;; |
| 4963 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4965 | (eval "$ac_compile") 2>conftest.er1 |
| 4966 | ac_status=$? |
| 4967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4968 | rm -f conftest.er1 |
| 4969 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4971 | (exit $ac_status); } && { |
| 4972 | test -z "$ac_c_werror_flag" || |
| 4973 | test ! -s conftest.err |
| 4974 | } && test -s conftest.$ac_objext; then |
| 4975 | |
| 4976 | cat >>confdefs.h <<\_ACEOF |
| 4977 | #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1 |
| 4978 | _ACEOF |
| 4979 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4980 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4981 | echo "${ECHO_T}yes" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4982 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4983 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4985 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 4986 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4987 | echo "${ECHO_T}no" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 4988 | |
| 4989 | fi |
| 4990 | |
| 4991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4992 | CFLAGS=$save_CFLAGS |
| 4993 | fi |
| 4994 | |
| 4995 | # On some compilers, pthreads are available without further options |
| 4996 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4997 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4998 | # So we have to see first whether pthreads are available without |
| 4999 | # options before we can check whether -Kpthread improves anything. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5000 | { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 5001 | 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] | 5002 | if test "${ac_cv_pthread_is_default+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5004 | else |
| 5005 | if test "$cross_compiling" = yes; then |
| 5006 | ac_cv_pthread_is_default=no |
| 5007 | else |
| 5008 | cat >conftest.$ac_ext <<_ACEOF |
| 5009 | /* confdefs.h. */ |
| 5010 | _ACEOF |
| 5011 | cat confdefs.h >>conftest.$ac_ext |
| 5012 | cat >>conftest.$ac_ext <<_ACEOF |
| 5013 | /* end confdefs.h. */ |
| 5014 | |
| 5015 | #include <pthread.h> |
| 5016 | |
| 5017 | void* routine(void* p){return NULL;} |
| 5018 | |
| 5019 | int main(){ |
| 5020 | pthread_t p; |
| 5021 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5022 | return 1; |
| 5023 | (void)pthread_detach(p); |
| 5024 | return 0; |
| 5025 | } |
| 5026 | |
| 5027 | _ACEOF |
| 5028 | rm -f conftest$ac_exeext |
| 5029 | if { (ac_try="$ac_link" |
| 5030 | case "(($ac_try" in |
| 5031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5032 | *) ac_try_echo=$ac_try;; |
| 5033 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5035 | (eval "$ac_link") 2>&5 |
| 5036 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5038 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5039 | { (case "(($ac_try" in |
| 5040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5041 | *) ac_try_echo=$ac_try;; |
| 5042 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5044 | (eval "$ac_try") 2>&5 |
| 5045 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5047 | (exit $ac_status); }; }; then |
| 5048 | |
| 5049 | ac_cv_pthread_is_default=yes |
| 5050 | ac_cv_kthread=no |
| 5051 | ac_cv_pthread=no |
| 5052 | |
| 5053 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5054 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5055 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5057 | |
| 5058 | ( exit $ac_status ) |
| 5059 | ac_cv_pthread_is_default=no |
| 5060 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5061 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5062 | fi |
| 5063 | |
| 5064 | |
| 5065 | |
| 5066 | fi |
| 5067 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5068 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 5069 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5070 | |
| 5071 | |
| 5072 | if test $ac_cv_pthread_is_default = yes |
| 5073 | then |
| 5074 | ac_cv_kpthread=no |
| 5075 | else |
| 5076 | # -Kpthread, if available, provides the right #defines |
| 5077 | # and linker options to make pthread_create available |
| 5078 | # Some compilers won't report that they do not support -Kpthread, |
| 5079 | # so we need to run a program to see whether it really made the |
| 5080 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5081 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 5082 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5083 | if test "${ac_cv_kpthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5085 | else |
| 5086 | ac_save_cc="$CC" |
| 5087 | CC="$CC -Kpthread" |
| 5088 | if test "$cross_compiling" = yes; then |
| 5089 | ac_cv_kpthread=no |
| 5090 | else |
| 5091 | cat >conftest.$ac_ext <<_ACEOF |
| 5092 | /* confdefs.h. */ |
| 5093 | _ACEOF |
| 5094 | cat confdefs.h >>conftest.$ac_ext |
| 5095 | cat >>conftest.$ac_ext <<_ACEOF |
| 5096 | /* end confdefs.h. */ |
| 5097 | |
| 5098 | #include <pthread.h> |
| 5099 | |
| 5100 | void* routine(void* p){return NULL;} |
| 5101 | |
| 5102 | int main(){ |
| 5103 | pthread_t p; |
| 5104 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5105 | return 1; |
| 5106 | (void)pthread_detach(p); |
| 5107 | return 0; |
| 5108 | } |
| 5109 | |
| 5110 | _ACEOF |
| 5111 | rm -f conftest$ac_exeext |
| 5112 | if { (ac_try="$ac_link" |
| 5113 | case "(($ac_try" in |
| 5114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5115 | *) ac_try_echo=$ac_try;; |
| 5116 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5118 | (eval "$ac_link") 2>&5 |
| 5119 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5121 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5122 | { (case "(($ac_try" in |
| 5123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5124 | *) ac_try_echo=$ac_try;; |
| 5125 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5127 | (eval "$ac_try") 2>&5 |
| 5128 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5130 | (exit $ac_status); }; }; then |
| 5131 | ac_cv_kpthread=yes |
| 5132 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5133 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5134 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5136 | |
| 5137 | ( exit $ac_status ) |
| 5138 | ac_cv_kpthread=no |
| 5139 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5140 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5141 | fi |
| 5142 | |
| 5143 | |
| 5144 | CC="$ac_save_cc" |
| 5145 | fi |
| 5146 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5147 | { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 5148 | echo "${ECHO_T}$ac_cv_kpthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5149 | fi |
| 5150 | |
| 5151 | if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
| 5152 | then |
| 5153 | # -Kthread, if available, provides the right #defines |
| 5154 | # and linker options to make pthread_create available |
| 5155 | # Some compilers won't report that they do not support -Kthread, |
| 5156 | # so we need to run a program to see whether it really made the |
| 5157 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5158 | { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 5159 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5160 | if test "${ac_cv_kthread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5162 | else |
| 5163 | ac_save_cc="$CC" |
| 5164 | CC="$CC -Kthread" |
| 5165 | if test "$cross_compiling" = yes; then |
| 5166 | ac_cv_kthread=no |
| 5167 | else |
| 5168 | cat >conftest.$ac_ext <<_ACEOF |
| 5169 | /* confdefs.h. */ |
| 5170 | _ACEOF |
| 5171 | cat confdefs.h >>conftest.$ac_ext |
| 5172 | cat >>conftest.$ac_ext <<_ACEOF |
| 5173 | /* end confdefs.h. */ |
| 5174 | |
| 5175 | #include <pthread.h> |
| 5176 | |
| 5177 | void* routine(void* p){return NULL;} |
| 5178 | |
| 5179 | int main(){ |
| 5180 | pthread_t p; |
| 5181 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5182 | return 1; |
| 5183 | (void)pthread_detach(p); |
| 5184 | return 0; |
| 5185 | } |
| 5186 | |
| 5187 | _ACEOF |
| 5188 | rm -f conftest$ac_exeext |
| 5189 | if { (ac_try="$ac_link" |
| 5190 | case "(($ac_try" in |
| 5191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5192 | *) ac_try_echo=$ac_try;; |
| 5193 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5195 | (eval "$ac_link") 2>&5 |
| 5196 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5198 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5199 | { (case "(($ac_try" in |
| 5200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5201 | *) ac_try_echo=$ac_try;; |
| 5202 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5204 | (eval "$ac_try") 2>&5 |
| 5205 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5207 | (exit $ac_status); }; }; then |
| 5208 | ac_cv_kthread=yes |
| 5209 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5210 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5211 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5213 | |
| 5214 | ( exit $ac_status ) |
| 5215 | ac_cv_kthread=no |
| 5216 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5217 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5218 | fi |
| 5219 | |
| 5220 | |
| 5221 | CC="$ac_save_cc" |
| 5222 | fi |
| 5223 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5224 | { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 5225 | echo "${ECHO_T}$ac_cv_kthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5226 | fi |
| 5227 | |
| 5228 | if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
| 5229 | then |
| 5230 | # -pthread, if available, provides the right #defines |
| 5231 | # and linker options to make pthread_create available |
| 5232 | # Some compilers won't report that they do not support -pthread, |
| 5233 | # so we need to run a program to see whether it really made the |
| 5234 | # function available. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5235 | { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 5236 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5237 | if test "${ac_cv_thread+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5239 | else |
| 5240 | ac_save_cc="$CC" |
| 5241 | CC="$CC -pthread" |
| 5242 | if test "$cross_compiling" = yes; then |
| 5243 | ac_cv_pthread=no |
| 5244 | else |
| 5245 | cat >conftest.$ac_ext <<_ACEOF |
| 5246 | /* confdefs.h. */ |
| 5247 | _ACEOF |
| 5248 | cat confdefs.h >>conftest.$ac_ext |
| 5249 | cat >>conftest.$ac_ext <<_ACEOF |
| 5250 | /* end confdefs.h. */ |
| 5251 | |
| 5252 | #include <pthread.h> |
| 5253 | |
| 5254 | void* routine(void* p){return NULL;} |
| 5255 | |
| 5256 | int main(){ |
| 5257 | pthread_t p; |
| 5258 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 5259 | return 1; |
| 5260 | (void)pthread_detach(p); |
| 5261 | return 0; |
| 5262 | } |
| 5263 | |
| 5264 | _ACEOF |
| 5265 | rm -f conftest$ac_exeext |
| 5266 | if { (ac_try="$ac_link" |
| 5267 | case "(($ac_try" in |
| 5268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5269 | *) ac_try_echo=$ac_try;; |
| 5270 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5272 | (eval "$ac_link") 2>&5 |
| 5273 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5275 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5276 | { (case "(($ac_try" in |
| 5277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5278 | *) ac_try_echo=$ac_try;; |
| 5279 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5281 | (eval "$ac_try") 2>&5 |
| 5282 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5284 | (exit $ac_status); }; }; then |
| 5285 | ac_cv_pthread=yes |
| 5286 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5287 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5288 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5290 | |
| 5291 | ( exit $ac_status ) |
| 5292 | ac_cv_pthread=no |
| 5293 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5294 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5295 | fi |
| 5296 | |
| 5297 | |
| 5298 | CC="$ac_save_cc" |
| 5299 | fi |
| 5300 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5301 | { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 5302 | echo "${ECHO_T}$ac_cv_pthread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5303 | fi |
| 5304 | |
| 5305 | # If we have set a CC compiler flag for thread support then |
| 5306 | # check if it works for CXX, too. |
| 5307 | ac_cv_cxx_thread=no |
| 5308 | if test ! -z "$CXX" |
| 5309 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5310 | { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 5311 | 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] | 5312 | ac_save_cxx="$CXX" |
| 5313 | |
| 5314 | if test "$ac_cv_kpthread" = "yes" |
| 5315 | then |
| 5316 | CXX="$CXX -Kpthread" |
| 5317 | ac_cv_cxx_thread=yes |
| 5318 | elif test "$ac_cv_kthread" = "yes" |
| 5319 | then |
| 5320 | CXX="$CXX -Kthread" |
| 5321 | ac_cv_cxx_thread=yes |
| 5322 | elif test "$ac_cv_pthread" = "yes" |
| 5323 | then |
| 5324 | CXX="$CXX -pthread" |
| 5325 | ac_cv_cxx_thread=yes |
| 5326 | fi |
| 5327 | |
| 5328 | if test $ac_cv_cxx_thread = yes |
| 5329 | then |
| 5330 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 5331 | $CXX -c conftest.$ac_ext 2>&5 |
| 5332 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 5333 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 5334 | then |
| 5335 | ac_cv_cxx_thread=yes |
| 5336 | else |
| 5337 | ac_cv_cxx_thread=no |
| 5338 | fi |
| 5339 | rm -fr conftest* |
| 5340 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5341 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 5342 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5343 | fi |
| 5344 | CXX="$ac_save_cxx" |
| 5345 | |
| 5346 | |
| 5347 | # checks for header files |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5348 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5349 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5350 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5352 | else |
| 5353 | cat >conftest.$ac_ext <<_ACEOF |
| 5354 | /* confdefs.h. */ |
| 5355 | _ACEOF |
| 5356 | cat confdefs.h >>conftest.$ac_ext |
| 5357 | cat >>conftest.$ac_ext <<_ACEOF |
| 5358 | /* end confdefs.h. */ |
| 5359 | #include <stdlib.h> |
| 5360 | #include <stdarg.h> |
| 5361 | #include <string.h> |
| 5362 | #include <float.h> |
| 5363 | |
| 5364 | int |
| 5365 | main () |
| 5366 | { |
| 5367 | |
| 5368 | ; |
| 5369 | return 0; |
| 5370 | } |
| 5371 | _ACEOF |
| 5372 | rm -f conftest.$ac_objext |
| 5373 | if { (ac_try="$ac_compile" |
| 5374 | case "(($ac_try" in |
| 5375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5376 | *) ac_try_echo=$ac_try;; |
| 5377 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5379 | (eval "$ac_compile") 2>conftest.er1 |
| 5380 | ac_status=$? |
| 5381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5382 | rm -f conftest.er1 |
| 5383 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5385 | (exit $ac_status); } && { |
| 5386 | test -z "$ac_c_werror_flag" || |
| 5387 | test ! -s conftest.err |
| 5388 | } && test -s conftest.$ac_objext; then |
| 5389 | ac_cv_header_stdc=yes |
| 5390 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5391 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5393 | |
| 5394 | ac_cv_header_stdc=no |
| 5395 | fi |
| 5396 | |
| 5397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5398 | |
| 5399 | if test $ac_cv_header_stdc = yes; then |
| 5400 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5401 | cat >conftest.$ac_ext <<_ACEOF |
| 5402 | /* confdefs.h. */ |
| 5403 | _ACEOF |
| 5404 | cat confdefs.h >>conftest.$ac_ext |
| 5405 | cat >>conftest.$ac_ext <<_ACEOF |
| 5406 | /* end confdefs.h. */ |
| 5407 | #include <string.h> |
| 5408 | |
| 5409 | _ACEOF |
| 5410 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5411 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5412 | : |
| 5413 | else |
| 5414 | ac_cv_header_stdc=no |
| 5415 | fi |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 5416 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5417 | |
| 5418 | fi |
| 5419 | |
| 5420 | if test $ac_cv_header_stdc = yes; then |
| 5421 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5422 | cat >conftest.$ac_ext <<_ACEOF |
| 5423 | /* confdefs.h. */ |
| 5424 | _ACEOF |
| 5425 | cat confdefs.h >>conftest.$ac_ext |
| 5426 | cat >>conftest.$ac_ext <<_ACEOF |
| 5427 | /* end confdefs.h. */ |
| 5428 | #include <stdlib.h> |
| 5429 | |
| 5430 | _ACEOF |
| 5431 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5432 | $EGREP "free" >/dev/null 2>&1; then |
| 5433 | : |
| 5434 | else |
| 5435 | ac_cv_header_stdc=no |
| 5436 | fi |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 5437 | rm -f conftest* |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5438 | |
| 5439 | fi |
| 5440 | |
| 5441 | if test $ac_cv_header_stdc = yes; then |
| 5442 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5443 | if test "$cross_compiling" = yes; then |
| 5444 | : |
| 5445 | else |
| 5446 | cat >conftest.$ac_ext <<_ACEOF |
| 5447 | /* confdefs.h. */ |
| 5448 | _ACEOF |
| 5449 | cat confdefs.h >>conftest.$ac_ext |
| 5450 | cat >>conftest.$ac_ext <<_ACEOF |
| 5451 | /* end confdefs.h. */ |
| 5452 | #include <ctype.h> |
| 5453 | #include <stdlib.h> |
| 5454 | #if ((' ' & 0x0FF) == 0x020) |
| 5455 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5456 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5457 | #else |
| 5458 | # define ISLOWER(c) \ |
| 5459 | (('a' <= (c) && (c) <= 'i') \ |
| 5460 | || ('j' <= (c) && (c) <= 'r') \ |
| 5461 | || ('s' <= (c) && (c) <= 'z')) |
| 5462 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5463 | #endif |
| 5464 | |
| 5465 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5466 | int |
| 5467 | main () |
| 5468 | { |
| 5469 | int i; |
| 5470 | for (i = 0; i < 256; i++) |
| 5471 | if (XOR (islower (i), ISLOWER (i)) |
| 5472 | || toupper (i) != TOUPPER (i)) |
| 5473 | return 2; |
| 5474 | return 0; |
| 5475 | } |
| 5476 | _ACEOF |
| 5477 | rm -f conftest$ac_exeext |
| 5478 | if { (ac_try="$ac_link" |
| 5479 | case "(($ac_try" in |
| 5480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5481 | *) ac_try_echo=$ac_try;; |
| 5482 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5484 | (eval "$ac_link") 2>&5 |
| 5485 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5487 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5488 | { (case "(($ac_try" in |
| 5489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5490 | *) ac_try_echo=$ac_try;; |
| 5491 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5493 | (eval "$ac_try") 2>&5 |
| 5494 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5496 | (exit $ac_status); }; }; then |
| 5497 | : |
| 5498 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5499 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5500 | echo "$as_me: failed program was:" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5502 | |
| 5503 | ( exit $ac_status ) |
| 5504 | ac_cv_header_stdc=no |
| 5505 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5506 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5507 | fi |
| 5508 | |
| 5509 | |
| 5510 | fi |
| 5511 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5512 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5513 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5514 | if test $ac_cv_header_stdc = yes; then |
| 5515 | |
| 5516 | cat >>confdefs.h <<\_ACEOF |
| 5517 | #define STDC_HEADERS 1 |
| 5518 | _ACEOF |
| 5519 | |
| 5520 | fi |
| 5521 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5522 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5523 | |
| 5524 | |
| 5525 | |
| 5526 | |
| 5527 | |
| 5528 | |
| 5529 | |
| 5530 | |
| 5531 | |
| 5532 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5533 | inttypes.h stdint.h unistd.h |
| 5534 | do |
| 5535 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5536 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5537 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5538 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5540 | else |
| 5541 | cat >conftest.$ac_ext <<_ACEOF |
| 5542 | /* confdefs.h. */ |
| 5543 | _ACEOF |
| 5544 | cat confdefs.h >>conftest.$ac_ext |
| 5545 | cat >>conftest.$ac_ext <<_ACEOF |
| 5546 | /* end confdefs.h. */ |
| 5547 | $ac_includes_default |
| 5548 | |
| 5549 | #include <$ac_header> |
| 5550 | _ACEOF |
| 5551 | rm -f conftest.$ac_objext |
| 5552 | if { (ac_try="$ac_compile" |
| 5553 | case "(($ac_try" in |
| 5554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5555 | *) ac_try_echo=$ac_try;; |
| 5556 | esac |
| 5557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5558 | (eval "$ac_compile") 2>conftest.er1 |
| 5559 | ac_status=$? |
| 5560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5561 | rm -f conftest.er1 |
| 5562 | cat conftest.err >&5 |
| 5563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5564 | (exit $ac_status); } && { |
| 5565 | test -z "$ac_c_werror_flag" || |
| 5566 | test ! -s conftest.err |
| 5567 | } && test -s conftest.$ac_objext; then |
| 5568 | eval "$as_ac_Header=yes" |
| 5569 | else |
| 5570 | echo "$as_me: failed program was:" >&5 |
| 5571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5572 | |
| 5573 | eval "$as_ac_Header=no" |
| 5574 | fi |
| 5575 | |
| 5576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5577 | fi |
| 5578 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5579 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5580 | echo "${ECHO_T}$ac_res" >&6; } |
| 5581 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5582 | cat >>confdefs.h <<_ACEOF |
| 5583 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5584 | _ACEOF |
| 5585 | |
| 5586 | fi |
| 5587 | |
| 5588 | done |
| 5589 | |
| 5590 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 5591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5592 | |
| 5593 | |
| 5594 | |
| 5595 | |
| 5596 | |
| 5597 | |
| 5598 | |
| 5599 | |
| 5600 | |
| 5601 | |
| 5602 | |
| 5603 | |
| 5604 | |
| 5605 | |
| 5606 | |
| 5607 | |
| 5608 | |
| 5609 | |
| 5610 | |
| 5611 | |
| 5612 | |
| 5613 | |
| 5614 | |
| 5615 | |
| 5616 | |
| 5617 | |
| 5618 | |
| 5619 | |
| 5620 | |
| 5621 | |
| 5622 | |
| 5623 | |
| 5624 | |
| 5625 | |
| 5626 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 5627 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 5628 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5629 | |
Martin v. Löwis | 5f5d99c | 2006-05-16 07:05:37 +0000 | [diff] [blame] | 5630 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5631 | |
| 5632 | |
| 5633 | |
| 5634 | |
| 5635 | |
| 5636 | |
| 5637 | |
| 5638 | |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 5639 | |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5640 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5641 | |
| 5642 | |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5643 | |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 5644 | |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5645 | for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
| 5646 | fcntl.h grp.h \ |
Neal Norwitz | 9fdfaaf | 2008-03-28 05:34:59 +0000 | [diff] [blame] | 5647 | 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] | 5648 | 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] | 5649 | unistd.h utime.h \ |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 5650 | sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
| 5651 | sys/lock.h sys/mkdev.h sys/modem.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5652 | 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] | 5653 | sys/termio.h sys/time.h \ |
Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 5654 | 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] | 5655 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
Christian Heimes | fb2d25a | 2008-01-07 16:12:44 +0000 | [diff] [blame] | 5656 | bluetooth/bluetooth.h linux/tipc.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5657 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5658 | 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] | 5659 | 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] | 5660 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5661 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5662 | 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] | 5663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5664 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5665 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5666 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5667 | echo "${ECHO_T}$ac_res" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5669 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5670 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5671 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5672 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5673 | /* confdefs.h. */ |
| 5674 | _ACEOF |
| 5675 | cat confdefs.h >>conftest.$ac_ext |
| 5676 | cat >>conftest.$ac_ext <<_ACEOF |
| 5677 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5678 | $ac_includes_default |
| 5679 | #include <$ac_header> |
| 5680 | _ACEOF |
| 5681 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5682 | if { (ac_try="$ac_compile" |
| 5683 | case "(($ac_try" in |
| 5684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5685 | *) ac_try_echo=$ac_try;; |
| 5686 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5688 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5689 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5691 | rm -f conftest.er1 |
| 5692 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5694 | (exit $ac_status); } && { |
| 5695 | test -z "$ac_c_werror_flag" || |
| 5696 | test ! -s conftest.err |
| 5697 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5698 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5699 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5700 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5702 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5703 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5704 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5705 | |
| 5706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5707 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5708 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5709 | |
| 5710 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5711 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5712 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5714 | /* confdefs.h. */ |
| 5715 | _ACEOF |
| 5716 | cat confdefs.h >>conftest.$ac_ext |
| 5717 | cat >>conftest.$ac_ext <<_ACEOF |
| 5718 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5719 | #include <$ac_header> |
| 5720 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5721 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5722 | case "(($ac_try" in |
| 5723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5724 | *) ac_try_echo=$ac_try;; |
| 5725 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5727 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5728 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5729 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5730 | rm -f conftest.er1 |
| 5731 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5733 | (exit $ac_status); } >/dev/null && { |
| 5734 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5735 | test ! -s conftest.err |
| 5736 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5737 | ac_header_preproc=yes |
| 5738 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5739 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5741 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5742 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5743 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5744 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5745 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5746 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5747 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5748 | |
| 5749 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5750 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5751 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5752 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5753 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5754 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5755 | 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] | 5756 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5757 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5758 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5759 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5760 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5761 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5762 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5763 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5764 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5765 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5766 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5767 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5768 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5769 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5770 | 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] | 5771 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 5772 | ## -------------------------------------- ## |
| 5773 | ## Report this to http://bugs.python.org/ ## |
| 5774 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5775 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5776 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5777 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5778 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5779 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5780 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5781 | 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] | 5782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5783 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5784 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5785 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5786 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5787 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5788 | echo "${ECHO_T}$ac_res" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5789 | |
| 5790 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5791 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5792 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5793 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5794 | _ACEOF |
| 5795 | |
| 5796 | fi |
| 5797 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5798 | done |
| 5799 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5800 | |
| 5801 | |
| 5802 | |
| 5803 | |
| 5804 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5805 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5806 | 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] | 5807 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 5808 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 5809 | 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] | 5810 | 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] | 5811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5812 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5813 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5814 | /* confdefs.h. */ |
| 5815 | _ACEOF |
| 5816 | cat confdefs.h >>conftest.$ac_ext |
| 5817 | cat >>conftest.$ac_ext <<_ACEOF |
| 5818 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5819 | #include <sys/types.h> |
| 5820 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5821 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5822 | int |
| 5823 | main () |
| 5824 | { |
| 5825 | if ((DIR *) 0) |
| 5826 | return 0; |
| 5827 | ; |
| 5828 | return 0; |
| 5829 | } |
| 5830 | _ACEOF |
| 5831 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5832 | if { (ac_try="$ac_compile" |
| 5833 | case "(($ac_try" in |
| 5834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5835 | *) ac_try_echo=$ac_try;; |
| 5836 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5838 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5839 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5841 | rm -f conftest.er1 |
| 5842 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5844 | (exit $ac_status); } && { |
| 5845 | test -z "$ac_c_werror_flag" || |
| 5846 | test ! -s conftest.err |
| 5847 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5848 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5849 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5850 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5852 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5853 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5854 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5855 | |
| 5856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5857 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5858 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5859 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5860 | echo "${ECHO_T}$ac_res" >&6; } |
| 5861 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5862 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5863 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5864 | _ACEOF |
| 5865 | |
| 5866 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5867 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5868 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5869 | done |
| 5870 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5871 | if test $ac_header_dirent = dirent.h; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5872 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5873 | 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] | 5874 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5876 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5877 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5878 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5879 | /* confdefs.h. */ |
| 5880 | _ACEOF |
| 5881 | cat confdefs.h >>conftest.$ac_ext |
| 5882 | cat >>conftest.$ac_ext <<_ACEOF |
| 5883 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5884 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5885 | /* Override any GCC internal prototype to avoid an error. |
| 5886 | Use char because int might match the return type of a GCC |
| 5887 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5888 | #ifdef __cplusplus |
| 5889 | extern "C" |
| 5890 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5891 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5892 | int |
| 5893 | main () |
| 5894 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5895 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5896 | ; |
| 5897 | return 0; |
| 5898 | } |
| 5899 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5900 | for ac_lib in '' dir; do |
| 5901 | if test -z "$ac_lib"; then |
| 5902 | ac_res="none required" |
| 5903 | else |
| 5904 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5905 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5906 | fi |
| 5907 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5908 | if { (ac_try="$ac_link" |
| 5909 | case "(($ac_try" in |
| 5910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5911 | *) ac_try_echo=$ac_try;; |
| 5912 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5914 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5915 | ac_status=$? |
| 5916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5917 | rm -f conftest.er1 |
| 5918 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5920 | (exit $ac_status); } && { |
| 5921 | test -z "$ac_c_werror_flag" || |
| 5922 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5923 | } && test -s conftest$ac_exeext && |
| 5924 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5925 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5926 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5927 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5929 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5930 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 5931 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5932 | |
| 5933 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5934 | conftest$ac_exeext |
| 5935 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5936 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5937 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5938 | done |
| 5939 | if test "${ac_cv_search_opendir+set}" = set; then |
| 5940 | : |
| 5941 | else |
| 5942 | ac_cv_search_opendir=no |
| 5943 | fi |
| 5944 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5945 | LIBS=$ac_func_search_save_LIBS |
| 5946 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5947 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5948 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5949 | ac_res=$ac_cv_search_opendir |
| 5950 | if test "$ac_res" != no; then |
| 5951 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5952 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5953 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5954 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5955 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5956 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 5957 | 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] | 5958 | if test "${ac_cv_search_opendir+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5960 | else |
| 5961 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5962 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5963 | /* confdefs.h. */ |
| 5964 | _ACEOF |
| 5965 | cat confdefs.h >>conftest.$ac_ext |
| 5966 | cat >>conftest.$ac_ext <<_ACEOF |
| 5967 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5968 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5969 | /* Override any GCC internal prototype to avoid an error. |
| 5970 | Use char because int might match the return type of a GCC |
| 5971 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5972 | #ifdef __cplusplus |
| 5973 | extern "C" |
| 5974 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5975 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5976 | int |
| 5977 | main () |
| 5978 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5979 | return opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5980 | ; |
| 5981 | return 0; |
| 5982 | } |
| 5983 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5984 | for ac_lib in '' x; do |
| 5985 | if test -z "$ac_lib"; then |
| 5986 | ac_res="none required" |
| 5987 | else |
| 5988 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5989 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5990 | fi |
| 5991 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5992 | if { (ac_try="$ac_link" |
| 5993 | case "(($ac_try" in |
| 5994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5995 | *) ac_try_echo=$ac_try;; |
| 5996 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 5997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 5998 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 5999 | ac_status=$? |
| 6000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6001 | rm -f conftest.er1 |
| 6002 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6004 | (exit $ac_status); } && { |
| 6005 | test -z "$ac_c_werror_flag" || |
| 6006 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6007 | } && test -s conftest$ac_exeext && |
| 6008 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6009 | ac_cv_search_opendir=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6010 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6011 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6013 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6014 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 6015 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6016 | |
| 6017 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 6018 | conftest$ac_exeext |
| 6019 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6020 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 6021 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6022 | done |
| 6023 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6024 | : |
| 6025 | else |
| 6026 | ac_cv_search_opendir=no |
| 6027 | fi |
| 6028 | rm conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6029 | LIBS=$ac_func_search_save_LIBS |
| 6030 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6031 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6032 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6033 | ac_res=$ac_cv_search_opendir |
| 6034 | if test "$ac_res" != no; then |
| 6035 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6036 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6037 | fi |
| 6038 | |
| 6039 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6040 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6041 | { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 6042 | 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] | 6043 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6045 | else |
| 6046 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6047 | /* confdefs.h. */ |
| 6048 | _ACEOF |
| 6049 | cat confdefs.h >>conftest.$ac_ext |
| 6050 | cat >>conftest.$ac_ext <<_ACEOF |
| 6051 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6052 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6053 | int |
| 6054 | main () |
| 6055 | { |
| 6056 | return makedev(0, 0); |
| 6057 | ; |
| 6058 | return 0; |
| 6059 | } |
| 6060 | _ACEOF |
| 6061 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6062 | if { (ac_try="$ac_link" |
| 6063 | case "(($ac_try" in |
| 6064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6065 | *) ac_try_echo=$ac_try;; |
| 6066 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6068 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6069 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6071 | rm -f conftest.er1 |
| 6072 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6074 | (exit $ac_status); } && { |
| 6075 | test -z "$ac_c_werror_flag" || |
| 6076 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6077 | } && test -s conftest$ac_exeext && |
| 6078 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6079 | ac_cv_header_sys_types_h_makedev=yes |
| 6080 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6081 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6083 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6084 | ac_cv_header_sys_types_h_makedev=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6085 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6086 | |
| 6087 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6088 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6089 | |
| 6090 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6091 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 6092 | 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] | 6093 | |
| 6094 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 6095 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6096 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6097 | 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] | 6098 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6100 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6101 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6102 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6103 | else |
| 6104 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6105 | { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 6106 | 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] | 6107 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6108 | /* confdefs.h. */ |
| 6109 | _ACEOF |
| 6110 | cat confdefs.h >>conftest.$ac_ext |
| 6111 | cat >>conftest.$ac_ext <<_ACEOF |
| 6112 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6113 | $ac_includes_default |
| 6114 | #include <sys/mkdev.h> |
| 6115 | _ACEOF |
| 6116 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6117 | if { (ac_try="$ac_compile" |
| 6118 | case "(($ac_try" in |
| 6119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6120 | *) ac_try_echo=$ac_try;; |
| 6121 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6123 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6124 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6126 | rm -f conftest.er1 |
| 6127 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6129 | (exit $ac_status); } && { |
| 6130 | test -z "$ac_c_werror_flag" || |
| 6131 | test ! -s conftest.err |
| 6132 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6133 | ac_header_compiler=yes |
| 6134 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6135 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6137 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6138 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6139 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6140 | |
| 6141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6142 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6143 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6144 | |
| 6145 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6146 | { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 6147 | 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] | 6148 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6149 | /* confdefs.h. */ |
| 6150 | _ACEOF |
| 6151 | cat confdefs.h >>conftest.$ac_ext |
| 6152 | cat >>conftest.$ac_ext <<_ACEOF |
| 6153 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6154 | #include <sys/mkdev.h> |
| 6155 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6156 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6157 | case "(($ac_try" in |
| 6158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6159 | *) ac_try_echo=$ac_try;; |
| 6160 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6162 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6163 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6164 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6165 | rm -f conftest.er1 |
| 6166 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6168 | (exit $ac_status); } >/dev/null && { |
| 6169 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6170 | test ! -s conftest.err |
| 6171 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6172 | ac_header_preproc=yes |
| 6173 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6174 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6176 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6177 | ac_header_preproc=no |
| 6178 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6179 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6180 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6181 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6182 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6183 | |
| 6184 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6185 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6186 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6187 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6188 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6189 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 6190 | 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] | 6191 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6192 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6193 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6194 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 6195 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 6196 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 6197 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 6198 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 6199 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 6200 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6201 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6202 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 6203 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
| 6204 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 6205 | 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] | 6206 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6207 | ## -------------------------------------- ## |
| 6208 | ## Report this to http://bugs.python.org/ ## |
| 6209 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6210 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6211 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6212 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6213 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6214 | { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 6215 | 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] | 6216 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6218 | else |
| 6219 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 6220 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6221 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 6222 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6223 | |
| 6224 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6225 | if test $ac_cv_header_sys_mkdev_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6226 | |
| 6227 | cat >>confdefs.h <<\_ACEOF |
| 6228 | #define MAJOR_IN_MKDEV 1 |
| 6229 | _ACEOF |
| 6230 | |
| 6231 | fi |
| 6232 | |
| 6233 | |
| 6234 | |
| 6235 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 6236 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6237 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6238 | 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] | 6239 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6241 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6242 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6243 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6244 | else |
| 6245 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6246 | { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 6247 | 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] | 6248 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6249 | /* confdefs.h. */ |
| 6250 | _ACEOF |
| 6251 | cat confdefs.h >>conftest.$ac_ext |
| 6252 | cat >>conftest.$ac_ext <<_ACEOF |
| 6253 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6254 | $ac_includes_default |
| 6255 | #include <sys/sysmacros.h> |
| 6256 | _ACEOF |
| 6257 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6258 | if { (ac_try="$ac_compile" |
| 6259 | case "(($ac_try" in |
| 6260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6261 | *) ac_try_echo=$ac_try;; |
| 6262 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6264 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6265 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6267 | rm -f conftest.er1 |
| 6268 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6270 | (exit $ac_status); } && { |
| 6271 | test -z "$ac_c_werror_flag" || |
| 6272 | test ! -s conftest.err |
| 6273 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6274 | ac_header_compiler=yes |
| 6275 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6276 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6278 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6279 | ac_header_compiler=no |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6280 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6281 | |
| 6282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6283 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6284 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6285 | |
| 6286 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6287 | { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 6288 | 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] | 6289 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6290 | /* confdefs.h. */ |
| 6291 | _ACEOF |
| 6292 | cat confdefs.h >>conftest.$ac_ext |
| 6293 | cat >>conftest.$ac_ext <<_ACEOF |
| 6294 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6295 | #include <sys/sysmacros.h> |
| 6296 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6297 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6298 | case "(($ac_try" in |
| 6299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6300 | *) ac_try_echo=$ac_try;; |
| 6301 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6303 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6304 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6305 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6306 | rm -f conftest.er1 |
| 6307 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6309 | (exit $ac_status); } >/dev/null && { |
| 6310 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6311 | test ! -s conftest.err |
| 6312 | }; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6313 | ac_header_preproc=yes |
| 6314 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6315 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6317 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6318 | ac_header_preproc=no |
| 6319 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6320 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6321 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6322 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6323 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6324 | |
| 6325 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6326 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6327 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6328 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6329 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6330 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 6331 | 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] | 6332 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 6333 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6334 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6335 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 6336 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 6337 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 6338 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 6339 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 6340 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 6341 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6342 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6343 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 6344 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
| 6345 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 6346 | 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] | 6347 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 6348 | ## -------------------------------------- ## |
| 6349 | ## Report this to http://bugs.python.org/ ## |
| 6350 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6351 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6352 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6353 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6354 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6355 | { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 6356 | 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] | 6357 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6359 | else |
| 6360 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 6361 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6362 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 6363 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6364 | |
| 6365 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6366 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 6367 | |
| 6368 | cat >>confdefs.h <<\_ACEOF |
| 6369 | #define MAJOR_IN_SYSMACROS 1 |
| 6370 | _ACEOF |
| 6371 | |
| 6372 | fi |
| 6373 | |
| 6374 | |
| 6375 | fi |
| 6376 | fi |
| 6377 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6378 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6379 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6380 | |
| 6381 | for ac_header in term.h |
| 6382 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6383 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6384 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6385 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6386 | 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] | 6387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6388 | else |
| 6389 | cat >conftest.$ac_ext <<_ACEOF |
| 6390 | /* confdefs.h. */ |
| 6391 | _ACEOF |
| 6392 | cat confdefs.h >>conftest.$ac_ext |
| 6393 | cat >>conftest.$ac_ext <<_ACEOF |
| 6394 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6395 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 6396 | #ifdef HAVE_CURSES_H |
| 6397 | #include <curses.h> |
| 6398 | #endif |
| 6399 | |
| 6400 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6401 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6402 | _ACEOF |
| 6403 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6404 | if { (ac_try="$ac_compile" |
| 6405 | case "(($ac_try" in |
| 6406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6407 | *) ac_try_echo=$ac_try;; |
| 6408 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6410 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6411 | ac_status=$? |
| 6412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6413 | rm -f conftest.er1 |
| 6414 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6416 | (exit $ac_status); } && { |
| 6417 | test -z "$ac_c_werror_flag" || |
| 6418 | test ! -s conftest.err |
| 6419 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6420 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6421 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6422 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6424 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6425 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6426 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6427 | |
| 6428 | 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] | 6429 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6430 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6431 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6432 | echo "${ECHO_T}$ac_res" >&6; } |
| 6433 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6434 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6435 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6436 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6437 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 6438 | fi |
| 6439 | |
| 6440 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 6441 | |
| 6442 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6443 | # On Linux, netlink.h requires asm/types.h |
| 6444 | |
| 6445 | for ac_header in linux/netlink.h |
| 6446 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6447 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6448 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6449 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6450 | 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] | 6451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6452 | else |
| 6453 | cat >conftest.$ac_ext <<_ACEOF |
| 6454 | /* confdefs.h. */ |
| 6455 | _ACEOF |
| 6456 | cat confdefs.h >>conftest.$ac_ext |
| 6457 | cat >>conftest.$ac_ext <<_ACEOF |
| 6458 | /* end confdefs.h. */ |
| 6459 | |
| 6460 | #ifdef HAVE_ASM_TYPES_H |
| 6461 | #include <asm/types.h> |
| 6462 | #endif |
| 6463 | #ifdef HAVE_SYS_SOCKET_H |
| 6464 | #include <sys/socket.h> |
| 6465 | #endif |
| 6466 | |
| 6467 | |
| 6468 | #include <$ac_header> |
| 6469 | _ACEOF |
| 6470 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6471 | if { (ac_try="$ac_compile" |
| 6472 | case "(($ac_try" in |
| 6473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6474 | *) ac_try_echo=$ac_try;; |
| 6475 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6477 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6478 | ac_status=$? |
| 6479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6480 | rm -f conftest.er1 |
| 6481 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6483 | (exit $ac_status); } && { |
| 6484 | test -z "$ac_c_werror_flag" || |
| 6485 | test ! -s conftest.err |
| 6486 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6487 | eval "$as_ac_Header=yes" |
| 6488 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6489 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6491 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6492 | eval "$as_ac_Header=no" |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6493 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6494 | |
| 6495 | 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] | 6496 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6497 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6498 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6499 | echo "${ECHO_T}$ac_res" >&6; } |
| 6500 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6501 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6502 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 6503 | _ACEOF |
| 6504 | |
| 6505 | fi |
| 6506 | |
| 6507 | done |
| 6508 | |
| 6509 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6510 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6511 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6512 | { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 6513 | 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] | 6514 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6515 | /* confdefs.h. */ |
| 6516 | _ACEOF |
| 6517 | cat confdefs.h >>conftest.$ac_ext |
| 6518 | cat >>conftest.$ac_ext <<_ACEOF |
| 6519 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6520 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6521 | |
| 6522 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6523 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6524 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6525 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6526 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6527 | |
| 6528 | |
| 6529 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6530 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6531 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6532 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 6533 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6534 | fi |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 6535 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6536 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6537 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 6538 | echo "${ECHO_T}$was_it_defined" >&6; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6539 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6540 | # Check whether using makedev requires defining _OSF_SOURCE |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6541 | { echo "$as_me:$LINENO: checking for makedev" >&5 |
| 6542 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6543 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6544 | /* confdefs.h. */ |
| 6545 | _ACEOF |
| 6546 | cat confdefs.h >>conftest.$ac_ext |
| 6547 | cat >>conftest.$ac_ext <<_ACEOF |
| 6548 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6549 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6550 | int |
| 6551 | main () |
| 6552 | { |
| 6553 | makedev(0, 0) |
| 6554 | ; |
| 6555 | return 0; |
| 6556 | } |
| 6557 | _ACEOF |
| 6558 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6559 | if { (ac_try="$ac_link" |
| 6560 | case "(($ac_try" in |
| 6561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6562 | *) ac_try_echo=$ac_try;; |
| 6563 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6565 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6566 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6568 | rm -f conftest.er1 |
| 6569 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6571 | (exit $ac_status); } && { |
| 6572 | test -z "$ac_c_werror_flag" || |
| 6573 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6574 | } && test -s conftest$ac_exeext && |
| 6575 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6576 | ac_cv_has_makedev=yes |
| 6577 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6578 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6580 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6581 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6582 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6583 | |
| 6584 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6585 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6586 | if test "$ac_cv_has_makedev" = "no"; then |
| 6587 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 6588 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6589 | /* confdefs.h. */ |
| 6590 | _ACEOF |
| 6591 | cat confdefs.h >>conftest.$ac_ext |
| 6592 | cat >>conftest.$ac_ext <<_ACEOF |
| 6593 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6594 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 6595 | #define _OSF_SOURCE 1 |
| 6596 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6597 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6598 | int |
| 6599 | main () |
| 6600 | { |
| 6601 | makedev(0, 0) |
| 6602 | ; |
| 6603 | return 0; |
| 6604 | } |
| 6605 | _ACEOF |
| 6606 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6607 | if { (ac_try="$ac_link" |
| 6608 | case "(($ac_try" in |
| 6609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6610 | *) ac_try_echo=$ac_try;; |
| 6611 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6613 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6614 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6616 | rm -f conftest.er1 |
| 6617 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6619 | (exit $ac_status); } && { |
| 6620 | test -z "$ac_c_werror_flag" || |
| 6621 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6622 | } && test -s conftest$ac_exeext && |
| 6623 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6624 | ac_cv_has_makedev=yes |
| 6625 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6626 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6628 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6629 | ac_cv_has_makedev=no |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6630 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6631 | |
| 6632 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6633 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6634 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6635 | |
| 6636 | cat >>confdefs.h <<\_ACEOF |
| 6637 | #define _OSF_SOURCE 1 |
| 6638 | _ACEOF |
| 6639 | |
| 6640 | fi |
| 6641 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6642 | { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 6643 | echo "${ECHO_T}$ac_cv_has_makedev" >&6; } |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 6644 | if test "$ac_cv_has_makedev" = "yes"; then |
| 6645 | |
| 6646 | cat >>confdefs.h <<\_ACEOF |
| 6647 | #define HAVE_MAKEDEV 1 |
| 6648 | _ACEOF |
| 6649 | |
| 6650 | fi |
| 6651 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6652 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 6653 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 6654 | # defined, but the compiler does not support pragma redefine_extname, |
| 6655 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 6656 | # structures (such as rlimit64) without declaring them. As a |
| 6657 | # work-around, disable LFS on such configurations |
| 6658 | |
| 6659 | use_lfs=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6660 | { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 6661 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6662 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6663 | /* confdefs.h. */ |
| 6664 | _ACEOF |
| 6665 | cat confdefs.h >>conftest.$ac_ext |
| 6666 | cat >>conftest.$ac_ext <<_ACEOF |
| 6667 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6668 | |
| 6669 | #define _LARGEFILE_SOURCE 1 |
| 6670 | #define _FILE_OFFSET_BITS 64 |
| 6671 | #include <sys/resource.h> |
| 6672 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6673 | int |
| 6674 | main () |
| 6675 | { |
| 6676 | struct rlimit foo; |
| 6677 | ; |
| 6678 | return 0; |
| 6679 | } |
| 6680 | _ACEOF |
| 6681 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6682 | if { (ac_try="$ac_compile" |
| 6683 | case "(($ac_try" in |
| 6684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6685 | *) ac_try_echo=$ac_try;; |
| 6686 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6688 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6689 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6691 | rm -f conftest.er1 |
| 6692 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6694 | (exit $ac_status); } && { |
| 6695 | test -z "$ac_c_werror_flag" || |
| 6696 | test ! -s conftest.err |
| 6697 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6698 | sol_lfs_bug=no |
| 6699 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6700 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6702 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6703 | sol_lfs_bug=yes |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6704 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6705 | |
| 6706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6707 | { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 6708 | echo "${ECHO_T}$sol_lfs_bug" >&6; } |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6709 | if test "$sol_lfs_bug" = "yes"; then |
| 6710 | use_lfs=no |
| 6711 | fi |
| 6712 | |
| 6713 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6714 | # Two defines needed to enable largefile support on various platforms |
| 6715 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6717 | cat >>confdefs.h <<\_ACEOF |
| 6718 | #define _LARGEFILE_SOURCE 1 |
| 6719 | _ACEOF |
| 6720 | |
| 6721 | |
| 6722 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6723 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6724 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 6725 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 6726 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6727 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 6728 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 6729 | cat >> confdefs.h <<\EOF |
| 6730 | #if defined(SCO_DS) |
| 6731 | #undef _OFF_T |
| 6732 | #endif |
| 6733 | EOF |
| 6734 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6735 | # Type availability checks |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6736 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 6737 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6738 | if test "${ac_cv_type_mode_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6740 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6741 | cat >conftest.$ac_ext <<_ACEOF |
| 6742 | /* confdefs.h. */ |
| 6743 | _ACEOF |
| 6744 | cat confdefs.h >>conftest.$ac_ext |
| 6745 | cat >>conftest.$ac_ext <<_ACEOF |
| 6746 | /* end confdefs.h. */ |
| 6747 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6748 | typedef mode_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6749 | int |
| 6750 | main () |
| 6751 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6752 | if ((ac__type_new_ *) 0) |
| 6753 | return 0; |
| 6754 | if (sizeof (ac__type_new_)) |
| 6755 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6756 | ; |
| 6757 | return 0; |
| 6758 | } |
| 6759 | _ACEOF |
| 6760 | rm -f conftest.$ac_objext |
| 6761 | if { (ac_try="$ac_compile" |
| 6762 | case "(($ac_try" in |
| 6763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6764 | *) ac_try_echo=$ac_try;; |
| 6765 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6767 | (eval "$ac_compile") 2>conftest.er1 |
| 6768 | ac_status=$? |
| 6769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6770 | rm -f conftest.er1 |
| 6771 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6773 | (exit $ac_status); } && { |
| 6774 | test -z "$ac_c_werror_flag" || |
| 6775 | test ! -s conftest.err |
| 6776 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6777 | ac_cv_type_mode_t=yes |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6778 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6779 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6781 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6782 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6783 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6784 | |
| 6785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6786 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6787 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 6788 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
| 6789 | if test $ac_cv_type_mode_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6790 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6791 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6792 | |
| 6793 | cat >>confdefs.h <<_ACEOF |
| 6794 | #define mode_t int |
| 6795 | _ACEOF |
| 6796 | |
| 6797 | fi |
| 6798 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6799 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 6800 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6801 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6803 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6804 | cat >conftest.$ac_ext <<_ACEOF |
| 6805 | /* confdefs.h. */ |
| 6806 | _ACEOF |
| 6807 | cat confdefs.h >>conftest.$ac_ext |
| 6808 | cat >>conftest.$ac_ext <<_ACEOF |
| 6809 | /* end confdefs.h. */ |
| 6810 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6811 | typedef off_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6812 | int |
| 6813 | main () |
| 6814 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6815 | if ((ac__type_new_ *) 0) |
| 6816 | return 0; |
| 6817 | if (sizeof (ac__type_new_)) |
| 6818 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6819 | ; |
| 6820 | return 0; |
| 6821 | } |
| 6822 | _ACEOF |
| 6823 | rm -f conftest.$ac_objext |
| 6824 | if { (ac_try="$ac_compile" |
| 6825 | case "(($ac_try" in |
| 6826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6827 | *) ac_try_echo=$ac_try;; |
| 6828 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6830 | (eval "$ac_compile") 2>conftest.er1 |
| 6831 | ac_status=$? |
| 6832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6833 | rm -f conftest.er1 |
| 6834 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6836 | (exit $ac_status); } && { |
| 6837 | test -z "$ac_c_werror_flag" || |
| 6838 | test ! -s conftest.err |
| 6839 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6840 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6841 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6842 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6844 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6845 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6846 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6847 | |
| 6848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6849 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6850 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 6851 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 6852 | if test $ac_cv_type_off_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6853 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6855 | |
| 6856 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6857 | #define off_t long int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6858 | _ACEOF |
| 6859 | |
| 6860 | fi |
| 6861 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6862 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 6863 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6864 | if test "${ac_cv_type_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6866 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6867 | cat >conftest.$ac_ext <<_ACEOF |
| 6868 | /* confdefs.h. */ |
| 6869 | _ACEOF |
| 6870 | cat confdefs.h >>conftest.$ac_ext |
| 6871 | cat >>conftest.$ac_ext <<_ACEOF |
| 6872 | /* end confdefs.h. */ |
| 6873 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6874 | typedef pid_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6875 | int |
| 6876 | main () |
| 6877 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6878 | if ((ac__type_new_ *) 0) |
| 6879 | return 0; |
| 6880 | if (sizeof (ac__type_new_)) |
| 6881 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6882 | ; |
| 6883 | return 0; |
| 6884 | } |
| 6885 | _ACEOF |
| 6886 | rm -f conftest.$ac_objext |
| 6887 | if { (ac_try="$ac_compile" |
| 6888 | case "(($ac_try" in |
| 6889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6890 | *) ac_try_echo=$ac_try;; |
| 6891 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6893 | (eval "$ac_compile") 2>conftest.er1 |
| 6894 | ac_status=$? |
| 6895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6896 | rm -f conftest.er1 |
| 6897 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6899 | (exit $ac_status); } && { |
| 6900 | test -z "$ac_c_werror_flag" || |
| 6901 | test ! -s conftest.err |
| 6902 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6903 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6904 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6905 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6907 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6908 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6909 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6910 | |
| 6911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6912 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6913 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6914 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 6915 | if test $ac_cv_type_pid_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6916 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6917 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6918 | |
| 6919 | cat >>confdefs.h <<_ACEOF |
| 6920 | #define pid_t int |
| 6921 | _ACEOF |
| 6922 | |
| 6923 | fi |
| 6924 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6925 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6926 | 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] | 6927 | if test "${ac_cv_type_signal+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6929 | else |
| 6930 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6931 | /* confdefs.h. */ |
| 6932 | _ACEOF |
| 6933 | cat confdefs.h >>conftest.$ac_ext |
| 6934 | cat >>conftest.$ac_ext <<_ACEOF |
| 6935 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6936 | #include <sys/types.h> |
| 6937 | #include <signal.h> |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6939 | int |
| 6940 | main () |
| 6941 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6942 | return *(signal (0, 0)) (0) == 1; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6943 | ; |
| 6944 | return 0; |
| 6945 | } |
| 6946 | _ACEOF |
| 6947 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6948 | if { (ac_try="$ac_compile" |
| 6949 | case "(($ac_try" in |
| 6950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6951 | *) ac_try_echo=$ac_try;; |
| 6952 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6954 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6955 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6957 | rm -f conftest.er1 |
| 6958 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6960 | (exit $ac_status); } && { |
| 6961 | test -z "$ac_c_werror_flag" || |
| 6962 | test ! -s conftest.err |
| 6963 | } && test -s conftest.$ac_objext; then |
| 6964 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6965 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6966 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6968 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6969 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6970 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 6971 | |
| 6972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6973 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6974 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6975 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6976 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6977 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6978 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6979 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6980 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6981 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6982 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6983 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6984 | if test "${ac_cv_type_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6986 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6987 | cat >conftest.$ac_ext <<_ACEOF |
| 6988 | /* confdefs.h. */ |
| 6989 | _ACEOF |
| 6990 | cat confdefs.h >>conftest.$ac_ext |
| 6991 | cat >>conftest.$ac_ext <<_ACEOF |
| 6992 | /* end confdefs.h. */ |
| 6993 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6994 | typedef size_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 6995 | int |
| 6996 | main () |
| 6997 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 6998 | if ((ac__type_new_ *) 0) |
| 6999 | return 0; |
| 7000 | if (sizeof (ac__type_new_)) |
| 7001 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7002 | ; |
| 7003 | return 0; |
| 7004 | } |
| 7005 | _ACEOF |
| 7006 | rm -f conftest.$ac_objext |
| 7007 | if { (ac_try="$ac_compile" |
| 7008 | case "(($ac_try" in |
| 7009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7010 | *) ac_try_echo=$ac_try;; |
| 7011 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7013 | (eval "$ac_compile") 2>conftest.er1 |
| 7014 | ac_status=$? |
| 7015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7016 | rm -f conftest.er1 |
| 7017 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7019 | (exit $ac_status); } && { |
| 7020 | test -z "$ac_c_werror_flag" || |
| 7021 | test ! -s conftest.err |
| 7022 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7023 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7024 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7025 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7027 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7028 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7029 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7030 | |
| 7031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7032 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7033 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 7034 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 7035 | if test $ac_cv_type_size_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7036 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7037 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7038 | |
| 7039 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7040 | #define size_t unsigned int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7041 | _ACEOF |
| 7042 | |
| 7043 | fi |
| 7044 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7045 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 7046 | 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] | 7047 | if test "${ac_cv_type_uid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7049 | else |
| 7050 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7051 | /* confdefs.h. */ |
| 7052 | _ACEOF |
| 7053 | cat confdefs.h >>conftest.$ac_ext |
| 7054 | cat >>conftest.$ac_ext <<_ACEOF |
| 7055 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7056 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7057 | |
| 7058 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7059 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7060 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7061 | ac_cv_type_uid_t=yes |
| 7062 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7063 | ac_cv_type_uid_t=no |
| 7064 | fi |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 7065 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7066 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7067 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7068 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 7069 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7070 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7072 | cat >>confdefs.h <<\_ACEOF |
| 7073 | #define uid_t int |
| 7074 | _ACEOF |
| 7075 | |
| 7076 | |
| 7077 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7078 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7079 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7080 | |
| 7081 | fi |
| 7082 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7083 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7084 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 7085 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7086 | if test "${ac_cv_c_uint32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7088 | else |
| 7089 | ac_cv_c_uint32_t=no |
| 7090 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
| 7091 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7092 | cat >conftest.$ac_ext <<_ACEOF |
| 7093 | /* confdefs.h. */ |
| 7094 | _ACEOF |
| 7095 | cat confdefs.h >>conftest.$ac_ext |
| 7096 | cat >>conftest.$ac_ext <<_ACEOF |
| 7097 | /* end confdefs.h. */ |
| 7098 | $ac_includes_default |
| 7099 | int |
| 7100 | main () |
| 7101 | { |
| 7102 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
| 7103 | test_array [0] = 0 |
| 7104 | |
| 7105 | ; |
| 7106 | return 0; |
| 7107 | } |
| 7108 | _ACEOF |
| 7109 | rm -f conftest.$ac_objext |
| 7110 | if { (ac_try="$ac_compile" |
| 7111 | case "(($ac_try" in |
| 7112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7113 | *) ac_try_echo=$ac_try;; |
| 7114 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7116 | (eval "$ac_compile") 2>conftest.er1 |
| 7117 | ac_status=$? |
| 7118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7119 | rm -f conftest.er1 |
| 7120 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7122 | (exit $ac_status); } && { |
| 7123 | test -z "$ac_c_werror_flag" || |
| 7124 | test ! -s conftest.err |
| 7125 | } && test -s conftest.$ac_objext; then |
| 7126 | case $ac_type in |
| 7127 | uint32_t) ac_cv_c_uint32_t=yes ;; |
| 7128 | *) ac_cv_c_uint32_t=$ac_type ;; |
| 7129 | esac |
| 7130 | |
| 7131 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7132 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7134 | |
| 7135 | |
| 7136 | fi |
| 7137 | |
| 7138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7139 | test "$ac_cv_c_uint32_t" != no && break |
| 7140 | done |
| 7141 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7142 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
| 7143 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7144 | case $ac_cv_c_uint32_t in #( |
| 7145 | no|yes) ;; #( |
| 7146 | *) |
| 7147 | |
| 7148 | cat >>confdefs.h <<\_ACEOF |
| 7149 | #define _UINT32_T 1 |
| 7150 | _ACEOF |
| 7151 | |
| 7152 | |
| 7153 | cat >>confdefs.h <<_ACEOF |
| 7154 | #define uint32_t $ac_cv_c_uint32_t |
| 7155 | _ACEOF |
| 7156 | ;; |
| 7157 | esac |
| 7158 | |
| 7159 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7160 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 7161 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7162 | if test "${ac_cv_c_uint64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7164 | else |
| 7165 | ac_cv_c_uint64_t=no |
| 7166 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ |
| 7167 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 7168 | cat >conftest.$ac_ext <<_ACEOF |
| 7169 | /* confdefs.h. */ |
| 7170 | _ACEOF |
| 7171 | cat confdefs.h >>conftest.$ac_ext |
| 7172 | cat >>conftest.$ac_ext <<_ACEOF |
| 7173 | /* end confdefs.h. */ |
| 7174 | $ac_includes_default |
| 7175 | int |
| 7176 | main () |
| 7177 | { |
| 7178 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
| 7179 | test_array [0] = 0 |
| 7180 | |
| 7181 | ; |
| 7182 | return 0; |
| 7183 | } |
| 7184 | _ACEOF |
| 7185 | rm -f conftest.$ac_objext |
| 7186 | if { (ac_try="$ac_compile" |
| 7187 | case "(($ac_try" in |
| 7188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7189 | *) ac_try_echo=$ac_try;; |
| 7190 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7192 | (eval "$ac_compile") 2>conftest.er1 |
| 7193 | ac_status=$? |
| 7194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7195 | rm -f conftest.er1 |
| 7196 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7198 | (exit $ac_status); } && { |
| 7199 | test -z "$ac_c_werror_flag" || |
| 7200 | test ! -s conftest.err |
| 7201 | } && test -s conftest.$ac_objext; then |
| 7202 | case $ac_type in |
| 7203 | uint64_t) ac_cv_c_uint64_t=yes ;; |
| 7204 | *) ac_cv_c_uint64_t=$ac_type ;; |
| 7205 | esac |
| 7206 | |
| 7207 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7208 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7210 | |
| 7211 | |
| 7212 | fi |
| 7213 | |
| 7214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7215 | test "$ac_cv_c_uint64_t" != no && break |
| 7216 | done |
| 7217 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7218 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
| 7219 | echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7220 | case $ac_cv_c_uint64_t in #( |
| 7221 | no|yes) ;; #( |
| 7222 | *) |
| 7223 | |
| 7224 | cat >>confdefs.h <<\_ACEOF |
| 7225 | #define _UINT64_T 1 |
| 7226 | _ACEOF |
| 7227 | |
| 7228 | |
| 7229 | cat >>confdefs.h <<_ACEOF |
| 7230 | #define uint64_t $ac_cv_c_uint64_t |
| 7231 | _ACEOF |
| 7232 | ;; |
| 7233 | esac |
| 7234 | |
| 7235 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7236 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 7237 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7238 | if test "${ac_cv_c_int32_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7240 | else |
| 7241 | ac_cv_c_int32_t=no |
| 7242 | for ac_type in 'int32_t' 'int' 'long int' \ |
| 7243 | 'long long int' 'short int' 'signed char'; do |
| 7244 | cat >conftest.$ac_ext <<_ACEOF |
| 7245 | /* confdefs.h. */ |
| 7246 | _ACEOF |
| 7247 | cat confdefs.h >>conftest.$ac_ext |
| 7248 | cat >>conftest.$ac_ext <<_ACEOF |
| 7249 | /* end confdefs.h. */ |
| 7250 | $ac_includes_default |
| 7251 | int |
| 7252 | main () |
| 7253 | { |
| 7254 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
| 7255 | test_array [0] = 0 |
| 7256 | |
| 7257 | ; |
| 7258 | return 0; |
| 7259 | } |
| 7260 | _ACEOF |
| 7261 | rm -f conftest.$ac_objext |
| 7262 | if { (ac_try="$ac_compile" |
| 7263 | case "(($ac_try" in |
| 7264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7265 | *) ac_try_echo=$ac_try;; |
| 7266 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7268 | (eval "$ac_compile") 2>conftest.er1 |
| 7269 | ac_status=$? |
| 7270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7271 | rm -f conftest.er1 |
| 7272 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7274 | (exit $ac_status); } && { |
| 7275 | test -z "$ac_c_werror_flag" || |
| 7276 | test ! -s conftest.err |
| 7277 | } && test -s conftest.$ac_objext; then |
| 7278 | cat >conftest.$ac_ext <<_ACEOF |
| 7279 | /* confdefs.h. */ |
| 7280 | _ACEOF |
| 7281 | cat confdefs.h >>conftest.$ac_ext |
| 7282 | cat >>conftest.$ac_ext <<_ACEOF |
| 7283 | /* end confdefs.h. */ |
| 7284 | $ac_includes_default |
| 7285 | int |
| 7286 | main () |
| 7287 | { |
| 7288 | 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] | 7289 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7290 | test_array [0] = 0 |
| 7291 | |
| 7292 | ; |
| 7293 | return 0; |
| 7294 | } |
| 7295 | _ACEOF |
| 7296 | rm -f conftest.$ac_objext |
| 7297 | if { (ac_try="$ac_compile" |
| 7298 | case "(($ac_try" in |
| 7299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7300 | *) ac_try_echo=$ac_try;; |
| 7301 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7303 | (eval "$ac_compile") 2>conftest.er1 |
| 7304 | ac_status=$? |
| 7305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7306 | rm -f conftest.er1 |
| 7307 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7309 | (exit $ac_status); } && { |
| 7310 | test -z "$ac_c_werror_flag" || |
| 7311 | test ! -s conftest.err |
| 7312 | } && test -s conftest.$ac_objext; then |
| 7313 | : |
| 7314 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7315 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7317 | |
| 7318 | case $ac_type in |
| 7319 | int32_t) ac_cv_c_int32_t=yes ;; |
| 7320 | *) ac_cv_c_int32_t=$ac_type ;; |
| 7321 | esac |
| 7322 | |
| 7323 | fi |
| 7324 | |
| 7325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7326 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7327 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7329 | |
| 7330 | |
| 7331 | fi |
| 7332 | |
| 7333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7334 | test "$ac_cv_c_int32_t" != no && break |
| 7335 | done |
| 7336 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7337 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
| 7338 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7339 | case $ac_cv_c_int32_t in #( |
| 7340 | no|yes) ;; #( |
| 7341 | *) |
| 7342 | |
| 7343 | cat >>confdefs.h <<_ACEOF |
| 7344 | #define int32_t $ac_cv_c_int32_t |
| 7345 | _ACEOF |
| 7346 | ;; |
| 7347 | esac |
| 7348 | |
| 7349 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7350 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 7351 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7352 | if test "${ac_cv_c_int64_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7354 | else |
| 7355 | ac_cv_c_int64_t=no |
| 7356 | for ac_type in 'int64_t' 'int' 'long int' \ |
| 7357 | 'long long int' 'short int' 'signed char'; do |
| 7358 | cat >conftest.$ac_ext <<_ACEOF |
| 7359 | /* confdefs.h. */ |
| 7360 | _ACEOF |
| 7361 | cat confdefs.h >>conftest.$ac_ext |
| 7362 | cat >>conftest.$ac_ext <<_ACEOF |
| 7363 | /* end confdefs.h. */ |
| 7364 | $ac_includes_default |
| 7365 | int |
| 7366 | main () |
| 7367 | { |
| 7368 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
| 7369 | test_array [0] = 0 |
| 7370 | |
| 7371 | ; |
| 7372 | return 0; |
| 7373 | } |
| 7374 | _ACEOF |
| 7375 | rm -f conftest.$ac_objext |
| 7376 | if { (ac_try="$ac_compile" |
| 7377 | case "(($ac_try" in |
| 7378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7379 | *) ac_try_echo=$ac_try;; |
| 7380 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7382 | (eval "$ac_compile") 2>conftest.er1 |
| 7383 | ac_status=$? |
| 7384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7385 | rm -f conftest.er1 |
| 7386 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7388 | (exit $ac_status); } && { |
| 7389 | test -z "$ac_c_werror_flag" || |
| 7390 | test ! -s conftest.err |
| 7391 | } && test -s conftest.$ac_objext; then |
| 7392 | cat >conftest.$ac_ext <<_ACEOF |
| 7393 | /* confdefs.h. */ |
| 7394 | _ACEOF |
| 7395 | cat confdefs.h >>conftest.$ac_ext |
| 7396 | cat >>conftest.$ac_ext <<_ACEOF |
| 7397 | /* end confdefs.h. */ |
| 7398 | $ac_includes_default |
| 7399 | int |
| 7400 | main () |
| 7401 | { |
| 7402 | 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] | 7403 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7404 | test_array [0] = 0 |
| 7405 | |
| 7406 | ; |
| 7407 | return 0; |
| 7408 | } |
| 7409 | _ACEOF |
| 7410 | rm -f conftest.$ac_objext |
| 7411 | if { (ac_try="$ac_compile" |
| 7412 | case "(($ac_try" in |
| 7413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7414 | *) ac_try_echo=$ac_try;; |
| 7415 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7417 | (eval "$ac_compile") 2>conftest.er1 |
| 7418 | ac_status=$? |
| 7419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7420 | rm -f conftest.er1 |
| 7421 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7423 | (exit $ac_status); } && { |
| 7424 | test -z "$ac_c_werror_flag" || |
| 7425 | test ! -s conftest.err |
| 7426 | } && test -s conftest.$ac_objext; then |
| 7427 | : |
| 7428 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7429 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7431 | |
| 7432 | case $ac_type in |
| 7433 | int64_t) ac_cv_c_int64_t=yes ;; |
| 7434 | *) ac_cv_c_int64_t=$ac_type ;; |
| 7435 | esac |
| 7436 | |
| 7437 | fi |
| 7438 | |
| 7439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7440 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7441 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7443 | |
| 7444 | |
| 7445 | fi |
| 7446 | |
| 7447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7448 | test "$ac_cv_c_int64_t" != no && break |
| 7449 | done |
| 7450 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7451 | { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
| 7452 | echo "${ECHO_T}$ac_cv_c_int64_t" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 7453 | case $ac_cv_c_int64_t in #( |
| 7454 | no|yes) ;; #( |
| 7455 | *) |
| 7456 | |
| 7457 | cat >>confdefs.h <<_ACEOF |
| 7458 | #define int64_t $ac_cv_c_int64_t |
| 7459 | _ACEOF |
| 7460 | ;; |
| 7461 | esac |
| 7462 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7463 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 7464 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7465 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7467 | else |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7468 | cat >conftest.$ac_ext <<_ACEOF |
| 7469 | /* confdefs.h. */ |
| 7470 | _ACEOF |
| 7471 | cat confdefs.h >>conftest.$ac_ext |
| 7472 | cat >>conftest.$ac_ext <<_ACEOF |
| 7473 | /* end confdefs.h. */ |
| 7474 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7475 | typedef ssize_t ac__type_new_; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7476 | int |
| 7477 | main () |
| 7478 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7479 | if ((ac__type_new_ *) 0) |
| 7480 | return 0; |
| 7481 | if (sizeof (ac__type_new_)) |
| 7482 | return 0; |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7483 | ; |
| 7484 | return 0; |
| 7485 | } |
| 7486 | _ACEOF |
| 7487 | rm -f conftest.$ac_objext |
| 7488 | if { (ac_try="$ac_compile" |
| 7489 | case "(($ac_try" in |
| 7490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7491 | *) ac_try_echo=$ac_try;; |
| 7492 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7494 | (eval "$ac_compile") 2>conftest.er1 |
| 7495 | ac_status=$? |
| 7496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7497 | rm -f conftest.er1 |
| 7498 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 7500 | (exit $ac_status); } && { |
| 7501 | test -z "$ac_c_werror_flag" || |
| 7502 | test ! -s conftest.err |
| 7503 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7504 | ac_cv_type_ssize_t=yes |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7505 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7506 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7508 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7509 | ac_cv_type_ssize_t=no |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7510 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7511 | |
| 7512 | 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] | 7513 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7514 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 7515 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
| 7516 | if test $ac_cv_type_ssize_t = yes; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 7517 | |
| 7518 | cat >>confdefs.h <<\_ACEOF |
| 7519 | #define HAVE_SSIZE_T 1 |
| 7520 | _ACEOF |
| 7521 | |
| 7522 | fi |
| 7523 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7524 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7525 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 7526 | # ANSI C requires sizeof(char) == 1, so no need to check it |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7527 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 7528 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
| 7529 | if test "${ac_cv_type_int+set}" = set; then |
| 7530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7531 | else |
| 7532 | cat >conftest.$ac_ext <<_ACEOF |
| 7533 | /* confdefs.h. */ |
| 7534 | _ACEOF |
| 7535 | cat confdefs.h >>conftest.$ac_ext |
| 7536 | cat >>conftest.$ac_ext <<_ACEOF |
| 7537 | /* end confdefs.h. */ |
| 7538 | $ac_includes_default |
| 7539 | typedef int ac__type_new_; |
| 7540 | int |
| 7541 | main () |
| 7542 | { |
| 7543 | if ((ac__type_new_ *) 0) |
| 7544 | return 0; |
| 7545 | if (sizeof (ac__type_new_)) |
| 7546 | return 0; |
| 7547 | ; |
| 7548 | return 0; |
| 7549 | } |
| 7550 | _ACEOF |
| 7551 | rm -f conftest.$ac_objext |
| 7552 | if { (ac_try="$ac_compile" |
| 7553 | case "(($ac_try" in |
| 7554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7555 | *) ac_try_echo=$ac_try;; |
| 7556 | esac |
| 7557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7558 | (eval "$ac_compile") 2>conftest.er1 |
| 7559 | ac_status=$? |
| 7560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7561 | rm -f conftest.er1 |
| 7562 | cat conftest.err >&5 |
| 7563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7564 | (exit $ac_status); } && { |
| 7565 | test -z "$ac_c_werror_flag" || |
| 7566 | test ! -s conftest.err |
| 7567 | } && test -s conftest.$ac_objext; then |
| 7568 | ac_cv_type_int=yes |
| 7569 | else |
| 7570 | echo "$as_me: failed program was:" >&5 |
| 7571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7572 | |
| 7573 | ac_cv_type_int=no |
| 7574 | fi |
| 7575 | |
| 7576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7577 | fi |
| 7578 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 7579 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 7580 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7581 | # The cast to long int works around a bug in the HP C Compiler |
| 7582 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7583 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7584 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7585 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 7586 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7587 | if test "${ac_cv_sizeof_int+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7590 | if test "$cross_compiling" = yes; then |
| 7591 | # Depending upon the size, compute the lo and hi bounds. |
| 7592 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7593 | /* confdefs.h. */ |
| 7594 | _ACEOF |
| 7595 | cat confdefs.h >>conftest.$ac_ext |
| 7596 | cat >>conftest.$ac_ext <<_ACEOF |
| 7597 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7598 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7599 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7600 | int |
| 7601 | main () |
| 7602 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7603 | 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] | 7604 | test_array [0] = 0 |
| 7605 | |
| 7606 | ; |
| 7607 | return 0; |
| 7608 | } |
| 7609 | _ACEOF |
| 7610 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7611 | if { (ac_try="$ac_compile" |
| 7612 | case "(($ac_try" in |
| 7613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7614 | *) ac_try_echo=$ac_try;; |
| 7615 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7617 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7618 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7620 | rm -f conftest.er1 |
| 7621 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7623 | (exit $ac_status); } && { |
| 7624 | test -z "$ac_c_werror_flag" || |
| 7625 | test ! -s conftest.err |
| 7626 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7627 | ac_lo=0 ac_mid=0 |
| 7628 | while :; do |
| 7629 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7630 | /* confdefs.h. */ |
| 7631 | _ACEOF |
| 7632 | cat confdefs.h >>conftest.$ac_ext |
| 7633 | cat >>conftest.$ac_ext <<_ACEOF |
| 7634 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7635 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7636 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7637 | int |
| 7638 | main () |
| 7639 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7640 | 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] | 7641 | test_array [0] = 0 |
| 7642 | |
| 7643 | ; |
| 7644 | return 0; |
| 7645 | } |
| 7646 | _ACEOF |
| 7647 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7648 | if { (ac_try="$ac_compile" |
| 7649 | case "(($ac_try" in |
| 7650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7651 | *) ac_try_echo=$ac_try;; |
| 7652 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7654 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7655 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7657 | rm -f conftest.er1 |
| 7658 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7660 | (exit $ac_status); } && { |
| 7661 | test -z "$ac_c_werror_flag" || |
| 7662 | test ! -s conftest.err |
| 7663 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7664 | ac_hi=$ac_mid; break |
| 7665 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7666 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7668 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7669 | ac_lo=`expr $ac_mid + 1` |
| 7670 | if test $ac_lo -le $ac_mid; then |
| 7671 | ac_lo= ac_hi= |
| 7672 | break |
| 7673 | fi |
| 7674 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7675 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7676 | |
| 7677 | 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] | 7678 | done |
| 7679 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7680 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7682 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7683 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7684 | /* confdefs.h. */ |
| 7685 | _ACEOF |
| 7686 | cat confdefs.h >>conftest.$ac_ext |
| 7687 | cat >>conftest.$ac_ext <<_ACEOF |
| 7688 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7689 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7690 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7691 | int |
| 7692 | main () |
| 7693 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7694 | 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] | 7695 | test_array [0] = 0 |
| 7696 | |
| 7697 | ; |
| 7698 | return 0; |
| 7699 | } |
| 7700 | _ACEOF |
| 7701 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7702 | if { (ac_try="$ac_compile" |
| 7703 | case "(($ac_try" in |
| 7704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7705 | *) ac_try_echo=$ac_try;; |
| 7706 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7708 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7709 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7711 | rm -f conftest.er1 |
| 7712 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7714 | (exit $ac_status); } && { |
| 7715 | test -z "$ac_c_werror_flag" || |
| 7716 | test ! -s conftest.err |
| 7717 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7718 | ac_hi=-1 ac_mid=-1 |
| 7719 | while :; do |
| 7720 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7721 | /* confdefs.h. */ |
| 7722 | _ACEOF |
| 7723 | cat confdefs.h >>conftest.$ac_ext |
| 7724 | cat >>conftest.$ac_ext <<_ACEOF |
| 7725 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7726 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7727 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7728 | int |
| 7729 | main () |
| 7730 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7731 | 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] | 7732 | test_array [0] = 0 |
| 7733 | |
| 7734 | ; |
| 7735 | return 0; |
| 7736 | } |
| 7737 | _ACEOF |
| 7738 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7739 | if { (ac_try="$ac_compile" |
| 7740 | case "(($ac_try" in |
| 7741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7742 | *) ac_try_echo=$ac_try;; |
| 7743 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7745 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7746 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7748 | rm -f conftest.er1 |
| 7749 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7751 | (exit $ac_status); } && { |
| 7752 | test -z "$ac_c_werror_flag" || |
| 7753 | test ! -s conftest.err |
| 7754 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7755 | ac_lo=$ac_mid; break |
| 7756 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7757 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7759 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7760 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7761 | if test $ac_mid -le $ac_hi; then |
| 7762 | ac_lo= ac_hi= |
| 7763 | break |
| 7764 | fi |
| 7765 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7766 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7767 | |
| 7768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7769 | done |
| 7770 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7771 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7773 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7774 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7775 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7776 | |
| 7777 | 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] | 7778 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7779 | |
| 7780 | 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] | 7781 | # Binary search between lo and hi bounds. |
| 7782 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7783 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7784 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7785 | /* confdefs.h. */ |
| 7786 | _ACEOF |
| 7787 | cat confdefs.h >>conftest.$ac_ext |
| 7788 | cat >>conftest.$ac_ext <<_ACEOF |
| 7789 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7790 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7791 | typedef int ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7792 | int |
| 7793 | main () |
| 7794 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7795 | 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] | 7796 | test_array [0] = 0 |
| 7797 | |
| 7798 | ; |
| 7799 | return 0; |
| 7800 | } |
| 7801 | _ACEOF |
| 7802 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7803 | if { (ac_try="$ac_compile" |
| 7804 | case "(($ac_try" in |
| 7805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7806 | *) ac_try_echo=$ac_try;; |
| 7807 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7809 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7810 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7812 | rm -f conftest.er1 |
| 7813 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7815 | (exit $ac_status); } && { |
| 7816 | test -z "$ac_c_werror_flag" || |
| 7817 | test ! -s conftest.err |
| 7818 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7819 | ac_hi=$ac_mid |
| 7820 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7821 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7823 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7824 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7825 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7826 | |
| 7827 | 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] | 7828 | done |
| 7829 | case $ac_lo in |
| 7830 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7831 | '') if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7832 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7833 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7834 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7835 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7836 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7837 | else |
| 7838 | ac_cv_sizeof_int=0 |
| 7839 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7840 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7841 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7842 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7843 | /* confdefs.h. */ |
| 7844 | _ACEOF |
| 7845 | cat confdefs.h >>conftest.$ac_ext |
| 7846 | cat >>conftest.$ac_ext <<_ACEOF |
| 7847 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7848 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7849 | typedef int ac__type_sizeof_; |
| 7850 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 7851 | 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] | 7852 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7853 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7854 | int |
| 7855 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7856 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7857 | |
| 7858 | FILE *f = fopen ("conftest.val", "w"); |
| 7859 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7860 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7861 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7862 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7863 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7864 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7865 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7866 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7867 | } |
| 7868 | else |
| 7869 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7870 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7871 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7872 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7873 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7874 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7875 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7876 | |
| 7877 | ; |
| 7878 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7879 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7880 | _ACEOF |
| 7881 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7882 | if { (ac_try="$ac_link" |
| 7883 | case "(($ac_try" in |
| 7884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7885 | *) ac_try_echo=$ac_try;; |
| 7886 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7888 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7889 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7891 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7892 | { (case "(($ac_try" in |
| 7893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7894 | *) ac_try_echo=$ac_try;; |
| 7895 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7897 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7898 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7900 | (exit $ac_status); }; }; then |
| 7901 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7902 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7903 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7904 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7907 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7908 | if test "$ac_cv_type_int" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7909 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7910 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7911 | echo "$as_me: error: cannot compute sizeof (int) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7912 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7913 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7914 | else |
| 7915 | ac_cv_sizeof_int=0 |
| 7916 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7917 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7918 | 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] | 7919 | fi |
| 7920 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7921 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7922 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 7923 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7924 | |
| 7925 | |
| 7926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7927 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7928 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7929 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7930 | |
| 7931 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7932 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 7933 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
| 7934 | if test "${ac_cv_type_long+set}" = set; then |
| 7935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7936 | else |
| 7937 | cat >conftest.$ac_ext <<_ACEOF |
| 7938 | /* confdefs.h. */ |
| 7939 | _ACEOF |
| 7940 | cat confdefs.h >>conftest.$ac_ext |
| 7941 | cat >>conftest.$ac_ext <<_ACEOF |
| 7942 | /* end confdefs.h. */ |
| 7943 | $ac_includes_default |
| 7944 | typedef long ac__type_new_; |
| 7945 | int |
| 7946 | main () |
| 7947 | { |
| 7948 | if ((ac__type_new_ *) 0) |
| 7949 | return 0; |
| 7950 | if (sizeof (ac__type_new_)) |
| 7951 | return 0; |
| 7952 | ; |
| 7953 | return 0; |
| 7954 | } |
| 7955 | _ACEOF |
| 7956 | rm -f conftest.$ac_objext |
| 7957 | if { (ac_try="$ac_compile" |
| 7958 | case "(($ac_try" in |
| 7959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7960 | *) ac_try_echo=$ac_try;; |
| 7961 | esac |
| 7962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7963 | (eval "$ac_compile") 2>conftest.er1 |
| 7964 | ac_status=$? |
| 7965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7966 | rm -f conftest.er1 |
| 7967 | cat conftest.err >&5 |
| 7968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7969 | (exit $ac_status); } && { |
| 7970 | test -z "$ac_c_werror_flag" || |
| 7971 | test ! -s conftest.err |
| 7972 | } && test -s conftest.$ac_objext; then |
| 7973 | ac_cv_type_long=yes |
| 7974 | else |
| 7975 | echo "$as_me: failed program was:" >&5 |
| 7976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7977 | |
| 7978 | ac_cv_type_long=no |
| 7979 | fi |
| 7980 | |
| 7981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7982 | fi |
| 7983 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 7984 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 7985 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 7986 | # The cast to long int works around a bug in the HP C Compiler |
| 7987 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7988 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7989 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7990 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 7991 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7992 | if test "${ac_cv_sizeof_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 7993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7994 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7995 | if test "$cross_compiling" = yes; then |
| 7996 | # Depending upon the size, compute the lo and hi bounds. |
| 7997 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7998 | /* confdefs.h. */ |
| 7999 | _ACEOF |
| 8000 | cat confdefs.h >>conftest.$ac_ext |
| 8001 | cat >>conftest.$ac_ext <<_ACEOF |
| 8002 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8003 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8004 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8005 | int |
| 8006 | main () |
| 8007 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8008 | 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] | 8009 | test_array [0] = 0 |
| 8010 | |
| 8011 | ; |
| 8012 | return 0; |
| 8013 | } |
| 8014 | _ACEOF |
| 8015 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8016 | if { (ac_try="$ac_compile" |
| 8017 | case "(($ac_try" in |
| 8018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8019 | *) ac_try_echo=$ac_try;; |
| 8020 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8022 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8023 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8025 | rm -f conftest.er1 |
| 8026 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8028 | (exit $ac_status); } && { |
| 8029 | test -z "$ac_c_werror_flag" || |
| 8030 | test ! -s conftest.err |
| 8031 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8032 | ac_lo=0 ac_mid=0 |
| 8033 | while :; do |
| 8034 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8035 | /* confdefs.h. */ |
| 8036 | _ACEOF |
| 8037 | cat confdefs.h >>conftest.$ac_ext |
| 8038 | cat >>conftest.$ac_ext <<_ACEOF |
| 8039 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8040 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8041 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8042 | int |
| 8043 | main () |
| 8044 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8045 | 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] | 8046 | test_array [0] = 0 |
| 8047 | |
| 8048 | ; |
| 8049 | return 0; |
| 8050 | } |
| 8051 | _ACEOF |
| 8052 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8053 | if { (ac_try="$ac_compile" |
| 8054 | case "(($ac_try" in |
| 8055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8056 | *) ac_try_echo=$ac_try;; |
| 8057 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8059 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8060 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8062 | rm -f conftest.er1 |
| 8063 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8065 | (exit $ac_status); } && { |
| 8066 | test -z "$ac_c_werror_flag" || |
| 8067 | test ! -s conftest.err |
| 8068 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8069 | ac_hi=$ac_mid; break |
| 8070 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8071 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8073 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8074 | ac_lo=`expr $ac_mid + 1` |
| 8075 | if test $ac_lo -le $ac_mid; then |
| 8076 | ac_lo= ac_hi= |
| 8077 | break |
| 8078 | fi |
| 8079 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8080 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8081 | |
| 8082 | 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] | 8083 | done |
| 8084 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8085 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8087 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8088 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8089 | /* confdefs.h. */ |
| 8090 | _ACEOF |
| 8091 | cat confdefs.h >>conftest.$ac_ext |
| 8092 | cat >>conftest.$ac_ext <<_ACEOF |
| 8093 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8094 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8095 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8096 | int |
| 8097 | main () |
| 8098 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8099 | 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] | 8100 | test_array [0] = 0 |
| 8101 | |
| 8102 | ; |
| 8103 | return 0; |
| 8104 | } |
| 8105 | _ACEOF |
| 8106 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8107 | if { (ac_try="$ac_compile" |
| 8108 | case "(($ac_try" in |
| 8109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8110 | *) ac_try_echo=$ac_try;; |
| 8111 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8113 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8114 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8116 | rm -f conftest.er1 |
| 8117 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8119 | (exit $ac_status); } && { |
| 8120 | test -z "$ac_c_werror_flag" || |
| 8121 | test ! -s conftest.err |
| 8122 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8123 | ac_hi=-1 ac_mid=-1 |
| 8124 | while :; do |
| 8125 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8126 | /* confdefs.h. */ |
| 8127 | _ACEOF |
| 8128 | cat confdefs.h >>conftest.$ac_ext |
| 8129 | cat >>conftest.$ac_ext <<_ACEOF |
| 8130 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8131 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8132 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8133 | int |
| 8134 | main () |
| 8135 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8136 | 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] | 8137 | test_array [0] = 0 |
| 8138 | |
| 8139 | ; |
| 8140 | return 0; |
| 8141 | } |
| 8142 | _ACEOF |
| 8143 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8144 | if { (ac_try="$ac_compile" |
| 8145 | case "(($ac_try" in |
| 8146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8147 | *) ac_try_echo=$ac_try;; |
| 8148 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8150 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8151 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8153 | rm -f conftest.er1 |
| 8154 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8156 | (exit $ac_status); } && { |
| 8157 | test -z "$ac_c_werror_flag" || |
| 8158 | test ! -s conftest.err |
| 8159 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8160 | ac_lo=$ac_mid; break |
| 8161 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8162 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8164 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8165 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8166 | if test $ac_mid -le $ac_hi; then |
| 8167 | ac_lo= ac_hi= |
| 8168 | break |
| 8169 | fi |
| 8170 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8171 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8172 | |
| 8173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8174 | done |
| 8175 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8176 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8178 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8179 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8180 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8181 | |
| 8182 | 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] | 8183 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8184 | |
| 8185 | 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] | 8186 | # Binary search between lo and hi bounds. |
| 8187 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8188 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8189 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8190 | /* confdefs.h. */ |
| 8191 | _ACEOF |
| 8192 | cat confdefs.h >>conftest.$ac_ext |
| 8193 | cat >>conftest.$ac_ext <<_ACEOF |
| 8194 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8195 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8196 | typedef long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8197 | int |
| 8198 | main () |
| 8199 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8200 | 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] | 8201 | test_array [0] = 0 |
| 8202 | |
| 8203 | ; |
| 8204 | return 0; |
| 8205 | } |
| 8206 | _ACEOF |
| 8207 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8208 | if { (ac_try="$ac_compile" |
| 8209 | case "(($ac_try" in |
| 8210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8211 | *) ac_try_echo=$ac_try;; |
| 8212 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8214 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8215 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8217 | rm -f conftest.er1 |
| 8218 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8220 | (exit $ac_status); } && { |
| 8221 | test -z "$ac_c_werror_flag" || |
| 8222 | test ! -s conftest.err |
| 8223 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8224 | ac_hi=$ac_mid |
| 8225 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8226 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8228 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8229 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8230 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8231 | |
| 8232 | 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] | 8233 | done |
| 8234 | case $ac_lo in |
| 8235 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8236 | '') if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8237 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8238 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8239 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8240 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8241 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8242 | else |
| 8243 | ac_cv_sizeof_long=0 |
| 8244 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8245 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8246 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8247 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8248 | /* confdefs.h. */ |
| 8249 | _ACEOF |
| 8250 | cat confdefs.h >>conftest.$ac_ext |
| 8251 | cat >>conftest.$ac_ext <<_ACEOF |
| 8252 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8253 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8254 | typedef long ac__type_sizeof_; |
| 8255 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8256 | 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] | 8257 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8258 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8259 | int |
| 8260 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8261 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8262 | |
| 8263 | FILE *f = fopen ("conftest.val", "w"); |
| 8264 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8265 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8266 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8267 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8268 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8269 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8270 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8271 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8272 | } |
| 8273 | else |
| 8274 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8275 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8276 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8277 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8278 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8279 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8280 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8281 | |
| 8282 | ; |
| 8283 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8284 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8285 | _ACEOF |
| 8286 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8287 | if { (ac_try="$ac_link" |
| 8288 | case "(($ac_try" in |
| 8289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8290 | *) ac_try_echo=$ac_try;; |
| 8291 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8293 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8294 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8296 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8297 | { (case "(($ac_try" in |
| 8298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8299 | *) ac_try_echo=$ac_try;; |
| 8300 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8302 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8303 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8305 | (exit $ac_status); }; }; then |
| 8306 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8307 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8308 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8309 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8312 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8313 | if test "$ac_cv_type_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8314 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8315 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8316 | echo "$as_me: error: cannot compute sizeof (long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8317 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8318 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8319 | else |
| 8320 | ac_cv_sizeof_long=0 |
| 8321 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8322 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8323 | 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] | 8324 | fi |
| 8325 | rm -f conftest.val |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8326 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8327 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 8328 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8329 | |
| 8330 | |
| 8331 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8332 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8333 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8334 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8335 | |
| 8336 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8337 | { echo "$as_me:$LINENO: checking for void *" >&5 |
| 8338 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } |
| 8339 | if test "${ac_cv_type_void_p+set}" = set; then |
| 8340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8341 | else |
| 8342 | cat >conftest.$ac_ext <<_ACEOF |
| 8343 | /* confdefs.h. */ |
| 8344 | _ACEOF |
| 8345 | cat confdefs.h >>conftest.$ac_ext |
| 8346 | cat >>conftest.$ac_ext <<_ACEOF |
| 8347 | /* end confdefs.h. */ |
| 8348 | $ac_includes_default |
| 8349 | typedef void * ac__type_new_; |
| 8350 | int |
| 8351 | main () |
| 8352 | { |
| 8353 | if ((ac__type_new_ *) 0) |
| 8354 | return 0; |
| 8355 | if (sizeof (ac__type_new_)) |
| 8356 | return 0; |
| 8357 | ; |
| 8358 | return 0; |
| 8359 | } |
| 8360 | _ACEOF |
| 8361 | rm -f conftest.$ac_objext |
| 8362 | if { (ac_try="$ac_compile" |
| 8363 | case "(($ac_try" in |
| 8364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8365 | *) ac_try_echo=$ac_try;; |
| 8366 | esac |
| 8367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8368 | (eval "$ac_compile") 2>conftest.er1 |
| 8369 | ac_status=$? |
| 8370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8371 | rm -f conftest.er1 |
| 8372 | cat conftest.err >&5 |
| 8373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8374 | (exit $ac_status); } && { |
| 8375 | test -z "$ac_c_werror_flag" || |
| 8376 | test ! -s conftest.err |
| 8377 | } && test -s conftest.$ac_objext; then |
| 8378 | ac_cv_type_void_p=yes |
| 8379 | else |
| 8380 | echo "$as_me: failed program was:" >&5 |
| 8381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8382 | |
| 8383 | ac_cv_type_void_p=no |
| 8384 | fi |
| 8385 | |
| 8386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8387 | fi |
| 8388 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 8389 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } |
| 8390 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8391 | # The cast to long int works around a bug in the HP C Compiler |
| 8392 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8393 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8394 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8395 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
| 8396 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8397 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8399 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8400 | if test "$cross_compiling" = yes; then |
| 8401 | # Depending upon the size, compute the lo and hi bounds. |
| 8402 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8403 | /* confdefs.h. */ |
| 8404 | _ACEOF |
| 8405 | cat confdefs.h >>conftest.$ac_ext |
| 8406 | cat >>conftest.$ac_ext <<_ACEOF |
| 8407 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8408 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8409 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8410 | int |
| 8411 | main () |
| 8412 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8413 | 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] | 8414 | test_array [0] = 0 |
| 8415 | |
| 8416 | ; |
| 8417 | return 0; |
| 8418 | } |
| 8419 | _ACEOF |
| 8420 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8421 | if { (ac_try="$ac_compile" |
| 8422 | case "(($ac_try" in |
| 8423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8424 | *) ac_try_echo=$ac_try;; |
| 8425 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8427 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8428 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8430 | rm -f conftest.er1 |
| 8431 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8433 | (exit $ac_status); } && { |
| 8434 | test -z "$ac_c_werror_flag" || |
| 8435 | test ! -s conftest.err |
| 8436 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8437 | ac_lo=0 ac_mid=0 |
| 8438 | while :; do |
| 8439 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8440 | /* confdefs.h. */ |
| 8441 | _ACEOF |
| 8442 | cat confdefs.h >>conftest.$ac_ext |
| 8443 | cat >>conftest.$ac_ext <<_ACEOF |
| 8444 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8445 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8446 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8447 | int |
| 8448 | main () |
| 8449 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8450 | 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] | 8451 | test_array [0] = 0 |
| 8452 | |
| 8453 | ; |
| 8454 | return 0; |
| 8455 | } |
| 8456 | _ACEOF |
| 8457 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8458 | if { (ac_try="$ac_compile" |
| 8459 | case "(($ac_try" in |
| 8460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8461 | *) ac_try_echo=$ac_try;; |
| 8462 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8464 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8465 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8467 | rm -f conftest.er1 |
| 8468 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8470 | (exit $ac_status); } && { |
| 8471 | test -z "$ac_c_werror_flag" || |
| 8472 | test ! -s conftest.err |
| 8473 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8474 | ac_hi=$ac_mid; break |
| 8475 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8476 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8478 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8479 | ac_lo=`expr $ac_mid + 1` |
| 8480 | if test $ac_lo -le $ac_mid; then |
| 8481 | ac_lo= ac_hi= |
| 8482 | break |
| 8483 | fi |
| 8484 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8485 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8486 | |
| 8487 | 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] | 8488 | done |
| 8489 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8490 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8492 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8493 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8494 | /* confdefs.h. */ |
| 8495 | _ACEOF |
| 8496 | cat confdefs.h >>conftest.$ac_ext |
| 8497 | cat >>conftest.$ac_ext <<_ACEOF |
| 8498 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8499 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8500 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8501 | int |
| 8502 | main () |
| 8503 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8504 | 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] | 8505 | test_array [0] = 0 |
| 8506 | |
| 8507 | ; |
| 8508 | return 0; |
| 8509 | } |
| 8510 | _ACEOF |
| 8511 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8512 | if { (ac_try="$ac_compile" |
| 8513 | case "(($ac_try" in |
| 8514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8515 | *) ac_try_echo=$ac_try;; |
| 8516 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8518 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8519 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8521 | rm -f conftest.er1 |
| 8522 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8524 | (exit $ac_status); } && { |
| 8525 | test -z "$ac_c_werror_flag" || |
| 8526 | test ! -s conftest.err |
| 8527 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8528 | ac_hi=-1 ac_mid=-1 |
| 8529 | while :; do |
| 8530 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8531 | /* confdefs.h. */ |
| 8532 | _ACEOF |
| 8533 | cat confdefs.h >>conftest.$ac_ext |
| 8534 | cat >>conftest.$ac_ext <<_ACEOF |
| 8535 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8536 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8537 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8538 | int |
| 8539 | main () |
| 8540 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8541 | 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] | 8542 | test_array [0] = 0 |
| 8543 | |
| 8544 | ; |
| 8545 | return 0; |
| 8546 | } |
| 8547 | _ACEOF |
| 8548 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8549 | if { (ac_try="$ac_compile" |
| 8550 | case "(($ac_try" in |
| 8551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8552 | *) ac_try_echo=$ac_try;; |
| 8553 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8555 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8556 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8558 | rm -f conftest.er1 |
| 8559 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8561 | (exit $ac_status); } && { |
| 8562 | test -z "$ac_c_werror_flag" || |
| 8563 | test ! -s conftest.err |
| 8564 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8565 | ac_lo=$ac_mid; break |
| 8566 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8567 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8569 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8570 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8571 | if test $ac_mid -le $ac_hi; then |
| 8572 | ac_lo= ac_hi= |
| 8573 | break |
| 8574 | fi |
| 8575 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8576 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8577 | |
| 8578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8579 | done |
| 8580 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8581 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8583 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8584 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8586 | |
| 8587 | 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] | 8588 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8589 | |
| 8590 | 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] | 8591 | # Binary search between lo and hi bounds. |
| 8592 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8593 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8594 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8595 | /* confdefs.h. */ |
| 8596 | _ACEOF |
| 8597 | cat confdefs.h >>conftest.$ac_ext |
| 8598 | cat >>conftest.$ac_ext <<_ACEOF |
| 8599 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8600 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8601 | typedef void * ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8602 | int |
| 8603 | main () |
| 8604 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8605 | 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] | 8606 | test_array [0] = 0 |
| 8607 | |
| 8608 | ; |
| 8609 | return 0; |
| 8610 | } |
| 8611 | _ACEOF |
| 8612 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8613 | if { (ac_try="$ac_compile" |
| 8614 | case "(($ac_try" in |
| 8615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8616 | *) ac_try_echo=$ac_try;; |
| 8617 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8619 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8622 | rm -f conftest.er1 |
| 8623 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8625 | (exit $ac_status); } && { |
| 8626 | test -z "$ac_c_werror_flag" || |
| 8627 | test ! -s conftest.err |
| 8628 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8629 | ac_hi=$ac_mid |
| 8630 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8631 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8633 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8634 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8635 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8636 | |
| 8637 | 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] | 8638 | done |
| 8639 | case $ac_lo in |
| 8640 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8641 | '') if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8642 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8643 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8644 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8645 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8646 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8647 | else |
| 8648 | ac_cv_sizeof_void_p=0 |
| 8649 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8650 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8652 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8653 | /* confdefs.h. */ |
| 8654 | _ACEOF |
| 8655 | cat confdefs.h >>conftest.$ac_ext |
| 8656 | cat >>conftest.$ac_ext <<_ACEOF |
| 8657 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8658 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8659 | typedef void * ac__type_sizeof_; |
| 8660 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 8661 | 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] | 8662 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8663 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8664 | int |
| 8665 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8666 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | |
| 8668 | FILE *f = fopen ("conftest.val", "w"); |
| 8669 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8670 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8671 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8672 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8673 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8674 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8675 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8676 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8677 | } |
| 8678 | else |
| 8679 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8680 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8681 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8682 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8683 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8684 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8685 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8686 | |
| 8687 | ; |
| 8688 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8689 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8690 | _ACEOF |
| 8691 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8692 | if { (ac_try="$ac_link" |
| 8693 | case "(($ac_try" in |
| 8694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8695 | *) ac_try_echo=$ac_try;; |
| 8696 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8698 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8701 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8702 | { (case "(($ac_try" in |
| 8703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8704 | *) ac_try_echo=$ac_try;; |
| 8705 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8707 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8708 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8710 | (exit $ac_status); }; }; then |
| 8711 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8712 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8713 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8714 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8717 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8718 | if test "$ac_cv_type_void_p" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8719 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8720 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8721 | echo "$as_me: error: cannot compute sizeof (void *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8722 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8723 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8724 | else |
| 8725 | ac_cv_sizeof_void_p=0 |
| 8726 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8727 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8728 | 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] | 8729 | fi |
| 8730 | rm -f conftest.val |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8731 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8732 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 8733 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8734 | |
| 8735 | |
| 8736 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8737 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8738 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8739 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 8740 | |
| 8741 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8742 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 8743 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
| 8744 | if test "${ac_cv_type_short+set}" = set; then |
| 8745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8746 | else |
| 8747 | cat >conftest.$ac_ext <<_ACEOF |
| 8748 | /* confdefs.h. */ |
| 8749 | _ACEOF |
| 8750 | cat confdefs.h >>conftest.$ac_ext |
| 8751 | cat >>conftest.$ac_ext <<_ACEOF |
| 8752 | /* end confdefs.h. */ |
| 8753 | $ac_includes_default |
| 8754 | typedef short ac__type_new_; |
| 8755 | int |
| 8756 | main () |
| 8757 | { |
| 8758 | if ((ac__type_new_ *) 0) |
| 8759 | return 0; |
| 8760 | if (sizeof (ac__type_new_)) |
| 8761 | return 0; |
| 8762 | ; |
| 8763 | return 0; |
| 8764 | } |
| 8765 | _ACEOF |
| 8766 | rm -f conftest.$ac_objext |
| 8767 | if { (ac_try="$ac_compile" |
| 8768 | case "(($ac_try" in |
| 8769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8770 | *) ac_try_echo=$ac_try;; |
| 8771 | esac |
| 8772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8773 | (eval "$ac_compile") 2>conftest.er1 |
| 8774 | ac_status=$? |
| 8775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8776 | rm -f conftest.er1 |
| 8777 | cat conftest.err >&5 |
| 8778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8779 | (exit $ac_status); } && { |
| 8780 | test -z "$ac_c_werror_flag" || |
| 8781 | test ! -s conftest.err |
| 8782 | } && test -s conftest.$ac_objext; then |
| 8783 | ac_cv_type_short=yes |
| 8784 | else |
| 8785 | echo "$as_me: failed program was:" >&5 |
| 8786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8787 | |
| 8788 | ac_cv_type_short=no |
| 8789 | fi |
| 8790 | |
| 8791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8792 | fi |
| 8793 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 8794 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 8795 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8796 | # The cast to long int works around a bug in the HP C Compiler |
| 8797 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8798 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8799 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8800 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 8801 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8802 | if test "${ac_cv_sizeof_short+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8804 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8805 | if test "$cross_compiling" = yes; then |
| 8806 | # Depending upon the size, compute the lo and hi bounds. |
| 8807 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8808 | /* confdefs.h. */ |
| 8809 | _ACEOF |
| 8810 | cat confdefs.h >>conftest.$ac_ext |
| 8811 | cat >>conftest.$ac_ext <<_ACEOF |
| 8812 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8813 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8814 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8815 | int |
| 8816 | main () |
| 8817 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8818 | 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] | 8819 | test_array [0] = 0 |
| 8820 | |
| 8821 | ; |
| 8822 | return 0; |
| 8823 | } |
| 8824 | _ACEOF |
| 8825 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8826 | if { (ac_try="$ac_compile" |
| 8827 | case "(($ac_try" in |
| 8828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8829 | *) ac_try_echo=$ac_try;; |
| 8830 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8832 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8833 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8835 | rm -f conftest.er1 |
| 8836 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8838 | (exit $ac_status); } && { |
| 8839 | test -z "$ac_c_werror_flag" || |
| 8840 | test ! -s conftest.err |
| 8841 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8842 | ac_lo=0 ac_mid=0 |
| 8843 | while :; do |
| 8844 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8845 | /* confdefs.h. */ |
| 8846 | _ACEOF |
| 8847 | cat confdefs.h >>conftest.$ac_ext |
| 8848 | cat >>conftest.$ac_ext <<_ACEOF |
| 8849 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8850 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8851 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8852 | int |
| 8853 | main () |
| 8854 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8855 | 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] | 8856 | test_array [0] = 0 |
| 8857 | |
| 8858 | ; |
| 8859 | return 0; |
| 8860 | } |
| 8861 | _ACEOF |
| 8862 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8863 | if { (ac_try="$ac_compile" |
| 8864 | case "(($ac_try" in |
| 8865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8866 | *) ac_try_echo=$ac_try;; |
| 8867 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8869 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8870 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8872 | rm -f conftest.er1 |
| 8873 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8875 | (exit $ac_status); } && { |
| 8876 | test -z "$ac_c_werror_flag" || |
| 8877 | test ! -s conftest.err |
| 8878 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8879 | ac_hi=$ac_mid; break |
| 8880 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8881 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8883 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8884 | ac_lo=`expr $ac_mid + 1` |
| 8885 | if test $ac_lo -le $ac_mid; then |
| 8886 | ac_lo= ac_hi= |
| 8887 | break |
| 8888 | fi |
| 8889 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8890 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8891 | |
| 8892 | 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] | 8893 | done |
| 8894 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8895 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8897 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8898 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8899 | /* confdefs.h. */ |
| 8900 | _ACEOF |
| 8901 | cat confdefs.h >>conftest.$ac_ext |
| 8902 | cat >>conftest.$ac_ext <<_ACEOF |
| 8903 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8904 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8905 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8906 | int |
| 8907 | main () |
| 8908 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8909 | 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] | 8910 | test_array [0] = 0 |
| 8911 | |
| 8912 | ; |
| 8913 | return 0; |
| 8914 | } |
| 8915 | _ACEOF |
| 8916 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8917 | if { (ac_try="$ac_compile" |
| 8918 | case "(($ac_try" in |
| 8919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8920 | *) ac_try_echo=$ac_try;; |
| 8921 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8923 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8924 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8926 | rm -f conftest.er1 |
| 8927 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8929 | (exit $ac_status); } && { |
| 8930 | test -z "$ac_c_werror_flag" || |
| 8931 | test ! -s conftest.err |
| 8932 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8933 | ac_hi=-1 ac_mid=-1 |
| 8934 | while :; do |
| 8935 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8936 | /* confdefs.h. */ |
| 8937 | _ACEOF |
| 8938 | cat confdefs.h >>conftest.$ac_ext |
| 8939 | cat >>conftest.$ac_ext <<_ACEOF |
| 8940 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8941 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8942 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8943 | int |
| 8944 | main () |
| 8945 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8946 | 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] | 8947 | test_array [0] = 0 |
| 8948 | |
| 8949 | ; |
| 8950 | return 0; |
| 8951 | } |
| 8952 | _ACEOF |
| 8953 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8954 | if { (ac_try="$ac_compile" |
| 8955 | case "(($ac_try" in |
| 8956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8957 | *) ac_try_echo=$ac_try;; |
| 8958 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8960 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8961 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8963 | rm -f conftest.er1 |
| 8964 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8966 | (exit $ac_status); } && { |
| 8967 | test -z "$ac_c_werror_flag" || |
| 8968 | test ! -s conftest.err |
| 8969 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8970 | ac_lo=$ac_mid; break |
| 8971 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8972 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8974 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8975 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8976 | if test $ac_mid -le $ac_hi; then |
| 8977 | ac_lo= ac_hi= |
| 8978 | break |
| 8979 | fi |
| 8980 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8981 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8982 | |
| 8983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8984 | done |
| 8985 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 8986 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8988 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8989 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8990 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8991 | |
| 8992 | 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] | 8993 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 8994 | |
| 8995 | 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] | 8996 | # Binary search between lo and hi bounds. |
| 8997 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8998 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8999 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9000 | /* confdefs.h. */ |
| 9001 | _ACEOF |
| 9002 | cat confdefs.h >>conftest.$ac_ext |
| 9003 | cat >>conftest.$ac_ext <<_ACEOF |
| 9004 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9005 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9006 | typedef short ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9007 | int |
| 9008 | main () |
| 9009 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9010 | 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] | 9011 | test_array [0] = 0 |
| 9012 | |
| 9013 | ; |
| 9014 | return 0; |
| 9015 | } |
| 9016 | _ACEOF |
| 9017 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9018 | if { (ac_try="$ac_compile" |
| 9019 | case "(($ac_try" in |
| 9020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9021 | *) ac_try_echo=$ac_try;; |
| 9022 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9024 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9025 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9026 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9027 | rm -f conftest.er1 |
| 9028 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9030 | (exit $ac_status); } && { |
| 9031 | test -z "$ac_c_werror_flag" || |
| 9032 | test ! -s conftest.err |
| 9033 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9034 | ac_hi=$ac_mid |
| 9035 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9038 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9039 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9040 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9041 | |
| 9042 | 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] | 9043 | done |
| 9044 | case $ac_lo in |
| 9045 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9046 | '') if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9047 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9048 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9049 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9050 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9051 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9052 | else |
| 9053 | ac_cv_sizeof_short=0 |
| 9054 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9055 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9057 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9058 | /* confdefs.h. */ |
| 9059 | _ACEOF |
| 9060 | cat confdefs.h >>conftest.$ac_ext |
| 9061 | cat >>conftest.$ac_ext <<_ACEOF |
| 9062 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9063 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9064 | typedef short ac__type_sizeof_; |
| 9065 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9066 | 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] | 9067 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9068 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9069 | int |
| 9070 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9071 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9072 | |
| 9073 | FILE *f = fopen ("conftest.val", "w"); |
| 9074 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9075 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9076 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9077 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9078 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9079 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9080 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9081 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9082 | } |
| 9083 | else |
| 9084 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9085 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9086 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9087 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9088 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9089 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9090 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9091 | |
| 9092 | ; |
| 9093 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9094 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9095 | _ACEOF |
| 9096 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9097 | if { (ac_try="$ac_link" |
| 9098 | case "(($ac_try" in |
| 9099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9100 | *) ac_try_echo=$ac_try;; |
| 9101 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9103 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9104 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9106 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9107 | { (case "(($ac_try" in |
| 9108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9109 | *) ac_try_echo=$ac_try;; |
| 9110 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9112 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9115 | (exit $ac_status); }; }; then |
| 9116 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9117 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9118 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9119 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9122 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9123 | if test "$ac_cv_type_short" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9124 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9125 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9126 | echo "$as_me: error: cannot compute sizeof (short) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9127 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9128 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9129 | else |
| 9130 | ac_cv_sizeof_short=0 |
| 9131 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9132 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9133 | 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] | 9134 | fi |
| 9135 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9136 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9137 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 9138 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9139 | |
| 9140 | |
| 9141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9142 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9143 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9144 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9145 | |
| 9146 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9147 | { echo "$as_me:$LINENO: checking for float" >&5 |
| 9148 | echo $ECHO_N "checking for float... $ECHO_C" >&6; } |
| 9149 | if test "${ac_cv_type_float+set}" = set; then |
| 9150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9151 | else |
| 9152 | cat >conftest.$ac_ext <<_ACEOF |
| 9153 | /* confdefs.h. */ |
| 9154 | _ACEOF |
| 9155 | cat confdefs.h >>conftest.$ac_ext |
| 9156 | cat >>conftest.$ac_ext <<_ACEOF |
| 9157 | /* end confdefs.h. */ |
| 9158 | $ac_includes_default |
| 9159 | typedef float ac__type_new_; |
| 9160 | int |
| 9161 | main () |
| 9162 | { |
| 9163 | if ((ac__type_new_ *) 0) |
| 9164 | return 0; |
| 9165 | if (sizeof (ac__type_new_)) |
| 9166 | return 0; |
| 9167 | ; |
| 9168 | return 0; |
| 9169 | } |
| 9170 | _ACEOF |
| 9171 | rm -f conftest.$ac_objext |
| 9172 | if { (ac_try="$ac_compile" |
| 9173 | case "(($ac_try" in |
| 9174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9175 | *) ac_try_echo=$ac_try;; |
| 9176 | esac |
| 9177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9178 | (eval "$ac_compile") 2>conftest.er1 |
| 9179 | ac_status=$? |
| 9180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9181 | rm -f conftest.er1 |
| 9182 | cat conftest.err >&5 |
| 9183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9184 | (exit $ac_status); } && { |
| 9185 | test -z "$ac_c_werror_flag" || |
| 9186 | test ! -s conftest.err |
| 9187 | } && test -s conftest.$ac_objext; then |
| 9188 | ac_cv_type_float=yes |
| 9189 | else |
| 9190 | echo "$as_me: failed program was:" >&5 |
| 9191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9192 | |
| 9193 | ac_cv_type_float=no |
| 9194 | fi |
| 9195 | |
| 9196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9197 | fi |
| 9198 | { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 9199 | echo "${ECHO_T}$ac_cv_type_float" >&6; } |
| 9200 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9201 | # The cast to long int works around a bug in the HP C Compiler |
| 9202 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9203 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9204 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9205 | { echo "$as_me:$LINENO: checking size of float" >&5 |
| 9206 | echo $ECHO_N "checking size of float... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9207 | if test "${ac_cv_sizeof_float+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9209 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9210 | if test "$cross_compiling" = yes; then |
| 9211 | # Depending upon the size, compute the lo and hi bounds. |
| 9212 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9213 | /* confdefs.h. */ |
| 9214 | _ACEOF |
| 9215 | cat confdefs.h >>conftest.$ac_ext |
| 9216 | cat >>conftest.$ac_ext <<_ACEOF |
| 9217 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9218 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9219 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9220 | int |
| 9221 | main () |
| 9222 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9223 | 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] | 9224 | test_array [0] = 0 |
| 9225 | |
| 9226 | ; |
| 9227 | return 0; |
| 9228 | } |
| 9229 | _ACEOF |
| 9230 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9231 | if { (ac_try="$ac_compile" |
| 9232 | case "(($ac_try" in |
| 9233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9234 | *) ac_try_echo=$ac_try;; |
| 9235 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9237 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9238 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9240 | rm -f conftest.er1 |
| 9241 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9243 | (exit $ac_status); } && { |
| 9244 | test -z "$ac_c_werror_flag" || |
| 9245 | test ! -s conftest.err |
| 9246 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9247 | ac_lo=0 ac_mid=0 |
| 9248 | while :; do |
| 9249 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9250 | /* confdefs.h. */ |
| 9251 | _ACEOF |
| 9252 | cat confdefs.h >>conftest.$ac_ext |
| 9253 | cat >>conftest.$ac_ext <<_ACEOF |
| 9254 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9255 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9256 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9257 | int |
| 9258 | main () |
| 9259 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9260 | 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] | 9261 | test_array [0] = 0 |
| 9262 | |
| 9263 | ; |
| 9264 | return 0; |
| 9265 | } |
| 9266 | _ACEOF |
| 9267 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9268 | if { (ac_try="$ac_compile" |
| 9269 | case "(($ac_try" in |
| 9270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9271 | *) ac_try_echo=$ac_try;; |
| 9272 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9274 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9275 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9277 | rm -f conftest.er1 |
| 9278 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9280 | (exit $ac_status); } && { |
| 9281 | test -z "$ac_c_werror_flag" || |
| 9282 | test ! -s conftest.err |
| 9283 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9284 | ac_hi=$ac_mid; break |
| 9285 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9286 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9288 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9289 | ac_lo=`expr $ac_mid + 1` |
| 9290 | if test $ac_lo -le $ac_mid; then |
| 9291 | ac_lo= ac_hi= |
| 9292 | break |
| 9293 | fi |
| 9294 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9295 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9296 | |
| 9297 | 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] | 9298 | done |
| 9299 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9300 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9302 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9303 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9304 | /* confdefs.h. */ |
| 9305 | _ACEOF |
| 9306 | cat confdefs.h >>conftest.$ac_ext |
| 9307 | cat >>conftest.$ac_ext <<_ACEOF |
| 9308 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9309 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9310 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9311 | int |
| 9312 | main () |
| 9313 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9314 | 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] | 9315 | test_array [0] = 0 |
| 9316 | |
| 9317 | ; |
| 9318 | return 0; |
| 9319 | } |
| 9320 | _ACEOF |
| 9321 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9322 | if { (ac_try="$ac_compile" |
| 9323 | case "(($ac_try" in |
| 9324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9325 | *) ac_try_echo=$ac_try;; |
| 9326 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9328 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9329 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9331 | rm -f conftest.er1 |
| 9332 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9334 | (exit $ac_status); } && { |
| 9335 | test -z "$ac_c_werror_flag" || |
| 9336 | test ! -s conftest.err |
| 9337 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9338 | ac_hi=-1 ac_mid=-1 |
| 9339 | while :; do |
| 9340 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9341 | /* confdefs.h. */ |
| 9342 | _ACEOF |
| 9343 | cat confdefs.h >>conftest.$ac_ext |
| 9344 | cat >>conftest.$ac_ext <<_ACEOF |
| 9345 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9346 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9347 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9348 | int |
| 9349 | main () |
| 9350 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9351 | 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] | 9352 | test_array [0] = 0 |
| 9353 | |
| 9354 | ; |
| 9355 | return 0; |
| 9356 | } |
| 9357 | _ACEOF |
| 9358 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9359 | if { (ac_try="$ac_compile" |
| 9360 | case "(($ac_try" in |
| 9361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9362 | *) ac_try_echo=$ac_try;; |
| 9363 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9365 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9366 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9368 | rm -f conftest.er1 |
| 9369 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9371 | (exit $ac_status); } && { |
| 9372 | test -z "$ac_c_werror_flag" || |
| 9373 | test ! -s conftest.err |
| 9374 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9375 | ac_lo=$ac_mid; break |
| 9376 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9377 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9379 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9380 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9381 | if test $ac_mid -le $ac_hi; then |
| 9382 | ac_lo= ac_hi= |
| 9383 | break |
| 9384 | fi |
| 9385 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9386 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9387 | |
| 9388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9389 | done |
| 9390 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9391 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9393 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9394 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9395 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9396 | |
| 9397 | 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] | 9398 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9399 | |
| 9400 | 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] | 9401 | # Binary search between lo and hi bounds. |
| 9402 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9403 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9404 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9405 | /* confdefs.h. */ |
| 9406 | _ACEOF |
| 9407 | cat confdefs.h >>conftest.$ac_ext |
| 9408 | cat >>conftest.$ac_ext <<_ACEOF |
| 9409 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9410 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9411 | typedef float ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9412 | int |
| 9413 | main () |
| 9414 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9415 | 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] | 9416 | test_array [0] = 0 |
| 9417 | |
| 9418 | ; |
| 9419 | return 0; |
| 9420 | } |
| 9421 | _ACEOF |
| 9422 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9423 | if { (ac_try="$ac_compile" |
| 9424 | case "(($ac_try" in |
| 9425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9426 | *) ac_try_echo=$ac_try;; |
| 9427 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9429 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9430 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9432 | rm -f conftest.er1 |
| 9433 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9435 | (exit $ac_status); } && { |
| 9436 | test -z "$ac_c_werror_flag" || |
| 9437 | test ! -s conftest.err |
| 9438 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9439 | ac_hi=$ac_mid |
| 9440 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9441 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9443 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9444 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9445 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9446 | |
| 9447 | 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] | 9448 | done |
| 9449 | case $ac_lo in |
| 9450 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9451 | '') if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9452 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9453 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9454 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9455 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9456 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9457 | else |
| 9458 | ac_cv_sizeof_float=0 |
| 9459 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9460 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9461 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9462 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9463 | /* confdefs.h. */ |
| 9464 | _ACEOF |
| 9465 | cat confdefs.h >>conftest.$ac_ext |
| 9466 | cat >>conftest.$ac_ext <<_ACEOF |
| 9467 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9468 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9469 | typedef float ac__type_sizeof_; |
| 9470 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9471 | 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] | 9472 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9473 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9474 | int |
| 9475 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9476 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9477 | |
| 9478 | FILE *f = fopen ("conftest.val", "w"); |
| 9479 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9480 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9481 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9482 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9483 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9484 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9485 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9486 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9487 | } |
| 9488 | else |
| 9489 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9490 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9491 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9492 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9493 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9494 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9495 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9496 | |
| 9497 | ; |
| 9498 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9499 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9500 | _ACEOF |
| 9501 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9502 | if { (ac_try="$ac_link" |
| 9503 | case "(($ac_try" in |
| 9504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9505 | *) ac_try_echo=$ac_try;; |
| 9506 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9508 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9509 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9511 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9512 | { (case "(($ac_try" in |
| 9513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9514 | *) ac_try_echo=$ac_try;; |
| 9515 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9517 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9518 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9520 | (exit $ac_status); }; }; then |
| 9521 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9522 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9523 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9524 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9526 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9527 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9528 | if test "$ac_cv_type_float" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9529 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9530 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9531 | echo "$as_me: error: cannot compute sizeof (float) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9532 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9533 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9534 | else |
| 9535 | ac_cv_sizeof_float=0 |
| 9536 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9537 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9538 | 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] | 9539 | fi |
| 9540 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9541 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9542 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 9543 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9544 | |
| 9545 | |
| 9546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9547 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9548 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9549 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9550 | |
| 9551 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9552 | { echo "$as_me:$LINENO: checking for double" >&5 |
| 9553 | echo $ECHO_N "checking for double... $ECHO_C" >&6; } |
| 9554 | if test "${ac_cv_type_double+set}" = set; then |
| 9555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9556 | else |
| 9557 | cat >conftest.$ac_ext <<_ACEOF |
| 9558 | /* confdefs.h. */ |
| 9559 | _ACEOF |
| 9560 | cat confdefs.h >>conftest.$ac_ext |
| 9561 | cat >>conftest.$ac_ext <<_ACEOF |
| 9562 | /* end confdefs.h. */ |
| 9563 | $ac_includes_default |
| 9564 | typedef double ac__type_new_; |
| 9565 | int |
| 9566 | main () |
| 9567 | { |
| 9568 | if ((ac__type_new_ *) 0) |
| 9569 | return 0; |
| 9570 | if (sizeof (ac__type_new_)) |
| 9571 | return 0; |
| 9572 | ; |
| 9573 | return 0; |
| 9574 | } |
| 9575 | _ACEOF |
| 9576 | rm -f conftest.$ac_objext |
| 9577 | if { (ac_try="$ac_compile" |
| 9578 | case "(($ac_try" in |
| 9579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9580 | *) ac_try_echo=$ac_try;; |
| 9581 | esac |
| 9582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9583 | (eval "$ac_compile") 2>conftest.er1 |
| 9584 | ac_status=$? |
| 9585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9586 | rm -f conftest.er1 |
| 9587 | cat conftest.err >&5 |
| 9588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9589 | (exit $ac_status); } && { |
| 9590 | test -z "$ac_c_werror_flag" || |
| 9591 | test ! -s conftest.err |
| 9592 | } && test -s conftest.$ac_objext; then |
| 9593 | ac_cv_type_double=yes |
| 9594 | else |
| 9595 | echo "$as_me: failed program was:" >&5 |
| 9596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9597 | |
| 9598 | ac_cv_type_double=no |
| 9599 | fi |
| 9600 | |
| 9601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9602 | fi |
| 9603 | { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 9604 | echo "${ECHO_T}$ac_cv_type_double" >&6; } |
| 9605 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9606 | # The cast to long int works around a bug in the HP C Compiler |
| 9607 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9608 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9609 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9610 | { echo "$as_me:$LINENO: checking size of double" >&5 |
| 9611 | echo $ECHO_N "checking size of double... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9612 | if test "${ac_cv_sizeof_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9614 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9615 | if test "$cross_compiling" = yes; then |
| 9616 | # Depending upon the size, compute the lo and hi bounds. |
| 9617 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9618 | /* confdefs.h. */ |
| 9619 | _ACEOF |
| 9620 | cat confdefs.h >>conftest.$ac_ext |
| 9621 | cat >>conftest.$ac_ext <<_ACEOF |
| 9622 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9623 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9624 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9625 | int |
| 9626 | main () |
| 9627 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9628 | 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] | 9629 | test_array [0] = 0 |
| 9630 | |
| 9631 | ; |
| 9632 | return 0; |
| 9633 | } |
| 9634 | _ACEOF |
| 9635 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9636 | if { (ac_try="$ac_compile" |
| 9637 | case "(($ac_try" in |
| 9638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9639 | *) ac_try_echo=$ac_try;; |
| 9640 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9642 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9643 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9645 | rm -f conftest.er1 |
| 9646 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9648 | (exit $ac_status); } && { |
| 9649 | test -z "$ac_c_werror_flag" || |
| 9650 | test ! -s conftest.err |
| 9651 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9652 | ac_lo=0 ac_mid=0 |
| 9653 | while :; do |
| 9654 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9655 | /* confdefs.h. */ |
| 9656 | _ACEOF |
| 9657 | cat confdefs.h >>conftest.$ac_ext |
| 9658 | cat >>conftest.$ac_ext <<_ACEOF |
| 9659 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9660 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9661 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9662 | int |
| 9663 | main () |
| 9664 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9665 | 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] | 9666 | test_array [0] = 0 |
| 9667 | |
| 9668 | ; |
| 9669 | return 0; |
| 9670 | } |
| 9671 | _ACEOF |
| 9672 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9673 | if { (ac_try="$ac_compile" |
| 9674 | case "(($ac_try" in |
| 9675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9676 | *) ac_try_echo=$ac_try;; |
| 9677 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9679 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9680 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9682 | rm -f conftest.er1 |
| 9683 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9685 | (exit $ac_status); } && { |
| 9686 | test -z "$ac_c_werror_flag" || |
| 9687 | test ! -s conftest.err |
| 9688 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9689 | ac_hi=$ac_mid; break |
| 9690 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9691 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9693 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9694 | ac_lo=`expr $ac_mid + 1` |
| 9695 | if test $ac_lo -le $ac_mid; then |
| 9696 | ac_lo= ac_hi= |
| 9697 | break |
| 9698 | fi |
| 9699 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9700 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9701 | |
| 9702 | 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] | 9703 | done |
| 9704 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9705 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9707 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9708 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9709 | /* confdefs.h. */ |
| 9710 | _ACEOF |
| 9711 | cat confdefs.h >>conftest.$ac_ext |
| 9712 | cat >>conftest.$ac_ext <<_ACEOF |
| 9713 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9714 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9715 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9716 | int |
| 9717 | main () |
| 9718 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9719 | 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] | 9720 | test_array [0] = 0 |
| 9721 | |
| 9722 | ; |
| 9723 | return 0; |
| 9724 | } |
| 9725 | _ACEOF |
| 9726 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9727 | if { (ac_try="$ac_compile" |
| 9728 | case "(($ac_try" in |
| 9729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9730 | *) ac_try_echo=$ac_try;; |
| 9731 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9733 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9734 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9736 | rm -f conftest.er1 |
| 9737 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9739 | (exit $ac_status); } && { |
| 9740 | test -z "$ac_c_werror_flag" || |
| 9741 | test ! -s conftest.err |
| 9742 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9743 | ac_hi=-1 ac_mid=-1 |
| 9744 | while :; do |
| 9745 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9746 | /* confdefs.h. */ |
| 9747 | _ACEOF |
| 9748 | cat confdefs.h >>conftest.$ac_ext |
| 9749 | cat >>conftest.$ac_ext <<_ACEOF |
| 9750 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9751 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9752 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9753 | int |
| 9754 | main () |
| 9755 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9756 | 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] | 9757 | test_array [0] = 0 |
| 9758 | |
| 9759 | ; |
| 9760 | return 0; |
| 9761 | } |
| 9762 | _ACEOF |
| 9763 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9764 | if { (ac_try="$ac_compile" |
| 9765 | case "(($ac_try" in |
| 9766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9767 | *) ac_try_echo=$ac_try;; |
| 9768 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9770 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9771 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9773 | rm -f conftest.er1 |
| 9774 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9776 | (exit $ac_status); } && { |
| 9777 | test -z "$ac_c_werror_flag" || |
| 9778 | test ! -s conftest.err |
| 9779 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9780 | ac_lo=$ac_mid; break |
| 9781 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9782 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9784 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9785 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9786 | if test $ac_mid -le $ac_hi; then |
| 9787 | ac_lo= ac_hi= |
| 9788 | break |
| 9789 | fi |
| 9790 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9791 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9792 | |
| 9793 | 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] | 9794 | done |
| 9795 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9796 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9798 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9799 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9800 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9801 | |
| 9802 | 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] | 9803 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9804 | |
| 9805 | 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] | 9806 | # Binary search between lo and hi bounds. |
| 9807 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9808 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9809 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9810 | /* confdefs.h. */ |
| 9811 | _ACEOF |
| 9812 | cat confdefs.h >>conftest.$ac_ext |
| 9813 | cat >>conftest.$ac_ext <<_ACEOF |
| 9814 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9815 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9816 | typedef double ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9817 | int |
| 9818 | main () |
| 9819 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9820 | 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] | 9821 | test_array [0] = 0 |
| 9822 | |
| 9823 | ; |
| 9824 | return 0; |
| 9825 | } |
| 9826 | _ACEOF |
| 9827 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9828 | if { (ac_try="$ac_compile" |
| 9829 | case "(($ac_try" in |
| 9830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9831 | *) ac_try_echo=$ac_try;; |
| 9832 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9834 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9835 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9837 | rm -f conftest.er1 |
| 9838 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9840 | (exit $ac_status); } && { |
| 9841 | test -z "$ac_c_werror_flag" || |
| 9842 | test ! -s conftest.err |
| 9843 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9844 | ac_hi=$ac_mid |
| 9845 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9846 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9848 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9849 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9850 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9851 | |
| 9852 | 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] | 9853 | done |
| 9854 | case $ac_lo in |
| 9855 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9856 | '') if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9857 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9858 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9859 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9860 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9861 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9862 | else |
| 9863 | ac_cv_sizeof_double=0 |
| 9864 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9865 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9867 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9868 | /* confdefs.h. */ |
| 9869 | _ACEOF |
| 9870 | cat confdefs.h >>conftest.$ac_ext |
| 9871 | cat >>conftest.$ac_ext <<_ACEOF |
| 9872 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9873 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9874 | typedef double ac__type_sizeof_; |
| 9875 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 9876 | 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] | 9877 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9878 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9879 | int |
| 9880 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9881 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9882 | |
| 9883 | FILE *f = fopen ("conftest.val", "w"); |
| 9884 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9885 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9886 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9887 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9888 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9889 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9890 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9891 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9892 | } |
| 9893 | else |
| 9894 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9895 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9896 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9897 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9898 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9899 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9900 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9901 | |
| 9902 | ; |
| 9903 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9904 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9905 | _ACEOF |
| 9906 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9907 | if { (ac_try="$ac_link" |
| 9908 | case "(($ac_try" in |
| 9909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9910 | *) ac_try_echo=$ac_try;; |
| 9911 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9913 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9914 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9916 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9917 | { (case "(($ac_try" in |
| 9918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9919 | *) ac_try_echo=$ac_try;; |
| 9920 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9922 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9923 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9925 | (exit $ac_status); }; }; then |
| 9926 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9927 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9928 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9929 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9931 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9932 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9933 | if test "$ac_cv_type_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9934 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9935 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9936 | echo "$as_me: error: cannot compute sizeof (double) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9937 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9938 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9939 | else |
| 9940 | ac_cv_sizeof_double=0 |
| 9941 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9942 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9943 | 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] | 9944 | fi |
| 9945 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9946 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9947 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 9948 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 9949 | |
| 9950 | |
| 9951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9952 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9953 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9954 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 9955 | |
| 9956 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 9957 | { echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 9958 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; } |
| 9959 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 9960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9961 | else |
| 9962 | cat >conftest.$ac_ext <<_ACEOF |
| 9963 | /* confdefs.h. */ |
| 9964 | _ACEOF |
| 9965 | cat confdefs.h >>conftest.$ac_ext |
| 9966 | cat >>conftest.$ac_ext <<_ACEOF |
| 9967 | /* end confdefs.h. */ |
| 9968 | $ac_includes_default |
| 9969 | typedef fpos_t ac__type_new_; |
| 9970 | int |
| 9971 | main () |
| 9972 | { |
| 9973 | if ((ac__type_new_ *) 0) |
| 9974 | return 0; |
| 9975 | if (sizeof (ac__type_new_)) |
| 9976 | return 0; |
| 9977 | ; |
| 9978 | return 0; |
| 9979 | } |
| 9980 | _ACEOF |
| 9981 | rm -f conftest.$ac_objext |
| 9982 | if { (ac_try="$ac_compile" |
| 9983 | case "(($ac_try" in |
| 9984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9985 | *) ac_try_echo=$ac_try;; |
| 9986 | esac |
| 9987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9988 | (eval "$ac_compile") 2>conftest.er1 |
| 9989 | ac_status=$? |
| 9990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9991 | rm -f conftest.er1 |
| 9992 | cat conftest.err >&5 |
| 9993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9994 | (exit $ac_status); } && { |
| 9995 | test -z "$ac_c_werror_flag" || |
| 9996 | test ! -s conftest.err |
| 9997 | } && test -s conftest.$ac_objext; then |
| 9998 | ac_cv_type_fpos_t=yes |
| 9999 | else |
| 10000 | echo "$as_me: failed program was:" >&5 |
| 10001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10002 | |
| 10003 | ac_cv_type_fpos_t=no |
| 10004 | fi |
| 10005 | |
| 10006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10007 | fi |
| 10008 | { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 10009 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; } |
| 10010 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10011 | # The cast to long int works around a bug in the HP C Compiler |
| 10012 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10013 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10014 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10015 | { echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 10016 | 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] | 10017 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10019 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10020 | if test "$cross_compiling" = yes; then |
| 10021 | # Depending upon the size, compute the lo and hi bounds. |
| 10022 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10023 | /* confdefs.h. */ |
| 10024 | _ACEOF |
| 10025 | cat confdefs.h >>conftest.$ac_ext |
| 10026 | cat >>conftest.$ac_ext <<_ACEOF |
| 10027 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10028 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10029 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10030 | int |
| 10031 | main () |
| 10032 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10033 | 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] | 10034 | test_array [0] = 0 |
| 10035 | |
| 10036 | ; |
| 10037 | return 0; |
| 10038 | } |
| 10039 | _ACEOF |
| 10040 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10041 | if { (ac_try="$ac_compile" |
| 10042 | case "(($ac_try" in |
| 10043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10044 | *) ac_try_echo=$ac_try;; |
| 10045 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10047 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10048 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10050 | rm -f conftest.er1 |
| 10051 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10053 | (exit $ac_status); } && { |
| 10054 | test -z "$ac_c_werror_flag" || |
| 10055 | test ! -s conftest.err |
| 10056 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10057 | ac_lo=0 ac_mid=0 |
| 10058 | while :; do |
| 10059 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10060 | /* confdefs.h. */ |
| 10061 | _ACEOF |
| 10062 | cat confdefs.h >>conftest.$ac_ext |
| 10063 | cat >>conftest.$ac_ext <<_ACEOF |
| 10064 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10065 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10066 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10067 | int |
| 10068 | main () |
| 10069 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10070 | 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] | 10071 | test_array [0] = 0 |
| 10072 | |
| 10073 | ; |
| 10074 | return 0; |
| 10075 | } |
| 10076 | _ACEOF |
| 10077 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10078 | if { (ac_try="$ac_compile" |
| 10079 | case "(($ac_try" in |
| 10080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10081 | *) ac_try_echo=$ac_try;; |
| 10082 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10084 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10085 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10087 | rm -f conftest.er1 |
| 10088 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10090 | (exit $ac_status); } && { |
| 10091 | test -z "$ac_c_werror_flag" || |
| 10092 | test ! -s conftest.err |
| 10093 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10094 | ac_hi=$ac_mid; break |
| 10095 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10096 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10098 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10099 | ac_lo=`expr $ac_mid + 1` |
| 10100 | if test $ac_lo -le $ac_mid; then |
| 10101 | ac_lo= ac_hi= |
| 10102 | break |
| 10103 | fi |
| 10104 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10105 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10106 | |
| 10107 | 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] | 10108 | done |
| 10109 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10110 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10112 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10113 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10114 | /* confdefs.h. */ |
| 10115 | _ACEOF |
| 10116 | cat confdefs.h >>conftest.$ac_ext |
| 10117 | cat >>conftest.$ac_ext <<_ACEOF |
| 10118 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10120 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10121 | int |
| 10122 | main () |
| 10123 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10124 | 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] | 10125 | test_array [0] = 0 |
| 10126 | |
| 10127 | ; |
| 10128 | return 0; |
| 10129 | } |
| 10130 | _ACEOF |
| 10131 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10132 | if { (ac_try="$ac_compile" |
| 10133 | case "(($ac_try" in |
| 10134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10135 | *) ac_try_echo=$ac_try;; |
| 10136 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10138 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10139 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10141 | rm -f conftest.er1 |
| 10142 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10144 | (exit $ac_status); } && { |
| 10145 | test -z "$ac_c_werror_flag" || |
| 10146 | test ! -s conftest.err |
| 10147 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10148 | ac_hi=-1 ac_mid=-1 |
| 10149 | while :; do |
| 10150 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10151 | /* confdefs.h. */ |
| 10152 | _ACEOF |
| 10153 | cat confdefs.h >>conftest.$ac_ext |
| 10154 | cat >>conftest.$ac_ext <<_ACEOF |
| 10155 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10156 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10157 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10158 | int |
| 10159 | main () |
| 10160 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10161 | 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] | 10162 | test_array [0] = 0 |
| 10163 | |
| 10164 | ; |
| 10165 | return 0; |
| 10166 | } |
| 10167 | _ACEOF |
| 10168 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10169 | if { (ac_try="$ac_compile" |
| 10170 | case "(($ac_try" in |
| 10171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10172 | *) ac_try_echo=$ac_try;; |
| 10173 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10175 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10176 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10178 | rm -f conftest.er1 |
| 10179 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10181 | (exit $ac_status); } && { |
| 10182 | test -z "$ac_c_werror_flag" || |
| 10183 | test ! -s conftest.err |
| 10184 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10185 | ac_lo=$ac_mid; break |
| 10186 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10187 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10189 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10190 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10191 | if test $ac_mid -le $ac_hi; then |
| 10192 | ac_lo= ac_hi= |
| 10193 | break |
| 10194 | fi |
| 10195 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10197 | |
| 10198 | 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] | 10199 | done |
| 10200 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10201 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10203 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10204 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10205 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10206 | |
| 10207 | 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] | 10208 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10209 | |
| 10210 | 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] | 10211 | # Binary search between lo and hi bounds. |
| 10212 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10213 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10214 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10215 | /* confdefs.h. */ |
| 10216 | _ACEOF |
| 10217 | cat confdefs.h >>conftest.$ac_ext |
| 10218 | cat >>conftest.$ac_ext <<_ACEOF |
| 10219 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10220 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10221 | typedef fpos_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10222 | int |
| 10223 | main () |
| 10224 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10225 | 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] | 10226 | test_array [0] = 0 |
| 10227 | |
| 10228 | ; |
| 10229 | return 0; |
| 10230 | } |
| 10231 | _ACEOF |
| 10232 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10233 | if { (ac_try="$ac_compile" |
| 10234 | case "(($ac_try" in |
| 10235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10236 | *) ac_try_echo=$ac_try;; |
| 10237 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10239 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10240 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10242 | rm -f conftest.er1 |
| 10243 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10245 | (exit $ac_status); } && { |
| 10246 | test -z "$ac_c_werror_flag" || |
| 10247 | test ! -s conftest.err |
| 10248 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10249 | ac_hi=$ac_mid |
| 10250 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10251 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10253 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10254 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10255 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10256 | |
| 10257 | 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] | 10258 | done |
| 10259 | case $ac_lo in |
| 10260 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10261 | '') if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10262 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10263 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10264 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10265 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10266 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10267 | else |
| 10268 | ac_cv_sizeof_fpos_t=0 |
| 10269 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10270 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10271 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10272 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10273 | /* confdefs.h. */ |
| 10274 | _ACEOF |
| 10275 | cat confdefs.h >>conftest.$ac_ext |
| 10276 | cat >>conftest.$ac_ext <<_ACEOF |
| 10277 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10278 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10279 | typedef fpos_t ac__type_sizeof_; |
| 10280 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10281 | 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] | 10282 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10283 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10284 | int |
| 10285 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10286 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10287 | |
| 10288 | FILE *f = fopen ("conftest.val", "w"); |
| 10289 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10290 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10291 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10292 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10293 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10294 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10295 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10296 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10297 | } |
| 10298 | else |
| 10299 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10300 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10301 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10302 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10303 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10304 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10305 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10306 | |
| 10307 | ; |
| 10308 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10309 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10310 | _ACEOF |
| 10311 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10312 | if { (ac_try="$ac_link" |
| 10313 | case "(($ac_try" in |
| 10314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10315 | *) ac_try_echo=$ac_try;; |
| 10316 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10318 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10319 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10321 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10322 | { (case "(($ac_try" in |
| 10323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10324 | *) ac_try_echo=$ac_try;; |
| 10325 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10327 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10328 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10330 | (exit $ac_status); }; }; then |
| 10331 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10332 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10333 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10334 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10336 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10337 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10338 | if test "$ac_cv_type_fpos_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10339 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10340 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10341 | echo "$as_me: error: cannot compute sizeof (fpos_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10342 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10343 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10344 | else |
| 10345 | ac_cv_sizeof_fpos_t=0 |
| 10346 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10347 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10348 | 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] | 10349 | fi |
| 10350 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10351 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10352 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 10353 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10354 | |
| 10355 | |
| 10356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10357 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10358 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10359 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10360 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10361 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10362 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10363 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 10364 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10366 | else |
| 10367 | cat >conftest.$ac_ext <<_ACEOF |
| 10368 | /* confdefs.h. */ |
| 10369 | _ACEOF |
| 10370 | cat confdefs.h >>conftest.$ac_ext |
| 10371 | cat >>conftest.$ac_ext <<_ACEOF |
| 10372 | /* end confdefs.h. */ |
| 10373 | $ac_includes_default |
| 10374 | typedef size_t ac__type_new_; |
| 10375 | int |
| 10376 | main () |
| 10377 | { |
| 10378 | if ((ac__type_new_ *) 0) |
| 10379 | return 0; |
| 10380 | if (sizeof (ac__type_new_)) |
| 10381 | return 0; |
| 10382 | ; |
| 10383 | return 0; |
| 10384 | } |
| 10385 | _ACEOF |
| 10386 | rm -f conftest.$ac_objext |
| 10387 | if { (ac_try="$ac_compile" |
| 10388 | case "(($ac_try" in |
| 10389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10390 | *) ac_try_echo=$ac_try;; |
| 10391 | esac |
| 10392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10393 | (eval "$ac_compile") 2>conftest.er1 |
| 10394 | ac_status=$? |
| 10395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10396 | rm -f conftest.er1 |
| 10397 | cat conftest.err >&5 |
| 10398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10399 | (exit $ac_status); } && { |
| 10400 | test -z "$ac_c_werror_flag" || |
| 10401 | test ! -s conftest.err |
| 10402 | } && test -s conftest.$ac_objext; then |
| 10403 | ac_cv_type_size_t=yes |
| 10404 | else |
| 10405 | echo "$as_me: failed program was:" >&5 |
| 10406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10407 | |
| 10408 | ac_cv_type_size_t=no |
| 10409 | fi |
| 10410 | |
| 10411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10412 | fi |
| 10413 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 10414 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 10415 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10416 | # The cast to long int works around a bug in the HP C Compiler |
| 10417 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10418 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10419 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10420 | { echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 10421 | 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] | 10422 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10424 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10425 | if test "$cross_compiling" = yes; then |
| 10426 | # Depending upon the size, compute the lo and hi bounds. |
| 10427 | cat >conftest.$ac_ext <<_ACEOF |
| 10428 | /* confdefs.h. */ |
| 10429 | _ACEOF |
| 10430 | cat confdefs.h >>conftest.$ac_ext |
| 10431 | cat >>conftest.$ac_ext <<_ACEOF |
| 10432 | /* end confdefs.h. */ |
| 10433 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10434 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10435 | int |
| 10436 | main () |
| 10437 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10438 | 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] | 10439 | test_array [0] = 0 |
| 10440 | |
| 10441 | ; |
| 10442 | return 0; |
| 10443 | } |
| 10444 | _ACEOF |
| 10445 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10446 | if { (ac_try="$ac_compile" |
| 10447 | case "(($ac_try" in |
| 10448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10449 | *) ac_try_echo=$ac_try;; |
| 10450 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10452 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10453 | ac_status=$? |
| 10454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10455 | rm -f conftest.er1 |
| 10456 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10458 | (exit $ac_status); } && { |
| 10459 | test -z "$ac_c_werror_flag" || |
| 10460 | test ! -s conftest.err |
| 10461 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10462 | ac_lo=0 ac_mid=0 |
| 10463 | while :; do |
| 10464 | cat >conftest.$ac_ext <<_ACEOF |
| 10465 | /* confdefs.h. */ |
| 10466 | _ACEOF |
| 10467 | cat confdefs.h >>conftest.$ac_ext |
| 10468 | cat >>conftest.$ac_ext <<_ACEOF |
| 10469 | /* end confdefs.h. */ |
| 10470 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10471 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10472 | int |
| 10473 | main () |
| 10474 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10475 | 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] | 10476 | test_array [0] = 0 |
| 10477 | |
| 10478 | ; |
| 10479 | return 0; |
| 10480 | } |
| 10481 | _ACEOF |
| 10482 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10483 | if { (ac_try="$ac_compile" |
| 10484 | case "(($ac_try" in |
| 10485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10486 | *) ac_try_echo=$ac_try;; |
| 10487 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10489 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10490 | ac_status=$? |
| 10491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10492 | rm -f conftest.er1 |
| 10493 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10495 | (exit $ac_status); } && { |
| 10496 | test -z "$ac_c_werror_flag" || |
| 10497 | test ! -s conftest.err |
| 10498 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10499 | ac_hi=$ac_mid; break |
| 10500 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10501 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10503 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10504 | ac_lo=`expr $ac_mid + 1` |
| 10505 | if test $ac_lo -le $ac_mid; then |
| 10506 | ac_lo= ac_hi= |
| 10507 | break |
| 10508 | fi |
| 10509 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10510 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10511 | |
| 10512 | 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] | 10513 | done |
| 10514 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10515 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10517 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10518 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10519 | /* confdefs.h. */ |
| 10520 | _ACEOF |
| 10521 | cat confdefs.h >>conftest.$ac_ext |
| 10522 | cat >>conftest.$ac_ext <<_ACEOF |
| 10523 | /* end confdefs.h. */ |
| 10524 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10525 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10526 | int |
| 10527 | main () |
| 10528 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10529 | 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] | 10530 | test_array [0] = 0 |
| 10531 | |
| 10532 | ; |
| 10533 | return 0; |
| 10534 | } |
| 10535 | _ACEOF |
| 10536 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10537 | if { (ac_try="$ac_compile" |
| 10538 | case "(($ac_try" in |
| 10539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10540 | *) ac_try_echo=$ac_try;; |
| 10541 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10543 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10544 | ac_status=$? |
| 10545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10546 | rm -f conftest.er1 |
| 10547 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10549 | (exit $ac_status); } && { |
| 10550 | test -z "$ac_c_werror_flag" || |
| 10551 | test ! -s conftest.err |
| 10552 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10553 | ac_hi=-1 ac_mid=-1 |
| 10554 | while :; do |
| 10555 | cat >conftest.$ac_ext <<_ACEOF |
| 10556 | /* confdefs.h. */ |
| 10557 | _ACEOF |
| 10558 | cat confdefs.h >>conftest.$ac_ext |
| 10559 | cat >>conftest.$ac_ext <<_ACEOF |
| 10560 | /* end confdefs.h. */ |
| 10561 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10562 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10563 | int |
| 10564 | main () |
| 10565 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10566 | 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] | 10567 | test_array [0] = 0 |
| 10568 | |
| 10569 | ; |
| 10570 | return 0; |
| 10571 | } |
| 10572 | _ACEOF |
| 10573 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10574 | if { (ac_try="$ac_compile" |
| 10575 | case "(($ac_try" in |
| 10576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10577 | *) ac_try_echo=$ac_try;; |
| 10578 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10580 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10581 | ac_status=$? |
| 10582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10583 | rm -f conftest.er1 |
| 10584 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10586 | (exit $ac_status); } && { |
| 10587 | test -z "$ac_c_werror_flag" || |
| 10588 | test ! -s conftest.err |
| 10589 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10590 | ac_lo=$ac_mid; break |
| 10591 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10592 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10594 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10595 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 10596 | if test $ac_mid -le $ac_hi; then |
| 10597 | ac_lo= ac_hi= |
| 10598 | break |
| 10599 | fi |
| 10600 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10601 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10602 | |
| 10603 | 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] | 10604 | done |
| 10605 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10606 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10608 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10609 | ac_lo= ac_hi= |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10610 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10611 | |
| 10612 | 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] | 10613 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10614 | |
| 10615 | 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] | 10616 | # Binary search between lo and hi bounds. |
| 10617 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10618 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10619 | cat >conftest.$ac_ext <<_ACEOF |
| 10620 | /* confdefs.h. */ |
| 10621 | _ACEOF |
| 10622 | cat confdefs.h >>conftest.$ac_ext |
| 10623 | cat >>conftest.$ac_ext <<_ACEOF |
| 10624 | /* end confdefs.h. */ |
| 10625 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10626 | typedef size_t ac__type_sizeof_; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10627 | int |
| 10628 | main () |
| 10629 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10630 | 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] | 10631 | test_array [0] = 0 |
| 10632 | |
| 10633 | ; |
| 10634 | return 0; |
| 10635 | } |
| 10636 | _ACEOF |
| 10637 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10638 | if { (ac_try="$ac_compile" |
| 10639 | case "(($ac_try" in |
| 10640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10641 | *) ac_try_echo=$ac_try;; |
| 10642 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10644 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10645 | ac_status=$? |
| 10646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10647 | rm -f conftest.er1 |
| 10648 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10650 | (exit $ac_status); } && { |
| 10651 | test -z "$ac_c_werror_flag" || |
| 10652 | test ! -s conftest.err |
| 10653 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10654 | ac_hi=$ac_mid |
| 10655 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10656 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10658 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10659 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10660 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10661 | |
| 10662 | 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] | 10663 | done |
| 10664 | case $ac_lo in |
| 10665 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10666 | '') if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10667 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10668 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10669 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10670 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10671 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10672 | else |
| 10673 | ac_cv_sizeof_size_t=0 |
| 10674 | fi ;; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10675 | esac |
| 10676 | else |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10677 | cat >conftest.$ac_ext <<_ACEOF |
| 10678 | /* confdefs.h. */ |
| 10679 | _ACEOF |
| 10680 | cat confdefs.h >>conftest.$ac_ext |
| 10681 | cat >>conftest.$ac_ext <<_ACEOF |
| 10682 | /* end confdefs.h. */ |
| 10683 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10684 | typedef size_t ac__type_sizeof_; |
| 10685 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 10686 | 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] | 10687 | #include <stdio.h> |
| 10688 | #include <stdlib.h> |
| 10689 | int |
| 10690 | main () |
| 10691 | { |
| 10692 | |
| 10693 | FILE *f = fopen ("conftest.val", "w"); |
| 10694 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10695 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10696 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10697 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10698 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10699 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10700 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10701 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10702 | } |
| 10703 | else |
| 10704 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10705 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10706 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10707 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10708 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10709 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10710 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10711 | |
| 10712 | ; |
| 10713 | return 0; |
| 10714 | } |
| 10715 | _ACEOF |
| 10716 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10717 | if { (ac_try="$ac_link" |
| 10718 | case "(($ac_try" in |
| 10719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10720 | *) ac_try_echo=$ac_try;; |
| 10721 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10723 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10724 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10726 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10727 | { (case "(($ac_try" in |
| 10728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10729 | *) ac_try_echo=$ac_try;; |
| 10730 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10732 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10733 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10735 | (exit $ac_status); }; }; then |
| 10736 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 10737 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10738 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10739 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10741 | |
| 10742 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10743 | if test "$ac_cv_type_size_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10744 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10745 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10746 | echo "$as_me: error: cannot compute sizeof (size_t) |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10747 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10748 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10749 | else |
| 10750 | ac_cv_sizeof_size_t=0 |
| 10751 | fi |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10752 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10753 | 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] | 10754 | fi |
| 10755 | rm -f conftest.val |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10756 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10757 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 10758 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 10759 | |
| 10760 | |
| 10761 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 10762 | cat >>confdefs.h <<_ACEOF |
| 10763 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 10764 | _ACEOF |
| 10765 | |
| 10766 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10767 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10768 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 10769 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10771 | else |
| 10772 | cat >conftest.$ac_ext <<_ACEOF |
| 10773 | /* confdefs.h. */ |
| 10774 | _ACEOF |
| 10775 | cat confdefs.h >>conftest.$ac_ext |
| 10776 | cat >>conftest.$ac_ext <<_ACEOF |
| 10777 | /* end confdefs.h. */ |
| 10778 | $ac_includes_default |
| 10779 | typedef pid_t ac__type_new_; |
| 10780 | int |
| 10781 | main () |
| 10782 | { |
| 10783 | if ((ac__type_new_ *) 0) |
| 10784 | return 0; |
| 10785 | if (sizeof (ac__type_new_)) |
| 10786 | return 0; |
| 10787 | ; |
| 10788 | return 0; |
| 10789 | } |
| 10790 | _ACEOF |
| 10791 | rm -f conftest.$ac_objext |
| 10792 | if { (ac_try="$ac_compile" |
| 10793 | case "(($ac_try" in |
| 10794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10795 | *) ac_try_echo=$ac_try;; |
| 10796 | esac |
| 10797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10798 | (eval "$ac_compile") 2>conftest.er1 |
| 10799 | ac_status=$? |
| 10800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10801 | rm -f conftest.er1 |
| 10802 | cat conftest.err >&5 |
| 10803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10804 | (exit $ac_status); } && { |
| 10805 | test -z "$ac_c_werror_flag" || |
| 10806 | test ! -s conftest.err |
| 10807 | } && test -s conftest.$ac_objext; then |
| 10808 | ac_cv_type_pid_t=yes |
| 10809 | else |
| 10810 | echo "$as_me: failed program was:" >&5 |
| 10811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10812 | |
| 10813 | ac_cv_type_pid_t=no |
| 10814 | fi |
| 10815 | |
| 10816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10817 | fi |
| 10818 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10819 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 10820 | |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10821 | # The cast to long int works around a bug in the HP C Compiler |
| 10822 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10823 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10824 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10825 | { echo "$as_me:$LINENO: checking size of pid_t" >&5 |
| 10826 | echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10827 | if test "${ac_cv_sizeof_pid_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10829 | else |
| 10830 | if test "$cross_compiling" = yes; then |
| 10831 | # Depending upon the size, compute the lo and hi bounds. |
| 10832 | cat >conftest.$ac_ext <<_ACEOF |
| 10833 | /* confdefs.h. */ |
| 10834 | _ACEOF |
| 10835 | cat confdefs.h >>conftest.$ac_ext |
| 10836 | cat >>conftest.$ac_ext <<_ACEOF |
| 10837 | /* end confdefs.h. */ |
| 10838 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10839 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10840 | int |
| 10841 | main () |
| 10842 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10843 | 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] | 10844 | test_array [0] = 0 |
| 10845 | |
| 10846 | ; |
| 10847 | return 0; |
| 10848 | } |
| 10849 | _ACEOF |
| 10850 | rm -f conftest.$ac_objext |
| 10851 | if { (ac_try="$ac_compile" |
| 10852 | case "(($ac_try" in |
| 10853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10854 | *) ac_try_echo=$ac_try;; |
| 10855 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10857 | (eval "$ac_compile") 2>conftest.er1 |
| 10858 | ac_status=$? |
| 10859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10860 | rm -f conftest.er1 |
| 10861 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10863 | (exit $ac_status); } && { |
| 10864 | test -z "$ac_c_werror_flag" || |
| 10865 | test ! -s conftest.err |
| 10866 | } && test -s conftest.$ac_objext; then |
| 10867 | ac_lo=0 ac_mid=0 |
| 10868 | while :; do |
| 10869 | cat >conftest.$ac_ext <<_ACEOF |
| 10870 | /* confdefs.h. */ |
| 10871 | _ACEOF |
| 10872 | cat confdefs.h >>conftest.$ac_ext |
| 10873 | cat >>conftest.$ac_ext <<_ACEOF |
| 10874 | /* end confdefs.h. */ |
| 10875 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10876 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10877 | int |
| 10878 | main () |
| 10879 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10880 | 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] | 10881 | test_array [0] = 0 |
| 10882 | |
| 10883 | ; |
| 10884 | return 0; |
| 10885 | } |
| 10886 | _ACEOF |
| 10887 | rm -f conftest.$ac_objext |
| 10888 | if { (ac_try="$ac_compile" |
| 10889 | case "(($ac_try" in |
| 10890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10891 | *) ac_try_echo=$ac_try;; |
| 10892 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10894 | (eval "$ac_compile") 2>conftest.er1 |
| 10895 | ac_status=$? |
| 10896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10897 | rm -f conftest.er1 |
| 10898 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10900 | (exit $ac_status); } && { |
| 10901 | test -z "$ac_c_werror_flag" || |
| 10902 | test ! -s conftest.err |
| 10903 | } && test -s conftest.$ac_objext; then |
| 10904 | ac_hi=$ac_mid; break |
| 10905 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10906 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10908 | |
| 10909 | ac_lo=`expr $ac_mid + 1` |
| 10910 | if test $ac_lo -le $ac_mid; then |
| 10911 | ac_lo= ac_hi= |
| 10912 | break |
| 10913 | fi |
| 10914 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 10915 | fi |
| 10916 | |
| 10917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10918 | done |
| 10919 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10920 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10922 | |
| 10923 | cat >conftest.$ac_ext <<_ACEOF |
| 10924 | /* confdefs.h. */ |
| 10925 | _ACEOF |
| 10926 | cat confdefs.h >>conftest.$ac_ext |
| 10927 | cat >>conftest.$ac_ext <<_ACEOF |
| 10928 | /* end confdefs.h. */ |
| 10929 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10930 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10931 | int |
| 10932 | main () |
| 10933 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10934 | 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] | 10935 | test_array [0] = 0 |
| 10936 | |
| 10937 | ; |
| 10938 | return 0; |
| 10939 | } |
| 10940 | _ACEOF |
| 10941 | rm -f conftest.$ac_objext |
| 10942 | if { (ac_try="$ac_compile" |
| 10943 | case "(($ac_try" in |
| 10944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10945 | *) ac_try_echo=$ac_try;; |
| 10946 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10948 | (eval "$ac_compile") 2>conftest.er1 |
| 10949 | ac_status=$? |
| 10950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10951 | rm -f conftest.er1 |
| 10952 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10954 | (exit $ac_status); } && { |
| 10955 | test -z "$ac_c_werror_flag" || |
| 10956 | test ! -s conftest.err |
| 10957 | } && test -s conftest.$ac_objext; then |
| 10958 | ac_hi=-1 ac_mid=-1 |
| 10959 | while :; do |
| 10960 | cat >conftest.$ac_ext <<_ACEOF |
| 10961 | /* confdefs.h. */ |
| 10962 | _ACEOF |
| 10963 | cat confdefs.h >>conftest.$ac_ext |
| 10964 | cat >>conftest.$ac_ext <<_ACEOF |
| 10965 | /* end confdefs.h. */ |
| 10966 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10967 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10968 | int |
| 10969 | main () |
| 10970 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10971 | 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] | 10972 | test_array [0] = 0 |
| 10973 | |
| 10974 | ; |
| 10975 | return 0; |
| 10976 | } |
| 10977 | _ACEOF |
| 10978 | rm -f conftest.$ac_objext |
| 10979 | if { (ac_try="$ac_compile" |
| 10980 | case "(($ac_try" in |
| 10981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10982 | *) ac_try_echo=$ac_try;; |
| 10983 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10985 | (eval "$ac_compile") 2>conftest.er1 |
| 10986 | ac_status=$? |
| 10987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10988 | rm -f conftest.er1 |
| 10989 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10991 | (exit $ac_status); } && { |
| 10992 | test -z "$ac_c_werror_flag" || |
| 10993 | test ! -s conftest.err |
| 10994 | } && test -s conftest.$ac_objext; then |
| 10995 | ac_lo=$ac_mid; break |
| 10996 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 10997 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 10998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10999 | |
| 11000 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11001 | if test $ac_mid -le $ac_hi; then |
| 11002 | ac_lo= ac_hi= |
| 11003 | break |
| 11004 | fi |
| 11005 | ac_mid=`expr 2 '*' $ac_mid` |
| 11006 | fi |
| 11007 | |
| 11008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11009 | done |
| 11010 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11011 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11013 | |
| 11014 | ac_lo= ac_hi= |
| 11015 | fi |
| 11016 | |
| 11017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11018 | fi |
| 11019 | |
| 11020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11021 | # Binary search between lo and hi bounds. |
| 11022 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11023 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11024 | cat >conftest.$ac_ext <<_ACEOF |
| 11025 | /* confdefs.h. */ |
| 11026 | _ACEOF |
| 11027 | cat confdefs.h >>conftest.$ac_ext |
| 11028 | cat >>conftest.$ac_ext <<_ACEOF |
| 11029 | /* end confdefs.h. */ |
| 11030 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11031 | typedef pid_t ac__type_sizeof_; |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11032 | int |
| 11033 | main () |
| 11034 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11035 | 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] | 11036 | test_array [0] = 0 |
| 11037 | |
| 11038 | ; |
| 11039 | return 0; |
| 11040 | } |
| 11041 | _ACEOF |
| 11042 | rm -f conftest.$ac_objext |
| 11043 | if { (ac_try="$ac_compile" |
| 11044 | case "(($ac_try" in |
| 11045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11046 | *) ac_try_echo=$ac_try;; |
| 11047 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11049 | (eval "$ac_compile") 2>conftest.er1 |
| 11050 | ac_status=$? |
| 11051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11052 | rm -f conftest.er1 |
| 11053 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11055 | (exit $ac_status); } && { |
| 11056 | test -z "$ac_c_werror_flag" || |
| 11057 | test ! -s conftest.err |
| 11058 | } && test -s conftest.$ac_objext; then |
| 11059 | ac_hi=$ac_mid |
| 11060 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11061 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11063 | |
| 11064 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11065 | fi |
| 11066 | |
| 11067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11068 | done |
| 11069 | case $ac_lo in |
| 11070 | ?*) ac_cv_sizeof_pid_t=$ac_lo;; |
| 11071 | '') if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11072 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11073 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11074 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11075 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11076 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11077 | else |
| 11078 | ac_cv_sizeof_pid_t=0 |
| 11079 | fi ;; |
| 11080 | esac |
| 11081 | else |
| 11082 | cat >conftest.$ac_ext <<_ACEOF |
| 11083 | /* confdefs.h. */ |
| 11084 | _ACEOF |
| 11085 | cat confdefs.h >>conftest.$ac_ext |
| 11086 | cat >>conftest.$ac_ext <<_ACEOF |
| 11087 | /* end confdefs.h. */ |
| 11088 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11089 | typedef pid_t ac__type_sizeof_; |
| 11090 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11091 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11092 | #include <stdio.h> |
| 11093 | #include <stdlib.h> |
| 11094 | int |
| 11095 | main () |
| 11096 | { |
| 11097 | |
| 11098 | FILE *f = fopen ("conftest.val", "w"); |
| 11099 | if (! f) |
| 11100 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11101 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11102 | { |
| 11103 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11104 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11105 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11106 | fprintf (f, "%ld\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11107 | } |
| 11108 | else |
| 11109 | { |
| 11110 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11111 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11112 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11113 | fprintf (f, "%lu\n", i); |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11114 | } |
| 11115 | return ferror (f) || fclose (f) != 0; |
| 11116 | |
| 11117 | ; |
| 11118 | return 0; |
| 11119 | } |
| 11120 | _ACEOF |
| 11121 | rm -f conftest$ac_exeext |
| 11122 | if { (ac_try="$ac_link" |
| 11123 | case "(($ac_try" in |
| 11124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11125 | *) ac_try_echo=$ac_try;; |
| 11126 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11128 | (eval "$ac_link") 2>&5 |
| 11129 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11131 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11132 | { (case "(($ac_try" in |
| 11133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11134 | *) ac_try_echo=$ac_try;; |
| 11135 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11137 | (eval "$ac_try") 2>&5 |
| 11138 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11140 | (exit $ac_status); }; }; then |
| 11141 | ac_cv_sizeof_pid_t=`cat conftest.val` |
| 11142 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11143 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11144 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11146 | |
| 11147 | ( exit $ac_status ) |
| 11148 | if test "$ac_cv_type_pid_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11149 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11150 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11151 | echo "$as_me: error: cannot compute sizeof (pid_t) |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11152 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11153 | { (exit 77); exit 77; }; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11154 | else |
| 11155 | ac_cv_sizeof_pid_t=0 |
| 11156 | fi |
| 11157 | fi |
| 11158 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11159 | fi |
| 11160 | rm -f conftest.val |
| 11161 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11162 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5 |
| 11163 | echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; } |
Christian Heimes | 951cc0f | 2008-01-31 23:08:23 +0000 | [diff] [blame] | 11164 | |
| 11165 | |
| 11166 | |
| 11167 | cat >>confdefs.h <<_ACEOF |
| 11168 | #define SIZEOF_PID_T $ac_cv_sizeof_pid_t |
| 11169 | _ACEOF |
| 11170 | |
| 11171 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11172 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11173 | { echo "$as_me:$LINENO: checking for long long support" >&5 |
| 11174 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11175 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11176 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11177 | /* confdefs.h. */ |
| 11178 | _ACEOF |
| 11179 | cat confdefs.h >>conftest.$ac_ext |
| 11180 | cat >>conftest.$ac_ext <<_ACEOF |
| 11181 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11182 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11183 | int |
| 11184 | main () |
| 11185 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11186 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | ; |
| 11188 | return 0; |
| 11189 | } |
| 11190 | _ACEOF |
| 11191 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11192 | if { (ac_try="$ac_compile" |
| 11193 | case "(($ac_try" in |
| 11194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11195 | *) ac_try_echo=$ac_try;; |
| 11196 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11198 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11199 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11201 | rm -f conftest.er1 |
| 11202 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11204 | (exit $ac_status); } && { |
| 11205 | test -z "$ac_c_werror_flag" || |
| 11206 | test ! -s conftest.err |
| 11207 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11208 | |
| 11209 | |
| 11210 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11211 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11212 | _ACEOF |
| 11213 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11214 | have_long_long=yes |
| 11215 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11216 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11217 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11219 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11220 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11221 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11222 | |
| 11223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11224 | { echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 11225 | echo "${ECHO_T}$have_long_long" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 11226 | if test "$have_long_long" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11227 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 11228 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
| 11229 | if test "${ac_cv_type_long_long+set}" = set; then |
| 11230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11231 | else |
| 11232 | cat >conftest.$ac_ext <<_ACEOF |
| 11233 | /* confdefs.h. */ |
| 11234 | _ACEOF |
| 11235 | cat confdefs.h >>conftest.$ac_ext |
| 11236 | cat >>conftest.$ac_ext <<_ACEOF |
| 11237 | /* end confdefs.h. */ |
| 11238 | $ac_includes_default |
| 11239 | typedef long long ac__type_new_; |
| 11240 | int |
| 11241 | main () |
| 11242 | { |
| 11243 | if ((ac__type_new_ *) 0) |
| 11244 | return 0; |
| 11245 | if (sizeof (ac__type_new_)) |
| 11246 | return 0; |
| 11247 | ; |
| 11248 | return 0; |
| 11249 | } |
| 11250 | _ACEOF |
| 11251 | rm -f conftest.$ac_objext |
| 11252 | if { (ac_try="$ac_compile" |
| 11253 | case "(($ac_try" in |
| 11254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11255 | *) ac_try_echo=$ac_try;; |
| 11256 | esac |
| 11257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11258 | (eval "$ac_compile") 2>conftest.er1 |
| 11259 | ac_status=$? |
| 11260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11261 | rm -f conftest.er1 |
| 11262 | cat conftest.err >&5 |
| 11263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11264 | (exit $ac_status); } && { |
| 11265 | test -z "$ac_c_werror_flag" || |
| 11266 | test ! -s conftest.err |
| 11267 | } && test -s conftest.$ac_objext; then |
| 11268 | ac_cv_type_long_long=yes |
| 11269 | else |
| 11270 | echo "$as_me: failed program was:" >&5 |
| 11271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11272 | |
| 11273 | ac_cv_type_long_long=no |
| 11274 | fi |
| 11275 | |
| 11276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11277 | fi |
| 11278 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 11279 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 11280 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11281 | # The cast to long int works around a bug in the HP C Compiler |
| 11282 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11283 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11284 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11285 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 11286 | 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] | 11287 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11289 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11290 | if test "$cross_compiling" = yes; then |
| 11291 | # Depending upon the size, compute the lo and hi bounds. |
| 11292 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11293 | /* confdefs.h. */ |
| 11294 | _ACEOF |
| 11295 | cat confdefs.h >>conftest.$ac_ext |
| 11296 | cat >>conftest.$ac_ext <<_ACEOF |
| 11297 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11298 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11299 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11300 | int |
| 11301 | main () |
| 11302 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11303 | 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] | 11304 | test_array [0] = 0 |
| 11305 | |
| 11306 | ; |
| 11307 | return 0; |
| 11308 | } |
| 11309 | _ACEOF |
| 11310 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11311 | if { (ac_try="$ac_compile" |
| 11312 | case "(($ac_try" in |
| 11313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11314 | *) ac_try_echo=$ac_try;; |
| 11315 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11317 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11318 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11320 | rm -f conftest.er1 |
| 11321 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11323 | (exit $ac_status); } && { |
| 11324 | test -z "$ac_c_werror_flag" || |
| 11325 | test ! -s conftest.err |
| 11326 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11327 | ac_lo=0 ac_mid=0 |
| 11328 | while :; do |
| 11329 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11330 | /* confdefs.h. */ |
| 11331 | _ACEOF |
| 11332 | cat confdefs.h >>conftest.$ac_ext |
| 11333 | cat >>conftest.$ac_ext <<_ACEOF |
| 11334 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11335 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11336 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11337 | int |
| 11338 | main () |
| 11339 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11340 | 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] | 11341 | test_array [0] = 0 |
| 11342 | |
| 11343 | ; |
| 11344 | return 0; |
| 11345 | } |
| 11346 | _ACEOF |
| 11347 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11348 | if { (ac_try="$ac_compile" |
| 11349 | case "(($ac_try" in |
| 11350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11351 | *) ac_try_echo=$ac_try;; |
| 11352 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11354 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11355 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11357 | rm -f conftest.er1 |
| 11358 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11360 | (exit $ac_status); } && { |
| 11361 | test -z "$ac_c_werror_flag" || |
| 11362 | test ! -s conftest.err |
| 11363 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11364 | ac_hi=$ac_mid; break |
| 11365 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11366 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11368 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11369 | ac_lo=`expr $ac_mid + 1` |
| 11370 | if test $ac_lo -le $ac_mid; then |
| 11371 | ac_lo= ac_hi= |
| 11372 | break |
| 11373 | fi |
| 11374 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11375 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11376 | |
| 11377 | 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] | 11378 | done |
| 11379 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11380 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11382 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11383 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11384 | /* confdefs.h. */ |
| 11385 | _ACEOF |
| 11386 | cat confdefs.h >>conftest.$ac_ext |
| 11387 | cat >>conftest.$ac_ext <<_ACEOF |
| 11388 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11389 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11390 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11391 | int |
| 11392 | main () |
| 11393 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11394 | 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] | 11395 | test_array [0] = 0 |
| 11396 | |
| 11397 | ; |
| 11398 | return 0; |
| 11399 | } |
| 11400 | _ACEOF |
| 11401 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11402 | if { (ac_try="$ac_compile" |
| 11403 | case "(($ac_try" in |
| 11404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11405 | *) ac_try_echo=$ac_try;; |
| 11406 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11408 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11409 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11411 | rm -f conftest.er1 |
| 11412 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11414 | (exit $ac_status); } && { |
| 11415 | test -z "$ac_c_werror_flag" || |
| 11416 | test ! -s conftest.err |
| 11417 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11418 | ac_hi=-1 ac_mid=-1 |
| 11419 | while :; do |
| 11420 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11421 | /* confdefs.h. */ |
| 11422 | _ACEOF |
| 11423 | cat confdefs.h >>conftest.$ac_ext |
| 11424 | cat >>conftest.$ac_ext <<_ACEOF |
| 11425 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11426 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11427 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11428 | int |
| 11429 | main () |
| 11430 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11431 | 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] | 11432 | test_array [0] = 0 |
| 11433 | |
| 11434 | ; |
| 11435 | return 0; |
| 11436 | } |
| 11437 | _ACEOF |
| 11438 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11439 | if { (ac_try="$ac_compile" |
| 11440 | case "(($ac_try" in |
| 11441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11442 | *) ac_try_echo=$ac_try;; |
| 11443 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11445 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11446 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11448 | rm -f conftest.er1 |
| 11449 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11451 | (exit $ac_status); } && { |
| 11452 | test -z "$ac_c_werror_flag" || |
| 11453 | test ! -s conftest.err |
| 11454 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11455 | ac_lo=$ac_mid; break |
| 11456 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11457 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11459 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11460 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11461 | if test $ac_mid -le $ac_hi; then |
| 11462 | ac_lo= ac_hi= |
| 11463 | break |
| 11464 | fi |
| 11465 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11466 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11467 | |
| 11468 | 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] | 11469 | done |
| 11470 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11471 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11473 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11474 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11475 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11476 | |
| 11477 | 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] | 11478 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11479 | |
| 11480 | 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] | 11481 | # Binary search between lo and hi bounds. |
| 11482 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11483 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11484 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11485 | /* confdefs.h. */ |
| 11486 | _ACEOF |
| 11487 | cat confdefs.h >>conftest.$ac_ext |
| 11488 | cat >>conftest.$ac_ext <<_ACEOF |
| 11489 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11490 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11491 | typedef long long ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11492 | int |
| 11493 | main () |
| 11494 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11495 | 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] | 11496 | test_array [0] = 0 |
| 11497 | |
| 11498 | ; |
| 11499 | return 0; |
| 11500 | } |
| 11501 | _ACEOF |
| 11502 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11503 | if { (ac_try="$ac_compile" |
| 11504 | case "(($ac_try" in |
| 11505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11506 | *) ac_try_echo=$ac_try;; |
| 11507 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11509 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11510 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11512 | rm -f conftest.er1 |
| 11513 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11515 | (exit $ac_status); } && { |
| 11516 | test -z "$ac_c_werror_flag" || |
| 11517 | test ! -s conftest.err |
| 11518 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11519 | ac_hi=$ac_mid |
| 11520 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11521 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11523 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11524 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11525 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11526 | |
| 11527 | 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] | 11528 | done |
| 11529 | case $ac_lo in |
| 11530 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11531 | '') if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11532 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11533 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11534 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11535 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11536 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11537 | else |
| 11538 | ac_cv_sizeof_long_long=0 |
| 11539 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11540 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11541 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11542 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11543 | /* confdefs.h. */ |
| 11544 | _ACEOF |
| 11545 | cat confdefs.h >>conftest.$ac_ext |
| 11546 | cat >>conftest.$ac_ext <<_ACEOF |
| 11547 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11548 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11549 | typedef long long ac__type_sizeof_; |
| 11550 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 11551 | 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] | 11552 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11553 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11554 | int |
| 11555 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11556 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11557 | |
| 11558 | FILE *f = fopen ("conftest.val", "w"); |
| 11559 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11560 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11561 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11562 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11563 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11564 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11565 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11566 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11567 | } |
| 11568 | else |
| 11569 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11570 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11571 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11572 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11573 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11574 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11575 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11576 | |
| 11577 | ; |
| 11578 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11579 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11580 | _ACEOF |
| 11581 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11582 | if { (ac_try="$ac_link" |
| 11583 | case "(($ac_try" in |
| 11584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11585 | *) ac_try_echo=$ac_try;; |
| 11586 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11588 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11589 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11591 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11592 | { (case "(($ac_try" in |
| 11593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11594 | *) ac_try_echo=$ac_try;; |
| 11595 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11597 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11598 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11600 | (exit $ac_status); }; }; then |
| 11601 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11602 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11603 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11604 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11607 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11608 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11609 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11610 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11611 | echo "$as_me: error: cannot compute sizeof (long long) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11612 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11613 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11614 | else |
| 11615 | ac_cv_sizeof_long_long=0 |
| 11616 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11617 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11618 | 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] | 11619 | fi |
| 11620 | rm -f conftest.val |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11621 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11622 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 11623 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 11624 | |
| 11625 | |
| 11626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11627 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11628 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11629 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11630 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11631 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11632 | fi |
| 11633 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11634 | { echo "$as_me:$LINENO: checking for long double support" >&5 |
| 11635 | echo $ECHO_N "checking for long double support... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11636 | have_long_double=no |
| 11637 | cat >conftest.$ac_ext <<_ACEOF |
| 11638 | /* confdefs.h. */ |
| 11639 | _ACEOF |
| 11640 | cat confdefs.h >>conftest.$ac_ext |
| 11641 | cat >>conftest.$ac_ext <<_ACEOF |
| 11642 | /* end confdefs.h. */ |
| 11643 | |
| 11644 | int |
| 11645 | main () |
| 11646 | { |
| 11647 | long double x; x = (long double)0.; |
| 11648 | ; |
| 11649 | return 0; |
| 11650 | } |
| 11651 | _ACEOF |
| 11652 | rm -f conftest.$ac_objext |
| 11653 | if { (ac_try="$ac_compile" |
| 11654 | case "(($ac_try" in |
| 11655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11656 | *) ac_try_echo=$ac_try;; |
| 11657 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11659 | (eval "$ac_compile") 2>conftest.er1 |
| 11660 | ac_status=$? |
| 11661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11662 | rm -f conftest.er1 |
| 11663 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11665 | (exit $ac_status); } && { |
| 11666 | test -z "$ac_c_werror_flag" || |
| 11667 | test ! -s conftest.err |
| 11668 | } && test -s conftest.$ac_objext; then |
| 11669 | |
| 11670 | |
| 11671 | cat >>confdefs.h <<\_ACEOF |
| 11672 | #define HAVE_LONG_DOUBLE 1 |
| 11673 | _ACEOF |
| 11674 | |
| 11675 | have_long_double=yes |
| 11676 | |
| 11677 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11678 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11680 | |
| 11681 | |
| 11682 | fi |
| 11683 | |
| 11684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11685 | { echo "$as_me:$LINENO: result: $have_long_double" >&5 |
| 11686 | echo "${ECHO_T}$have_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11687 | if test "$have_long_double" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11688 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 11689 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
| 11690 | if test "${ac_cv_type_long_double+set}" = set; then |
| 11691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11692 | else |
| 11693 | cat >conftest.$ac_ext <<_ACEOF |
| 11694 | /* confdefs.h. */ |
| 11695 | _ACEOF |
| 11696 | cat confdefs.h >>conftest.$ac_ext |
| 11697 | cat >>conftest.$ac_ext <<_ACEOF |
| 11698 | /* end confdefs.h. */ |
| 11699 | $ac_includes_default |
| 11700 | typedef long double ac__type_new_; |
| 11701 | int |
| 11702 | main () |
| 11703 | { |
| 11704 | if ((ac__type_new_ *) 0) |
| 11705 | return 0; |
| 11706 | if (sizeof (ac__type_new_)) |
| 11707 | return 0; |
| 11708 | ; |
| 11709 | return 0; |
| 11710 | } |
| 11711 | _ACEOF |
| 11712 | rm -f conftest.$ac_objext |
| 11713 | if { (ac_try="$ac_compile" |
| 11714 | case "(($ac_try" in |
| 11715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11716 | *) ac_try_echo=$ac_try;; |
| 11717 | esac |
| 11718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11719 | (eval "$ac_compile") 2>conftest.er1 |
| 11720 | ac_status=$? |
| 11721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11722 | rm -f conftest.er1 |
| 11723 | cat conftest.err >&5 |
| 11724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11725 | (exit $ac_status); } && { |
| 11726 | test -z "$ac_c_werror_flag" || |
| 11727 | test ! -s conftest.err |
| 11728 | } && test -s conftest.$ac_objext; then |
| 11729 | ac_cv_type_long_double=yes |
| 11730 | else |
| 11731 | echo "$as_me: failed program was:" >&5 |
| 11732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11733 | |
| 11734 | ac_cv_type_long_double=no |
| 11735 | fi |
| 11736 | |
| 11737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11738 | fi |
| 11739 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 |
| 11740 | echo "${ECHO_T}$ac_cv_type_long_double" >&6; } |
| 11741 | |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11742 | # The cast to long int works around a bug in the HP C Compiler |
| 11743 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11744 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11745 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11746 | { echo "$as_me:$LINENO: checking size of long double" >&5 |
| 11747 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11748 | if test "${ac_cv_sizeof_long_double+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11750 | else |
| 11751 | if test "$cross_compiling" = yes; then |
| 11752 | # Depending upon the size, compute the lo and hi bounds. |
| 11753 | cat >conftest.$ac_ext <<_ACEOF |
| 11754 | /* confdefs.h. */ |
| 11755 | _ACEOF |
| 11756 | cat confdefs.h >>conftest.$ac_ext |
| 11757 | cat >>conftest.$ac_ext <<_ACEOF |
| 11758 | /* end confdefs.h. */ |
| 11759 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11760 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11761 | int |
| 11762 | main () |
| 11763 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11764 | 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] | 11765 | test_array [0] = 0 |
| 11766 | |
| 11767 | ; |
| 11768 | return 0; |
| 11769 | } |
| 11770 | _ACEOF |
| 11771 | rm -f conftest.$ac_objext |
| 11772 | if { (ac_try="$ac_compile" |
| 11773 | case "(($ac_try" in |
| 11774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11775 | *) ac_try_echo=$ac_try;; |
| 11776 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11778 | (eval "$ac_compile") 2>conftest.er1 |
| 11779 | ac_status=$? |
| 11780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11781 | rm -f conftest.er1 |
| 11782 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11784 | (exit $ac_status); } && { |
| 11785 | test -z "$ac_c_werror_flag" || |
| 11786 | test ! -s conftest.err |
| 11787 | } && test -s conftest.$ac_objext; then |
| 11788 | ac_lo=0 ac_mid=0 |
| 11789 | while :; do |
| 11790 | cat >conftest.$ac_ext <<_ACEOF |
| 11791 | /* confdefs.h. */ |
| 11792 | _ACEOF |
| 11793 | cat confdefs.h >>conftest.$ac_ext |
| 11794 | cat >>conftest.$ac_ext <<_ACEOF |
| 11795 | /* end confdefs.h. */ |
| 11796 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11797 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11798 | int |
| 11799 | main () |
| 11800 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11801 | 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] | 11802 | test_array [0] = 0 |
| 11803 | |
| 11804 | ; |
| 11805 | return 0; |
| 11806 | } |
| 11807 | _ACEOF |
| 11808 | rm -f conftest.$ac_objext |
| 11809 | if { (ac_try="$ac_compile" |
| 11810 | case "(($ac_try" in |
| 11811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11812 | *) ac_try_echo=$ac_try;; |
| 11813 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11815 | (eval "$ac_compile") 2>conftest.er1 |
| 11816 | ac_status=$? |
| 11817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11818 | rm -f conftest.er1 |
| 11819 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11821 | (exit $ac_status); } && { |
| 11822 | test -z "$ac_c_werror_flag" || |
| 11823 | test ! -s conftest.err |
| 11824 | } && test -s conftest.$ac_objext; then |
| 11825 | ac_hi=$ac_mid; break |
| 11826 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11827 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11829 | |
| 11830 | ac_lo=`expr $ac_mid + 1` |
| 11831 | if test $ac_lo -le $ac_mid; then |
| 11832 | ac_lo= ac_hi= |
| 11833 | break |
| 11834 | fi |
| 11835 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11836 | fi |
| 11837 | |
| 11838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11839 | done |
| 11840 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11841 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11843 | |
| 11844 | cat >conftest.$ac_ext <<_ACEOF |
| 11845 | /* confdefs.h. */ |
| 11846 | _ACEOF |
| 11847 | cat confdefs.h >>conftest.$ac_ext |
| 11848 | cat >>conftest.$ac_ext <<_ACEOF |
| 11849 | /* end confdefs.h. */ |
| 11850 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11851 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11852 | int |
| 11853 | main () |
| 11854 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11855 | 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] | 11856 | test_array [0] = 0 |
| 11857 | |
| 11858 | ; |
| 11859 | return 0; |
| 11860 | } |
| 11861 | _ACEOF |
| 11862 | rm -f conftest.$ac_objext |
| 11863 | if { (ac_try="$ac_compile" |
| 11864 | case "(($ac_try" in |
| 11865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11866 | *) ac_try_echo=$ac_try;; |
| 11867 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11869 | (eval "$ac_compile") 2>conftest.er1 |
| 11870 | ac_status=$? |
| 11871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11872 | rm -f conftest.er1 |
| 11873 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11875 | (exit $ac_status); } && { |
| 11876 | test -z "$ac_c_werror_flag" || |
| 11877 | test ! -s conftest.err |
| 11878 | } && test -s conftest.$ac_objext; then |
| 11879 | ac_hi=-1 ac_mid=-1 |
| 11880 | while :; do |
| 11881 | cat >conftest.$ac_ext <<_ACEOF |
| 11882 | /* confdefs.h. */ |
| 11883 | _ACEOF |
| 11884 | cat confdefs.h >>conftest.$ac_ext |
| 11885 | cat >>conftest.$ac_ext <<_ACEOF |
| 11886 | /* end confdefs.h. */ |
| 11887 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11888 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11889 | int |
| 11890 | main () |
| 11891 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11892 | 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] | 11893 | test_array [0] = 0 |
| 11894 | |
| 11895 | ; |
| 11896 | return 0; |
| 11897 | } |
| 11898 | _ACEOF |
| 11899 | rm -f conftest.$ac_objext |
| 11900 | if { (ac_try="$ac_compile" |
| 11901 | case "(($ac_try" in |
| 11902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11903 | *) ac_try_echo=$ac_try;; |
| 11904 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11906 | (eval "$ac_compile") 2>conftest.er1 |
| 11907 | ac_status=$? |
| 11908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11909 | rm -f conftest.er1 |
| 11910 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11912 | (exit $ac_status); } && { |
| 11913 | test -z "$ac_c_werror_flag" || |
| 11914 | test ! -s conftest.err |
| 11915 | } && test -s conftest.$ac_objext; then |
| 11916 | ac_lo=$ac_mid; break |
| 11917 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11918 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11920 | |
| 11921 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11922 | if test $ac_mid -le $ac_hi; then |
| 11923 | ac_lo= ac_hi= |
| 11924 | break |
| 11925 | fi |
| 11926 | ac_mid=`expr 2 '*' $ac_mid` |
| 11927 | fi |
| 11928 | |
| 11929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11930 | done |
| 11931 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11932 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11934 | |
| 11935 | ac_lo= ac_hi= |
| 11936 | fi |
| 11937 | |
| 11938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11939 | fi |
| 11940 | |
| 11941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11942 | # Binary search between lo and hi bounds. |
| 11943 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11944 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11945 | cat >conftest.$ac_ext <<_ACEOF |
| 11946 | /* confdefs.h. */ |
| 11947 | _ACEOF |
| 11948 | cat confdefs.h >>conftest.$ac_ext |
| 11949 | cat >>conftest.$ac_ext <<_ACEOF |
| 11950 | /* end confdefs.h. */ |
| 11951 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11952 | typedef long double ac__type_sizeof_; |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11953 | int |
| 11954 | main () |
| 11955 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11956 | 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] | 11957 | test_array [0] = 0 |
| 11958 | |
| 11959 | ; |
| 11960 | return 0; |
| 11961 | } |
| 11962 | _ACEOF |
| 11963 | rm -f conftest.$ac_objext |
| 11964 | if { (ac_try="$ac_compile" |
| 11965 | case "(($ac_try" in |
| 11966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11967 | *) ac_try_echo=$ac_try;; |
| 11968 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11970 | (eval "$ac_compile") 2>conftest.er1 |
| 11971 | ac_status=$? |
| 11972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11973 | rm -f conftest.er1 |
| 11974 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11976 | (exit $ac_status); } && { |
| 11977 | test -z "$ac_c_werror_flag" || |
| 11978 | test ! -s conftest.err |
| 11979 | } && test -s conftest.$ac_objext; then |
| 11980 | ac_hi=$ac_mid |
| 11981 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11982 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11984 | |
| 11985 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11986 | fi |
| 11987 | |
| 11988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11989 | done |
| 11990 | case $ac_lo in |
| 11991 | ?*) ac_cv_sizeof_long_double=$ac_lo;; |
| 11992 | '') if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11993 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11994 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11995 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11996 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 11997 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 11998 | else |
| 11999 | ac_cv_sizeof_long_double=0 |
| 12000 | fi ;; |
| 12001 | esac |
| 12002 | else |
| 12003 | cat >conftest.$ac_ext <<_ACEOF |
| 12004 | /* confdefs.h. */ |
| 12005 | _ACEOF |
| 12006 | cat confdefs.h >>conftest.$ac_ext |
| 12007 | cat >>conftest.$ac_ext <<_ACEOF |
| 12008 | /* end confdefs.h. */ |
| 12009 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12010 | typedef long double ac__type_sizeof_; |
| 12011 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12012 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12013 | #include <stdio.h> |
| 12014 | #include <stdlib.h> |
| 12015 | int |
| 12016 | main () |
| 12017 | { |
| 12018 | |
| 12019 | FILE *f = fopen ("conftest.val", "w"); |
| 12020 | if (! f) |
| 12021 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12022 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12023 | { |
| 12024 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12025 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12026 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12027 | fprintf (f, "%ld\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12028 | } |
| 12029 | else |
| 12030 | { |
| 12031 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12032 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12033 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12034 | fprintf (f, "%lu\n", i); |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12035 | } |
| 12036 | return ferror (f) || fclose (f) != 0; |
| 12037 | |
| 12038 | ; |
| 12039 | return 0; |
| 12040 | } |
| 12041 | _ACEOF |
| 12042 | rm -f conftest$ac_exeext |
| 12043 | if { (ac_try="$ac_link" |
| 12044 | case "(($ac_try" in |
| 12045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12046 | *) ac_try_echo=$ac_try;; |
| 12047 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12049 | (eval "$ac_link") 2>&5 |
| 12050 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12052 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12053 | { (case "(($ac_try" in |
| 12054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12055 | *) ac_try_echo=$ac_try;; |
| 12056 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12058 | (eval "$ac_try") 2>&5 |
| 12059 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12061 | (exit $ac_status); }; }; then |
| 12062 | ac_cv_sizeof_long_double=`cat conftest.val` |
| 12063 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12064 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12065 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12067 | |
| 12068 | ( exit $ac_status ) |
| 12069 | if test "$ac_cv_type_long_double" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12070 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12071 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12072 | echo "$as_me: error: cannot compute sizeof (long double) |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12073 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12074 | { (exit 77); exit 77; }; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12075 | else |
| 12076 | ac_cv_sizeof_long_double=0 |
| 12077 | fi |
| 12078 | fi |
| 12079 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12080 | fi |
| 12081 | rm -f conftest.val |
| 12082 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12083 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 |
| 12084 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } |
Mark Dickinson | dc1688a | 2008-06-27 22:20:14 +0000 | [diff] [blame] | 12085 | |
| 12086 | |
| 12087 | |
| 12088 | cat >>confdefs.h <<_ACEOF |
| 12089 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 12090 | _ACEOF |
| 12091 | |
| 12092 | |
| 12093 | fi |
| 12094 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12095 | { echo "$as_me:$LINENO: checking for _Bool support" >&5 |
| 12096 | echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12097 | have_c99_bool=no |
| 12098 | cat >conftest.$ac_ext <<_ACEOF |
| 12099 | /* confdefs.h. */ |
| 12100 | _ACEOF |
| 12101 | cat confdefs.h >>conftest.$ac_ext |
| 12102 | cat >>conftest.$ac_ext <<_ACEOF |
| 12103 | /* end confdefs.h. */ |
| 12104 | |
| 12105 | int |
| 12106 | main () |
| 12107 | { |
| 12108 | _Bool x; x = (_Bool)0; |
| 12109 | ; |
| 12110 | return 0; |
| 12111 | } |
| 12112 | _ACEOF |
| 12113 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12114 | if { (ac_try="$ac_compile" |
| 12115 | case "(($ac_try" in |
| 12116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12117 | *) ac_try_echo=$ac_try;; |
| 12118 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12120 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12121 | ac_status=$? |
| 12122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12123 | rm -f conftest.er1 |
| 12124 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12126 | (exit $ac_status); } && { |
| 12127 | test -z "$ac_c_werror_flag" || |
| 12128 | test ! -s conftest.err |
| 12129 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12130 | |
| 12131 | |
| 12132 | cat >>confdefs.h <<\_ACEOF |
| 12133 | #define HAVE_C99_BOOL 1 |
| 12134 | _ACEOF |
| 12135 | |
| 12136 | have_c99_bool=yes |
| 12137 | |
| 12138 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12139 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12141 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12142 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12143 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12144 | |
| 12145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12146 | { echo "$as_me:$LINENO: result: $have_c99_bool" >&5 |
| 12147 | echo "${ECHO_T}$have_c99_bool" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12148 | if test "$have_c99_bool" = yes ; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12149 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 12150 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
| 12151 | if test "${ac_cv_type__Bool+set}" = set; then |
| 12152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12153 | else |
| 12154 | cat >conftest.$ac_ext <<_ACEOF |
| 12155 | /* confdefs.h. */ |
| 12156 | _ACEOF |
| 12157 | cat confdefs.h >>conftest.$ac_ext |
| 12158 | cat >>conftest.$ac_ext <<_ACEOF |
| 12159 | /* end confdefs.h. */ |
| 12160 | $ac_includes_default |
| 12161 | typedef _Bool ac__type_new_; |
| 12162 | int |
| 12163 | main () |
| 12164 | { |
| 12165 | if ((ac__type_new_ *) 0) |
| 12166 | return 0; |
| 12167 | if (sizeof (ac__type_new_)) |
| 12168 | return 0; |
| 12169 | ; |
| 12170 | return 0; |
| 12171 | } |
| 12172 | _ACEOF |
| 12173 | rm -f conftest.$ac_objext |
| 12174 | if { (ac_try="$ac_compile" |
| 12175 | case "(($ac_try" in |
| 12176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12177 | *) ac_try_echo=$ac_try;; |
| 12178 | esac |
| 12179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12180 | (eval "$ac_compile") 2>conftest.er1 |
| 12181 | ac_status=$? |
| 12182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12183 | rm -f conftest.er1 |
| 12184 | cat conftest.err >&5 |
| 12185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12186 | (exit $ac_status); } && { |
| 12187 | test -z "$ac_c_werror_flag" || |
| 12188 | test ! -s conftest.err |
| 12189 | } && test -s conftest.$ac_objext; then |
| 12190 | ac_cv_type__Bool=yes |
| 12191 | else |
| 12192 | echo "$as_me: failed program was:" >&5 |
| 12193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12194 | |
| 12195 | ac_cv_type__Bool=no |
| 12196 | fi |
| 12197 | |
| 12198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12199 | fi |
| 12200 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 12201 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
| 12202 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12203 | # The cast to long int works around a bug in the HP C Compiler |
| 12204 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12205 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12206 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12207 | { echo "$as_me:$LINENO: checking size of _Bool" >&5 |
| 12208 | echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; } |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12209 | if test "${ac_cv_sizeof__Bool+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12211 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12212 | if test "$cross_compiling" = yes; then |
| 12213 | # Depending upon the size, compute the lo and hi bounds. |
| 12214 | cat >conftest.$ac_ext <<_ACEOF |
| 12215 | /* confdefs.h. */ |
| 12216 | _ACEOF |
| 12217 | cat confdefs.h >>conftest.$ac_ext |
| 12218 | cat >>conftest.$ac_ext <<_ACEOF |
| 12219 | /* end confdefs.h. */ |
| 12220 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12221 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12222 | int |
| 12223 | main () |
| 12224 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12225 | 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] | 12226 | test_array [0] = 0 |
| 12227 | |
| 12228 | ; |
| 12229 | return 0; |
| 12230 | } |
| 12231 | _ACEOF |
| 12232 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12233 | if { (ac_try="$ac_compile" |
| 12234 | case "(($ac_try" in |
| 12235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12236 | *) ac_try_echo=$ac_try;; |
| 12237 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12239 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12240 | ac_status=$? |
| 12241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12242 | rm -f conftest.er1 |
| 12243 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12245 | (exit $ac_status); } && { |
| 12246 | test -z "$ac_c_werror_flag" || |
| 12247 | test ! -s conftest.err |
| 12248 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12249 | ac_lo=0 ac_mid=0 |
| 12250 | while :; do |
| 12251 | cat >conftest.$ac_ext <<_ACEOF |
| 12252 | /* confdefs.h. */ |
| 12253 | _ACEOF |
| 12254 | cat confdefs.h >>conftest.$ac_ext |
| 12255 | cat >>conftest.$ac_ext <<_ACEOF |
| 12256 | /* end confdefs.h. */ |
| 12257 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12258 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12259 | int |
| 12260 | main () |
| 12261 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12262 | 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] | 12263 | test_array [0] = 0 |
| 12264 | |
| 12265 | ; |
| 12266 | return 0; |
| 12267 | } |
| 12268 | _ACEOF |
| 12269 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12270 | if { (ac_try="$ac_compile" |
| 12271 | case "(($ac_try" in |
| 12272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12273 | *) ac_try_echo=$ac_try;; |
| 12274 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12276 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12277 | ac_status=$? |
| 12278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12279 | rm -f conftest.er1 |
| 12280 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12282 | (exit $ac_status); } && { |
| 12283 | test -z "$ac_c_werror_flag" || |
| 12284 | test ! -s conftest.err |
| 12285 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12286 | ac_hi=$ac_mid; break |
| 12287 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12288 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12290 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12291 | ac_lo=`expr $ac_mid + 1` |
| 12292 | if test $ac_lo -le $ac_mid; then |
| 12293 | ac_lo= ac_hi= |
| 12294 | break |
| 12295 | fi |
| 12296 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12297 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12298 | |
| 12299 | 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] | 12300 | done |
| 12301 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12302 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12304 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12305 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12306 | /* confdefs.h. */ |
| 12307 | _ACEOF |
| 12308 | cat confdefs.h >>conftest.$ac_ext |
| 12309 | cat >>conftest.$ac_ext <<_ACEOF |
| 12310 | /* end confdefs.h. */ |
| 12311 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12312 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12313 | int |
| 12314 | main () |
| 12315 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12316 | 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] | 12317 | test_array [0] = 0 |
| 12318 | |
| 12319 | ; |
| 12320 | return 0; |
| 12321 | } |
| 12322 | _ACEOF |
| 12323 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12324 | if { (ac_try="$ac_compile" |
| 12325 | case "(($ac_try" in |
| 12326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12327 | *) ac_try_echo=$ac_try;; |
| 12328 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12330 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12331 | ac_status=$? |
| 12332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12333 | rm -f conftest.er1 |
| 12334 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12336 | (exit $ac_status); } && { |
| 12337 | test -z "$ac_c_werror_flag" || |
| 12338 | test ! -s conftest.err |
| 12339 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12340 | ac_hi=-1 ac_mid=-1 |
| 12341 | while :; do |
| 12342 | cat >conftest.$ac_ext <<_ACEOF |
| 12343 | /* confdefs.h. */ |
| 12344 | _ACEOF |
| 12345 | cat confdefs.h >>conftest.$ac_ext |
| 12346 | cat >>conftest.$ac_ext <<_ACEOF |
| 12347 | /* end confdefs.h. */ |
| 12348 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12349 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12350 | int |
| 12351 | main () |
| 12352 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12353 | 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] | 12354 | test_array [0] = 0 |
| 12355 | |
| 12356 | ; |
| 12357 | return 0; |
| 12358 | } |
| 12359 | _ACEOF |
| 12360 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12361 | if { (ac_try="$ac_compile" |
| 12362 | case "(($ac_try" in |
| 12363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12364 | *) ac_try_echo=$ac_try;; |
| 12365 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12367 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12368 | ac_status=$? |
| 12369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12370 | rm -f conftest.er1 |
| 12371 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12373 | (exit $ac_status); } && { |
| 12374 | test -z "$ac_c_werror_flag" || |
| 12375 | test ! -s conftest.err |
| 12376 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12377 | ac_lo=$ac_mid; break |
| 12378 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12379 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12381 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12382 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12383 | if test $ac_mid -le $ac_hi; then |
| 12384 | ac_lo= ac_hi= |
| 12385 | break |
| 12386 | fi |
| 12387 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12388 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12389 | |
| 12390 | 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] | 12391 | done |
| 12392 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12393 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12395 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12396 | ac_lo= ac_hi= |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12397 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12398 | |
| 12399 | 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] | 12400 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12401 | |
| 12402 | 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] | 12403 | # Binary search between lo and hi bounds. |
| 12404 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12405 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12406 | cat >conftest.$ac_ext <<_ACEOF |
| 12407 | /* confdefs.h. */ |
| 12408 | _ACEOF |
| 12409 | cat confdefs.h >>conftest.$ac_ext |
| 12410 | cat >>conftest.$ac_ext <<_ACEOF |
| 12411 | /* end confdefs.h. */ |
| 12412 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12413 | typedef _Bool ac__type_sizeof_; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12414 | int |
| 12415 | main () |
| 12416 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12417 | 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] | 12418 | test_array [0] = 0 |
| 12419 | |
| 12420 | ; |
| 12421 | return 0; |
| 12422 | } |
| 12423 | _ACEOF |
| 12424 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12425 | if { (ac_try="$ac_compile" |
| 12426 | case "(($ac_try" in |
| 12427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12428 | *) ac_try_echo=$ac_try;; |
| 12429 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12431 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12432 | ac_status=$? |
| 12433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12434 | rm -f conftest.er1 |
| 12435 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12437 | (exit $ac_status); } && { |
| 12438 | test -z "$ac_c_werror_flag" || |
| 12439 | test ! -s conftest.err |
| 12440 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12441 | ac_hi=$ac_mid |
| 12442 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12443 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12445 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12446 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12447 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12448 | |
| 12449 | 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] | 12450 | done |
| 12451 | case $ac_lo in |
| 12452 | ?*) ac_cv_sizeof__Bool=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12453 | '') if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12454 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12455 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12456 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12457 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12458 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12459 | else |
| 12460 | ac_cv_sizeof__Bool=0 |
| 12461 | fi ;; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12462 | esac |
| 12463 | else |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12464 | cat >conftest.$ac_ext <<_ACEOF |
| 12465 | /* confdefs.h. */ |
| 12466 | _ACEOF |
| 12467 | cat confdefs.h >>conftest.$ac_ext |
| 12468 | cat >>conftest.$ac_ext <<_ACEOF |
| 12469 | /* end confdefs.h. */ |
| 12470 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12471 | typedef _Bool ac__type_sizeof_; |
| 12472 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12473 | 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] | 12474 | #include <stdio.h> |
| 12475 | #include <stdlib.h> |
| 12476 | int |
| 12477 | main () |
| 12478 | { |
| 12479 | |
| 12480 | FILE *f = fopen ("conftest.val", "w"); |
| 12481 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12482 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12483 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12484 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12485 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12486 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12487 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12488 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12489 | } |
| 12490 | else |
| 12491 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12492 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12493 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12494 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12495 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12496 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12497 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12498 | |
| 12499 | ; |
| 12500 | return 0; |
| 12501 | } |
| 12502 | _ACEOF |
| 12503 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12504 | if { (ac_try="$ac_link" |
| 12505 | case "(($ac_try" in |
| 12506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12507 | *) ac_try_echo=$ac_try;; |
| 12508 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12510 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12511 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12513 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12514 | { (case "(($ac_try" in |
| 12515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12516 | *) ac_try_echo=$ac_try;; |
| 12517 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12519 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12520 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12522 | (exit $ac_status); }; }; then |
| 12523 | ac_cv_sizeof__Bool=`cat conftest.val` |
| 12524 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12525 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12526 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12528 | |
| 12529 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12530 | if test "$ac_cv_type__Bool" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12531 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12532 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12533 | echo "$as_me: error: cannot compute sizeof (_Bool) |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12534 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12535 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12536 | else |
| 12537 | ac_cv_sizeof__Bool=0 |
| 12538 | fi |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12539 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12540 | 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] | 12541 | fi |
| 12542 | rm -f conftest.val |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12543 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12544 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5 |
| 12545 | echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12546 | |
| 12547 | |
| 12548 | |
Martin v. Löwis | aef4c6b | 2007-01-21 09:33:07 +0000 | [diff] [blame] | 12549 | cat >>confdefs.h <<_ACEOF |
| 12550 | #define SIZEOF__BOOL $ac_cv_sizeof__Bool |
| 12551 | _ACEOF |
| 12552 | |
| 12553 | |
| 12554 | fi |
| 12555 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12556 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12557 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12558 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12560 | else |
| 12561 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12562 | /* confdefs.h. */ |
| 12563 | _ACEOF |
| 12564 | cat confdefs.h >>conftest.$ac_ext |
| 12565 | cat >>conftest.$ac_ext <<_ACEOF |
| 12566 | /* end confdefs.h. */ |
Martin v. Löwis | 40e9aed | 2006-10-02 15:20:37 +0000 | [diff] [blame] | 12567 | #ifdef HAVE_STDINT_H |
| 12568 | #include <stdint.h> |
| 12569 | #endif |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12570 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12571 | typedef uintptr_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12572 | int |
| 12573 | main () |
| 12574 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12575 | if ((ac__type_new_ *) 0) |
| 12576 | return 0; |
| 12577 | if (sizeof (ac__type_new_)) |
| 12578 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12579 | ; |
| 12580 | return 0; |
| 12581 | } |
| 12582 | _ACEOF |
| 12583 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12584 | if { (ac_try="$ac_compile" |
| 12585 | case "(($ac_try" in |
| 12586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12587 | *) ac_try_echo=$ac_try;; |
| 12588 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12590 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12591 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12593 | rm -f conftest.er1 |
| 12594 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12596 | (exit $ac_status); } && { |
| 12597 | test -z "$ac_c_werror_flag" || |
| 12598 | test ! -s conftest.err |
| 12599 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12600 | ac_cv_type_uintptr_t=yes |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12601 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12602 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12604 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12605 | ac_cv_type_uintptr_t=no |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12606 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12607 | |
| 12608 | 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] | 12609 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12610 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12611 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12612 | if test $ac_cv_type_uintptr_t = yes; then |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 12613 | |
| 12614 | cat >>confdefs.h <<_ACEOF |
| 12615 | #define HAVE_UINTPTR_T 1 |
| 12616 | _ACEOF |
| 12617 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12618 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12619 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 12620 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12622 | else |
| 12623 | cat >conftest.$ac_ext <<_ACEOF |
| 12624 | /* confdefs.h. */ |
| 12625 | _ACEOF |
| 12626 | cat confdefs.h >>conftest.$ac_ext |
| 12627 | cat >>conftest.$ac_ext <<_ACEOF |
| 12628 | /* end confdefs.h. */ |
| 12629 | $ac_includes_default |
| 12630 | typedef uintptr_t ac__type_new_; |
| 12631 | int |
| 12632 | main () |
| 12633 | { |
| 12634 | if ((ac__type_new_ *) 0) |
| 12635 | return 0; |
| 12636 | if (sizeof (ac__type_new_)) |
| 12637 | return 0; |
| 12638 | ; |
| 12639 | return 0; |
| 12640 | } |
| 12641 | _ACEOF |
| 12642 | rm -f conftest.$ac_objext |
| 12643 | if { (ac_try="$ac_compile" |
| 12644 | case "(($ac_try" in |
| 12645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12646 | *) ac_try_echo=$ac_try;; |
| 12647 | esac |
| 12648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12649 | (eval "$ac_compile") 2>conftest.er1 |
| 12650 | ac_status=$? |
| 12651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12652 | rm -f conftest.er1 |
| 12653 | cat conftest.err >&5 |
| 12654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12655 | (exit $ac_status); } && { |
| 12656 | test -z "$ac_c_werror_flag" || |
| 12657 | test ! -s conftest.err |
| 12658 | } && test -s conftest.$ac_objext; then |
| 12659 | ac_cv_type_uintptr_t=yes |
| 12660 | else |
| 12661 | echo "$as_me: failed program was:" >&5 |
| 12662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12663 | |
| 12664 | ac_cv_type_uintptr_t=no |
| 12665 | fi |
| 12666 | |
| 12667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12668 | fi |
| 12669 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12670 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 12671 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12672 | # The cast to long int works around a bug in the HP C Compiler |
| 12673 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12674 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12675 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12676 | { echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 12677 | 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] | 12678 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12680 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12681 | if test "$cross_compiling" = yes; then |
| 12682 | # Depending upon the size, compute the lo and hi bounds. |
| 12683 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12684 | /* confdefs.h. */ |
| 12685 | _ACEOF |
| 12686 | cat confdefs.h >>conftest.$ac_ext |
| 12687 | cat >>conftest.$ac_ext <<_ACEOF |
| 12688 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12689 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12690 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12691 | int |
| 12692 | main () |
| 12693 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12694 | 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] | 12695 | test_array [0] = 0 |
| 12696 | |
| 12697 | ; |
| 12698 | return 0; |
| 12699 | } |
| 12700 | _ACEOF |
| 12701 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12702 | if { (ac_try="$ac_compile" |
| 12703 | case "(($ac_try" in |
| 12704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12705 | *) ac_try_echo=$ac_try;; |
| 12706 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12708 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12709 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12711 | rm -f conftest.er1 |
| 12712 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12714 | (exit $ac_status); } && { |
| 12715 | test -z "$ac_c_werror_flag" || |
| 12716 | test ! -s conftest.err |
| 12717 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12718 | ac_lo=0 ac_mid=0 |
| 12719 | while :; do |
| 12720 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12721 | /* confdefs.h. */ |
| 12722 | _ACEOF |
| 12723 | cat confdefs.h >>conftest.$ac_ext |
| 12724 | cat >>conftest.$ac_ext <<_ACEOF |
| 12725 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12726 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12727 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12728 | int |
| 12729 | main () |
| 12730 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12731 | 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] | 12732 | test_array [0] = 0 |
| 12733 | |
| 12734 | ; |
| 12735 | return 0; |
| 12736 | } |
| 12737 | _ACEOF |
| 12738 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12739 | if { (ac_try="$ac_compile" |
| 12740 | case "(($ac_try" in |
| 12741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12742 | *) ac_try_echo=$ac_try;; |
| 12743 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12745 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12746 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12748 | rm -f conftest.er1 |
| 12749 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12751 | (exit $ac_status); } && { |
| 12752 | test -z "$ac_c_werror_flag" || |
| 12753 | test ! -s conftest.err |
| 12754 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12755 | ac_hi=$ac_mid; break |
| 12756 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12757 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12759 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12760 | ac_lo=`expr $ac_mid + 1` |
| 12761 | if test $ac_lo -le $ac_mid; then |
| 12762 | ac_lo= ac_hi= |
| 12763 | break |
| 12764 | fi |
| 12765 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12766 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12767 | |
| 12768 | 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] | 12769 | done |
| 12770 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12771 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12773 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12774 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12775 | /* confdefs.h. */ |
| 12776 | _ACEOF |
| 12777 | cat confdefs.h >>conftest.$ac_ext |
| 12778 | cat >>conftest.$ac_ext <<_ACEOF |
| 12779 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12780 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12781 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12782 | int |
| 12783 | main () |
| 12784 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12785 | 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] | 12786 | test_array [0] = 0 |
| 12787 | |
| 12788 | ; |
| 12789 | return 0; |
| 12790 | } |
| 12791 | _ACEOF |
| 12792 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12793 | if { (ac_try="$ac_compile" |
| 12794 | case "(($ac_try" in |
| 12795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12796 | *) ac_try_echo=$ac_try;; |
| 12797 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12799 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12800 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12802 | rm -f conftest.er1 |
| 12803 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12805 | (exit $ac_status); } && { |
| 12806 | test -z "$ac_c_werror_flag" || |
| 12807 | test ! -s conftest.err |
| 12808 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12809 | ac_hi=-1 ac_mid=-1 |
| 12810 | while :; do |
| 12811 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12812 | /* confdefs.h. */ |
| 12813 | _ACEOF |
| 12814 | cat confdefs.h >>conftest.$ac_ext |
| 12815 | cat >>conftest.$ac_ext <<_ACEOF |
| 12816 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12817 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12818 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12819 | int |
| 12820 | main () |
| 12821 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12822 | 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] | 12823 | test_array [0] = 0 |
| 12824 | |
| 12825 | ; |
| 12826 | return 0; |
| 12827 | } |
| 12828 | _ACEOF |
| 12829 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12830 | if { (ac_try="$ac_compile" |
| 12831 | case "(($ac_try" in |
| 12832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12833 | *) ac_try_echo=$ac_try;; |
| 12834 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12836 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12837 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12839 | rm -f conftest.er1 |
| 12840 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12842 | (exit $ac_status); } && { |
| 12843 | test -z "$ac_c_werror_flag" || |
| 12844 | test ! -s conftest.err |
| 12845 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12846 | ac_lo=$ac_mid; break |
| 12847 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12848 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12850 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12851 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12852 | if test $ac_mid -le $ac_hi; then |
| 12853 | ac_lo= ac_hi= |
| 12854 | break |
| 12855 | fi |
| 12856 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12857 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12858 | |
| 12859 | 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] | 12860 | done |
| 12861 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12862 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12864 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12865 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12866 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12867 | |
| 12868 | 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] | 12869 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12870 | |
| 12871 | 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] | 12872 | # Binary search between lo and hi bounds. |
| 12873 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12874 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12875 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12876 | /* confdefs.h. */ |
| 12877 | _ACEOF |
| 12878 | cat confdefs.h >>conftest.$ac_ext |
| 12879 | cat >>conftest.$ac_ext <<_ACEOF |
| 12880 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12881 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12882 | typedef uintptr_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12883 | int |
| 12884 | main () |
| 12885 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12886 | 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] | 12887 | test_array [0] = 0 |
| 12888 | |
| 12889 | ; |
| 12890 | return 0; |
| 12891 | } |
| 12892 | _ACEOF |
| 12893 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12894 | if { (ac_try="$ac_compile" |
| 12895 | case "(($ac_try" in |
| 12896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12897 | *) ac_try_echo=$ac_try;; |
| 12898 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12900 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12903 | rm -f conftest.er1 |
| 12904 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12906 | (exit $ac_status); } && { |
| 12907 | test -z "$ac_c_werror_flag" || |
| 12908 | test ! -s conftest.err |
| 12909 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12910 | ac_hi=$ac_mid |
| 12911 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12912 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12914 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12915 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12916 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12917 | |
| 12918 | 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] | 12919 | done |
| 12920 | case $ac_lo in |
| 12921 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12922 | '') if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12923 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12924 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12925 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12926 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12927 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12928 | else |
| 12929 | ac_cv_sizeof_uintptr_t=0 |
| 12930 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12931 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12933 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12934 | /* confdefs.h. */ |
| 12935 | _ACEOF |
| 12936 | cat confdefs.h >>conftest.$ac_ext |
| 12937 | cat >>conftest.$ac_ext <<_ACEOF |
| 12938 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12939 | $ac_includes_default |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12940 | typedef uintptr_t ac__type_sizeof_; |
| 12941 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12942 | 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] | 12943 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12944 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12945 | int |
| 12946 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12947 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12948 | |
| 12949 | FILE *f = fopen ("conftest.val", "w"); |
| 12950 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12951 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12952 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12953 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12954 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12955 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12956 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12957 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12958 | } |
| 12959 | else |
| 12960 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12961 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12962 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12963 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12964 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12965 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12966 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12967 | |
| 12968 | ; |
| 12969 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12970 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12971 | _ACEOF |
| 12972 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12973 | if { (ac_try="$ac_link" |
| 12974 | case "(($ac_try" in |
| 12975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12976 | *) ac_try_echo=$ac_try;; |
| 12977 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12979 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12980 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12982 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12983 | { (case "(($ac_try" in |
| 12984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12985 | *) ac_try_echo=$ac_try;; |
| 12986 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12988 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12989 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12991 | (exit $ac_status); }; }; then |
| 12992 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 12993 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 12994 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12995 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12997 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12998 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 12999 | if test "$ac_cv_type_uintptr_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13000 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13001 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13002 | echo "$as_me: error: cannot compute sizeof (uintptr_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13003 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13004 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13005 | else |
| 13006 | ac_cv_sizeof_uintptr_t=0 |
| 13007 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13008 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13009 | 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] | 13010 | fi |
| 13011 | rm -f conftest.val |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13012 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13013 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 13014 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13015 | |
| 13016 | |
| 13017 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13018 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13019 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13020 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13021 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13022 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 13023 | fi |
| 13024 | |
Martin v. Löwis | ebe2670 | 2006-10-02 14:55:51 +0000 | [diff] [blame] | 13025 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13026 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 13027 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
| 13028 | if test "${ac_cv_type_off_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13030 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13031 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13032 | /* confdefs.h. */ |
| 13033 | _ACEOF |
| 13034 | cat confdefs.h >>conftest.$ac_ext |
| 13035 | cat >>conftest.$ac_ext <<_ACEOF |
| 13036 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13037 | |
| 13038 | #ifdef HAVE_SYS_TYPES_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13039 | #include <sys/types.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13040 | #endif |
| 13041 | |
| 13042 | |
| 13043 | typedef off_t ac__type_new_; |
| 13044 | int |
| 13045 | main () |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13046 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13047 | if ((ac__type_new_ *) 0) |
| 13048 | return 0; |
| 13049 | if (sizeof (ac__type_new_)) |
| 13050 | return 0; |
| 13051 | ; |
| 13052 | return 0; |
| 13053 | } |
| 13054 | _ACEOF |
| 13055 | rm -f conftest.$ac_objext |
| 13056 | if { (ac_try="$ac_compile" |
| 13057 | case "(($ac_try" in |
| 13058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13059 | *) ac_try_echo=$ac_try;; |
| 13060 | esac |
| 13061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13062 | (eval "$ac_compile") 2>conftest.er1 |
| 13063 | ac_status=$? |
| 13064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13065 | rm -f conftest.er1 |
| 13066 | cat conftest.err >&5 |
| 13067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13068 | (exit $ac_status); } && { |
| 13069 | test -z "$ac_c_werror_flag" || |
| 13070 | test ! -s conftest.err |
| 13071 | } && test -s conftest.$ac_objext; then |
| 13072 | ac_cv_type_off_t=yes |
| 13073 | else |
| 13074 | echo "$as_me: failed program was:" >&5 |
| 13075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13076 | |
| 13077 | ac_cv_type_off_t=no |
| 13078 | fi |
| 13079 | |
| 13080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13081 | fi |
| 13082 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 13083 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
| 13084 | |
| 13085 | # The cast to long int works around a bug in the HP C Compiler |
| 13086 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13087 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13088 | # This bug is HP SR number 8606223364. |
| 13089 | { echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 13090 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } |
| 13091 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 13092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13093 | else |
| 13094 | if test "$cross_compiling" = yes; then |
| 13095 | # Depending upon the size, compute the lo and hi bounds. |
| 13096 | cat >conftest.$ac_ext <<_ACEOF |
| 13097 | /* confdefs.h. */ |
| 13098 | _ACEOF |
| 13099 | cat confdefs.h >>conftest.$ac_ext |
| 13100 | cat >>conftest.$ac_ext <<_ACEOF |
| 13101 | /* end confdefs.h. */ |
| 13102 | |
| 13103 | #ifdef HAVE_SYS_TYPES_H |
| 13104 | #include <sys/types.h> |
| 13105 | #endif |
| 13106 | |
| 13107 | |
| 13108 | typedef off_t ac__type_sizeof_; |
| 13109 | int |
| 13110 | main () |
| 13111 | { |
| 13112 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13113 | test_array [0] = 0 |
| 13114 | |
| 13115 | ; |
| 13116 | return 0; |
| 13117 | } |
| 13118 | _ACEOF |
| 13119 | rm -f conftest.$ac_objext |
| 13120 | if { (ac_try="$ac_compile" |
| 13121 | case "(($ac_try" in |
| 13122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13123 | *) ac_try_echo=$ac_try;; |
| 13124 | esac |
| 13125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13126 | (eval "$ac_compile") 2>conftest.er1 |
| 13127 | ac_status=$? |
| 13128 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13129 | rm -f conftest.er1 |
| 13130 | cat conftest.err >&5 |
| 13131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13132 | (exit $ac_status); } && { |
| 13133 | test -z "$ac_c_werror_flag" || |
| 13134 | test ! -s conftest.err |
| 13135 | } && test -s conftest.$ac_objext; then |
| 13136 | ac_lo=0 ac_mid=0 |
| 13137 | while :; do |
| 13138 | cat >conftest.$ac_ext <<_ACEOF |
| 13139 | /* confdefs.h. */ |
| 13140 | _ACEOF |
| 13141 | cat confdefs.h >>conftest.$ac_ext |
| 13142 | cat >>conftest.$ac_ext <<_ACEOF |
| 13143 | /* end confdefs.h. */ |
| 13144 | |
| 13145 | #ifdef HAVE_SYS_TYPES_H |
| 13146 | #include <sys/types.h> |
| 13147 | #endif |
| 13148 | |
| 13149 | |
| 13150 | typedef off_t ac__type_sizeof_; |
| 13151 | int |
| 13152 | main () |
| 13153 | { |
| 13154 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13155 | test_array [0] = 0 |
| 13156 | |
| 13157 | ; |
| 13158 | return 0; |
| 13159 | } |
| 13160 | _ACEOF |
| 13161 | rm -f conftest.$ac_objext |
| 13162 | if { (ac_try="$ac_compile" |
| 13163 | case "(($ac_try" in |
| 13164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13165 | *) ac_try_echo=$ac_try;; |
| 13166 | esac |
| 13167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13168 | (eval "$ac_compile") 2>conftest.er1 |
| 13169 | ac_status=$? |
| 13170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13171 | rm -f conftest.er1 |
| 13172 | cat conftest.err >&5 |
| 13173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13174 | (exit $ac_status); } && { |
| 13175 | test -z "$ac_c_werror_flag" || |
| 13176 | test ! -s conftest.err |
| 13177 | } && test -s conftest.$ac_objext; then |
| 13178 | ac_hi=$ac_mid; break |
| 13179 | else |
| 13180 | echo "$as_me: failed program was:" >&5 |
| 13181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13182 | |
| 13183 | ac_lo=`expr $ac_mid + 1` |
| 13184 | if test $ac_lo -le $ac_mid; then |
| 13185 | ac_lo= ac_hi= |
| 13186 | break |
| 13187 | fi |
| 13188 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13189 | fi |
| 13190 | |
| 13191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13192 | done |
| 13193 | else |
| 13194 | echo "$as_me: failed program was:" >&5 |
| 13195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13196 | |
| 13197 | cat >conftest.$ac_ext <<_ACEOF |
| 13198 | /* confdefs.h. */ |
| 13199 | _ACEOF |
| 13200 | cat confdefs.h >>conftest.$ac_ext |
| 13201 | cat >>conftest.$ac_ext <<_ACEOF |
| 13202 | /* end confdefs.h. */ |
| 13203 | |
| 13204 | #ifdef HAVE_SYS_TYPES_H |
| 13205 | #include <sys/types.h> |
| 13206 | #endif |
| 13207 | |
| 13208 | |
| 13209 | typedef off_t ac__type_sizeof_; |
| 13210 | int |
| 13211 | main () |
| 13212 | { |
| 13213 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13214 | test_array [0] = 0 |
| 13215 | |
| 13216 | ; |
| 13217 | return 0; |
| 13218 | } |
| 13219 | _ACEOF |
| 13220 | rm -f conftest.$ac_objext |
| 13221 | if { (ac_try="$ac_compile" |
| 13222 | case "(($ac_try" in |
| 13223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13224 | *) ac_try_echo=$ac_try;; |
| 13225 | esac |
| 13226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13227 | (eval "$ac_compile") 2>conftest.er1 |
| 13228 | ac_status=$? |
| 13229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13230 | rm -f conftest.er1 |
| 13231 | cat conftest.err >&5 |
| 13232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13233 | (exit $ac_status); } && { |
| 13234 | test -z "$ac_c_werror_flag" || |
| 13235 | test ! -s conftest.err |
| 13236 | } && test -s conftest.$ac_objext; then |
| 13237 | ac_hi=-1 ac_mid=-1 |
| 13238 | while :; do |
| 13239 | cat >conftest.$ac_ext <<_ACEOF |
| 13240 | /* confdefs.h. */ |
| 13241 | _ACEOF |
| 13242 | cat confdefs.h >>conftest.$ac_ext |
| 13243 | cat >>conftest.$ac_ext <<_ACEOF |
| 13244 | /* end confdefs.h. */ |
| 13245 | |
| 13246 | #ifdef HAVE_SYS_TYPES_H |
| 13247 | #include <sys/types.h> |
| 13248 | #endif |
| 13249 | |
| 13250 | |
| 13251 | typedef off_t ac__type_sizeof_; |
| 13252 | int |
| 13253 | main () |
| 13254 | { |
| 13255 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13256 | test_array [0] = 0 |
| 13257 | |
| 13258 | ; |
| 13259 | return 0; |
| 13260 | } |
| 13261 | _ACEOF |
| 13262 | rm -f conftest.$ac_objext |
| 13263 | if { (ac_try="$ac_compile" |
| 13264 | case "(($ac_try" in |
| 13265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13266 | *) ac_try_echo=$ac_try;; |
| 13267 | esac |
| 13268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13269 | (eval "$ac_compile") 2>conftest.er1 |
| 13270 | ac_status=$? |
| 13271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13272 | rm -f conftest.er1 |
| 13273 | cat conftest.err >&5 |
| 13274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13275 | (exit $ac_status); } && { |
| 13276 | test -z "$ac_c_werror_flag" || |
| 13277 | test ! -s conftest.err |
| 13278 | } && test -s conftest.$ac_objext; then |
| 13279 | ac_lo=$ac_mid; break |
| 13280 | else |
| 13281 | echo "$as_me: failed program was:" >&5 |
| 13282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13283 | |
| 13284 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13285 | if test $ac_mid -le $ac_hi; then |
| 13286 | ac_lo= ac_hi= |
| 13287 | break |
| 13288 | fi |
| 13289 | ac_mid=`expr 2 '*' $ac_mid` |
| 13290 | fi |
| 13291 | |
| 13292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13293 | done |
| 13294 | else |
| 13295 | echo "$as_me: failed program was:" >&5 |
| 13296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13297 | |
| 13298 | ac_lo= ac_hi= |
| 13299 | fi |
| 13300 | |
| 13301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13302 | fi |
| 13303 | |
| 13304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13305 | # Binary search between lo and hi bounds. |
| 13306 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13307 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13308 | cat >conftest.$ac_ext <<_ACEOF |
| 13309 | /* confdefs.h. */ |
| 13310 | _ACEOF |
| 13311 | cat confdefs.h >>conftest.$ac_ext |
| 13312 | cat >>conftest.$ac_ext <<_ACEOF |
| 13313 | /* end confdefs.h. */ |
| 13314 | |
| 13315 | #ifdef HAVE_SYS_TYPES_H |
| 13316 | #include <sys/types.h> |
| 13317 | #endif |
| 13318 | |
| 13319 | |
| 13320 | typedef off_t ac__type_sizeof_; |
| 13321 | int |
| 13322 | main () |
| 13323 | { |
| 13324 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13325 | test_array [0] = 0 |
| 13326 | |
| 13327 | ; |
| 13328 | return 0; |
| 13329 | } |
| 13330 | _ACEOF |
| 13331 | rm -f conftest.$ac_objext |
| 13332 | if { (ac_try="$ac_compile" |
| 13333 | case "(($ac_try" in |
| 13334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13335 | *) ac_try_echo=$ac_try;; |
| 13336 | esac |
| 13337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13338 | (eval "$ac_compile") 2>conftest.er1 |
| 13339 | ac_status=$? |
| 13340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13341 | rm -f conftest.er1 |
| 13342 | cat conftest.err >&5 |
| 13343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13344 | (exit $ac_status); } && { |
| 13345 | test -z "$ac_c_werror_flag" || |
| 13346 | test ! -s conftest.err |
| 13347 | } && test -s conftest.$ac_objext; then |
| 13348 | ac_hi=$ac_mid |
| 13349 | else |
| 13350 | echo "$as_me: failed program was:" >&5 |
| 13351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13352 | |
| 13353 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13354 | fi |
| 13355 | |
| 13356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13357 | done |
| 13358 | case $ac_lo in |
| 13359 | ?*) ac_cv_sizeof_off_t=$ac_lo;; |
| 13360 | '') if test "$ac_cv_type_off_t" = yes; then |
| 13361 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13362 | See \`config.log' for more details." >&5 |
| 13363 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13364 | See \`config.log' for more details." >&2;} |
| 13365 | { (exit 77); exit 77; }; } |
| 13366 | else |
| 13367 | ac_cv_sizeof_off_t=0 |
| 13368 | fi ;; |
| 13369 | esac |
| 13370 | else |
| 13371 | cat >conftest.$ac_ext <<_ACEOF |
| 13372 | /* confdefs.h. */ |
| 13373 | _ACEOF |
| 13374 | cat confdefs.h >>conftest.$ac_ext |
| 13375 | cat >>conftest.$ac_ext <<_ACEOF |
| 13376 | /* end confdefs.h. */ |
| 13377 | |
| 13378 | #ifdef HAVE_SYS_TYPES_H |
| 13379 | #include <sys/types.h> |
| 13380 | #endif |
| 13381 | |
| 13382 | |
| 13383 | typedef off_t ac__type_sizeof_; |
| 13384 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13385 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13386 | #include <stdio.h> |
| 13387 | #include <stdlib.h> |
| 13388 | int |
| 13389 | main () |
| 13390 | { |
| 13391 | |
| 13392 | FILE *f = fopen ("conftest.val", "w"); |
| 13393 | if (! f) |
| 13394 | return 1; |
| 13395 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13396 | { |
| 13397 | long int i = longval (); |
| 13398 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13399 | return 1; |
| 13400 | fprintf (f, "%ld\n", i); |
| 13401 | } |
| 13402 | else |
| 13403 | { |
| 13404 | unsigned long int i = ulongval (); |
| 13405 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13406 | return 1; |
| 13407 | fprintf (f, "%lu\n", i); |
| 13408 | } |
| 13409 | return ferror (f) || fclose (f) != 0; |
| 13410 | |
| 13411 | ; |
| 13412 | return 0; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13413 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13414 | _ACEOF |
| 13415 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13416 | if { (ac_try="$ac_link" |
| 13417 | case "(($ac_try" in |
| 13418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13419 | *) ac_try_echo=$ac_try;; |
| 13420 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13422 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13423 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13425 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13426 | { (case "(($ac_try" in |
| 13427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13428 | *) ac_try_echo=$ac_try;; |
| 13429 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13431 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13432 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13434 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13435 | ac_cv_sizeof_off_t=`cat conftest.val` |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13436 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13437 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13438 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13441 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13442 | if test "$ac_cv_type_off_t" = yes; then |
| 13443 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 13444 | See \`config.log' for more details." >&5 |
| 13445 | echo "$as_me: error: cannot compute sizeof (off_t) |
| 13446 | See \`config.log' for more details." >&2;} |
| 13447 | { (exit 77); exit 77; }; } |
| 13448 | else |
| 13449 | ac_cv_sizeof_off_t=0 |
| 13450 | fi |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13451 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13452 | 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] | 13453 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13454 | rm -f conftest.val |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13455 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13456 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 13457 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13458 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13459 | |
| 13460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13461 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13462 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13463 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13464 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13465 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13466 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13467 | { echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 13468 | echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; } |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 13469 | if test "$have_long_long" = yes -a \ |
| 13470 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 13471 | "$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] | 13472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13473 | cat >>confdefs.h <<\_ACEOF |
| 13474 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 13475 | _ACEOF |
| 13476 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13477 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13478 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13479 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13480 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13481 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13482 | fi |
| 13483 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13484 | { echo "$as_me:$LINENO: checking for time_t" >&5 |
| 13485 | echo $ECHO_N "checking for time_t... $ECHO_C" >&6; } |
| 13486 | if test "${ac_cv_type_time_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13488 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13489 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13490 | /* confdefs.h. */ |
| 13491 | _ACEOF |
| 13492 | cat confdefs.h >>conftest.$ac_ext |
| 13493 | cat >>conftest.$ac_ext <<_ACEOF |
| 13494 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13495 | |
| 13496 | #ifdef HAVE_SYS_TYPES_H |
| 13497 | #include <sys/types.h> |
| 13498 | #endif |
| 13499 | #ifdef HAVE_TIME_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13500 | #include <time.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13501 | #endif |
| 13502 | |
| 13503 | |
| 13504 | typedef time_t ac__type_new_; |
| 13505 | int |
| 13506 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13507 | { |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13508 | if ((ac__type_new_ *) 0) |
| 13509 | return 0; |
| 13510 | if (sizeof (ac__type_new_)) |
| 13511 | return 0; |
| 13512 | ; |
| 13513 | return 0; |
| 13514 | } |
| 13515 | _ACEOF |
| 13516 | rm -f conftest.$ac_objext |
| 13517 | if { (ac_try="$ac_compile" |
| 13518 | case "(($ac_try" in |
| 13519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13520 | *) ac_try_echo=$ac_try;; |
| 13521 | esac |
| 13522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13523 | (eval "$ac_compile") 2>conftest.er1 |
| 13524 | ac_status=$? |
| 13525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13526 | rm -f conftest.er1 |
| 13527 | cat conftest.err >&5 |
| 13528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13529 | (exit $ac_status); } && { |
| 13530 | test -z "$ac_c_werror_flag" || |
| 13531 | test ! -s conftest.err |
| 13532 | } && test -s conftest.$ac_objext; then |
| 13533 | ac_cv_type_time_t=yes |
| 13534 | else |
| 13535 | echo "$as_me: failed program was:" >&5 |
| 13536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13537 | |
| 13538 | ac_cv_type_time_t=no |
| 13539 | fi |
| 13540 | |
| 13541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13542 | fi |
| 13543 | { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 |
| 13544 | echo "${ECHO_T}$ac_cv_type_time_t" >&6; } |
| 13545 | |
| 13546 | # The cast to long int works around a bug in the HP C Compiler |
| 13547 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13548 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13549 | # This bug is HP SR number 8606223364. |
| 13550 | { echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 13551 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; } |
| 13552 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 13553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13554 | else |
| 13555 | if test "$cross_compiling" = yes; then |
| 13556 | # Depending upon the size, compute the lo and hi bounds. |
| 13557 | cat >conftest.$ac_ext <<_ACEOF |
| 13558 | /* confdefs.h. */ |
| 13559 | _ACEOF |
| 13560 | cat confdefs.h >>conftest.$ac_ext |
| 13561 | cat >>conftest.$ac_ext <<_ACEOF |
| 13562 | /* end confdefs.h. */ |
| 13563 | |
| 13564 | #ifdef HAVE_SYS_TYPES_H |
| 13565 | #include <sys/types.h> |
| 13566 | #endif |
| 13567 | #ifdef HAVE_TIME_H |
| 13568 | #include <time.h> |
| 13569 | #endif |
| 13570 | |
| 13571 | |
| 13572 | typedef time_t ac__type_sizeof_; |
| 13573 | int |
| 13574 | main () |
| 13575 | { |
| 13576 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 13577 | test_array [0] = 0 |
| 13578 | |
| 13579 | ; |
| 13580 | return 0; |
| 13581 | } |
| 13582 | _ACEOF |
| 13583 | rm -f conftest.$ac_objext |
| 13584 | if { (ac_try="$ac_compile" |
| 13585 | case "(($ac_try" in |
| 13586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13587 | *) ac_try_echo=$ac_try;; |
| 13588 | esac |
| 13589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13590 | (eval "$ac_compile") 2>conftest.er1 |
| 13591 | ac_status=$? |
| 13592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13593 | rm -f conftest.er1 |
| 13594 | cat conftest.err >&5 |
| 13595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13596 | (exit $ac_status); } && { |
| 13597 | test -z "$ac_c_werror_flag" || |
| 13598 | test ! -s conftest.err |
| 13599 | } && test -s conftest.$ac_objext; then |
| 13600 | ac_lo=0 ac_mid=0 |
| 13601 | while :; do |
| 13602 | cat >conftest.$ac_ext <<_ACEOF |
| 13603 | /* confdefs.h. */ |
| 13604 | _ACEOF |
| 13605 | cat confdefs.h >>conftest.$ac_ext |
| 13606 | cat >>conftest.$ac_ext <<_ACEOF |
| 13607 | /* end confdefs.h. */ |
| 13608 | |
| 13609 | #ifdef HAVE_SYS_TYPES_H |
| 13610 | #include <sys/types.h> |
| 13611 | #endif |
| 13612 | #ifdef HAVE_TIME_H |
| 13613 | #include <time.h> |
| 13614 | #endif |
| 13615 | |
| 13616 | |
| 13617 | typedef time_t ac__type_sizeof_; |
| 13618 | int |
| 13619 | main () |
| 13620 | { |
| 13621 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13622 | test_array [0] = 0 |
| 13623 | |
| 13624 | ; |
| 13625 | return 0; |
| 13626 | } |
| 13627 | _ACEOF |
| 13628 | rm -f conftest.$ac_objext |
| 13629 | if { (ac_try="$ac_compile" |
| 13630 | case "(($ac_try" in |
| 13631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13632 | *) ac_try_echo=$ac_try;; |
| 13633 | esac |
| 13634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13635 | (eval "$ac_compile") 2>conftest.er1 |
| 13636 | ac_status=$? |
| 13637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13638 | rm -f conftest.er1 |
| 13639 | cat conftest.err >&5 |
| 13640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13641 | (exit $ac_status); } && { |
| 13642 | test -z "$ac_c_werror_flag" || |
| 13643 | test ! -s conftest.err |
| 13644 | } && test -s conftest.$ac_objext; then |
| 13645 | ac_hi=$ac_mid; break |
| 13646 | else |
| 13647 | echo "$as_me: failed program was:" >&5 |
| 13648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13649 | |
| 13650 | ac_lo=`expr $ac_mid + 1` |
| 13651 | if test $ac_lo -le $ac_mid; then |
| 13652 | ac_lo= ac_hi= |
| 13653 | break |
| 13654 | fi |
| 13655 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13656 | fi |
| 13657 | |
| 13658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13659 | done |
| 13660 | else |
| 13661 | echo "$as_me: failed program was:" >&5 |
| 13662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13663 | |
| 13664 | cat >conftest.$ac_ext <<_ACEOF |
| 13665 | /* confdefs.h. */ |
| 13666 | _ACEOF |
| 13667 | cat confdefs.h >>conftest.$ac_ext |
| 13668 | cat >>conftest.$ac_ext <<_ACEOF |
| 13669 | /* end confdefs.h. */ |
| 13670 | |
| 13671 | #ifdef HAVE_SYS_TYPES_H |
| 13672 | #include <sys/types.h> |
| 13673 | #endif |
| 13674 | #ifdef HAVE_TIME_H |
| 13675 | #include <time.h> |
| 13676 | #endif |
| 13677 | |
| 13678 | |
| 13679 | typedef time_t ac__type_sizeof_; |
| 13680 | int |
| 13681 | main () |
| 13682 | { |
| 13683 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 13684 | test_array [0] = 0 |
| 13685 | |
| 13686 | ; |
| 13687 | return 0; |
| 13688 | } |
| 13689 | _ACEOF |
| 13690 | rm -f conftest.$ac_objext |
| 13691 | if { (ac_try="$ac_compile" |
| 13692 | case "(($ac_try" in |
| 13693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13694 | *) ac_try_echo=$ac_try;; |
| 13695 | esac |
| 13696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13697 | (eval "$ac_compile") 2>conftest.er1 |
| 13698 | ac_status=$? |
| 13699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13700 | rm -f conftest.er1 |
| 13701 | cat conftest.err >&5 |
| 13702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13703 | (exit $ac_status); } && { |
| 13704 | test -z "$ac_c_werror_flag" || |
| 13705 | test ! -s conftest.err |
| 13706 | } && test -s conftest.$ac_objext; then |
| 13707 | ac_hi=-1 ac_mid=-1 |
| 13708 | while :; do |
| 13709 | cat >conftest.$ac_ext <<_ACEOF |
| 13710 | /* confdefs.h. */ |
| 13711 | _ACEOF |
| 13712 | cat confdefs.h >>conftest.$ac_ext |
| 13713 | cat >>conftest.$ac_ext <<_ACEOF |
| 13714 | /* end confdefs.h. */ |
| 13715 | |
| 13716 | #ifdef HAVE_SYS_TYPES_H |
| 13717 | #include <sys/types.h> |
| 13718 | #endif |
| 13719 | #ifdef HAVE_TIME_H |
| 13720 | #include <time.h> |
| 13721 | #endif |
| 13722 | |
| 13723 | |
| 13724 | typedef time_t ac__type_sizeof_; |
| 13725 | int |
| 13726 | main () |
| 13727 | { |
| 13728 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 13729 | test_array [0] = 0 |
| 13730 | |
| 13731 | ; |
| 13732 | return 0; |
| 13733 | } |
| 13734 | _ACEOF |
| 13735 | rm -f conftest.$ac_objext |
| 13736 | if { (ac_try="$ac_compile" |
| 13737 | case "(($ac_try" in |
| 13738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13739 | *) ac_try_echo=$ac_try;; |
| 13740 | esac |
| 13741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13742 | (eval "$ac_compile") 2>conftest.er1 |
| 13743 | ac_status=$? |
| 13744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13745 | rm -f conftest.er1 |
| 13746 | cat conftest.err >&5 |
| 13747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13748 | (exit $ac_status); } && { |
| 13749 | test -z "$ac_c_werror_flag" || |
| 13750 | test ! -s conftest.err |
| 13751 | } && test -s conftest.$ac_objext; then |
| 13752 | ac_lo=$ac_mid; break |
| 13753 | else |
| 13754 | echo "$as_me: failed program was:" >&5 |
| 13755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13756 | |
| 13757 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13758 | if test $ac_mid -le $ac_hi; then |
| 13759 | ac_lo= ac_hi= |
| 13760 | break |
| 13761 | fi |
| 13762 | ac_mid=`expr 2 '*' $ac_mid` |
| 13763 | fi |
| 13764 | |
| 13765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13766 | done |
| 13767 | else |
| 13768 | echo "$as_me: failed program was:" >&5 |
| 13769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13770 | |
| 13771 | ac_lo= ac_hi= |
| 13772 | fi |
| 13773 | |
| 13774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13775 | fi |
| 13776 | |
| 13777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13778 | # Binary search between lo and hi bounds. |
| 13779 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13780 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13781 | cat >conftest.$ac_ext <<_ACEOF |
| 13782 | /* confdefs.h. */ |
| 13783 | _ACEOF |
| 13784 | cat confdefs.h >>conftest.$ac_ext |
| 13785 | cat >>conftest.$ac_ext <<_ACEOF |
| 13786 | /* end confdefs.h. */ |
| 13787 | |
| 13788 | #ifdef HAVE_SYS_TYPES_H |
| 13789 | #include <sys/types.h> |
| 13790 | #endif |
| 13791 | #ifdef HAVE_TIME_H |
| 13792 | #include <time.h> |
| 13793 | #endif |
| 13794 | |
| 13795 | |
| 13796 | typedef time_t ac__type_sizeof_; |
| 13797 | int |
| 13798 | main () |
| 13799 | { |
| 13800 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 13801 | test_array [0] = 0 |
| 13802 | |
| 13803 | ; |
| 13804 | return 0; |
| 13805 | } |
| 13806 | _ACEOF |
| 13807 | rm -f conftest.$ac_objext |
| 13808 | if { (ac_try="$ac_compile" |
| 13809 | case "(($ac_try" in |
| 13810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13811 | *) ac_try_echo=$ac_try;; |
| 13812 | esac |
| 13813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13814 | (eval "$ac_compile") 2>conftest.er1 |
| 13815 | ac_status=$? |
| 13816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13817 | rm -f conftest.er1 |
| 13818 | cat conftest.err >&5 |
| 13819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13820 | (exit $ac_status); } && { |
| 13821 | test -z "$ac_c_werror_flag" || |
| 13822 | test ! -s conftest.err |
| 13823 | } && test -s conftest.$ac_objext; then |
| 13824 | ac_hi=$ac_mid |
| 13825 | else |
| 13826 | echo "$as_me: failed program was:" >&5 |
| 13827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13828 | |
| 13829 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13830 | fi |
| 13831 | |
| 13832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13833 | done |
| 13834 | case $ac_lo in |
| 13835 | ?*) ac_cv_sizeof_time_t=$ac_lo;; |
| 13836 | '') if test "$ac_cv_type_time_t" = yes; then |
| 13837 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13838 | See \`config.log' for more details." >&5 |
| 13839 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13840 | See \`config.log' for more details." >&2;} |
| 13841 | { (exit 77); exit 77; }; } |
| 13842 | else |
| 13843 | ac_cv_sizeof_time_t=0 |
| 13844 | fi ;; |
| 13845 | esac |
| 13846 | else |
| 13847 | cat >conftest.$ac_ext <<_ACEOF |
| 13848 | /* confdefs.h. */ |
| 13849 | _ACEOF |
| 13850 | cat confdefs.h >>conftest.$ac_ext |
| 13851 | cat >>conftest.$ac_ext <<_ACEOF |
| 13852 | /* end confdefs.h. */ |
| 13853 | |
| 13854 | #ifdef HAVE_SYS_TYPES_H |
| 13855 | #include <sys/types.h> |
| 13856 | #endif |
| 13857 | #ifdef HAVE_TIME_H |
| 13858 | #include <time.h> |
| 13859 | #endif |
| 13860 | |
| 13861 | |
| 13862 | typedef time_t ac__type_sizeof_; |
| 13863 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13864 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13865 | #include <stdio.h> |
| 13866 | #include <stdlib.h> |
| 13867 | int |
| 13868 | main () |
| 13869 | { |
| 13870 | |
| 13871 | FILE *f = fopen ("conftest.val", "w"); |
| 13872 | if (! f) |
| 13873 | return 1; |
| 13874 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 13875 | { |
| 13876 | long int i = longval (); |
| 13877 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13878 | return 1; |
| 13879 | fprintf (f, "%ld\n", i); |
| 13880 | } |
| 13881 | else |
| 13882 | { |
| 13883 | unsigned long int i = ulongval (); |
| 13884 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13885 | return 1; |
| 13886 | fprintf (f, "%lu\n", i); |
| 13887 | } |
| 13888 | return ferror (f) || fclose (f) != 0; |
| 13889 | |
| 13890 | ; |
| 13891 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13892 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13893 | _ACEOF |
| 13894 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13895 | if { (ac_try="$ac_link" |
| 13896 | case "(($ac_try" in |
| 13897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13898 | *) ac_try_echo=$ac_try;; |
| 13899 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13901 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13902 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13904 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13905 | { (case "(($ac_try" in |
| 13906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13907 | *) ac_try_echo=$ac_try;; |
| 13908 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13910 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13911 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13913 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13914 | ac_cv_sizeof_time_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13915 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13916 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13917 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13920 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13921 | if test "$ac_cv_type_time_t" = yes; then |
| 13922 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t) |
| 13923 | See \`config.log' for more details." >&5 |
| 13924 | echo "$as_me: error: cannot compute sizeof (time_t) |
| 13925 | See \`config.log' for more details." >&2;} |
| 13926 | { (exit 77); exit 77; }; } |
| 13927 | else |
| 13928 | ac_cv_sizeof_time_t=0 |
| 13929 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13930 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13931 | 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] | 13932 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13933 | rm -f conftest.val |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13934 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13935 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 13936 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13937 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 13938 | |
| 13939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13940 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13941 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13942 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 13943 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13944 | |
| 13945 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13946 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13947 | ac_save_cc="$CC" |
| 13948 | if test "$ac_cv_kpthread" = "yes" |
| 13949 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 13950 | elif test "$ac_cv_kthread" = "yes" |
| 13951 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13952 | elif test "$ac_cv_pthread" = "yes" |
| 13953 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 13954 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13955 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 13956 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13957 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13958 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13959 | /* confdefs.h. */ |
| 13960 | _ACEOF |
| 13961 | cat confdefs.h >>conftest.$ac_ext |
| 13962 | cat >>conftest.$ac_ext <<_ACEOF |
| 13963 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13964 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13965 | int |
| 13966 | main () |
| 13967 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 13968 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13969 | ; |
| 13970 | return 0; |
| 13971 | } |
| 13972 | _ACEOF |
| 13973 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13974 | if { (ac_try="$ac_compile" |
| 13975 | case "(($ac_try" in |
| 13976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13977 | *) ac_try_echo=$ac_try;; |
| 13978 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13980 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13981 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13983 | rm -f conftest.er1 |
| 13984 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13986 | (exit $ac_status); } && { |
| 13987 | test -z "$ac_c_werror_flag" || |
| 13988 | test ! -s conftest.err |
| 13989 | } && test -s conftest.$ac_objext; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13990 | have_pthread_t=yes |
| 13991 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13992 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13994 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13995 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 13996 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 13997 | |
| 13998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 13999 | { echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 14000 | echo "${ECHO_T}$have_pthread_t" >&6; } |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14001 | if test "$have_pthread_t" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14002 | { echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 14003 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; } |
| 14004 | if test "${ac_cv_type_pthread_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14006 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14007 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14008 | /* confdefs.h. */ |
| 14009 | _ACEOF |
| 14010 | cat confdefs.h >>conftest.$ac_ext |
| 14011 | cat >>conftest.$ac_ext <<_ACEOF |
| 14012 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14013 | |
| 14014 | #ifdef HAVE_PTHREAD_H |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14015 | #include <pthread.h> |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14016 | #endif |
| 14017 | |
| 14018 | |
| 14019 | typedef pthread_t ac__type_new_; |
| 14020 | int |
| 14021 | main () |
| 14022 | { |
| 14023 | if ((ac__type_new_ *) 0) |
| 14024 | return 0; |
| 14025 | if (sizeof (ac__type_new_)) |
| 14026 | return 0; |
| 14027 | ; |
| 14028 | return 0; |
| 14029 | } |
| 14030 | _ACEOF |
| 14031 | rm -f conftest.$ac_objext |
| 14032 | if { (ac_try="$ac_compile" |
| 14033 | case "(($ac_try" in |
| 14034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14035 | *) ac_try_echo=$ac_try;; |
| 14036 | esac |
| 14037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14038 | (eval "$ac_compile") 2>conftest.er1 |
| 14039 | ac_status=$? |
| 14040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14041 | rm -f conftest.er1 |
| 14042 | cat conftest.err >&5 |
| 14043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14044 | (exit $ac_status); } && { |
| 14045 | test -z "$ac_c_werror_flag" || |
| 14046 | test ! -s conftest.err |
| 14047 | } && test -s conftest.$ac_objext; then |
| 14048 | ac_cv_type_pthread_t=yes |
| 14049 | else |
| 14050 | echo "$as_me: failed program was:" >&5 |
| 14051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14052 | |
| 14053 | ac_cv_type_pthread_t=no |
| 14054 | fi |
| 14055 | |
| 14056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14057 | fi |
| 14058 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5 |
| 14059 | echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; } |
| 14060 | |
| 14061 | # The cast to long int works around a bug in the HP C Compiler |
| 14062 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14063 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14064 | # This bug is HP SR number 8606223364. |
| 14065 | { echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 14066 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; } |
| 14067 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 14068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14069 | else |
| 14070 | if test "$cross_compiling" = yes; then |
| 14071 | # Depending upon the size, compute the lo and hi bounds. |
| 14072 | cat >conftest.$ac_ext <<_ACEOF |
| 14073 | /* confdefs.h. */ |
| 14074 | _ACEOF |
| 14075 | cat confdefs.h >>conftest.$ac_ext |
| 14076 | cat >>conftest.$ac_ext <<_ACEOF |
| 14077 | /* end confdefs.h. */ |
| 14078 | |
| 14079 | #ifdef HAVE_PTHREAD_H |
| 14080 | #include <pthread.h> |
| 14081 | #endif |
| 14082 | |
| 14083 | |
| 14084 | typedef pthread_t ac__type_sizeof_; |
| 14085 | int |
| 14086 | main () |
| 14087 | { |
| 14088 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
| 14089 | test_array [0] = 0 |
| 14090 | |
| 14091 | ; |
| 14092 | return 0; |
| 14093 | } |
| 14094 | _ACEOF |
| 14095 | rm -f conftest.$ac_objext |
| 14096 | if { (ac_try="$ac_compile" |
| 14097 | case "(($ac_try" in |
| 14098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14099 | *) ac_try_echo=$ac_try;; |
| 14100 | esac |
| 14101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14102 | (eval "$ac_compile") 2>conftest.er1 |
| 14103 | ac_status=$? |
| 14104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14105 | rm -f conftest.er1 |
| 14106 | cat conftest.err >&5 |
| 14107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14108 | (exit $ac_status); } && { |
| 14109 | test -z "$ac_c_werror_flag" || |
| 14110 | test ! -s conftest.err |
| 14111 | } && test -s conftest.$ac_objext; then |
| 14112 | ac_lo=0 ac_mid=0 |
| 14113 | while :; do |
| 14114 | cat >conftest.$ac_ext <<_ACEOF |
| 14115 | /* confdefs.h. */ |
| 14116 | _ACEOF |
| 14117 | cat confdefs.h >>conftest.$ac_ext |
| 14118 | cat >>conftest.$ac_ext <<_ACEOF |
| 14119 | /* end confdefs.h. */ |
| 14120 | |
| 14121 | #ifdef HAVE_PTHREAD_H |
| 14122 | #include <pthread.h> |
| 14123 | #endif |
| 14124 | |
| 14125 | |
| 14126 | typedef pthread_t ac__type_sizeof_; |
| 14127 | int |
| 14128 | main () |
| 14129 | { |
| 14130 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14131 | test_array [0] = 0 |
| 14132 | |
| 14133 | ; |
| 14134 | return 0; |
| 14135 | } |
| 14136 | _ACEOF |
| 14137 | rm -f conftest.$ac_objext |
| 14138 | if { (ac_try="$ac_compile" |
| 14139 | case "(($ac_try" in |
| 14140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14141 | *) ac_try_echo=$ac_try;; |
| 14142 | esac |
| 14143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14144 | (eval "$ac_compile") 2>conftest.er1 |
| 14145 | ac_status=$? |
| 14146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14147 | rm -f conftest.er1 |
| 14148 | cat conftest.err >&5 |
| 14149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14150 | (exit $ac_status); } && { |
| 14151 | test -z "$ac_c_werror_flag" || |
| 14152 | test ! -s conftest.err |
| 14153 | } && test -s conftest.$ac_objext; then |
| 14154 | ac_hi=$ac_mid; break |
| 14155 | else |
| 14156 | echo "$as_me: failed program was:" >&5 |
| 14157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14158 | |
| 14159 | ac_lo=`expr $ac_mid + 1` |
| 14160 | if test $ac_lo -le $ac_mid; then |
| 14161 | ac_lo= ac_hi= |
| 14162 | break |
| 14163 | fi |
| 14164 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14165 | fi |
| 14166 | |
| 14167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14168 | done |
| 14169 | else |
| 14170 | echo "$as_me: failed program was:" >&5 |
| 14171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14172 | |
| 14173 | cat >conftest.$ac_ext <<_ACEOF |
| 14174 | /* confdefs.h. */ |
| 14175 | _ACEOF |
| 14176 | cat confdefs.h >>conftest.$ac_ext |
| 14177 | cat >>conftest.$ac_ext <<_ACEOF |
| 14178 | /* end confdefs.h. */ |
| 14179 | |
| 14180 | #ifdef HAVE_PTHREAD_H |
| 14181 | #include <pthread.h> |
| 14182 | #endif |
| 14183 | |
| 14184 | |
| 14185 | typedef pthread_t ac__type_sizeof_; |
| 14186 | int |
| 14187 | main () |
| 14188 | { |
| 14189 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
| 14190 | test_array [0] = 0 |
| 14191 | |
| 14192 | ; |
| 14193 | return 0; |
| 14194 | } |
| 14195 | _ACEOF |
| 14196 | rm -f conftest.$ac_objext |
| 14197 | if { (ac_try="$ac_compile" |
| 14198 | case "(($ac_try" in |
| 14199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14200 | *) ac_try_echo=$ac_try;; |
| 14201 | esac |
| 14202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14203 | (eval "$ac_compile") 2>conftest.er1 |
| 14204 | ac_status=$? |
| 14205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14206 | rm -f conftest.er1 |
| 14207 | cat conftest.err >&5 |
| 14208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14209 | (exit $ac_status); } && { |
| 14210 | test -z "$ac_c_werror_flag" || |
| 14211 | test ! -s conftest.err |
| 14212 | } && test -s conftest.$ac_objext; then |
| 14213 | ac_hi=-1 ac_mid=-1 |
| 14214 | while :; do |
| 14215 | cat >conftest.$ac_ext <<_ACEOF |
| 14216 | /* confdefs.h. */ |
| 14217 | _ACEOF |
| 14218 | cat confdefs.h >>conftest.$ac_ext |
| 14219 | cat >>conftest.$ac_ext <<_ACEOF |
| 14220 | /* end confdefs.h. */ |
| 14221 | |
| 14222 | #ifdef HAVE_PTHREAD_H |
| 14223 | #include <pthread.h> |
| 14224 | #endif |
| 14225 | |
| 14226 | |
| 14227 | typedef pthread_t ac__type_sizeof_; |
| 14228 | int |
| 14229 | main () |
| 14230 | { |
| 14231 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
| 14232 | test_array [0] = 0 |
| 14233 | |
| 14234 | ; |
| 14235 | return 0; |
| 14236 | } |
| 14237 | _ACEOF |
| 14238 | rm -f conftest.$ac_objext |
| 14239 | if { (ac_try="$ac_compile" |
| 14240 | case "(($ac_try" in |
| 14241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14242 | *) ac_try_echo=$ac_try;; |
| 14243 | esac |
| 14244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14245 | (eval "$ac_compile") 2>conftest.er1 |
| 14246 | ac_status=$? |
| 14247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14248 | rm -f conftest.er1 |
| 14249 | cat conftest.err >&5 |
| 14250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14251 | (exit $ac_status); } && { |
| 14252 | test -z "$ac_c_werror_flag" || |
| 14253 | test ! -s conftest.err |
| 14254 | } && test -s conftest.$ac_objext; then |
| 14255 | ac_lo=$ac_mid; break |
| 14256 | else |
| 14257 | echo "$as_me: failed program was:" >&5 |
| 14258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14259 | |
| 14260 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14261 | if test $ac_mid -le $ac_hi; then |
| 14262 | ac_lo= ac_hi= |
| 14263 | break |
| 14264 | fi |
| 14265 | ac_mid=`expr 2 '*' $ac_mid` |
| 14266 | fi |
| 14267 | |
| 14268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14269 | done |
| 14270 | else |
| 14271 | echo "$as_me: failed program was:" >&5 |
| 14272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14273 | |
| 14274 | ac_lo= ac_hi= |
| 14275 | fi |
| 14276 | |
| 14277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14278 | fi |
| 14279 | |
| 14280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14281 | # Binary search between lo and hi bounds. |
| 14282 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14283 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14284 | cat >conftest.$ac_ext <<_ACEOF |
| 14285 | /* confdefs.h. */ |
| 14286 | _ACEOF |
| 14287 | cat confdefs.h >>conftest.$ac_ext |
| 14288 | cat >>conftest.$ac_ext <<_ACEOF |
| 14289 | /* end confdefs.h. */ |
| 14290 | |
| 14291 | #ifdef HAVE_PTHREAD_H |
| 14292 | #include <pthread.h> |
| 14293 | #endif |
| 14294 | |
| 14295 | |
| 14296 | typedef pthread_t ac__type_sizeof_; |
| 14297 | int |
| 14298 | main () |
| 14299 | { |
| 14300 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
| 14301 | test_array [0] = 0 |
| 14302 | |
| 14303 | ; |
| 14304 | return 0; |
| 14305 | } |
| 14306 | _ACEOF |
| 14307 | rm -f conftest.$ac_objext |
| 14308 | if { (ac_try="$ac_compile" |
| 14309 | case "(($ac_try" in |
| 14310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14311 | *) ac_try_echo=$ac_try;; |
| 14312 | esac |
| 14313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14314 | (eval "$ac_compile") 2>conftest.er1 |
| 14315 | ac_status=$? |
| 14316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14317 | rm -f conftest.er1 |
| 14318 | cat conftest.err >&5 |
| 14319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14320 | (exit $ac_status); } && { |
| 14321 | test -z "$ac_c_werror_flag" || |
| 14322 | test ! -s conftest.err |
| 14323 | } && test -s conftest.$ac_objext; then |
| 14324 | ac_hi=$ac_mid |
| 14325 | else |
| 14326 | echo "$as_me: failed program was:" >&5 |
| 14327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14328 | |
| 14329 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14330 | fi |
| 14331 | |
| 14332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14333 | done |
| 14334 | case $ac_lo in |
| 14335 | ?*) ac_cv_sizeof_pthread_t=$ac_lo;; |
| 14336 | '') if test "$ac_cv_type_pthread_t" = yes; then |
| 14337 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14338 | See \`config.log' for more details." >&5 |
| 14339 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14340 | See \`config.log' for more details." >&2;} |
| 14341 | { (exit 77); exit 77; }; } |
| 14342 | else |
| 14343 | ac_cv_sizeof_pthread_t=0 |
| 14344 | fi ;; |
| 14345 | esac |
| 14346 | else |
| 14347 | cat >conftest.$ac_ext <<_ACEOF |
| 14348 | /* confdefs.h. */ |
| 14349 | _ACEOF |
| 14350 | cat confdefs.h >>conftest.$ac_ext |
| 14351 | cat >>conftest.$ac_ext <<_ACEOF |
| 14352 | /* end confdefs.h. */ |
| 14353 | |
| 14354 | #ifdef HAVE_PTHREAD_H |
| 14355 | #include <pthread.h> |
| 14356 | #endif |
| 14357 | |
| 14358 | |
| 14359 | typedef pthread_t ac__type_sizeof_; |
| 14360 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14361 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14362 | #include <stdio.h> |
| 14363 | #include <stdlib.h> |
| 14364 | int |
| 14365 | main () |
| 14366 | { |
| 14367 | |
| 14368 | FILE *f = fopen ("conftest.val", "w"); |
| 14369 | if (! f) |
| 14370 | return 1; |
| 14371 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
| 14372 | { |
| 14373 | long int i = longval (); |
| 14374 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14375 | return 1; |
| 14376 | fprintf (f, "%ld\n", i); |
| 14377 | } |
| 14378 | else |
| 14379 | { |
| 14380 | unsigned long int i = ulongval (); |
| 14381 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14382 | return 1; |
| 14383 | fprintf (f, "%lu\n", i); |
| 14384 | } |
| 14385 | return ferror (f) || fclose (f) != 0; |
| 14386 | |
| 14387 | ; |
| 14388 | return 0; |
| 14389 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14390 | _ACEOF |
| 14391 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14392 | if { (ac_try="$ac_link" |
| 14393 | case "(($ac_try" in |
| 14394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14395 | *) ac_try_echo=$ac_try;; |
| 14396 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14398 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14399 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14401 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14402 | { (case "(($ac_try" in |
| 14403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14404 | *) ac_try_echo=$ac_try;; |
| 14405 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14407 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14408 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14410 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14411 | ac_cv_sizeof_pthread_t=`cat conftest.val` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14412 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14413 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14414 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14417 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14418 | if test "$ac_cv_type_pthread_t" = yes; then |
| 14419 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t) |
| 14420 | See \`config.log' for more details." >&5 |
| 14421 | echo "$as_me: error: cannot compute sizeof (pthread_t) |
| 14422 | See \`config.log' for more details." >&2;} |
| 14423 | { (exit 77); exit 77; }; } |
| 14424 | else |
| 14425 | ac_cv_sizeof_pthread_t=0 |
| 14426 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14427 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14428 | 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] | 14429 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14430 | rm -f conftest.val |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14431 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14432 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14433 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14434 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14435 | |
| 14436 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14437 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14438 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14439 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14440 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 14441 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14442 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 14443 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 14444 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14445 | { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 14446 | 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] | 14447 | # Check whether --enable-toolbox-glue was given. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14448 | if test "${enable_toolbox_glue+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14449 | enableval=$enable_toolbox_glue; |
| 14450 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14451 | |
| 14452 | |
| 14453 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14454 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14455 | case $ac_sys_system/$ac_sys_release in |
| 14456 | Darwin/*) |
| 14457 | enable_toolbox_glue="yes";; |
| 14458 | *) |
| 14459 | enable_toolbox_glue="no";; |
| 14460 | esac |
| 14461 | fi |
| 14462 | case "$enable_toolbox_glue" in |
| 14463 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14464 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14465 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14466 | |
| 14467 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14468 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14469 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14470 | |
| 14471 | ;; |
| 14472 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14473 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 14474 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14475 | ;; |
| 14476 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14477 | { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 14478 | echo "${ECHO_T}$enable_toolbox_glue" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14479 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14480 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14481 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14482 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14483 | Darwin/[01567]\..*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14484 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 14485 | ;; |
| 14486 | Darwin/*) |
| 14487 | OTHER_LIBTOOL_OPT="" |
| 14488 | ;; |
| 14489 | esac |
| 14490 | |
| 14491 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14492 | ARCH_RUN_32BIT="" |
| 14493 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14494 | case $ac_sys_system/$ac_sys_release in |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 14495 | Darwin/[01567]\..*) |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14496 | LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
| 14497 | if test "${enable_universalsdk}"; then |
| 14498 | : |
| 14499 | else |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14500 | LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14501 | fi |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14502 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14503 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 14504 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 14505 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 14506 | if test ${gcc_version} '<' 4.0 |
| 14507 | then |
| 14508 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 14509 | else |
| 14510 | LIBTOOL_CRUFT="" |
| 14511 | fi |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14512 | if test "$cross_compiling" = yes; then |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14513 | ac_osx_32bit=yes |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14514 | else |
| 14515 | cat >conftest.$ac_ext <<_ACEOF |
| 14516 | /* confdefs.h. */ |
| 14517 | _ACEOF |
| 14518 | cat confdefs.h >>conftest.$ac_ext |
| 14519 | cat >>conftest.$ac_ext <<_ACEOF |
| 14520 | /* end confdefs.h. */ |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14521 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14522 | #include <unistd.h> |
| 14523 | int main(int argc, char*argv[]) |
| 14524 | { |
| 14525 | if (sizeof(long) == 4) { |
| 14526 | return 0; |
| 14527 | } else { |
| 14528 | return 1; |
| 14529 | } |
Ronald Oussoren | 84ddd72 | 2009-09-08 07:17:10 +0000 | [diff] [blame] | 14530 | } |
Ronald Oussoren | 23d9253 | 2009-09-07 06:12:00 +0000 | [diff] [blame] | 14531 | |
Ronald Oussoren | 2596758 | 2009-09-06 10:00:26 +0000 | [diff] [blame] | 14532 | _ACEOF |
| 14533 | rm -f conftest$ac_exeext |
| 14534 | if { (ac_try="$ac_link" |
| 14535 | case "(($ac_try" in |
| 14536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14537 | *) ac_try_echo=$ac_try;; |
| 14538 | esac |
| 14539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14540 | (eval "$ac_link") 2>&5 |
| 14541 | ac_status=$? |
| 14542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14543 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14544 | { (case "(($ac_try" in |
| 14545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14546 | *) ac_try_echo=$ac_try;; |
| 14547 | esac |
| 14548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14549 | (eval "$ac_try") 2>&5 |
| 14550 | ac_status=$? |
| 14551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14552 | (exit $ac_status); }; }; then |
| 14553 | ac_osx_32bit=yes |
| 14554 | else |
| 14555 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14556 | echo "$as_me: failed program was:" >&5 |
| 14557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14558 | |
| 14559 | ( exit $ac_status ) |
| 14560 | ac_osx_32bit=no |
| 14561 | fi |
| 14562 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14563 | fi |
| 14564 | |
| 14565 | |
| 14566 | |
| 14567 | if test "${ac_osx_32bit}" = "yes"; then |
| 14568 | case `arch` in |
| 14569 | i386) |
| 14570 | MACOSX_DEFAULT_ARCH="i386" |
| 14571 | ;; |
| 14572 | ppc) |
| 14573 | MACOSX_DEFAULT_ARCH="ppc" |
| 14574 | ;; |
| 14575 | *) |
| 14576 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14577 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14578 | { (exit 1); exit 1; }; } |
| 14579 | ;; |
| 14580 | esac |
| 14581 | else |
| 14582 | case `arch` in |
| 14583 | i386) |
| 14584 | MACOSX_DEFAULT_ARCH="x86_64" |
| 14585 | ;; |
| 14586 | ppc) |
| 14587 | MACOSX_DEFAULT_ARCH="ppc64" |
| 14588 | ;; |
| 14589 | *) |
| 14590 | { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5 |
| 14591 | echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;} |
| 14592 | { (exit 1); exit 1; }; } |
| 14593 | ;; |
| 14594 | esac |
| 14595 | |
| 14596 | #ARCH_RUN_32BIT="true" |
| 14597 | fi |
| 14598 | |
| 14599 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 14600 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14601 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14602 | esac |
| 14603 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14604 | { echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 14605 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14606 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14607 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 14608 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14609 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14610 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14612 | cat >>confdefs.h <<\_ACEOF |
| 14613 | #define WITH_NEXT_FRAMEWORK 1 |
| 14614 | _ACEOF |
| 14615 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14616 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 14617 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 14618 | if test $enable_shared = "yes" |
| 14619 | then |
Ronald Oussoren | 9ebd242 | 2009-09-29 13:00:44 +0000 | [diff] [blame] | 14620 | { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5 |
| 14621 | 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] | 14622 | { (exit 1); exit 1; }; } |
| 14623 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14624 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14625 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14626 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14627 | fi |
| 14628 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14629 | { echo "$as_me:$LINENO: checking for dyld" >&5 |
| 14630 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14631 | case $ac_sys_system/$ac_sys_release in |
| 14632 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14634 | cat >>confdefs.h <<\_ACEOF |
| 14635 | #define WITH_DYLD 1 |
| 14636 | _ACEOF |
| 14637 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14638 | { echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 14639 | echo "${ECHO_T}always on for Darwin" >&6; } |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14640 | ;; |
| 14641 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14642 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14643 | echo "${ECHO_T}no" >&6; } |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14644 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14645 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14646 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14647 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14648 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14649 | |
| 14650 | |
| 14651 | |
| 14652 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14653 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14654 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14655 | { echo "$as_me:$LINENO: checking SO" >&5 |
| 14656 | echo $ECHO_N "checking SO... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14657 | if test -z "$SO" |
| 14658 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14659 | case $ac_sys_system in |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14660 | hp*|HP*) |
| 14661 | case `uname -m` in |
| 14662 | ia64) SO=.so;; |
| 14663 | *) SO=.sl;; |
| 14664 | esac |
| 14665 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14666 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14667 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14668 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 14669 | else |
| 14670 | # this might also be a termcap variable, see #610332 |
| 14671 | echo |
| 14672 | echo '=====================================================================' |
| 14673 | echo '+ +' |
| 14674 | echo '+ WARNING: You have set SO in your environment. +' |
| 14675 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 14676 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 14677 | echo '+ +' |
| 14678 | echo '=====================================================================' |
| 14679 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14680 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14681 | { echo "$as_me:$LINENO: result: $SO" >&5 |
| 14682 | echo "${ECHO_T}$SO" >&6; } |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14683 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 14684 | |
Neal Norwitz | 58e2888 | 2006-05-19 07:00:58 +0000 | [diff] [blame] | 14685 | cat >>confdefs.h <<_ACEOF |
| 14686 | #define SHLIB_EXT "$SO" |
| 14687 | _ACEOF |
| 14688 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14689 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 14690 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14691 | # (Shared libraries in this instance are shared modules to be loaded into |
| 14692 | # Python, as opposed to building Python itself as a shared library.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14693 | { echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 14694 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14695 | if test -z "$LDSHARED" |
| 14696 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14697 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14698 | AIX*) |
| 14699 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14700 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14701 | ;; |
| 14702 | BeOS*) |
| 14703 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 14704 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14705 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14706 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 14707 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14708 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14709 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 14710 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 14711 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 14712 | fi ;; |
Thomas Heller | dc96a77 | 2008-04-04 10:07:55 +0000 | [diff] [blame] | 14713 | hp*|HP*) |
| 14714 | if test "$GCC" = "yes" |
| 14715 | then LDSHARED='$(CC) -shared' |
| 14716 | else LDSHARED='ld -b'; |
| 14717 | fi ;; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14718 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14719 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14720 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14721 | if test "$enable_framework" ; then |
| 14722 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14723 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14724 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14725 | else |
| 14726 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 14727 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 14728 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14729 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14730 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14731 | if test "$enable_framework" ; then |
| 14732 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14733 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14734 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14735 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 14736 | # No framework, use the Python app as bundle-loader |
| 14737 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 14738 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14739 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14740 | Darwin/*) |
| 14741 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 14742 | # This allows an extension to be used in any Python |
Ronald Oussoren | 38f1b98 | 2007-09-02 09:46:07 +0000 | [diff] [blame] | 14743 | |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14744 | if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14745 | then |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14746 | if test "${enable_universalsdk}"; then |
Ronald Oussoren | 5640ce2 | 2008-06-05 12:58:24 +0000 | [diff] [blame] | 14747 | LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
Ronald Oussoren | 988117f | 2006-04-29 11:31:35 +0000 | [diff] [blame] | 14748 | fi |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14749 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 14750 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14751 | else |
| 14752 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 14753 | if test "$enable_framework" ; then |
| 14754 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14755 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 14756 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 14757 | else |
| 14758 | # No framework, use the Python app as bundle-loader |
| 14759 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 14760 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 14761 | fi |
| 14762 | fi |
| 14763 | ;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14764 | Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 14765 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14766 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 14767 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14768 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 14769 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 14770 | else |
| 14771 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14772 | fi;; |
Martin v. Löwis | 222c515 | 2006-06-03 07:37:13 +0000 | [diff] [blame] | 14773 | OpenBSD*) |
| 14774 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14775 | then |
| 14776 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14777 | else |
| 14778 | case `uname -r` in |
| 14779 | [01].* | 2.[0-7] | 2.[0-7].*) |
| 14780 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 14781 | ;; |
| 14782 | *) |
| 14783 | LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
| 14784 | ;; |
| 14785 | esac |
| 14786 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14787 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14788 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14789 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14790 | then LDSHARED='$(CC) -shared' |
| 14791 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14792 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 14793 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 14794 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14795 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14796 | *) LDSHARED="ld";; |
| 14797 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14798 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14799 | { echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 14800 | echo "${ECHO_T}$LDSHARED" >&6; } |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14801 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14802 | # 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] | 14803 | # library (module) -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14804 | { echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 14805 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14806 | if test -z "$CCSHARED" |
| 14807 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14808 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 14809 | SunOS*) if test "$GCC" = yes; |
Martin v. Löwis | eb62357 | 2007-03-12 10:50:39 +0000 | [diff] [blame] | 14810 | then CCSHARED="-fPIC"; |
| 14811 | elif test `uname -p` = sparc; |
| 14812 | then CCSHARED="-xcode=pic32"; |
| 14813 | else CCSHARED="-Kpic"; |
| 14814 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14815 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 14816 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 14817 | else CCSHARED="+z"; |
| 14818 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14819 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14820 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14821 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14822 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14823 | if test "$GCC" = "yes" |
| 14824 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 14825 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 14826 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14827 | SCO_SV*) |
| 14828 | if test "$GCC" = "yes" |
| 14829 | then CCSHARED="-fPIC" |
| 14830 | else CCSHARED="-Kpic -belf" |
| 14831 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14832 | IRIX*/6*) case $CC in |
| 14833 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 14834 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14835 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14836 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14837 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14838 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14839 | { echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 14840 | echo "${ECHO_T}$CCSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14841 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14842 | # the python executable -- this is only needed for a few systems |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14843 | { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 14844 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14845 | if test -z "$LINKFORSHARED" |
| 14846 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 14847 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 14848 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 14849 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14850 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 14851 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 14852 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 14853 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 14854 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14855 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14856 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 14857 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14858 | # not used by the core itself but which needs to be in the core so |
| 14859 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 14860 | # -prebind is no longer used, because it actually seems to give a |
| 14861 | # slowdown in stead of a speedup, maybe due to the large number of |
| 14862 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14863 | |
| 14864 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14865 | if test "$enable_framework" |
| 14866 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 14867 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14868 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 14869 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 14870 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 14871 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 14872 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14873 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 14874 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 14875 | then |
| 14876 | LINKFORSHARED="-Wl,--export-dynamic" |
| 14877 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14878 | SunOS/5*) case $CC in |
| 14879 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 14880 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 14881 | then |
| 14882 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 14883 | fi;; |
| 14884 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 14885 | CYGWIN*) |
| 14886 | if test $enable_shared = "no" |
| 14887 | then |
| 14888 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 14889 | fi;; |
Martin v. Löwis | 8c255e4 | 2008-05-23 15:06:50 +0000 | [diff] [blame] | 14890 | QNX*) |
| 14891 | # -Wl,-E causes the symbols to be added to the dynamic |
| 14892 | # symbol table so that they can be found when a module |
| 14893 | # is loaded. -N 2048K causes the stack size to be set |
| 14894 | # to 2048 kilobytes so that the stack doesn't overflow |
| 14895 | # when running test_compile.py. |
| 14896 | LINKFORSHARED='-Wl,-E -N 2048K';; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14897 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14898 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14899 | { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 14900 | echo "${ECHO_T}$LINKFORSHARED" >&6; } |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 14901 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14902 | |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 14903 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14904 | { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 14905 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14906 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 14907 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 14908 | case $ac_sys_system in |
| 14909 | CYGWIN*) |
| 14910 | # Cygwin needs CCSHARED when building extension DLLs |
| 14911 | # but not when building the interpreter DLL. |
| 14912 | CFLAGSFORSHARED='';; |
| 14913 | *) |
| 14914 | CFLAGSFORSHARED='$(CCSHARED)' |
| 14915 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14916 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14917 | { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 14918 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6; } |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 14919 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14920 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 14921 | # library (with --enable-shared). |
| 14922 | # 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] | 14923 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 14924 | # if it is not required, since it creates a dependency of the shared library |
| 14925 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 14926 | # don't need to link LIBS explicitly. The default should be only changed |
| 14927 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14928 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14929 | { echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 14930 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14931 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14932 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 14933 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14934 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14935 | { echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 14936 | echo "${ECHO_T}$SHLIBS" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 14937 | |
| 14938 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14939 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14940 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14941 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14942 | 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] | 14943 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14945 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14946 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14947 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14948 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14949 | /* confdefs.h. */ |
| 14950 | _ACEOF |
| 14951 | cat confdefs.h >>conftest.$ac_ext |
| 14952 | cat >>conftest.$ac_ext <<_ACEOF |
| 14953 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14954 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14955 | /* Override any GCC internal prototype to avoid an error. |
| 14956 | Use char because int might match the return type of a GCC |
| 14957 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14958 | #ifdef __cplusplus |
| 14959 | extern "C" |
| 14960 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14961 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14962 | int |
| 14963 | main () |
| 14964 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14965 | return dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14966 | ; |
| 14967 | return 0; |
| 14968 | } |
| 14969 | _ACEOF |
| 14970 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14971 | if { (ac_try="$ac_link" |
| 14972 | case "(($ac_try" in |
| 14973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14974 | *) ac_try_echo=$ac_try;; |
| 14975 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14977 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14978 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14980 | rm -f conftest.er1 |
| 14981 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14983 | (exit $ac_status); } && { |
| 14984 | test -z "$ac_c_werror_flag" || |
| 14985 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14986 | } && test -s conftest$ac_exeext && |
| 14987 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14988 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14989 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 14990 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14992 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14993 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14994 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 14995 | |
| 14996 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14997 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14998 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14999 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15000 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15001 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 15002 | if test $ac_cv_lib_dl_dlopen = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15003 | cat >>confdefs.h <<_ACEOF |
| 15004 | #define HAVE_LIBDL 1 |
| 15005 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15006 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15007 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15008 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15009 | fi |
| 15010 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15011 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15012 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 15013 | 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] | 15014 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15016 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15017 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15018 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15019 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15020 | /* confdefs.h. */ |
| 15021 | _ACEOF |
| 15022 | cat confdefs.h >>conftest.$ac_ext |
| 15023 | cat >>conftest.$ac_ext <<_ACEOF |
| 15024 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15025 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15026 | /* Override any GCC internal prototype to avoid an error. |
| 15027 | Use char because int might match the return type of a GCC |
| 15028 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15029 | #ifdef __cplusplus |
| 15030 | extern "C" |
| 15031 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15032 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15033 | int |
| 15034 | main () |
| 15035 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15036 | return shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15037 | ; |
| 15038 | return 0; |
| 15039 | } |
| 15040 | _ACEOF |
| 15041 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15042 | if { (ac_try="$ac_link" |
| 15043 | case "(($ac_try" in |
| 15044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15045 | *) ac_try_echo=$ac_try;; |
| 15046 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15048 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15049 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15051 | rm -f conftest.er1 |
| 15052 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15054 | (exit $ac_status); } && { |
| 15055 | test -z "$ac_c_werror_flag" || |
| 15056 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15057 | } && test -s conftest$ac_exeext && |
| 15058 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15059 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15060 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15061 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15063 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15064 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15065 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15066 | |
| 15067 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15068 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15069 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15070 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15071 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 15072 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 15073 | if test $ac_cv_lib_dld_shl_load = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15074 | cat >>confdefs.h <<_ACEOF |
| 15075 | #define HAVE_LIBDLD 1 |
| 15076 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15077 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15078 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15079 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15080 | fi |
| 15081 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15082 | |
Ronald Oussoren | 79f9049 | 2009-01-02 10:44:46 +0000 | [diff] [blame] | 15083 | # only check for sem_init if thread support is requested |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15084 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15085 | { echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 15086 | 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] | 15087 | if test "${ac_cv_search_sem_init+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15089 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15090 | ac_func_search_save_LIBS=$LIBS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15091 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15092 | /* confdefs.h. */ |
| 15093 | _ACEOF |
| 15094 | cat confdefs.h >>conftest.$ac_ext |
| 15095 | cat >>conftest.$ac_ext <<_ACEOF |
| 15096 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15097 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15098 | /* Override any GCC internal prototype to avoid an error. |
| 15099 | Use char because int might match the return type of a GCC |
| 15100 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15101 | #ifdef __cplusplus |
| 15102 | extern "C" |
| 15103 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15104 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15105 | int |
| 15106 | main () |
| 15107 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15108 | return sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15109 | ; |
| 15110 | return 0; |
| 15111 | } |
| 15112 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15113 | for ac_lib in '' pthread rt posix4; do |
| 15114 | if test -z "$ac_lib"; then |
| 15115 | ac_res="none required" |
| 15116 | else |
| 15117 | ac_res=-l$ac_lib |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15118 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15119 | fi |
| 15120 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15121 | if { (ac_try="$ac_link" |
| 15122 | case "(($ac_try" in |
| 15123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15124 | *) ac_try_echo=$ac_try;; |
| 15125 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15127 | (eval "$ac_link") 2>conftest.er1 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15128 | ac_status=$? |
| 15129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15130 | rm -f conftest.er1 |
| 15131 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15133 | (exit $ac_status); } && { |
| 15134 | test -z "$ac_c_werror_flag" || |
| 15135 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15136 | } && test -s conftest$ac_exeext && |
| 15137 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15138 | ac_cv_search_sem_init=$ac_res |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15139 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15140 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15142 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15143 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 15144 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15145 | |
| 15146 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15147 | conftest$ac_exeext |
| 15148 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15149 | break |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 15150 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15151 | done |
| 15152 | if test "${ac_cv_search_sem_init+set}" = set; then |
| 15153 | : |
| 15154 | else |
| 15155 | ac_cv_search_sem_init=no |
| 15156 | fi |
| 15157 | rm conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 15158 | LIBS=$ac_func_search_save_LIBS |
| 15159 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15160 | { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 15161 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15162 | ac_res=$ac_cv_search_sem_init |
| 15163 | if test "$ac_res" != no; then |
| 15164 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15165 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 15166 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 15167 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15168 | # posix4 on Solaris 2.6 |
| 15169 | # pthread (first!) on Linux |
| 15170 | fi |
| 15171 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15172 | # check if we need libintl for locale functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15173 | { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 15174 | 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] | 15175 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15177 | else |
| 15178 | ac_check_lib_save_LIBS=$LIBS |
| 15179 | LIBS="-lintl $LIBS" |
| 15180 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15181 | /* confdefs.h. */ |
| 15182 | _ACEOF |
| 15183 | cat confdefs.h >>conftest.$ac_ext |
| 15184 | cat >>conftest.$ac_ext <<_ACEOF |
| 15185 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15186 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15187 | /* Override any GCC internal prototype to avoid an error. |
| 15188 | Use char because int might match the return type of a GCC |
| 15189 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15190 | #ifdef __cplusplus |
| 15191 | extern "C" |
| 15192 | #endif |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15193 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15194 | int |
| 15195 | main () |
| 15196 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15197 | return textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15198 | ; |
| 15199 | return 0; |
| 15200 | } |
| 15201 | _ACEOF |
| 15202 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15203 | if { (ac_try="$ac_link" |
| 15204 | case "(($ac_try" in |
| 15205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15206 | *) ac_try_echo=$ac_try;; |
| 15207 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15209 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15210 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15212 | rm -f conftest.er1 |
| 15213 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15215 | (exit $ac_status); } && { |
| 15216 | test -z "$ac_c_werror_flag" || |
| 15217 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15218 | } && test -s conftest$ac_exeext && |
| 15219 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15220 | ac_cv_lib_intl_textdomain=yes |
| 15221 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15222 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15224 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15225 | ac_cv_lib_intl_textdomain=no |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15226 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15227 | |
| 15228 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15229 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15230 | LIBS=$ac_check_lib_save_LIBS |
| 15231 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15232 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 15233 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; } |
| 15234 | if test $ac_cv_lib_intl_textdomain = yes; then |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 15235 | |
| 15236 | cat >>confdefs.h <<\_ACEOF |
| 15237 | #define WITH_LIBINTL 1 |
| 15238 | _ACEOF |
| 15239 | |
| 15240 | fi |
| 15241 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15242 | |
| 15243 | # checks for system dependent C++ extensions support |
| 15244 | case "$ac_sys_system" in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15245 | AIX*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 15246 | 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] | 15247 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15248 | /* confdefs.h. */ |
| 15249 | _ACEOF |
| 15250 | cat confdefs.h >>conftest.$ac_ext |
| 15251 | cat >>conftest.$ac_ext <<_ACEOF |
| 15252 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15253 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15254 | int |
| 15255 | main () |
| 15256 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15257 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15258 | ; |
| 15259 | return 0; |
| 15260 | } |
| 15261 | _ACEOF |
| 15262 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15263 | if { (ac_try="$ac_link" |
| 15264 | case "(($ac_try" in |
| 15265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15266 | *) ac_try_echo=$ac_try;; |
| 15267 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15269 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15270 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15272 | rm -f conftest.er1 |
| 15273 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15275 | (exit $ac_status); } && { |
| 15276 | test -z "$ac_c_werror_flag" || |
| 15277 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15278 | } && test -s conftest$ac_exeext && |
| 15279 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15281 | cat >>confdefs.h <<\_ACEOF |
| 15282 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 15283 | _ACEOF |
| 15284 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15285 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15286 | echo "${ECHO_T}yes" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15287 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15288 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15290 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15291 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15292 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15293 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15294 | |
| 15295 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15296 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 15297 | *) ;; |
| 15298 | esac |
| 15299 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15300 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15301 | # BeOS' sockets are stashed in libnet. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15302 | { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 15303 | 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] | 15304 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15306 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15307 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15308 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15309 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15310 | /* confdefs.h. */ |
| 15311 | _ACEOF |
| 15312 | cat confdefs.h >>conftest.$ac_ext |
| 15313 | cat >>conftest.$ac_ext <<_ACEOF |
| 15314 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15315 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15316 | /* Override any GCC internal prototype to avoid an error. |
| 15317 | Use char because int might match the return type of a GCC |
| 15318 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15319 | #ifdef __cplusplus |
| 15320 | extern "C" |
| 15321 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15322 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15323 | int |
| 15324 | main () |
| 15325 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15326 | return t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15327 | ; |
| 15328 | return 0; |
| 15329 | } |
| 15330 | _ACEOF |
| 15331 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15332 | if { (ac_try="$ac_link" |
| 15333 | case "(($ac_try" in |
| 15334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15335 | *) ac_try_echo=$ac_try;; |
| 15336 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15338 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15339 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15341 | rm -f conftest.er1 |
| 15342 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15344 | (exit $ac_status); } && { |
| 15345 | test -z "$ac_c_werror_flag" || |
| 15346 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15347 | } && test -s conftest$ac_exeext && |
| 15348 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15349 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15350 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15351 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15353 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15354 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15355 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15356 | |
| 15357 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15358 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15359 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15360 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15361 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 15362 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; } |
| 15363 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15364 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 15365 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 15366 | # SVR4 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15367 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15368 | 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] | 15369 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15371 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15372 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15373 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15374 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15375 | /* confdefs.h. */ |
| 15376 | _ACEOF |
| 15377 | cat confdefs.h >>conftest.$ac_ext |
| 15378 | cat >>conftest.$ac_ext <<_ACEOF |
| 15379 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15380 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15381 | /* Override any GCC internal prototype to avoid an error. |
| 15382 | Use char because int might match the return type of a GCC |
| 15383 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15384 | #ifdef __cplusplus |
| 15385 | extern "C" |
| 15386 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15387 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15388 | int |
| 15389 | main () |
| 15390 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15391 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15392 | ; |
| 15393 | return 0; |
| 15394 | } |
| 15395 | _ACEOF |
| 15396 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15397 | if { (ac_try="$ac_link" |
| 15398 | case "(($ac_try" in |
| 15399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15400 | *) ac_try_echo=$ac_try;; |
| 15401 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15403 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15404 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15406 | rm -f conftest.er1 |
| 15407 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15409 | (exit $ac_status); } && { |
| 15410 | test -z "$ac_c_werror_flag" || |
| 15411 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15412 | } && test -s conftest$ac_exeext && |
| 15413 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15414 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15415 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15416 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15418 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15419 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15420 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15421 | |
| 15422 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15423 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15424 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15425 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15426 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15427 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
| 15428 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15429 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15430 | fi |
| 15431 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 15432 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 15433 | case "$ac_sys_system" in |
| 15434 | BeOS*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15435 | { echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 15436 | 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] | 15437 | if test "${ac_cv_lib_net_socket+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15439 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15440 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15441 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15442 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15443 | /* confdefs.h. */ |
| 15444 | _ACEOF |
| 15445 | cat confdefs.h >>conftest.$ac_ext |
| 15446 | cat >>conftest.$ac_ext <<_ACEOF |
| 15447 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15448 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15449 | /* Override any GCC internal prototype to avoid an error. |
| 15450 | Use char because int might match the return type of a GCC |
| 15451 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15452 | #ifdef __cplusplus |
| 15453 | extern "C" |
| 15454 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15455 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15456 | int |
| 15457 | main () |
| 15458 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15459 | return socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15460 | ; |
| 15461 | return 0; |
| 15462 | } |
| 15463 | _ACEOF |
| 15464 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15465 | if { (ac_try="$ac_link" |
| 15466 | case "(($ac_try" in |
| 15467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15468 | *) ac_try_echo=$ac_try;; |
| 15469 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15471 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15472 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15474 | rm -f conftest.er1 |
| 15475 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15477 | (exit $ac_status); } && { |
| 15478 | test -z "$ac_c_werror_flag" || |
| 15479 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15480 | } && test -s conftest$ac_exeext && |
| 15481 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15482 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15483 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15484 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15486 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15487 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15488 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15489 | |
| 15490 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15491 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15492 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 15493 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15494 | { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 15495 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; } |
| 15496 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15497 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15498 | fi |
| 15499 | # BeOS |
| 15500 | ;; |
| 15501 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 15502 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15503 | { echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 15504 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15505 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15506 | # Check whether --with-libs was given. |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15507 | if test "${with_libs+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15508 | withval=$with_libs; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15509 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15510 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 15511 | LIBS="$withval $LIBS" |
| 15512 | |
| 15513 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15514 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15515 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15516 | fi |
| 15517 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15518 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15519 | # Check for use of the system libffi library |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15520 | { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5 |
| 15521 | 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] | 15522 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15523 | # Check whether --with-system_ffi was given. |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15524 | if test "${with_system_ffi+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15525 | withval=$with_system_ffi; |
| 15526 | fi |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15527 | |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15528 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15529 | { echo "$as_me:$LINENO: result: $with_system_ffi" >&5 |
| 15530 | echo "${ECHO_T}$with_system_ffi" >&6; } |
Martin v. Löwis | 9176fc1 | 2006-04-11 11:12:43 +0000 | [diff] [blame] | 15531 | |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15532 | # Check for --with-dbmliborder |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15533 | { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5 |
| 15534 | echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15535 | |
| 15536 | # Check whether --with-dbmliborder was given. |
| 15537 | if test "${with_dbmliborder+set}" = set; then |
| 15538 | withval=$with_dbmliborder; |
| 15539 | if test x$with_dbmliborder = xyes |
| 15540 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15541 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15542 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15543 | { (exit 1); exit 1; }; } |
| 15544 | else |
| 15545 | for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
| 15546 | if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
| 15547 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15548 | { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5 |
| 15549 | echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;} |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15550 | { (exit 1); exit 1; }; } |
| 15551 | fi |
| 15552 | done |
| 15553 | fi |
| 15554 | fi |
| 15555 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15556 | { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5 |
| 15557 | echo "${ECHO_T}$with_dbmliborder" >&6; } |
Benjamin Peterson | 867475c | 2009-04-29 20:36:25 +0000 | [diff] [blame] | 15558 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 15559 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15560 | |
| 15561 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15562 | { echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 15563 | 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] | 15564 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15565 | # Check whether --with-signal-module was given. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15566 | if test "${with_signal_module+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15567 | withval=$with_signal_module; |
| 15568 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15569 | |
| 15570 | |
| 15571 | if test -z "$with_signal_module" |
| 15572 | then with_signal_module="yes" |
| 15573 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15574 | { echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 15575 | echo "${ECHO_T}$with_signal_module" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15576 | |
| 15577 | if test "${with_signal_module}" = "yes"; then |
| 15578 | USE_SIGNAL_MODULE="" |
| 15579 | SIGNAL_OBJS="" |
| 15580 | else |
| 15581 | USE_SIGNAL_MODULE="#" |
| 15582 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 15583 | fi |
| 15584 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 15585 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15586 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15587 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 15588 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15589 | { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 15590 | 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] | 15591 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15592 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15593 | # Check whether --with-dec-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15594 | if test "${with_dec_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15595 | withval=$with_dec_threads; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15596 | { echo "$as_me:$LINENO: result: $withval" >&5 |
| 15597 | echo "${ECHO_T}$withval" >&6; } |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15598 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15599 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15600 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15601 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15602 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15603 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15604 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15605 | fi |
| 15606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15607 | |
| 15608 | # Templates for things AC_DEFINEd more than once. |
| 15609 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15610 | |
| 15611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15612 | |
| 15613 | |
| 15614 | |
| 15615 | |
| 15616 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15617 | { echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 15618 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15619 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15620 | # Check whether --with-threads was given. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15621 | if test "${with_threads+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15622 | withval=$with_threads; |
| 15623 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 15624 | |
| 15625 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15626 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15627 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15628 | # Check whether --with-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15629 | if test "${with_thread+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15630 | withval=$with_thread; with_threads=$with_thread |
| 15631 | fi |
| 15632 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15633 | |
| 15634 | if test -z "$with_threads" |
| 15635 | then with_threads="yes" |
| 15636 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15637 | { echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 15638 | echo "${ECHO_T}$with_threads" >&6; } |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15639 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15640 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 15641 | if test "$with_threads" = "no" |
| 15642 | then |
| 15643 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15644 | elif test "$ac_cv_pthread_is_default" = yes |
| 15645 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15646 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15647 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15648 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15649 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15650 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15651 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15652 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15653 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 15654 | |
| 15655 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15656 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15657 | elif test "$ac_cv_kpthread" = "yes" |
| 15658 | then |
| 15659 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15660 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15661 | CXX="$CXX -Kpthread" |
| 15662 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15663 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15664 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15665 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 15666 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15667 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15668 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15669 | elif test "$ac_cv_kthread" = "yes" |
| 15670 | then |
| 15671 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15672 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15673 | CXX="$CXX -Kthread" |
| 15674 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 15675 | cat >>confdefs.h <<\_ACEOF |
| 15676 | #define WITH_THREAD 1 |
| 15677 | _ACEOF |
| 15678 | |
| 15679 | posix_threads=yes |
| 15680 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15681 | elif test "$ac_cv_pthread" = "yes" |
| 15682 | then |
| 15683 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 15684 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 15685 | CXX="$CXX -pthread" |
| 15686 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 15687 | cat >>confdefs.h <<\_ACEOF |
| 15688 | #define WITH_THREAD 1 |
| 15689 | _ACEOF |
| 15690 | |
| 15691 | posix_threads=yes |
| 15692 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 15693 | else |
| 15694 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 15695 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 15696 | fi |
| 15697 | if test ! -z "$withval" -a -d "$withval" |
| 15698 | then LDFLAGS="$LDFLAGS -L$withval" |
| 15699 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15700 | |
| 15701 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 15702 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 15703 | # (e.g. gnu pth with pthread emulation) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15704 | { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 15705 | 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] | 15706 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15707 | /* confdefs.h. */ |
| 15708 | _ACEOF |
| 15709 | cat confdefs.h >>conftest.$ac_ext |
| 15710 | cat >>conftest.$ac_ext <<_ACEOF |
| 15711 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15712 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15713 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15714 | #ifdef _POSIX_THREADS |
| 15715 | yes |
| 15716 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15717 | |
| 15718 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15719 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15720 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15721 | unistd_defines_pthreads=yes |
| 15722 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15723 | unistd_defines_pthreads=no |
| 15724 | fi |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 15725 | rm -f conftest* |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15726 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15727 | { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 15728 | echo "${ECHO_T}$unistd_defines_pthreads" >&6; } |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 15729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15730 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15731 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15732 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 15733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15734 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15735 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15736 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15737 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15739 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15740 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15741 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15742 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15743 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15744 | { echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 15745 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15746 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15747 | /* confdefs.h. */ |
| 15748 | _ACEOF |
| 15749 | cat confdefs.h >>conftest.$ac_ext |
| 15750 | cat >>conftest.$ac_ext <<_ACEOF |
| 15751 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15752 | $ac_includes_default |
| 15753 | #include <cthreads.h> |
| 15754 | _ACEOF |
| 15755 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15756 | if { (ac_try="$ac_compile" |
| 15757 | case "(($ac_try" in |
| 15758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15759 | *) ac_try_echo=$ac_try;; |
| 15760 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15762 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15763 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15765 | rm -f conftest.er1 |
| 15766 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15768 | (exit $ac_status); } && { |
| 15769 | test -z "$ac_c_werror_flag" || |
| 15770 | test ! -s conftest.err |
| 15771 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15772 | ac_header_compiler=yes |
| 15773 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15774 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15776 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15777 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15778 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15779 | |
| 15780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15781 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15782 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15783 | |
| 15784 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15785 | { echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 15786 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15787 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15788 | /* confdefs.h. */ |
| 15789 | _ACEOF |
| 15790 | cat confdefs.h >>conftest.$ac_ext |
| 15791 | cat >>conftest.$ac_ext <<_ACEOF |
| 15792 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15793 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15794 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15795 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15796 | case "(($ac_try" in |
| 15797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15798 | *) ac_try_echo=$ac_try;; |
| 15799 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15801 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15802 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15803 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15804 | rm -f conftest.er1 |
| 15805 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15807 | (exit $ac_status); } >/dev/null && { |
| 15808 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15809 | test ! -s conftest.err |
| 15810 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15811 | ac_header_preproc=yes |
| 15812 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15813 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15815 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15816 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15817 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15819 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15820 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15821 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15822 | |
| 15823 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15824 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15825 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15826 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15827 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15828 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 15829 | 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] | 15830 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15831 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15832 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15833 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 15834 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 15835 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 15836 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 15837 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 15838 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 15839 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15840 | echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15841 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 15842 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 15843 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 15844 | 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] | 15845 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 15846 | ## -------------------------------------- ## |
| 15847 | ## Report this to http://bugs.python.org/ ## |
| 15848 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15849 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15850 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15851 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15852 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15853 | { echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 15854 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15855 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15857 | else |
| 15858 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15859 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15860 | { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 15861 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15862 | |
| 15863 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15864 | if test $ac_cv_header_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15865 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15866 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15867 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15869 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15870 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15871 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 15872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15873 | |
| 15874 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15875 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15876 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15877 | |
| 15878 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 15879 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15880 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15882 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15883 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 15884 | 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] | 15885 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15887 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15888 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 15889 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15891 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15892 | { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 15893 | 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] | 15894 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15895 | /* confdefs.h. */ |
| 15896 | _ACEOF |
| 15897 | cat confdefs.h >>conftest.$ac_ext |
| 15898 | cat >>conftest.$ac_ext <<_ACEOF |
| 15899 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15900 | $ac_includes_default |
| 15901 | #include <mach/cthreads.h> |
| 15902 | _ACEOF |
| 15903 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15904 | if { (ac_try="$ac_compile" |
| 15905 | case "(($ac_try" in |
| 15906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15907 | *) ac_try_echo=$ac_try;; |
| 15908 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15910 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15911 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15913 | rm -f conftest.er1 |
| 15914 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15916 | (exit $ac_status); } && { |
| 15917 | test -z "$ac_c_werror_flag" || |
| 15918 | test ! -s conftest.err |
| 15919 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15920 | ac_header_compiler=yes |
| 15921 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15922 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15924 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15925 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15926 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15927 | |
| 15928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15929 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15930 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15931 | |
| 15932 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15933 | { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 15934 | 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] | 15935 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15936 | /* confdefs.h. */ |
| 15937 | _ACEOF |
| 15938 | cat confdefs.h >>conftest.$ac_ext |
| 15939 | cat >>conftest.$ac_ext <<_ACEOF |
| 15940 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15941 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15942 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15943 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15944 | case "(($ac_try" in |
| 15945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15946 | *) ac_try_echo=$ac_try;; |
| 15947 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15949 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15950 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15951 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15952 | rm -f conftest.er1 |
| 15953 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15955 | (exit $ac_status); } >/dev/null && { |
| 15956 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 15957 | test ! -s conftest.err |
| 15958 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15959 | ac_header_preproc=yes |
| 15960 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15961 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15964 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 15965 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15967 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15968 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15969 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15970 | |
| 15971 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15972 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15973 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15974 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15975 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15976 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 15977 | 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] | 15978 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 15979 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15980 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 15981 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 15982 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 15983 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 15984 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 15985 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 15986 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 15987 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 15988 | echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15989 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 15990 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;} |
| 15991 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 15992 | 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] | 15993 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 15994 | ## -------------------------------------- ## |
| 15995 | ## Report this to http://bugs.python.org/ ## |
| 15996 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15997 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 15998 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15999 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16000 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16001 | { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 16002 | 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] | 16003 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16005 | else |
| 16006 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16007 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16008 | { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 16009 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16010 | |
| 16011 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16012 | if test $ac_cv_header_mach_cthreads_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16013 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16014 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16015 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16017 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16018 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16019 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16020 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16021 | |
| 16022 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16023 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16024 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16025 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16026 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16027 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16028 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16029 | { echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 16030 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16031 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16032 | # Check whether --with-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16033 | if test "${with_pth+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16034 | withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5 |
| 16035 | echo "${ECHO_T}$withval" >&6; } |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16036 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16037 | #define WITH_THREAD 1 |
| 16038 | _ACEOF |
| 16039 | |
| 16040 | |
| 16041 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16042 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16043 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16044 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 16045 | LIBS="-lpth $LIBS" |
| 16046 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 16047 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16048 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16049 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16050 | |
| 16051 | # Just looking for pthread_create in libpthread is not enough: |
| 16052 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 16053 | # So we really have to include pthread.h, and then link. |
| 16054 | _libs=$LIBS |
| 16055 | LIBS="$LIBS -lpthread" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16056 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 16057 | 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] | 16058 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16059 | /* confdefs.h. */ |
| 16060 | _ACEOF |
| 16061 | cat confdefs.h >>conftest.$ac_ext |
| 16062 | cat >>conftest.$ac_ext <<_ACEOF |
| 16063 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16064 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16065 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16066 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16067 | int |
| 16068 | main () |
| 16069 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16070 | |
| 16071 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16072 | ; |
| 16073 | return 0; |
| 16074 | } |
| 16075 | _ACEOF |
| 16076 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16077 | if { (ac_try="$ac_link" |
| 16078 | case "(($ac_try" in |
| 16079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16080 | *) ac_try_echo=$ac_try;; |
| 16081 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16083 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16084 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16086 | rm -f conftest.er1 |
| 16087 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16089 | (exit $ac_status); } && { |
| 16090 | test -z "$ac_c_werror_flag" || |
| 16091 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16092 | } && test -s conftest$ac_exeext && |
| 16093 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16094 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16095 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16096 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16097 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16098 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16099 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16100 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16101 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16102 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 16103 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16104 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16106 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16107 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 16108 | LIBS=$_libs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16109 | { echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 16110 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16111 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16114 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16115 | /* confdefs.h. */ |
| 16116 | _ACEOF |
| 16117 | cat confdefs.h >>conftest.$ac_ext |
| 16118 | cat >>conftest.$ac_ext <<_ACEOF |
| 16119 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16120 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 16121 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16122 | #define pthread_detach innocuous_pthread_detach |
| 16123 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16124 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16125 | which can conflict with char pthread_detach (); below. |
| 16126 | 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] | 16127 | <limits.h> exists even on freestanding compilers. */ |
| 16128 | |
| 16129 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16130 | # include <limits.h> |
| 16131 | #else |
| 16132 | # include <assert.h> |
| 16133 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16134 | |
| 16135 | #undef pthread_detach |
| 16136 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16137 | /* Override any GCC internal prototype to avoid an error. |
| 16138 | Use char because int might match the return type of a GCC |
| 16139 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16140 | #ifdef __cplusplus |
| 16141 | extern "C" |
| 16142 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16143 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16144 | /* The GNU C library defines this for functions which it implements |
| 16145 | to always fail with ENOSYS. Some functions are actually named |
| 16146 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16147 | #if defined __stub_pthread_detach || defined __stub___pthread_detach |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16148 | choke me |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16149 | #endif |
| 16150 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16151 | int |
| 16152 | main () |
| 16153 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16154 | return pthread_detach (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16155 | ; |
| 16156 | return 0; |
| 16157 | } |
| 16158 | _ACEOF |
| 16159 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16160 | if { (ac_try="$ac_link" |
| 16161 | case "(($ac_try" in |
| 16162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16163 | *) ac_try_echo=$ac_try;; |
| 16164 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16166 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16167 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16169 | rm -f conftest.er1 |
| 16170 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16172 | (exit $ac_status); } && { |
| 16173 | test -z "$ac_c_werror_flag" || |
| 16174 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16175 | } && test -s conftest$ac_exeext && |
| 16176 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16177 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16178 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16179 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16181 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16182 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16183 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16184 | |
| 16185 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16186 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16187 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16188 | { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 16189 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; } |
| 16190 | if test $ac_cv_func_pthread_detach = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16191 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16192 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16193 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16194 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 16195 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16196 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16197 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 16198 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16199 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16200 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16201 | 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] | 16202 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16204 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16205 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16206 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16207 | else |
| 16208 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16209 | { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 16210 | 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] | 16211 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16212 | /* confdefs.h. */ |
| 16213 | _ACEOF |
| 16214 | cat confdefs.h >>conftest.$ac_ext |
| 16215 | cat >>conftest.$ac_ext <<_ACEOF |
| 16216 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16217 | $ac_includes_default |
| 16218 | #include <atheos/threads.h> |
| 16219 | _ACEOF |
| 16220 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16221 | if { (ac_try="$ac_compile" |
| 16222 | case "(($ac_try" in |
| 16223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16224 | *) ac_try_echo=$ac_try;; |
| 16225 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16227 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16228 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16230 | rm -f conftest.er1 |
| 16231 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16233 | (exit $ac_status); } && { |
| 16234 | test -z "$ac_c_werror_flag" || |
| 16235 | test ! -s conftest.err |
| 16236 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16237 | ac_header_compiler=yes |
| 16238 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16239 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16241 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16242 | ac_header_compiler=no |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16243 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16244 | |
| 16245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16246 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16247 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16248 | |
| 16249 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16250 | { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 16251 | 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] | 16252 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16253 | /* confdefs.h. */ |
| 16254 | _ACEOF |
| 16255 | cat confdefs.h >>conftest.$ac_ext |
| 16256 | cat >>conftest.$ac_ext <<_ACEOF |
| 16257 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16258 | #include <atheos/threads.h> |
| 16259 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16260 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16261 | case "(($ac_try" in |
| 16262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16263 | *) ac_try_echo=$ac_try;; |
| 16264 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16266 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16267 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16268 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16269 | rm -f conftest.er1 |
| 16270 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16272 | (exit $ac_status); } >/dev/null && { |
| 16273 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16274 | test ! -s conftest.err |
| 16275 | }; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16276 | ac_header_preproc=yes |
| 16277 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16278 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16280 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16281 | ac_header_preproc=no |
| 16282 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16283 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16284 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16285 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16286 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16287 | |
| 16288 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16289 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16290 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16291 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16292 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16293 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 16294 | 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] | 16295 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16296 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16297 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16298 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 16299 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 16300 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 16301 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 16302 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 16303 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 16304 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16305 | echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16306 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 16307 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;} |
| 16308 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 16309 | 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] | 16310 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16311 | ## -------------------------------------- ## |
| 16312 | ## Report this to http://bugs.python.org/ ## |
| 16313 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16314 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16315 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16316 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16317 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16318 | { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 16319 | 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] | 16320 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16322 | else |
| 16323 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 16324 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16325 | { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 16326 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; } |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16327 | |
| 16328 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16329 | if test $ac_cv_header_atheos_threads_h = yes; then |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16330 | cat >>confdefs.h <<\_ACEOF |
| 16331 | #define WITH_THREAD 1 |
| 16332 | _ACEOF |
| 16333 | |
| 16334 | |
| 16335 | cat >>confdefs.h <<\_ACEOF |
| 16336 | #define ATHEOS_THREADS 1 |
| 16337 | _ACEOF |
| 16338 | |
| 16339 | THREADOBJ="Python/thread.o" |
| 16340 | else |
| 16341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16342 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16343 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16344 | 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] | 16345 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16347 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16348 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16349 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16350 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16351 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16352 | { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 16353 | 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] | 16354 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16355 | /* confdefs.h. */ |
| 16356 | _ACEOF |
| 16357 | cat confdefs.h >>conftest.$ac_ext |
| 16358 | cat >>conftest.$ac_ext <<_ACEOF |
| 16359 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16360 | $ac_includes_default |
| 16361 | #include <kernel/OS.h> |
| 16362 | _ACEOF |
| 16363 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16364 | if { (ac_try="$ac_compile" |
| 16365 | case "(($ac_try" in |
| 16366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16367 | *) ac_try_echo=$ac_try;; |
| 16368 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16370 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16371 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16373 | rm -f conftest.er1 |
| 16374 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16376 | (exit $ac_status); } && { |
| 16377 | test -z "$ac_c_werror_flag" || |
| 16378 | test ! -s conftest.err |
| 16379 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16380 | ac_header_compiler=yes |
| 16381 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16382 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16384 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16385 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16386 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16387 | |
| 16388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16389 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16390 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16391 | |
| 16392 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16393 | { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 16394 | 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] | 16395 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16396 | /* confdefs.h. */ |
| 16397 | _ACEOF |
| 16398 | cat confdefs.h >>conftest.$ac_ext |
| 16399 | cat >>conftest.$ac_ext <<_ACEOF |
| 16400 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16401 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16402 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16403 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16404 | case "(($ac_try" in |
| 16405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16406 | *) ac_try_echo=$ac_try;; |
| 16407 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16409 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16410 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16411 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16412 | rm -f conftest.er1 |
| 16413 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16415 | (exit $ac_status); } >/dev/null && { |
| 16416 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 16417 | test ! -s conftest.err |
| 16418 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16419 | ac_header_preproc=yes |
| 16420 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16421 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16424 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16425 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16427 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16428 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16429 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16431 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16432 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16433 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16434 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16435 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16436 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 16437 | 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] | 16438 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 16439 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16440 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16441 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 16442 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 16443 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 16444 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 16445 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 16446 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 16447 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 16448 | echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16449 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 16450 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;} |
| 16451 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 16452 | 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] | 16453 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 16454 | ## -------------------------------------- ## |
| 16455 | ## Report this to http://bugs.python.org/ ## |
| 16456 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16457 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16458 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16459 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16460 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16461 | { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 16462 | 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] | 16463 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16465 | else |
| 16466 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 16467 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16468 | { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 16469 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16470 | |
| 16471 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16472 | if test $ac_cv_header_kernel_OS_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16473 | cat >>confdefs.h <<\_ACEOF |
| 16474 | #define WITH_THREAD 1 |
| 16475 | _ACEOF |
| 16476 | |
| 16477 | |
| 16478 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16479 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16480 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16481 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16482 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16483 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16484 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16485 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 16486 | 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] | 16487 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16489 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16490 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16491 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16492 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16493 | /* confdefs.h. */ |
| 16494 | _ACEOF |
| 16495 | cat confdefs.h >>conftest.$ac_ext |
| 16496 | cat >>conftest.$ac_ext <<_ACEOF |
| 16497 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16498 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16499 | /* Override any GCC internal prototype to avoid an error. |
| 16500 | Use char because int might match the return type of a GCC |
| 16501 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16502 | #ifdef __cplusplus |
| 16503 | extern "C" |
| 16504 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16505 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16506 | int |
| 16507 | main () |
| 16508 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16509 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16510 | ; |
| 16511 | return 0; |
| 16512 | } |
| 16513 | _ACEOF |
| 16514 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16515 | if { (ac_try="$ac_link" |
| 16516 | case "(($ac_try" in |
| 16517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16518 | *) ac_try_echo=$ac_try;; |
| 16519 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16521 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16522 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16524 | rm -f conftest.er1 |
| 16525 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16527 | (exit $ac_status); } && { |
| 16528 | test -z "$ac_c_werror_flag" || |
| 16529 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16530 | } && test -s conftest$ac_exeext && |
| 16531 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16532 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16533 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16534 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16536 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16537 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16538 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16539 | |
| 16540 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16541 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16542 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16543 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16544 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 16545 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; } |
| 16546 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16547 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16548 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16549 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16550 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16551 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16552 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16553 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16554 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16555 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16556 | { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 16557 | 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] | 16558 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16560 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16561 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 16562 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16563 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16564 | /* confdefs.h. */ |
| 16565 | _ACEOF |
| 16566 | cat confdefs.h >>conftest.$ac_ext |
| 16567 | cat >>conftest.$ac_ext <<_ACEOF |
| 16568 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16569 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16570 | /* Override any GCC internal prototype to avoid an error. |
| 16571 | Use char because int might match the return type of a GCC |
| 16572 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16573 | #ifdef __cplusplus |
| 16574 | extern "C" |
| 16575 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16576 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16577 | int |
| 16578 | main () |
| 16579 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16580 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16581 | ; |
| 16582 | return 0; |
| 16583 | } |
| 16584 | _ACEOF |
| 16585 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16586 | if { (ac_try="$ac_link" |
| 16587 | case "(($ac_try" in |
| 16588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16589 | *) ac_try_echo=$ac_try;; |
| 16590 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16592 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16593 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16595 | rm -f conftest.er1 |
| 16596 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16598 | (exit $ac_status); } && { |
| 16599 | test -z "$ac_c_werror_flag" || |
| 16600 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16601 | } && test -s conftest$ac_exeext && |
| 16602 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16603 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16604 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16605 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16607 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16608 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16609 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16610 | |
| 16611 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16612 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16613 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16614 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16615 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 16616 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } |
| 16617 | 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] | 16618 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16619 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16620 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16621 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16622 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16623 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16624 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16625 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16626 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16627 | { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 16628 | 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] | 16629 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16631 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16632 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16633 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16634 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16635 | /* confdefs.h. */ |
| 16636 | _ACEOF |
| 16637 | cat confdefs.h >>conftest.$ac_ext |
| 16638 | cat >>conftest.$ac_ext <<_ACEOF |
| 16639 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16640 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16641 | /* Override any GCC internal prototype to avoid an error. |
| 16642 | Use char because int might match the return type of a GCC |
| 16643 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16644 | #ifdef __cplusplus |
| 16645 | extern "C" |
| 16646 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16647 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16648 | int |
| 16649 | main () |
| 16650 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16651 | return __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16652 | ; |
| 16653 | return 0; |
| 16654 | } |
| 16655 | _ACEOF |
| 16656 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16657 | if { (ac_try="$ac_link" |
| 16658 | case "(($ac_try" in |
| 16659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16660 | *) ac_try_echo=$ac_try;; |
| 16661 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16663 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16664 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16666 | rm -f conftest.er1 |
| 16667 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16669 | (exit $ac_status); } && { |
| 16670 | test -z "$ac_c_werror_flag" || |
| 16671 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16672 | } && test -s conftest$ac_exeext && |
| 16673 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16674 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16675 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16676 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16678 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16679 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16680 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16681 | |
| 16682 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16683 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16684 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16685 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16686 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 16687 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } |
| 16688 | 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] | 16689 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16690 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16691 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16692 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16693 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16694 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16695 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16696 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16697 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16698 | { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 16699 | 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] | 16700 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16702 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16703 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16704 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16705 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16706 | /* confdefs.h. */ |
| 16707 | _ACEOF |
| 16708 | cat confdefs.h >>conftest.$ac_ext |
| 16709 | cat >>conftest.$ac_ext <<_ACEOF |
| 16710 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16711 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16712 | /* Override any GCC internal prototype to avoid an error. |
| 16713 | Use char because int might match the return type of a GCC |
| 16714 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16715 | #ifdef __cplusplus |
| 16716 | extern "C" |
| 16717 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16718 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16719 | int |
| 16720 | main () |
| 16721 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16722 | return pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16723 | ; |
| 16724 | return 0; |
| 16725 | } |
| 16726 | _ACEOF |
| 16727 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16728 | if { (ac_try="$ac_link" |
| 16729 | case "(($ac_try" in |
| 16730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16731 | *) ac_try_echo=$ac_try;; |
| 16732 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16734 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16735 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16737 | rm -f conftest.er1 |
| 16738 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16740 | (exit $ac_status); } && { |
| 16741 | test -z "$ac_c_werror_flag" || |
| 16742 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16743 | } && test -s conftest$ac_exeext && |
| 16744 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16745 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16746 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16747 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16749 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16750 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16751 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16752 | |
| 16753 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16754 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16755 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16756 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16757 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 16758 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; } |
| 16759 | if test $ac_cv_lib_cma_pthread_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16760 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16761 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16762 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16763 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 16764 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16765 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16766 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16767 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 16768 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16769 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 16770 | fi |
| 16771 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16772 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 16773 | fi |
| 16774 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 16775 | fi |
| 16776 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 16777 | fi |
| 16778 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 16779 | fi |
| 16780 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 16781 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16782 | fi |
| 16783 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16784 | |
| 16785 | fi |
| 16786 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16787 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16788 | |
| 16789 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16790 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16791 | fi |
| 16792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16793 | fi |
| 16794 | |
| 16795 | |
| 16796 | fi |
| 16797 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 16798 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16799 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16800 | { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 16801 | 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] | 16802 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16804 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16805 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16806 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16807 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16808 | /* confdefs.h. */ |
| 16809 | _ACEOF |
| 16810 | cat confdefs.h >>conftest.$ac_ext |
| 16811 | cat >>conftest.$ac_ext <<_ACEOF |
| 16812 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16813 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16814 | /* Override any GCC internal prototype to avoid an error. |
| 16815 | Use char because int might match the return type of a GCC |
| 16816 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16817 | #ifdef __cplusplus |
| 16818 | extern "C" |
| 16819 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16820 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16821 | int |
| 16822 | main () |
| 16823 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16824 | return usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16825 | ; |
| 16826 | return 0; |
| 16827 | } |
| 16828 | _ACEOF |
| 16829 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16830 | if { (ac_try="$ac_link" |
| 16831 | case "(($ac_try" in |
| 16832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16833 | *) ac_try_echo=$ac_try;; |
| 16834 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16836 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16837 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16839 | rm -f conftest.er1 |
| 16840 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16842 | (exit $ac_status); } && { |
| 16843 | test -z "$ac_c_werror_flag" || |
| 16844 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16845 | } && test -s conftest$ac_exeext && |
| 16846 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16847 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16848 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16849 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16851 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16852 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16853 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16854 | |
| 16855 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16856 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16857 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16858 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16859 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 16860 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; } |
| 16861 | if test $ac_cv_lib_mpc_usconfig = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16862 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16863 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16864 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16865 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16866 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16867 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16868 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16869 | fi |
| 16870 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16871 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 16872 | if test "$posix_threads" != "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16873 | { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 16874 | 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] | 16875 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16878 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16879 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16880 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16881 | /* confdefs.h. */ |
| 16882 | _ACEOF |
| 16883 | cat confdefs.h >>conftest.$ac_ext |
| 16884 | cat >>conftest.$ac_ext <<_ACEOF |
| 16885 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16886 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16887 | /* Override any GCC internal prototype to avoid an error. |
| 16888 | Use char because int might match the return type of a GCC |
| 16889 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16890 | #ifdef __cplusplus |
| 16891 | extern "C" |
| 16892 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16893 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16894 | int |
| 16895 | main () |
| 16896 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16897 | return thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16898 | ; |
| 16899 | return 0; |
| 16900 | } |
| 16901 | _ACEOF |
| 16902 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16903 | if { (ac_try="$ac_link" |
| 16904 | case "(($ac_try" in |
| 16905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16906 | *) ac_try_echo=$ac_try;; |
| 16907 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16909 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16910 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16912 | rm -f conftest.er1 |
| 16913 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16915 | (exit $ac_status); } && { |
| 16916 | test -z "$ac_c_werror_flag" || |
| 16917 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16918 | } && test -s conftest$ac_exeext && |
| 16919 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16920 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16921 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16922 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16924 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16925 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16926 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 16927 | |
| 16928 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16929 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16930 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16931 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16932 | { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 16933 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; } |
| 16934 | if test $ac_cv_lib_thread_thr_create = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16935 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16936 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16937 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16938 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16939 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 16940 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16941 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16942 | fi |
| 16943 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 16944 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16945 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 16946 | if test "$USE_THREAD_MODULE" != "#" |
| 16947 | then |
| 16948 | # If the above checks didn't disable threads, (at least) OSF1 |
| 16949 | # needs this '-threads' argument during linking. |
| 16950 | case $ac_sys_system in |
| 16951 | OSF1) LDLAST=-threads;; |
| 16952 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 16953 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16954 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16955 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16956 | if test "$posix_threads" = "yes"; then |
| 16957 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16958 | |
| 16959 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16960 | #define _POSIX_THREADS 1 |
| 16961 | _ACEOF |
| 16962 | |
| 16963 | fi |
| 16964 | |
| 16965 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 16966 | case $ac_sys_system/$ac_sys_release in |
| 16967 | SunOS/5.6) |
| 16968 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 16969 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 16970 | _ACEOF |
| 16971 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16972 | ;; |
| 16973 | SunOS/5.8) |
| 16974 | cat >>confdefs.h <<\_ACEOF |
| 16975 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 16976 | _ACEOF |
| 16977 | |
| 16978 | ;; |
Christian Heimes | cba36bb | 2008-01-30 22:54:18 +0000 | [diff] [blame] | 16979 | AIX/5) |
| 16980 | cat >>confdefs.h <<\_ACEOF |
| 16981 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 16982 | _ACEOF |
| 16983 | |
| 16984 | ;; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16985 | esac |
| 16986 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16987 | { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 16988 | 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] | 16989 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 16990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 16991 | else |
| 16992 | if test "$cross_compiling" = yes; then |
| 16993 | ac_cv_pthread_system_supported=no |
| 16994 | else |
| 16995 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16996 | /* confdefs.h. */ |
| 16997 | _ACEOF |
| 16998 | cat confdefs.h >>conftest.$ac_ext |
| 16999 | cat >>conftest.$ac_ext <<_ACEOF |
| 17000 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17001 | #include <pthread.h> |
| 17002 | void *foo(void *parm) { |
| 17003 | return NULL; |
| 17004 | } |
| 17005 | main() { |
| 17006 | pthread_attr_t attr; |
| 17007 | pthread_t id; |
| 17008 | if (pthread_attr_init(&attr)) exit(-1); |
| 17009 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 17010 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 17011 | exit(0); |
| 17012 | } |
| 17013 | _ACEOF |
| 17014 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17015 | if { (ac_try="$ac_link" |
| 17016 | case "(($ac_try" in |
| 17017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17018 | *) ac_try_echo=$ac_try;; |
| 17019 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17021 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17022 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17024 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17025 | { (case "(($ac_try" in |
| 17026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17027 | *) ac_try_echo=$ac_try;; |
| 17028 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17030 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17031 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17033 | (exit $ac_status); }; }; then |
| 17034 | ac_cv_pthread_system_supported=yes |
| 17035 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17036 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17037 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17039 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17040 | ( exit $ac_status ) |
| 17041 | ac_cv_pthread_system_supported=no |
| 17042 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17043 | 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] | 17044 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 17045 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17046 | |
| 17047 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17048 | fi |
| 17049 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17050 | { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 17051 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17052 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 17053 | |
| 17054 | cat >>confdefs.h <<\_ACEOF |
| 17055 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 17056 | _ACEOF |
| 17057 | |
| 17058 | fi |
| 17059 | |
| 17060 | for ac_func in pthread_sigmask |
| 17061 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17062 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17063 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17064 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17065 | 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] | 17066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17067 | else |
| 17068 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17069 | /* confdefs.h. */ |
| 17070 | _ACEOF |
| 17071 | cat confdefs.h >>conftest.$ac_ext |
| 17072 | cat >>conftest.$ac_ext <<_ACEOF |
| 17073 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17074 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17075 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17076 | #define $ac_func innocuous_$ac_func |
| 17077 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17078 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17079 | which can conflict with char $ac_func (); below. |
| 17080 | 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] | 17081 | <limits.h> exists even on freestanding compilers. */ |
| 17082 | |
| 17083 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17084 | # include <limits.h> |
| 17085 | #else |
| 17086 | # include <assert.h> |
| 17087 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17088 | |
| 17089 | #undef $ac_func |
| 17090 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17091 | /* Override any GCC internal prototype to avoid an error. |
| 17092 | Use char because int might match the return type of a GCC |
| 17093 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17094 | #ifdef __cplusplus |
| 17095 | extern "C" |
| 17096 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17097 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17098 | /* The GNU C library defines this for functions which it implements |
| 17099 | to always fail with ENOSYS. Some functions are actually named |
| 17100 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17101 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17102 | choke me |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17103 | #endif |
| 17104 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17105 | int |
| 17106 | main () |
| 17107 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17108 | return $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17109 | ; |
| 17110 | return 0; |
| 17111 | } |
| 17112 | _ACEOF |
| 17113 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17114 | if { (ac_try="$ac_link" |
| 17115 | case "(($ac_try" in |
| 17116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17117 | *) ac_try_echo=$ac_try;; |
| 17118 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17120 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17121 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17123 | rm -f conftest.er1 |
| 17124 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17126 | (exit $ac_status); } && { |
| 17127 | test -z "$ac_c_werror_flag" || |
| 17128 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17129 | } && test -s conftest$ac_exeext && |
| 17130 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17131 | eval "$as_ac_var=yes" |
| 17132 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17133 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17135 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17136 | eval "$as_ac_var=no" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17137 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17138 | |
| 17139 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17140 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17141 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17142 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17143 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17144 | echo "${ECHO_T}$ac_res" >&6; } |
| 17145 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17146 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17147 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17148 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17149 | case $ac_sys_system in |
| 17150 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17151 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 17152 | cat >>confdefs.h <<\_ACEOF |
| 17153 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 17154 | _ACEOF |
| 17155 | |
| 17156 | ;; |
| 17157 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 17158 | fi |
| 17159 | done |
| 17160 | |
| 17161 | fi |
| 17162 | |
| 17163 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17164 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17165 | |
| 17166 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17167 | { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 17168 | 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] | 17169 | # Check whether --enable-ipv6 was given. |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17170 | if test "${enable_ipv6+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17171 | enableval=$enable_ipv6; case "$enableval" in |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17172 | no) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17173 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17174 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17175 | ipv6=no |
| 17176 | ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17177 | *) { echo "$as_me:$LINENO: result: yes" >&5 |
| 17178 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17179 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17180 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17181 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17182 | |
| 17183 | ipv6=yes |
| 17184 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17185 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17187 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17188 | if test "$cross_compiling" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17189 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17190 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17191 | ipv6=no |
| 17192 | |
| 17193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17194 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17195 | /* confdefs.h. */ |
| 17196 | _ACEOF |
| 17197 | cat confdefs.h >>conftest.$ac_ext |
| 17198 | cat >>conftest.$ac_ext <<_ACEOF |
| 17199 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17200 | /* AF_INET6 available check */ |
| 17201 | #include <sys/types.h> |
| 17202 | #include <sys/socket.h> |
| 17203 | main() |
| 17204 | { |
| 17205 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 17206 | exit(1); |
| 17207 | else |
| 17208 | exit(0); |
| 17209 | } |
| 17210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17211 | _ACEOF |
| 17212 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17213 | if { (ac_try="$ac_link" |
| 17214 | case "(($ac_try" in |
| 17215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17216 | *) ac_try_echo=$ac_try;; |
| 17217 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17219 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17220 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17222 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17223 | { (case "(($ac_try" in |
| 17224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17225 | *) ac_try_echo=$ac_try;; |
| 17226 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17228 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17229 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17231 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17232 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17233 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17234 | ipv6=yes |
| 17235 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17236 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17237 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17240 | ( exit $ac_status ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17241 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17242 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17243 | ipv6=no |
| 17244 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17245 | 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] | 17246 | fi |
| 17247 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17248 | |
| 17249 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17250 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17251 | { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 17252 | 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] | 17253 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17254 | /* confdefs.h. */ |
| 17255 | _ACEOF |
| 17256 | cat confdefs.h >>conftest.$ac_ext |
| 17257 | cat >>conftest.$ac_ext <<_ACEOF |
| 17258 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17259 | #include <sys/types.h> |
| 17260 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17261 | int |
| 17262 | main () |
| 17263 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17264 | struct sockaddr_in6 x; |
| 17265 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17266 | ; |
| 17267 | return 0; |
| 17268 | } |
| 17269 | _ACEOF |
| 17270 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17271 | if { (ac_try="$ac_compile" |
| 17272 | case "(($ac_try" in |
| 17273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17274 | *) ac_try_echo=$ac_try;; |
| 17275 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17277 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17278 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17280 | rm -f conftest.er1 |
| 17281 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17283 | (exit $ac_status); } && { |
| 17284 | test -z "$ac_c_werror_flag" || |
| 17285 | test ! -s conftest.err |
| 17286 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17287 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17288 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17289 | ipv6=yes |
| 17290 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17291 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17293 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17294 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17295 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17296 | ipv6=no |
| 17297 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17298 | |
| 17299 | 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] | 17300 | fi |
| 17301 | |
| 17302 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17303 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17304 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17305 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 17306 | |
| 17307 | fi |
| 17308 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17309 | fi |
| 17310 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17311 | |
| 17312 | ipv6type=unknown |
| 17313 | ipv6lib=none |
| 17314 | ipv6trylibc=no |
| 17315 | |
| 17316 | if test "$ipv6" = "yes"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17317 | { echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 17318 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; } |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 17319 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 17320 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17321 | case $i in |
| 17322 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17323 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17324 | /* confdefs.h. */ |
| 17325 | _ACEOF |
| 17326 | cat confdefs.h >>conftest.$ac_ext |
| 17327 | cat >>conftest.$ac_ext <<_ACEOF |
| 17328 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17329 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17330 | #include <netinet/in.h> |
| 17331 | #ifdef IPV6_INRIA_VERSION |
| 17332 | yes |
| 17333 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17334 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17335 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17336 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17337 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17338 | fi |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 17339 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17340 | |
| 17341 | ;; |
| 17342 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17343 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17344 | /* confdefs.h. */ |
| 17345 | _ACEOF |
| 17346 | cat confdefs.h >>conftest.$ac_ext |
| 17347 | cat >>conftest.$ac_ext <<_ACEOF |
| 17348 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17349 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17350 | #include <netinet/in.h> |
| 17351 | #ifdef __KAME__ |
| 17352 | yes |
| 17353 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17354 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17355 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17356 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17357 | ipv6type=$i; |
| 17358 | ipv6lib=inet6 |
| 17359 | ipv6libdir=/usr/local/v6/lib |
| 17360 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17361 | fi |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 17362 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17363 | |
| 17364 | ;; |
| 17365 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17366 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17367 | /* confdefs.h. */ |
| 17368 | _ACEOF |
| 17369 | cat confdefs.h >>conftest.$ac_ext |
| 17370 | cat >>conftest.$ac_ext <<_ACEOF |
| 17371 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17372 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17373 | #include <features.h> |
| 17374 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 17375 | yes |
| 17376 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17377 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17379 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17380 | ipv6type=$i; |
| 17381 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17382 | fi |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 17383 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17384 | |
| 17385 | ;; |
| 17386 | linux-inet6) |
| 17387 | if test -d /usr/inet6; then |
| 17388 | ipv6type=$i |
| 17389 | ipv6lib=inet6 |
| 17390 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17391 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17392 | fi |
| 17393 | ;; |
| 17394 | solaris) |
| 17395 | if test -f /etc/netconfig; then |
| 17396 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 17397 | ipv6type=$i |
| 17398 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17399 | fi |
| 17400 | fi |
| 17401 | ;; |
| 17402 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17403 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17404 | /* confdefs.h. */ |
| 17405 | _ACEOF |
| 17406 | cat confdefs.h >>conftest.$ac_ext |
| 17407 | cat >>conftest.$ac_ext <<_ACEOF |
| 17408 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17409 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17410 | #include <sys/param.h> |
| 17411 | #ifdef _TOSHIBA_INET6 |
| 17412 | yes |
| 17413 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17414 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17415 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17416 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17417 | ipv6type=$i; |
| 17418 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17419 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17420 | fi |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 17421 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17422 | |
| 17423 | ;; |
| 17424 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17425 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17426 | /* confdefs.h. */ |
| 17427 | _ACEOF |
| 17428 | cat confdefs.h >>conftest.$ac_ext |
| 17429 | cat >>conftest.$ac_ext <<_ACEOF |
| 17430 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17431 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17432 | #include </usr/local/v6/include/sys/v6config.h> |
| 17433 | #ifdef __V6D__ |
| 17434 | yes |
| 17435 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17436 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17437 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17438 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17439 | ipv6type=$i; |
| 17440 | ipv6lib=v6; |
| 17441 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17442 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17443 | fi |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 17444 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17445 | |
| 17446 | ;; |
| 17447 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17448 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17449 | /* confdefs.h. */ |
| 17450 | _ACEOF |
| 17451 | cat confdefs.h >>conftest.$ac_ext |
| 17452 | cat >>conftest.$ac_ext <<_ACEOF |
| 17453 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 17454 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17455 | #include <sys/param.h> |
| 17456 | #ifdef _ZETA_MINAMI_INET6 |
| 17457 | yes |
| 17458 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17459 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17460 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17461 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17462 | ipv6type=$i; |
| 17463 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 17464 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17465 | fi |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 17466 | rm -f conftest* |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17467 | |
| 17468 | ;; |
| 17469 | esac |
| 17470 | if test "$ipv6type" != "unknown"; then |
| 17471 | break |
| 17472 | fi |
| 17473 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17474 | { echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 17475 | echo "${ECHO_T}$ipv6type" >&6; } |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 17476 | fi |
| 17477 | |
| 17478 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 17479 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 17480 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 17481 | echo "using lib$ipv6lib" |
| 17482 | else |
| 17483 | if test $ipv6trylibc = "yes"; then |
| 17484 | echo "using libc" |
| 17485 | else |
| 17486 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 17487 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 17488 | echo 'ipv6 kit and compile beforehand.' |
| 17489 | exit 1 |
| 17490 | fi |
| 17491 | fi |
| 17492 | fi |
| 17493 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17494 | { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5 |
| 17495 | 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] | 17496 | cat >conftest.$ac_ext <<_ACEOF |
| 17497 | /* confdefs.h. */ |
| 17498 | _ACEOF |
| 17499 | cat confdefs.h >>conftest.$ac_ext |
| 17500 | cat >>conftest.$ac_ext <<_ACEOF |
| 17501 | /* end confdefs.h. */ |
| 17502 | #include <Carbon/Carbon.h> |
| 17503 | int |
| 17504 | main () |
| 17505 | { |
| 17506 | FSIORefNum fRef = 0 |
| 17507 | ; |
| 17508 | return 0; |
| 17509 | } |
| 17510 | _ACEOF |
| 17511 | rm -f conftest.$ac_objext |
| 17512 | if { (ac_try="$ac_compile" |
| 17513 | case "(($ac_try" in |
| 17514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17515 | *) ac_try_echo=$ac_try;; |
| 17516 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17518 | (eval "$ac_compile") 2>conftest.er1 |
| 17519 | ac_status=$? |
| 17520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17521 | rm -f conftest.er1 |
| 17522 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17524 | (exit $ac_status); } && { |
| 17525 | test -z "$ac_c_werror_flag" || |
| 17526 | test ! -s conftest.err |
| 17527 | } && test -s conftest.$ac_objext; then |
| 17528 | |
| 17529 | cat >>confdefs.h <<\_ACEOF |
| 17530 | #define HAVE_OSX105_SDK 1 |
| 17531 | _ACEOF |
| 17532 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17533 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17534 | echo "${ECHO_T}yes" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17535 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17536 | echo "$as_me: failed program was:" >&5 |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17538 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17539 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17540 | echo "${ECHO_T}no" >&6; } |
Ronald Oussoren | 0d236eb | 2008-06-06 21:31:33 +0000 | [diff] [blame] | 17541 | |
| 17542 | fi |
| 17543 | |
| 17544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17545 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17546 | # Check for --with-doc-strings |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17547 | { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 17548 | 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] | 17549 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17550 | # Check whether --with-doc-strings was given. |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17551 | if test "${with_doc_strings+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17552 | withval=$with_doc_strings; |
| 17553 | fi |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17554 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17555 | |
| 17556 | if test -z "$with_doc_strings" |
| 17557 | then with_doc_strings="yes" |
| 17558 | fi |
| 17559 | if test "$with_doc_strings" != "no" |
| 17560 | then |
| 17561 | |
| 17562 | cat >>confdefs.h <<\_ACEOF |
| 17563 | #define WITH_DOC_STRINGS 1 |
| 17564 | _ACEOF |
| 17565 | |
| 17566 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17567 | { echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 17568 | echo "${ECHO_T}$with_doc_strings" >&6; } |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 17569 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17570 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17571 | { echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 17572 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17573 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17574 | # Check whether --with-tsc was given. |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17575 | if test "${with_tsc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17576 | withval=$with_tsc; |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17577 | if test "$withval" != no |
| 17578 | then |
| 17579 | |
| 17580 | cat >>confdefs.h <<\_ACEOF |
| 17581 | #define WITH_TSC 1 |
| 17582 | _ACEOF |
| 17583 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17584 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17585 | echo "${ECHO_T}yes" >&6; } |
| 17586 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17587 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17588 | fi |
| 17589 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17590 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17591 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17592 | fi |
| 17593 | |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 17594 | |
| 17595 | # Check for Python-specific malloc support |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17596 | { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 17597 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17598 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17599 | # Check whether --with-pymalloc was given. |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17600 | if test "${with_pymalloc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17601 | withval=$with_pymalloc; |
| 17602 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17603 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 17604 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17605 | if test -z "$with_pymalloc" |
| 17606 | then with_pymalloc="yes" |
| 17607 | fi |
| 17608 | if test "$with_pymalloc" != "no" |
| 17609 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17610 | |
| 17611 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17612 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17613 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17614 | |
| 17615 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17616 | { echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 17617 | echo "${ECHO_T}$with_pymalloc" >&6; } |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 17618 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17619 | # Check for --with-wctype-functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17620 | { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 17621 | 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] | 17622 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17623 | # Check whether --with-wctype-functions was given. |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17624 | if test "${with_wctype_functions+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17625 | withval=$with_wctype_functions; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17626 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17627 | then |
| 17628 | |
| 17629 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17630 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17631 | _ACEOF |
| 17632 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17633 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 17634 | echo "${ECHO_T}yes" >&6; } |
| 17635 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 17636 | echo "${ECHO_T}no" >&6; } |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17637 | fi |
| 17638 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17639 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17640 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17641 | fi |
| 17642 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 17643 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17644 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17645 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 17646 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17647 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17648 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 17649 | # 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] | 17650 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17651 | for ac_func in dlopen |
| 17652 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17653 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17654 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17655 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17656 | 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] | 17657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17658 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17659 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17660 | /* confdefs.h. */ |
| 17661 | _ACEOF |
| 17662 | cat confdefs.h >>conftest.$ac_ext |
| 17663 | cat >>conftest.$ac_ext <<_ACEOF |
| 17664 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17665 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17666 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17667 | #define $ac_func innocuous_$ac_func |
| 17668 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17669 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17670 | which can conflict with char $ac_func (); below. |
| 17671 | 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] | 17672 | <limits.h> exists even on freestanding compilers. */ |
| 17673 | |
| 17674 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17675 | # include <limits.h> |
| 17676 | #else |
| 17677 | # include <assert.h> |
| 17678 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17679 | |
| 17680 | #undef $ac_func |
| 17681 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17682 | /* Override any GCC internal prototype to avoid an error. |
| 17683 | Use char because int might match the return type of a GCC |
| 17684 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17685 | #ifdef __cplusplus |
| 17686 | extern "C" |
| 17687 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17688 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17689 | /* The GNU C library defines this for functions which it implements |
| 17690 | to always fail with ENOSYS. Some functions are actually named |
| 17691 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17692 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17693 | choke me |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17694 | #endif |
| 17695 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17696 | int |
| 17697 | main () |
| 17698 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17699 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17700 | ; |
| 17701 | return 0; |
| 17702 | } |
| 17703 | _ACEOF |
| 17704 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17705 | if { (ac_try="$ac_link" |
| 17706 | case "(($ac_try" in |
| 17707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17708 | *) ac_try_echo=$ac_try;; |
| 17709 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17711 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17712 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17713 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17714 | rm -f conftest.er1 |
| 17715 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17717 | (exit $ac_status); } && { |
| 17718 | test -z "$ac_c_werror_flag" || |
| 17719 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17720 | } && test -s conftest$ac_exeext && |
| 17721 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17722 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17723 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17724 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17726 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17727 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17728 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17729 | |
| 17730 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17731 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17732 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17733 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17734 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17735 | echo "${ECHO_T}$ac_res" >&6; } |
| 17736 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17737 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17738 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17739 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17740 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17741 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17742 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17743 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17744 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17745 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 17746 | # loading of modules. |
| 17747 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17748 | { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 17749 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17750 | if test -z "$DYNLOADFILE" |
| 17751 | then |
| 17752 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 17753 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 17754 | if test "$ac_cv_func_dlopen" = yes |
| 17755 | then DYNLOADFILE="dynload_shlib.o" |
| 17756 | else DYNLOADFILE="dynload_aix.o" |
| 17757 | fi |
| 17758 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17759 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 17760 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Anthony Baxter | 8220174 | 2006-04-09 15:07:40 +0000 | [diff] [blame] | 17761 | # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
| 17762 | Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17763 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17764 | *) |
| 17765 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 17766 | # out any dynamic loading |
| 17767 | if test "$ac_cv_func_dlopen" = yes |
| 17768 | then DYNLOADFILE="dynload_shlib.o" |
| 17769 | else DYNLOADFILE="dynload_stub.o" |
| 17770 | fi |
| 17771 | ;; |
| 17772 | esac |
| 17773 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17774 | { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 17775 | echo "${ECHO_T}$DYNLOADFILE" >&6; } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17776 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 17777 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17778 | |
| 17779 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17780 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17781 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 17782 | |
| 17783 | fi |
| 17784 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17785 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 17786 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17787 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17788 | { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 17789 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17790 | if test -z "$MACHDEP_OBJS" |
| 17791 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 17792 | MACHDEP_OBJS=$extra_machdep_objs |
| 17793 | else |
| 17794 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17795 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17796 | { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 17797 | echo "${ECHO_T}MACHDEP_OBJS" >&6; } |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 17798 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17799 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17800 | |
| 17801 | |
| 17802 | |
| 17803 | |
| 17804 | |
| 17805 | |
| 17806 | |
| 17807 | |
| 17808 | |
| 17809 | |
| 17810 | |
| 17811 | |
| 17812 | |
| 17813 | |
| 17814 | |
| 17815 | |
| 17816 | |
| 17817 | |
| 17818 | |
| 17819 | |
| 17820 | |
| 17821 | |
| 17822 | |
| 17823 | |
| 17824 | |
| 17825 | |
| 17826 | |
| 17827 | |
| 17828 | |
| 17829 | |
| 17830 | |
| 17831 | |
| 17832 | |
| 17833 | |
| 17834 | |
| 17835 | |
| 17836 | |
| 17837 | |
| 17838 | |
| 17839 | |
| 17840 | |
| 17841 | |
| 17842 | |
| 17843 | |
| 17844 | |
| 17845 | |
| 17846 | |
| 17847 | |
| 17848 | |
| 17849 | |
| 17850 | |
| 17851 | |
| 17852 | |
| 17853 | |
| 17854 | |
| 17855 | |
| 17856 | |
| 17857 | |
| 17858 | |
| 17859 | |
| 17860 | |
| 17861 | |
| 17862 | |
| 17863 | |
| 17864 | |
| 17865 | |
| 17866 | |
| 17867 | |
| 17868 | |
| 17869 | |
| 17870 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17871 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 17872 | |
| 17873 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 17874 | |
| 17875 | |
Martin v. Löwis | 382abef | 2007-02-19 10:55:19 +0000 | [diff] [blame] | 17876 | |
| 17877 | |
Christian Heimes | 3628187 | 2007-11-30 21:11:28 +0000 | [diff] [blame] | 17878 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 17879 | |
| 17880 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 17881 | |
| 17882 | |
| 17883 | |
| 17884 | |
Martin v. Löwis | aef18b1 | 2008-03-24 13:31:16 +0000 | [diff] [blame] | 17885 | for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ |
| 17886 | clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 17887 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 17888 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 17889 | kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 17890 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 17891 | putenv readlink realpath \ |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 17892 | select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
| 17893 | setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 17894 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 17895 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 17896 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 17897 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17898 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17899 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17900 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17901 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17902 | 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] | 17903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17904 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17905 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17906 | /* confdefs.h. */ |
| 17907 | _ACEOF |
| 17908 | cat confdefs.h >>conftest.$ac_ext |
| 17909 | cat >>conftest.$ac_ext <<_ACEOF |
| 17910 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17911 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17912 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17913 | #define $ac_func innocuous_$ac_func |
| 17914 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17915 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17916 | which can conflict with char $ac_func (); below. |
| 17917 | 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] | 17918 | <limits.h> exists even on freestanding compilers. */ |
| 17919 | |
| 17920 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17921 | # include <limits.h> |
| 17922 | #else |
| 17923 | # include <assert.h> |
| 17924 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 17925 | |
| 17926 | #undef $ac_func |
| 17927 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17928 | /* Override any GCC internal prototype to avoid an error. |
| 17929 | Use char because int might match the return type of a GCC |
| 17930 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17931 | #ifdef __cplusplus |
| 17932 | extern "C" |
| 17933 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17934 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17935 | /* The GNU C library defines this for functions which it implements |
| 17936 | to always fail with ENOSYS. Some functions are actually named |
| 17937 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17938 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17939 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17940 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17941 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17942 | int |
| 17943 | main () |
| 17944 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17945 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17946 | ; |
| 17947 | return 0; |
| 17948 | } |
| 17949 | _ACEOF |
| 17950 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17951 | if { (ac_try="$ac_link" |
| 17952 | case "(($ac_try" in |
| 17953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17954 | *) ac_try_echo=$ac_try;; |
| 17955 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17957 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17958 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17960 | rm -f conftest.er1 |
| 17961 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17963 | (exit $ac_status); } && { |
| 17964 | test -z "$ac_c_werror_flag" || |
| 17965 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17966 | } && test -s conftest$ac_exeext && |
| 17967 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17968 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17969 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17970 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17972 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17973 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17974 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 17975 | |
| 17976 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17977 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17978 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17979 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17980 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17981 | echo "${ECHO_T}$ac_res" >&6; } |
| 17982 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17983 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17984 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17985 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 17986 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 17987 | fi |
| 17988 | done |
| 17989 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17990 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17991 | # For some functions, having a definition is not sufficient, since |
| 17992 | # we want to take their address. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 17993 | { echo "$as_me:$LINENO: checking for chroot" >&5 |
| 17994 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 17995 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17996 | /* confdefs.h. */ |
| 17997 | _ACEOF |
| 17998 | cat confdefs.h >>conftest.$ac_ext |
| 17999 | cat >>conftest.$ac_ext <<_ACEOF |
| 18000 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18001 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18002 | int |
| 18003 | main () |
| 18004 | { |
| 18005 | void *x=chroot |
| 18006 | ; |
| 18007 | return 0; |
| 18008 | } |
| 18009 | _ACEOF |
| 18010 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18011 | if { (ac_try="$ac_compile" |
| 18012 | case "(($ac_try" in |
| 18013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18014 | *) ac_try_echo=$ac_try;; |
| 18015 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18017 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18018 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18020 | rm -f conftest.er1 |
| 18021 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18023 | (exit $ac_status); } && { |
| 18024 | test -z "$ac_c_werror_flag" || |
| 18025 | test ! -s conftest.err |
| 18026 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18027 | |
| 18028 | cat >>confdefs.h <<\_ACEOF |
| 18029 | #define HAVE_CHROOT 1 |
| 18030 | _ACEOF |
| 18031 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18032 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18033 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18034 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18035 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18037 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18038 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18039 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18040 | |
| 18041 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18042 | |
| 18043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18044 | { echo "$as_me:$LINENO: checking for link" >&5 |
| 18045 | echo $ECHO_N "checking for link... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18046 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18047 | /* confdefs.h. */ |
| 18048 | _ACEOF |
| 18049 | cat confdefs.h >>conftest.$ac_ext |
| 18050 | cat >>conftest.$ac_ext <<_ACEOF |
| 18051 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18052 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18053 | int |
| 18054 | main () |
| 18055 | { |
| 18056 | void *x=link |
| 18057 | ; |
| 18058 | return 0; |
| 18059 | } |
| 18060 | _ACEOF |
| 18061 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18062 | if { (ac_try="$ac_compile" |
| 18063 | case "(($ac_try" in |
| 18064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18065 | *) ac_try_echo=$ac_try;; |
| 18066 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18068 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18069 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18071 | rm -f conftest.er1 |
| 18072 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18074 | (exit $ac_status); } && { |
| 18075 | test -z "$ac_c_werror_flag" || |
| 18076 | test ! -s conftest.err |
| 18077 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18078 | |
| 18079 | cat >>confdefs.h <<\_ACEOF |
| 18080 | #define HAVE_LINK 1 |
| 18081 | _ACEOF |
| 18082 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18083 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18084 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18085 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18086 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18088 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18089 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18090 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18091 | |
| 18092 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18093 | |
| 18094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18095 | { echo "$as_me:$LINENO: checking for symlink" >&5 |
| 18096 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18097 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18098 | /* confdefs.h. */ |
| 18099 | _ACEOF |
| 18100 | cat confdefs.h >>conftest.$ac_ext |
| 18101 | cat >>conftest.$ac_ext <<_ACEOF |
| 18102 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18103 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18104 | int |
| 18105 | main () |
| 18106 | { |
| 18107 | void *x=symlink |
| 18108 | ; |
| 18109 | return 0; |
| 18110 | } |
| 18111 | _ACEOF |
| 18112 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18113 | if { (ac_try="$ac_compile" |
| 18114 | case "(($ac_try" in |
| 18115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18116 | *) ac_try_echo=$ac_try;; |
| 18117 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18119 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18120 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18122 | rm -f conftest.er1 |
| 18123 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18125 | (exit $ac_status); } && { |
| 18126 | test -z "$ac_c_werror_flag" || |
| 18127 | test ! -s conftest.err |
| 18128 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18129 | |
| 18130 | cat >>confdefs.h <<\_ACEOF |
| 18131 | #define HAVE_SYMLINK 1 |
| 18132 | _ACEOF |
| 18133 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18134 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18135 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18136 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18137 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18139 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18140 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18141 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18142 | |
| 18143 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18144 | |
| 18145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18146 | { echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 18147 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18148 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18149 | /* confdefs.h. */ |
| 18150 | _ACEOF |
| 18151 | cat confdefs.h >>conftest.$ac_ext |
| 18152 | cat >>conftest.$ac_ext <<_ACEOF |
| 18153 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18154 | #include <unistd.h> |
| 18155 | int |
| 18156 | main () |
| 18157 | { |
| 18158 | void *x=fchdir |
| 18159 | ; |
| 18160 | return 0; |
| 18161 | } |
| 18162 | _ACEOF |
| 18163 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18164 | if { (ac_try="$ac_compile" |
| 18165 | case "(($ac_try" in |
| 18166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18167 | *) ac_try_echo=$ac_try;; |
| 18168 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18170 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18171 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18173 | rm -f conftest.er1 |
| 18174 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18176 | (exit $ac_status); } && { |
| 18177 | test -z "$ac_c_werror_flag" || |
| 18178 | test ! -s conftest.err |
| 18179 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18180 | |
| 18181 | cat >>confdefs.h <<\_ACEOF |
| 18182 | #define HAVE_FCHDIR 1 |
| 18183 | _ACEOF |
| 18184 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18185 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18186 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18187 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18188 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18190 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18191 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18192 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18193 | |
| 18194 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18195 | |
| 18196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18197 | { echo "$as_me:$LINENO: checking for fsync" >&5 |
| 18198 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18199 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18200 | /* confdefs.h. */ |
| 18201 | _ACEOF |
| 18202 | cat confdefs.h >>conftest.$ac_ext |
| 18203 | cat >>conftest.$ac_ext <<_ACEOF |
| 18204 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18205 | #include <unistd.h> |
| 18206 | int |
| 18207 | main () |
| 18208 | { |
| 18209 | void *x=fsync |
| 18210 | ; |
| 18211 | return 0; |
| 18212 | } |
| 18213 | _ACEOF |
| 18214 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18215 | if { (ac_try="$ac_compile" |
| 18216 | case "(($ac_try" in |
| 18217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18218 | *) ac_try_echo=$ac_try;; |
| 18219 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18221 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18222 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18224 | rm -f conftest.er1 |
| 18225 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18227 | (exit $ac_status); } && { |
| 18228 | test -z "$ac_c_werror_flag" || |
| 18229 | test ! -s conftest.err |
| 18230 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18231 | |
| 18232 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18233 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18234 | _ACEOF |
| 18235 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18236 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18237 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18238 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18239 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18241 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18242 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18243 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18244 | |
| 18245 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18246 | |
| 18247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18248 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 18249 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18250 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18251 | /* confdefs.h. */ |
| 18252 | _ACEOF |
| 18253 | cat confdefs.h >>conftest.$ac_ext |
| 18254 | cat >>conftest.$ac_ext <<_ACEOF |
| 18255 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18256 | #include <unistd.h> |
| 18257 | int |
| 18258 | main () |
| 18259 | { |
| 18260 | void *x=fdatasync |
| 18261 | ; |
| 18262 | return 0; |
| 18263 | } |
| 18264 | _ACEOF |
| 18265 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18266 | if { (ac_try="$ac_compile" |
| 18267 | case "(($ac_try" in |
| 18268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18269 | *) ac_try_echo=$ac_try;; |
| 18270 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18272 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18273 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18275 | rm -f conftest.er1 |
| 18276 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18278 | (exit $ac_status); } && { |
| 18279 | test -z "$ac_c_werror_flag" || |
| 18280 | test ! -s conftest.err |
| 18281 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18282 | |
| 18283 | cat >>confdefs.h <<\_ACEOF |
| 18284 | #define HAVE_FDATASYNC 1 |
| 18285 | _ACEOF |
| 18286 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18287 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18288 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18289 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18290 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18292 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18293 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18294 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 18295 | |
| 18296 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18297 | |
| 18298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18299 | { echo "$as_me:$LINENO: checking for epoll" >&5 |
| 18300 | echo $ECHO_N "checking for epoll... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18301 | cat >conftest.$ac_ext <<_ACEOF |
| 18302 | /* confdefs.h. */ |
| 18303 | _ACEOF |
| 18304 | cat confdefs.h >>conftest.$ac_ext |
| 18305 | cat >>conftest.$ac_ext <<_ACEOF |
| 18306 | /* end confdefs.h. */ |
| 18307 | #include <sys/epoll.h> |
| 18308 | int |
| 18309 | main () |
| 18310 | { |
| 18311 | void *x=epoll_create |
| 18312 | ; |
| 18313 | return 0; |
| 18314 | } |
| 18315 | _ACEOF |
| 18316 | rm -f conftest.$ac_objext |
| 18317 | if { (ac_try="$ac_compile" |
| 18318 | case "(($ac_try" in |
| 18319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18320 | *) ac_try_echo=$ac_try;; |
| 18321 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18323 | (eval "$ac_compile") 2>conftest.er1 |
| 18324 | ac_status=$? |
| 18325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18326 | rm -f conftest.er1 |
| 18327 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18329 | (exit $ac_status); } && { |
| 18330 | test -z "$ac_c_werror_flag" || |
| 18331 | test ! -s conftest.err |
| 18332 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 18333 | |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18334 | cat >>confdefs.h <<\_ACEOF |
| 18335 | #define HAVE_EPOLL 1 |
| 18336 | _ACEOF |
| 18337 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18338 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18339 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18340 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18341 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18343 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18344 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18345 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18346 | |
| 18347 | fi |
| 18348 | |
| 18349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18350 | { echo "$as_me:$LINENO: checking for kqueue" >&5 |
| 18351 | echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18352 | cat >conftest.$ac_ext <<_ACEOF |
| 18353 | /* confdefs.h. */ |
| 18354 | _ACEOF |
| 18355 | cat confdefs.h >>conftest.$ac_ext |
| 18356 | cat >>conftest.$ac_ext <<_ACEOF |
| 18357 | /* end confdefs.h. */ |
| 18358 | |
| 18359 | #include <sys/types.h> |
| 18360 | #include <sys/event.h> |
| 18361 | |
| 18362 | int |
| 18363 | main () |
| 18364 | { |
| 18365 | int x=kqueue() |
| 18366 | ; |
| 18367 | return 0; |
| 18368 | } |
| 18369 | _ACEOF |
| 18370 | rm -f conftest.$ac_objext |
| 18371 | if { (ac_try="$ac_compile" |
| 18372 | case "(($ac_try" in |
| 18373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18374 | *) ac_try_echo=$ac_try;; |
| 18375 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18377 | (eval "$ac_compile") 2>conftest.er1 |
| 18378 | ac_status=$? |
| 18379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18380 | rm -f conftest.er1 |
| 18381 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18383 | (exit $ac_status); } && { |
| 18384 | test -z "$ac_c_werror_flag" || |
| 18385 | test ! -s conftest.err |
| 18386 | } && test -s conftest.$ac_objext; then |
| 18387 | |
| 18388 | cat >>confdefs.h <<\_ACEOF |
| 18389 | #define HAVE_KQUEUE 1 |
| 18390 | _ACEOF |
| 18391 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18392 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18393 | echo "${ECHO_T}yes" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18394 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18395 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18397 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18398 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18399 | echo "${ECHO_T}no" >&6; } |
Christian Heimes | 0e9ab5f | 2008-03-21 23:49:44 +0000 | [diff] [blame] | 18400 | |
| 18401 | fi |
| 18402 | |
| 18403 | 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] | 18404 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 18405 | # functions ctermid_r, setgroups in the library, but no prototype |
| 18406 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 18407 | # address to avoid compiler warnings and potential miscompilations |
| 18408 | # because of the missing prototypes. |
| 18409 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18410 | { echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 18411 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18412 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18413 | /* confdefs.h. */ |
| 18414 | _ACEOF |
| 18415 | cat confdefs.h >>conftest.$ac_ext |
| 18416 | cat >>conftest.$ac_ext <<_ACEOF |
| 18417 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18418 | |
| 18419 | #include "confdefs.h" |
| 18420 | #include <stdio.h> |
| 18421 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18422 | int |
| 18423 | main () |
| 18424 | { |
| 18425 | void* p = ctermid_r |
| 18426 | ; |
| 18427 | return 0; |
| 18428 | } |
| 18429 | _ACEOF |
| 18430 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18431 | if { (ac_try="$ac_compile" |
| 18432 | case "(($ac_try" in |
| 18433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18434 | *) ac_try_echo=$ac_try;; |
| 18435 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18437 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18438 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18440 | rm -f conftest.er1 |
| 18441 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18443 | (exit $ac_status); } && { |
| 18444 | test -z "$ac_c_werror_flag" || |
| 18445 | test ! -s conftest.err |
| 18446 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18447 | |
| 18448 | cat >>confdefs.h <<\_ACEOF |
| 18449 | #define HAVE_CTERMID_R 1 |
| 18450 | _ACEOF |
| 18451 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18452 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18453 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18454 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18455 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18457 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18458 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18459 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18460 | |
| 18461 | fi |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 18462 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18464 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18465 | { echo "$as_me:$LINENO: checking for flock" >&5 |
| 18466 | echo $ECHO_N "checking for flock... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18467 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18468 | /* confdefs.h. */ |
| 18469 | _ACEOF |
| 18470 | cat confdefs.h >>conftest.$ac_ext |
| 18471 | cat >>conftest.$ac_ext <<_ACEOF |
| 18472 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18473 | |
| 18474 | #include "confdefs.h" |
| 18475 | #include <sys/file.h> |
| 18476 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18477 | int |
| 18478 | main () |
| 18479 | { |
| 18480 | void* p = flock |
| 18481 | ; |
| 18482 | return 0; |
| 18483 | } |
| 18484 | _ACEOF |
| 18485 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18486 | if { (ac_try="$ac_compile" |
| 18487 | case "(($ac_try" in |
| 18488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18489 | *) ac_try_echo=$ac_try;; |
| 18490 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18492 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18493 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18495 | rm -f conftest.er1 |
| 18496 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18498 | (exit $ac_status); } && { |
| 18499 | test -z "$ac_c_werror_flag" || |
| 18500 | test ! -s conftest.err |
| 18501 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18502 | |
| 18503 | cat >>confdefs.h <<\_ACEOF |
| 18504 | #define HAVE_FLOCK 1 |
| 18505 | _ACEOF |
| 18506 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18507 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18508 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18509 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18510 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18512 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18513 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18514 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18515 | |
| 18516 | fi |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18517 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18519 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18520 | { echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 18521 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18522 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18523 | /* confdefs.h. */ |
| 18524 | _ACEOF |
| 18525 | cat confdefs.h >>conftest.$ac_ext |
| 18526 | cat >>conftest.$ac_ext <<_ACEOF |
| 18527 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18528 | |
| 18529 | #include "confdefs.h" |
| 18530 | #include <unistd.h> |
| 18531 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18532 | int |
| 18533 | main () |
| 18534 | { |
| 18535 | void* p = getpagesize |
| 18536 | ; |
| 18537 | return 0; |
| 18538 | } |
| 18539 | _ACEOF |
| 18540 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18541 | if { (ac_try="$ac_compile" |
| 18542 | case "(($ac_try" in |
| 18543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18544 | *) ac_try_echo=$ac_try;; |
| 18545 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18547 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18548 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18550 | rm -f conftest.er1 |
| 18551 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18553 | (exit $ac_status); } && { |
| 18554 | test -z "$ac_c_werror_flag" || |
| 18555 | test ! -s conftest.err |
| 18556 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18557 | |
| 18558 | cat >>confdefs.h <<\_ACEOF |
| 18559 | #define HAVE_GETPAGESIZE 1 |
| 18560 | _ACEOF |
| 18561 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18562 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18563 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18564 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18565 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18567 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18568 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18569 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 18570 | |
| 18571 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18572 | |
| 18573 | 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] | 18574 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18575 | for ac_prog in true |
| 18576 | do |
| 18577 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 18578 | set dummy $ac_prog; ac_word=$2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18579 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18580 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18581 | if test "${ac_cv_prog_TRUE+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18583 | else |
| 18584 | if test -n "$TRUE"; then |
| 18585 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 18586 | else |
| 18587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18588 | for as_dir in $PATH |
| 18589 | do |
| 18590 | IFS=$as_save_IFS |
| 18591 | test -z "$as_dir" && as_dir=. |
| 18592 | for ac_exec_ext in '' $ac_executable_extensions; do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18593 | 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] | 18594 | ac_cv_prog_TRUE="$ac_prog" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18595 | 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] | 18596 | break 2 |
| 18597 | fi |
| 18598 | done |
| 18599 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18600 | IFS=$as_save_IFS |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18601 | |
| 18602 | fi |
| 18603 | fi |
| 18604 | TRUE=$ac_cv_prog_TRUE |
| 18605 | if test -n "$TRUE"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18606 | { echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 18607 | echo "${ECHO_T}$TRUE" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18608 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18609 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18610 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18611 | fi |
| 18612 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18613 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18614 | test -n "$TRUE" && break |
| 18615 | done |
| 18616 | test -n "$TRUE" || TRUE="/bin/true" |
| 18617 | |
| 18618 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18619 | { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 18620 | 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] | 18621 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18623 | else |
| 18624 | ac_check_lib_save_LIBS=$LIBS |
| 18625 | LIBS="-lc $LIBS" |
| 18626 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18627 | /* confdefs.h. */ |
| 18628 | _ACEOF |
| 18629 | cat confdefs.h >>conftest.$ac_ext |
| 18630 | cat >>conftest.$ac_ext <<_ACEOF |
| 18631 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18632 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18633 | /* Override any GCC internal prototype to avoid an error. |
| 18634 | Use char because int might match the return type of a GCC |
| 18635 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18636 | #ifdef __cplusplus |
| 18637 | extern "C" |
| 18638 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18639 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18640 | int |
| 18641 | main () |
| 18642 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18643 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18644 | ; |
| 18645 | return 0; |
| 18646 | } |
| 18647 | _ACEOF |
| 18648 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18649 | if { (ac_try="$ac_link" |
| 18650 | case "(($ac_try" in |
| 18651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18652 | *) ac_try_echo=$ac_try;; |
| 18653 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18655 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18656 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18658 | rm -f conftest.er1 |
| 18659 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18661 | (exit $ac_status); } && { |
| 18662 | test -z "$ac_c_werror_flag" || |
| 18663 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18664 | } && test -s conftest$ac_exeext && |
| 18665 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18666 | ac_cv_lib_c_inet_aton=yes |
| 18667 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18668 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18670 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18671 | ac_cv_lib_c_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18672 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18673 | |
| 18674 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18675 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18676 | LIBS=$ac_check_lib_save_LIBS |
| 18677 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18678 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 18679 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; } |
| 18680 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18681 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18682 | else |
| 18683 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18684 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 18685 | 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] | 18686 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18688 | else |
| 18689 | ac_check_lib_save_LIBS=$LIBS |
| 18690 | LIBS="-lresolv $LIBS" |
| 18691 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18692 | /* confdefs.h. */ |
| 18693 | _ACEOF |
| 18694 | cat confdefs.h >>conftest.$ac_ext |
| 18695 | cat >>conftest.$ac_ext <<_ACEOF |
| 18696 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18697 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18698 | /* Override any GCC internal prototype to avoid an error. |
| 18699 | Use char because int might match the return type of a GCC |
| 18700 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18701 | #ifdef __cplusplus |
| 18702 | extern "C" |
| 18703 | #endif |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18704 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18705 | int |
| 18706 | main () |
| 18707 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18708 | return inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18709 | ; |
| 18710 | return 0; |
| 18711 | } |
| 18712 | _ACEOF |
| 18713 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18714 | if { (ac_try="$ac_link" |
| 18715 | case "(($ac_try" in |
| 18716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18717 | *) ac_try_echo=$ac_try;; |
| 18718 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18720 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18721 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18723 | rm -f conftest.er1 |
| 18724 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18726 | (exit $ac_status); } && { |
| 18727 | test -z "$ac_c_werror_flag" || |
| 18728 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18729 | } && test -s conftest$ac_exeext && |
| 18730 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18731 | ac_cv_lib_resolv_inet_aton=yes |
| 18732 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18733 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18735 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18736 | ac_cv_lib_resolv_inet_aton=no |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18737 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 18738 | |
| 18739 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18740 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18741 | LIBS=$ac_check_lib_save_LIBS |
| 18742 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18743 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 18744 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
| 18745 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 18746 | cat >>confdefs.h <<_ACEOF |
| 18747 | #define HAVE_LIBRESOLV 1 |
| 18748 | _ACEOF |
| 18749 | |
| 18750 | LIBS="-lresolv $LIBS" |
| 18751 | |
| 18752 | fi |
| 18753 | |
| 18754 | |
| 18755 | fi |
| 18756 | |
| 18757 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18758 | # On Tru64, chflags seems to be present, but calling it will |
| 18759 | # exit Python |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18760 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 18761 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18762 | if test "${ac_cv_have_chflags+set}" = set; then |
| 18763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18764 | else |
| 18765 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 18766 | ac_cv_have_chflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18767 | else |
| 18768 | cat >conftest.$ac_ext <<_ACEOF |
| 18769 | /* confdefs.h. */ |
| 18770 | _ACEOF |
| 18771 | cat confdefs.h >>conftest.$ac_ext |
| 18772 | cat >>conftest.$ac_ext <<_ACEOF |
| 18773 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 18774 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18775 | #include <sys/stat.h> |
| 18776 | #include <unistd.h> |
| 18777 | int main(int argc, char*argv[]) |
| 18778 | { |
| 18779 | if(chflags(argv[0], 0) != 0) |
| 18780 | return 1; |
| 18781 | return 0; |
| 18782 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 18783 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18784 | _ACEOF |
| 18785 | rm -f conftest$ac_exeext |
| 18786 | if { (ac_try="$ac_link" |
| 18787 | case "(($ac_try" in |
| 18788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18789 | *) ac_try_echo=$ac_try;; |
| 18790 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18792 | (eval "$ac_link") 2>&5 |
| 18793 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18795 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18796 | { (case "(($ac_try" in |
| 18797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18798 | *) ac_try_echo=$ac_try;; |
| 18799 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18801 | (eval "$ac_try") 2>&5 |
| 18802 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18804 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18805 | ac_cv_have_chflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18806 | else |
| 18807 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18808 | echo "$as_me: failed program was:" >&5 |
| 18809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18810 | |
| 18811 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18812 | ac_cv_have_chflags=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18813 | fi |
| 18814 | 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] | 18815 | fi |
| 18816 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18817 | |
| 18818 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18819 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18820 | { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5 |
| 18821 | echo "${ECHO_T}$ac_cv_have_chflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 18822 | if test "$ac_cv_have_chflags" = cross ; then |
| 18823 | { echo "$as_me:$LINENO: checking for chflags" >&5 |
| 18824 | echo $ECHO_N "checking for chflags... $ECHO_C" >&6; } |
| 18825 | if test "${ac_cv_func_chflags+set}" = set; then |
| 18826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18827 | else |
| 18828 | cat >conftest.$ac_ext <<_ACEOF |
| 18829 | /* confdefs.h. */ |
| 18830 | _ACEOF |
| 18831 | cat confdefs.h >>conftest.$ac_ext |
| 18832 | cat >>conftest.$ac_ext <<_ACEOF |
| 18833 | /* end confdefs.h. */ |
| 18834 | /* Define chflags to an innocuous variant, in case <limits.h> declares chflags. |
| 18835 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18836 | #define chflags innocuous_chflags |
| 18837 | |
| 18838 | /* System header to define __stub macros and hopefully few prototypes, |
| 18839 | which can conflict with char chflags (); below. |
| 18840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18841 | <limits.h> exists even on freestanding compilers. */ |
| 18842 | |
| 18843 | #ifdef __STDC__ |
| 18844 | # include <limits.h> |
| 18845 | #else |
| 18846 | # include <assert.h> |
| 18847 | #endif |
| 18848 | |
| 18849 | #undef chflags |
| 18850 | |
| 18851 | /* Override any GCC internal prototype to avoid an error. |
| 18852 | Use char because int might match the return type of a GCC |
| 18853 | builtin and then its argument prototype would still apply. */ |
| 18854 | #ifdef __cplusplus |
| 18855 | extern "C" |
| 18856 | #endif |
| 18857 | char chflags (); |
| 18858 | /* The GNU C library defines this for functions which it implements |
| 18859 | to always fail with ENOSYS. Some functions are actually named |
| 18860 | something starting with __ and the normal name is an alias. */ |
| 18861 | #if defined __stub_chflags || defined __stub___chflags |
| 18862 | choke me |
| 18863 | #endif |
| 18864 | |
| 18865 | int |
| 18866 | main () |
| 18867 | { |
| 18868 | return chflags (); |
| 18869 | ; |
| 18870 | return 0; |
| 18871 | } |
| 18872 | _ACEOF |
| 18873 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18874 | if { (ac_try="$ac_link" |
| 18875 | case "(($ac_try" in |
| 18876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18877 | *) ac_try_echo=$ac_try;; |
| 18878 | esac |
| 18879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18880 | (eval "$ac_link") 2>conftest.er1 |
| 18881 | ac_status=$? |
| 18882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18883 | rm -f conftest.er1 |
| 18884 | cat conftest.err >&5 |
| 18885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18886 | (exit $ac_status); } && { |
| 18887 | test -z "$ac_c_werror_flag" || |
| 18888 | test ! -s conftest.err |
| 18889 | } && test -s conftest$ac_exeext && |
| 18890 | $as_test_x conftest$ac_exeext; then |
| 18891 | ac_cv_func_chflags=yes |
| 18892 | else |
| 18893 | echo "$as_me: failed program was:" >&5 |
| 18894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18895 | |
| 18896 | ac_cv_func_chflags=no |
| 18897 | fi |
| 18898 | |
| 18899 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 18900 | conftest$ac_exeext conftest.$ac_ext |
| 18901 | fi |
| 18902 | { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5 |
| 18903 | echo "${ECHO_T}$ac_cv_func_chflags" >&6; } |
| 18904 | if test $ac_cv_func_chflags = yes; then |
| 18905 | ac_cv_have_chflags="yes" |
| 18906 | else |
| 18907 | ac_cv_have_chflags="no" |
| 18908 | fi |
| 18909 | |
| 18910 | fi |
| 18911 | if test "$ac_cv_have_chflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18912 | |
| 18913 | cat >>confdefs.h <<\_ACEOF |
| 18914 | #define HAVE_CHFLAGS 1 |
| 18915 | _ACEOF |
| 18916 | |
| 18917 | fi |
| 18918 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18919 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 18920 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18921 | if test "${ac_cv_have_lchflags+set}" = set; then |
| 18922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18923 | else |
| 18924 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 18925 | ac_cv_have_lchflags=cross |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18926 | else |
| 18927 | cat >conftest.$ac_ext <<_ACEOF |
| 18928 | /* confdefs.h. */ |
| 18929 | _ACEOF |
| 18930 | cat confdefs.h >>conftest.$ac_ext |
| 18931 | cat >>conftest.$ac_ext <<_ACEOF |
| 18932 | /* end confdefs.h. */ |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 18933 | [ |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18934 | #include <sys/stat.h> |
| 18935 | #include <unistd.h> |
| 18936 | int main(int argc, char*argv[]) |
| 18937 | { |
| 18938 | if(lchflags(argv[0], 0) != 0) |
| 18939 | return 1; |
| 18940 | return 0; |
| 18941 | } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 18942 | ] |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18943 | _ACEOF |
| 18944 | rm -f conftest$ac_exeext |
| 18945 | if { (ac_try="$ac_link" |
| 18946 | case "(($ac_try" in |
| 18947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18948 | *) ac_try_echo=$ac_try;; |
| 18949 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18951 | (eval "$ac_link") 2>&5 |
| 18952 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18954 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18955 | { (case "(($ac_try" in |
| 18956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18957 | *) ac_try_echo=$ac_try;; |
| 18958 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18960 | (eval "$ac_try") 2>&5 |
| 18961 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18963 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18964 | ac_cv_have_lchflags=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18965 | else |
| 18966 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18967 | echo "$as_me: failed program was:" >&5 |
| 18968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18969 | |
| 18970 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18971 | ac_cv_have_lchflags=no |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18972 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 18973 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 18974 | fi |
| 18975 | |
| 18976 | |
Martin v. Löwis | a51d5c8 | 2007-12-04 08:37:59 +0000 | [diff] [blame] | 18977 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18978 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 18979 | { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5 |
| 18980 | echo "${ECHO_T}$ac_cv_have_lchflags" >&6; } |
Gregory P. Smith | 49437c2 | 2009-11-02 01:38:35 +0000 | [diff] [blame] | 18981 | if test "$ac_cv_have_lchflags" = cross ; then |
| 18982 | { echo "$as_me:$LINENO: checking for lchflags" >&5 |
| 18983 | echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; } |
| 18984 | if test "${ac_cv_func_lchflags+set}" = set; then |
| 18985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18986 | else |
| 18987 | cat >conftest.$ac_ext <<_ACEOF |
| 18988 | /* confdefs.h. */ |
| 18989 | _ACEOF |
| 18990 | cat confdefs.h >>conftest.$ac_ext |
| 18991 | cat >>conftest.$ac_ext <<_ACEOF |
| 18992 | /* end confdefs.h. */ |
| 18993 | /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags. |
| 18994 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18995 | #define lchflags innocuous_lchflags |
| 18996 | |
| 18997 | /* System header to define __stub macros and hopefully few prototypes, |
| 18998 | which can conflict with char lchflags (); below. |
| 18999 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19000 | <limits.h> exists even on freestanding compilers. */ |
| 19001 | |
| 19002 | #ifdef __STDC__ |
| 19003 | # include <limits.h> |
| 19004 | #else |
| 19005 | # include <assert.h> |
| 19006 | #endif |
| 19007 | |
| 19008 | #undef lchflags |
| 19009 | |
| 19010 | /* Override any GCC internal prototype to avoid an error. |
| 19011 | Use char because int might match the return type of a GCC |
| 19012 | builtin and then its argument prototype would still apply. */ |
| 19013 | #ifdef __cplusplus |
| 19014 | extern "C" |
| 19015 | #endif |
| 19016 | char lchflags (); |
| 19017 | /* The GNU C library defines this for functions which it implements |
| 19018 | to always fail with ENOSYS. Some functions are actually named |
| 19019 | something starting with __ and the normal name is an alias. */ |
| 19020 | #if defined __stub_lchflags || defined __stub___lchflags |
| 19021 | choke me |
| 19022 | #endif |
| 19023 | |
| 19024 | int |
| 19025 | main () |
| 19026 | { |
| 19027 | return lchflags (); |
| 19028 | ; |
| 19029 | return 0; |
| 19030 | } |
| 19031 | _ACEOF |
| 19032 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19033 | if { (ac_try="$ac_link" |
| 19034 | case "(($ac_try" in |
| 19035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19036 | *) ac_try_echo=$ac_try;; |
| 19037 | esac |
| 19038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19039 | (eval "$ac_link") 2>conftest.er1 |
| 19040 | ac_status=$? |
| 19041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19042 | rm -f conftest.er1 |
| 19043 | cat conftest.err >&5 |
| 19044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19045 | (exit $ac_status); } && { |
| 19046 | test -z "$ac_c_werror_flag" || |
| 19047 | test ! -s conftest.err |
| 19048 | } && test -s conftest$ac_exeext && |
| 19049 | $as_test_x conftest$ac_exeext; then |
| 19050 | ac_cv_func_lchflags=yes |
| 19051 | else |
| 19052 | echo "$as_me: failed program was:" >&5 |
| 19053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19054 | |
| 19055 | ac_cv_func_lchflags=no |
| 19056 | fi |
| 19057 | |
| 19058 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19059 | conftest$ac_exeext conftest.$ac_ext |
| 19060 | fi |
| 19061 | { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5 |
| 19062 | echo "${ECHO_T}$ac_cv_func_lchflags" >&6; } |
| 19063 | if test $ac_cv_func_lchflags = yes; then |
| 19064 | ac_cv_have_lchflags="yes" |
| 19065 | else |
| 19066 | ac_cv_have_lchflags="no" |
| 19067 | fi |
| 19068 | |
| 19069 | fi |
| 19070 | if test "$ac_cv_have_lchflags" = yes ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 19071 | |
| 19072 | cat >>confdefs.h <<\_ACEOF |
| 19073 | #define HAVE_LCHFLAGS 1 |
| 19074 | _ACEOF |
| 19075 | |
| 19076 | fi |
| 19077 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19078 | case $ac_sys_system/$ac_sys_release in |
| 19079 | Darwin/*) |
| 19080 | _CUR_CFLAGS="${CFLAGS}" |
| 19081 | _CUR_LDFLAGS="${LDFLAGS}" |
| 19082 | CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
| 19083 | LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
| 19084 | ;; |
| 19085 | esac |
| 19086 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19087 | { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5 |
| 19088 | echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; } |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19089 | if test "${ac_cv_lib_z_inflateCopy+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19091 | else |
| 19092 | ac_check_lib_save_LIBS=$LIBS |
| 19093 | LIBS="-lz $LIBS" |
| 19094 | cat >conftest.$ac_ext <<_ACEOF |
| 19095 | /* confdefs.h. */ |
| 19096 | _ACEOF |
| 19097 | cat confdefs.h >>conftest.$ac_ext |
| 19098 | cat >>conftest.$ac_ext <<_ACEOF |
| 19099 | /* end confdefs.h. */ |
| 19100 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19101 | /* Override any GCC internal prototype to avoid an error. |
| 19102 | Use char because int might match the return type of a GCC |
| 19103 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19104 | #ifdef __cplusplus |
| 19105 | extern "C" |
| 19106 | #endif |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19107 | char inflateCopy (); |
| 19108 | int |
| 19109 | main () |
| 19110 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19111 | return inflateCopy (); |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19112 | ; |
| 19113 | return 0; |
| 19114 | } |
| 19115 | _ACEOF |
| 19116 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19117 | if { (ac_try="$ac_link" |
| 19118 | case "(($ac_try" in |
| 19119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19120 | *) ac_try_echo=$ac_try;; |
| 19121 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19123 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19124 | ac_status=$? |
| 19125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19126 | rm -f conftest.er1 |
| 19127 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19129 | (exit $ac_status); } && { |
| 19130 | test -z "$ac_c_werror_flag" || |
| 19131 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19132 | } && test -s conftest$ac_exeext && |
| 19133 | $as_test_x conftest$ac_exeext; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19134 | ac_cv_lib_z_inflateCopy=yes |
| 19135 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19136 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19138 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19139 | ac_cv_lib_z_inflateCopy=no |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19140 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19141 | |
| 19142 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19143 | conftest$ac_exeext conftest.$ac_ext |
| 19144 | LIBS=$ac_check_lib_save_LIBS |
| 19145 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19146 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5 |
| 19147 | echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; } |
| 19148 | if test $ac_cv_lib_z_inflateCopy = yes; then |
Neal Norwitz | 6e73aaa | 2006-06-12 03:33:09 +0000 | [diff] [blame] | 19149 | |
| 19150 | cat >>confdefs.h <<\_ACEOF |
| 19151 | #define HAVE_ZLIB_COPY 1 |
| 19152 | _ACEOF |
| 19153 | |
| 19154 | fi |
| 19155 | |
| 19156 | |
Ronald Oussoren | f875264 | 2006-07-06 10:13:35 +0000 | [diff] [blame] | 19157 | case $ac_sys_system/$ac_sys_release in |
| 19158 | Darwin/*) |
| 19159 | CFLAGS="${_CUR_CFLAGS}" |
| 19160 | LDFLAGS="${_CUR_LDFLAGS}" |
| 19161 | ;; |
| 19162 | esac |
| 19163 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19164 | { echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 19165 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19166 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19167 | /* confdefs.h. */ |
| 19168 | _ACEOF |
| 19169 | cat confdefs.h >>conftest.$ac_ext |
| 19170 | cat >>conftest.$ac_ext <<_ACEOF |
| 19171 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19172 | |
| 19173 | #include "confdefs.h" |
| 19174 | #include <netdb.h> |
| 19175 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19176 | int |
| 19177 | main () |
| 19178 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19179 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19180 | ; |
| 19181 | return 0; |
| 19182 | } |
| 19183 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19184 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19185 | if { (ac_try="$ac_link" |
| 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 | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19191 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19192 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19194 | rm -f conftest.er1 |
| 19195 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19197 | (exit $ac_status); } && { |
| 19198 | test -z "$ac_c_werror_flag" || |
| 19199 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19200 | } && test -s conftest$ac_exeext && |
| 19201 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19202 | |
| 19203 | cat >>confdefs.h <<\_ACEOF |
| 19204 | #define HAVE_HSTRERROR 1 |
| 19205 | _ACEOF |
| 19206 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19207 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19208 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19209 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19210 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19212 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19213 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19214 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19215 | |
| 19216 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19217 | |
| 19218 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19219 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19220 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19221 | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 19222 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19223 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19224 | /* confdefs.h. */ |
| 19225 | _ACEOF |
| 19226 | cat confdefs.h >>conftest.$ac_ext |
| 19227 | cat >>conftest.$ac_ext <<_ACEOF |
| 19228 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19229 | |
| 19230 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 19231 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19232 | #include <sys/socket.h> |
| 19233 | #include <netinet/in.h> |
| 19234 | #include <arpa/inet.h> |
| 19235 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19236 | int |
| 19237 | main () |
| 19238 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19239 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19240 | ; |
| 19241 | return 0; |
| 19242 | } |
| 19243 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 19244 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19245 | if { (ac_try="$ac_link" |
| 19246 | case "(($ac_try" in |
| 19247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19248 | *) ac_try_echo=$ac_try;; |
| 19249 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19251 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19252 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19254 | rm -f conftest.er1 |
| 19255 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19257 | (exit $ac_status); } && { |
| 19258 | test -z "$ac_c_werror_flag" || |
| 19259 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19260 | } && test -s conftest$ac_exeext && |
| 19261 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19262 | |
| 19263 | cat >>confdefs.h <<\_ACEOF |
| 19264 | #define HAVE_INET_ATON 1 |
| 19265 | _ACEOF |
| 19266 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19267 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19268 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19269 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19270 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19272 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19273 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19274 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19275 | |
| 19276 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19277 | |
| 19278 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19279 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19280 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19281 | { echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 19282 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19283 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19284 | /* confdefs.h. */ |
| 19285 | _ACEOF |
| 19286 | cat confdefs.h >>conftest.$ac_ext |
| 19287 | cat >>conftest.$ac_ext <<_ACEOF |
| 19288 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19289 | |
| 19290 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19291 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19292 | #include <sys/socket.h> |
| 19293 | #include <netinet/in.h> |
| 19294 | #include <arpa/inet.h> |
| 19295 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19296 | int |
| 19297 | main () |
| 19298 | { |
| 19299 | void* p = inet_pton |
| 19300 | ; |
| 19301 | return 0; |
| 19302 | } |
| 19303 | _ACEOF |
| 19304 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19305 | if { (ac_try="$ac_compile" |
| 19306 | case "(($ac_try" in |
| 19307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19308 | *) ac_try_echo=$ac_try;; |
| 19309 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19311 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19312 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19314 | rm -f conftest.er1 |
| 19315 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19317 | (exit $ac_status); } && { |
| 19318 | test -z "$ac_c_werror_flag" || |
| 19319 | test ! -s conftest.err |
| 19320 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19321 | |
| 19322 | cat >>confdefs.h <<\_ACEOF |
| 19323 | #define HAVE_INET_PTON 1 |
| 19324 | _ACEOF |
| 19325 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19326 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19327 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19328 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19329 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19331 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19332 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19333 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 19334 | |
| 19335 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19336 | |
| 19337 | 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] | 19338 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19339 | # 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] | 19340 | { echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 19341 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19342 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19343 | /* confdefs.h. */ |
| 19344 | _ACEOF |
| 19345 | cat confdefs.h >>conftest.$ac_ext |
| 19346 | cat >>conftest.$ac_ext <<_ACEOF |
| 19347 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19348 | |
| 19349 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 19350 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 19351 | #ifdef HAVE_GRP_H |
| 19352 | #include <grp.h> |
| 19353 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19354 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19355 | int |
| 19356 | main () |
| 19357 | { |
| 19358 | void* p = setgroups |
| 19359 | ; |
| 19360 | return 0; |
| 19361 | } |
| 19362 | _ACEOF |
| 19363 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19364 | if { (ac_try="$ac_compile" |
| 19365 | case "(($ac_try" in |
| 19366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19367 | *) ac_try_echo=$ac_try;; |
| 19368 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19370 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19371 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19373 | rm -f conftest.er1 |
| 19374 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19376 | (exit $ac_status); } && { |
| 19377 | test -z "$ac_c_werror_flag" || |
| 19378 | test ! -s conftest.err |
| 19379 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19380 | |
| 19381 | cat >>confdefs.h <<\_ACEOF |
| 19382 | #define HAVE_SETGROUPS 1 |
| 19383 | _ACEOF |
| 19384 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19385 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19386 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19387 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19388 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19390 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19391 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19392 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 19393 | |
| 19394 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19395 | |
| 19396 | 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] | 19397 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19398 | # check for openpty and forkpty |
| 19399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19400 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19401 | for ac_func in openpty |
| 19402 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19403 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19404 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19405 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19406 | 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] | 19407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19408 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19409 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19410 | /* confdefs.h. */ |
| 19411 | _ACEOF |
| 19412 | cat confdefs.h >>conftest.$ac_ext |
| 19413 | cat >>conftest.$ac_ext <<_ACEOF |
| 19414 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19415 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19416 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19417 | #define $ac_func innocuous_$ac_func |
| 19418 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19419 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19420 | which can conflict with char $ac_func (); below. |
| 19421 | 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] | 19422 | <limits.h> exists even on freestanding compilers. */ |
| 19423 | |
| 19424 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19425 | # include <limits.h> |
| 19426 | #else |
| 19427 | # include <assert.h> |
| 19428 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19429 | |
| 19430 | #undef $ac_func |
| 19431 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19432 | /* Override any GCC internal prototype to avoid an error. |
| 19433 | Use char because int might match the return type of a GCC |
| 19434 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19435 | #ifdef __cplusplus |
| 19436 | extern "C" |
| 19437 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19438 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19439 | /* The GNU C library defines this for functions which it implements |
| 19440 | to always fail with ENOSYS. Some functions are actually named |
| 19441 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19442 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19443 | choke me |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19444 | #endif |
| 19445 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19446 | int |
| 19447 | main () |
| 19448 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19449 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19450 | ; |
| 19451 | return 0; |
| 19452 | } |
| 19453 | _ACEOF |
| 19454 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19455 | if { (ac_try="$ac_link" |
| 19456 | case "(($ac_try" in |
| 19457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19458 | *) ac_try_echo=$ac_try;; |
| 19459 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19461 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19462 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19463 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19464 | rm -f conftest.er1 |
| 19465 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19467 | (exit $ac_status); } && { |
| 19468 | test -z "$ac_c_werror_flag" || |
| 19469 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19470 | } && test -s conftest$ac_exeext && |
| 19471 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19472 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19473 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19474 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19476 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19477 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19478 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19479 | |
| 19480 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19481 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19482 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19483 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19484 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19485 | echo "${ECHO_T}$ac_res" >&6; } |
| 19486 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19487 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19488 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19489 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19490 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 19491 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19492 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 19493 | 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] | 19494 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19496 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19497 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19498 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19499 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19500 | /* confdefs.h. */ |
| 19501 | _ACEOF |
| 19502 | cat confdefs.h >>conftest.$ac_ext |
| 19503 | cat >>conftest.$ac_ext <<_ACEOF |
| 19504 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19505 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19506 | /* Override any GCC internal prototype to avoid an error. |
| 19507 | Use char because int might match the return type of a GCC |
| 19508 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19509 | #ifdef __cplusplus |
| 19510 | extern "C" |
| 19511 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19512 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19513 | int |
| 19514 | main () |
| 19515 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19516 | return openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19517 | ; |
| 19518 | return 0; |
| 19519 | } |
| 19520 | _ACEOF |
| 19521 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19522 | if { (ac_try="$ac_link" |
| 19523 | case "(($ac_try" in |
| 19524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19525 | *) ac_try_echo=$ac_try;; |
| 19526 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19528 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19529 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19531 | rm -f conftest.er1 |
| 19532 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19534 | (exit $ac_status); } && { |
| 19535 | test -z "$ac_c_werror_flag" || |
| 19536 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19537 | } && test -s conftest$ac_exeext && |
| 19538 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19539 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19540 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19541 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19543 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19544 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19545 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19546 | |
| 19547 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19548 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19549 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19550 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19551 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 19552 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
| 19553 | if test $ac_cv_lib_util_openpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19554 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19555 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19556 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19557 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19558 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19559 | { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 19560 | 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] | 19561 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19563 | else |
| 19564 | ac_check_lib_save_LIBS=$LIBS |
| 19565 | LIBS="-lbsd $LIBS" |
| 19566 | cat >conftest.$ac_ext <<_ACEOF |
| 19567 | /* confdefs.h. */ |
| 19568 | _ACEOF |
| 19569 | cat confdefs.h >>conftest.$ac_ext |
| 19570 | cat >>conftest.$ac_ext <<_ACEOF |
| 19571 | /* end confdefs.h. */ |
| 19572 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19573 | /* Override any GCC internal prototype to avoid an error. |
| 19574 | Use char because int might match the return type of a GCC |
| 19575 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19576 | #ifdef __cplusplus |
| 19577 | extern "C" |
| 19578 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19579 | char openpty (); |
| 19580 | int |
| 19581 | main () |
| 19582 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19583 | return openpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19584 | ; |
| 19585 | return 0; |
| 19586 | } |
| 19587 | _ACEOF |
| 19588 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19589 | if { (ac_try="$ac_link" |
| 19590 | case "(($ac_try" in |
| 19591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19592 | *) ac_try_echo=$ac_try;; |
| 19593 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19595 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19596 | ac_status=$? |
| 19597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19598 | rm -f conftest.er1 |
| 19599 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19601 | (exit $ac_status); } && { |
| 19602 | test -z "$ac_c_werror_flag" || |
| 19603 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19604 | } && test -s conftest$ac_exeext && |
| 19605 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19606 | ac_cv_lib_bsd_openpty=yes |
| 19607 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19608 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19610 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19611 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19612 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19613 | |
| 19614 | 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] | 19615 | conftest$ac_exeext conftest.$ac_ext |
| 19616 | LIBS=$ac_check_lib_save_LIBS |
| 19617 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19618 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 19619 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; } |
| 19620 | if test $ac_cv_lib_bsd_openpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19621 | cat >>confdefs.h <<\_ACEOF |
| 19622 | #define HAVE_OPENPTY 1 |
| 19623 | _ACEOF |
| 19624 | LIBS="$LIBS -lbsd" |
| 19625 | fi |
| 19626 | |
| 19627 | |
| 19628 | fi |
| 19629 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19630 | |
| 19631 | fi |
| 19632 | done |
| 19633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19634 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19635 | for ac_func in forkpty |
| 19636 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19637 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19638 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19639 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19640 | 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] | 19641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19642 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19643 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19644 | /* confdefs.h. */ |
| 19645 | _ACEOF |
| 19646 | cat confdefs.h >>conftest.$ac_ext |
| 19647 | cat >>conftest.$ac_ext <<_ACEOF |
| 19648 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19649 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19650 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19651 | #define $ac_func innocuous_$ac_func |
| 19652 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19653 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19654 | which can conflict with char $ac_func (); below. |
| 19655 | 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] | 19656 | <limits.h> exists even on freestanding compilers. */ |
| 19657 | |
| 19658 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19659 | # include <limits.h> |
| 19660 | #else |
| 19661 | # include <assert.h> |
| 19662 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19663 | |
| 19664 | #undef $ac_func |
| 19665 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19666 | /* Override any GCC internal prototype to avoid an error. |
| 19667 | Use char because int might match the return type of a GCC |
| 19668 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19669 | #ifdef __cplusplus |
| 19670 | extern "C" |
| 19671 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19672 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19673 | /* The GNU C library defines this for functions which it implements |
| 19674 | to always fail with ENOSYS. Some functions are actually named |
| 19675 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19676 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19677 | choke me |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19678 | #endif |
| 19679 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19680 | int |
| 19681 | main () |
| 19682 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19683 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19684 | ; |
| 19685 | return 0; |
| 19686 | } |
| 19687 | _ACEOF |
| 19688 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19689 | if { (ac_try="$ac_link" |
| 19690 | case "(($ac_try" in |
| 19691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19692 | *) ac_try_echo=$ac_try;; |
| 19693 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19695 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19696 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19698 | rm -f conftest.er1 |
| 19699 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19701 | (exit $ac_status); } && { |
| 19702 | test -z "$ac_c_werror_flag" || |
| 19703 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19704 | } && test -s conftest$ac_exeext && |
| 19705 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19706 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19707 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19708 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19709 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19710 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19711 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19712 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19713 | |
| 19714 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19715 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19716 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19717 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19718 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19719 | echo "${ECHO_T}$ac_res" >&6; } |
| 19720 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19721 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19722 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19723 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19724 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19725 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19726 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 19727 | 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] | 19728 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19731 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19732 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19733 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19734 | /* confdefs.h. */ |
| 19735 | _ACEOF |
| 19736 | cat confdefs.h >>conftest.$ac_ext |
| 19737 | cat >>conftest.$ac_ext <<_ACEOF |
| 19738 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19739 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19740 | /* Override any GCC internal prototype to avoid an error. |
| 19741 | Use char because int might match the return type of a GCC |
| 19742 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19743 | #ifdef __cplusplus |
| 19744 | extern "C" |
| 19745 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19746 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19747 | int |
| 19748 | main () |
| 19749 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19750 | return forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19751 | ; |
| 19752 | return 0; |
| 19753 | } |
| 19754 | _ACEOF |
| 19755 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19756 | if { (ac_try="$ac_link" |
| 19757 | case "(($ac_try" in |
| 19758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19759 | *) ac_try_echo=$ac_try;; |
| 19760 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19762 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19763 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19765 | rm -f conftest.er1 |
| 19766 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19768 | (exit $ac_status); } && { |
| 19769 | test -z "$ac_c_werror_flag" || |
| 19770 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19771 | } && test -s conftest$ac_exeext && |
| 19772 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19773 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19774 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19775 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19777 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19778 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19779 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19780 | |
| 19781 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19782 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19783 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19784 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19785 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 19786 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
| 19787 | if test $ac_cv_lib_util_forkpty = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19788 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19789 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19790 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19791 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19792 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19793 | { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 19794 | 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] | 19795 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19797 | else |
| 19798 | ac_check_lib_save_LIBS=$LIBS |
| 19799 | LIBS="-lbsd $LIBS" |
| 19800 | cat >conftest.$ac_ext <<_ACEOF |
| 19801 | /* confdefs.h. */ |
| 19802 | _ACEOF |
| 19803 | cat confdefs.h >>conftest.$ac_ext |
| 19804 | cat >>conftest.$ac_ext <<_ACEOF |
| 19805 | /* end confdefs.h. */ |
| 19806 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19807 | /* Override any GCC internal prototype to avoid an error. |
| 19808 | Use char because int might match the return type of a GCC |
| 19809 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19810 | #ifdef __cplusplus |
| 19811 | extern "C" |
| 19812 | #endif |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19813 | char forkpty (); |
| 19814 | int |
| 19815 | main () |
| 19816 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19817 | return forkpty (); |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19818 | ; |
| 19819 | return 0; |
| 19820 | } |
| 19821 | _ACEOF |
| 19822 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19823 | if { (ac_try="$ac_link" |
| 19824 | case "(($ac_try" in |
| 19825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19826 | *) ac_try_echo=$ac_try;; |
| 19827 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19829 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19830 | ac_status=$? |
| 19831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19832 | rm -f conftest.er1 |
| 19833 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19835 | (exit $ac_status); } && { |
| 19836 | test -z "$ac_c_werror_flag" || |
| 19837 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19838 | } && test -s conftest$ac_exeext && |
| 19839 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19840 | ac_cv_lib_bsd_forkpty=yes |
| 19841 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19842 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19844 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19845 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19846 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19847 | |
| 19848 | 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] | 19849 | conftest$ac_exeext conftest.$ac_ext |
| 19850 | LIBS=$ac_check_lib_save_LIBS |
| 19851 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19852 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 19853 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; } |
| 19854 | if test $ac_cv_lib_bsd_forkpty = yes; then |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 19855 | cat >>confdefs.h <<\_ACEOF |
| 19856 | #define HAVE_FORKPTY 1 |
| 19857 | _ACEOF |
| 19858 | LIBS="$LIBS -lbsd" |
| 19859 | fi |
| 19860 | |
| 19861 | |
| 19862 | fi |
| 19863 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19864 | |
| 19865 | fi |
| 19866 | done |
| 19867 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19868 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19869 | # Stuff for expat. |
| 19870 | |
| 19871 | for ac_func in memmove |
| 19872 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19873 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19874 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19875 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19876 | 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] | 19877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19878 | else |
| 19879 | cat >conftest.$ac_ext <<_ACEOF |
| 19880 | /* confdefs.h. */ |
| 19881 | _ACEOF |
| 19882 | cat confdefs.h >>conftest.$ac_ext |
| 19883 | cat >>conftest.$ac_ext <<_ACEOF |
| 19884 | /* end confdefs.h. */ |
| 19885 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19886 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19887 | #define $ac_func innocuous_$ac_func |
| 19888 | |
| 19889 | /* System header to define __stub macros and hopefully few prototypes, |
| 19890 | which can conflict with char $ac_func (); below. |
| 19891 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19892 | <limits.h> exists even on freestanding compilers. */ |
| 19893 | |
| 19894 | #ifdef __STDC__ |
| 19895 | # include <limits.h> |
| 19896 | #else |
| 19897 | # include <assert.h> |
| 19898 | #endif |
| 19899 | |
| 19900 | #undef $ac_func |
| 19901 | |
| 19902 | /* Override any GCC internal prototype to avoid an error. |
| 19903 | Use char because int might match the return type of a GCC |
| 19904 | builtin and then its argument prototype would still apply. */ |
| 19905 | #ifdef __cplusplus |
| 19906 | extern "C" |
| 19907 | #endif |
| 19908 | char $ac_func (); |
| 19909 | /* The GNU C library defines this for functions which it implements |
| 19910 | to always fail with ENOSYS. Some functions are actually named |
| 19911 | something starting with __ and the normal name is an alias. */ |
| 19912 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19913 | choke me |
| 19914 | #endif |
| 19915 | |
| 19916 | int |
| 19917 | main () |
| 19918 | { |
| 19919 | return $ac_func (); |
| 19920 | ; |
| 19921 | return 0; |
| 19922 | } |
| 19923 | _ACEOF |
| 19924 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19925 | if { (ac_try="$ac_link" |
| 19926 | case "(($ac_try" in |
| 19927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19928 | *) ac_try_echo=$ac_try;; |
| 19929 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19931 | (eval "$ac_link") 2>conftest.er1 |
| 19932 | ac_status=$? |
| 19933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19934 | rm -f conftest.er1 |
| 19935 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19937 | (exit $ac_status); } && { |
| 19938 | test -z "$ac_c_werror_flag" || |
| 19939 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19940 | } && test -s conftest$ac_exeext && |
| 19941 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19942 | eval "$as_ac_var=yes" |
| 19943 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19944 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19946 | |
| 19947 | eval "$as_ac_var=no" |
| 19948 | fi |
| 19949 | |
| 19950 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19951 | conftest$ac_exeext conftest.$ac_ext |
| 19952 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19953 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19954 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19955 | echo "${ECHO_T}$ac_res" >&6; } |
| 19956 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19957 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19958 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 19959 | _ACEOF |
| 19960 | |
| 19961 | fi |
| 19962 | done |
| 19963 | |
| 19964 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19965 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19966 | |
| 19967 | |
| 19968 | |
| 19969 | |
| 19970 | |
| 19971 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 19972 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 19973 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 19974 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19975 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19976 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 19977 | 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] | 19978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19979 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19980 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19981 | /* confdefs.h. */ |
| 19982 | _ACEOF |
| 19983 | cat confdefs.h >>conftest.$ac_ext |
| 19984 | cat >>conftest.$ac_ext <<_ACEOF |
| 19985 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19986 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19987 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19988 | #define $ac_func innocuous_$ac_func |
| 19989 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 19990 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19991 | which can conflict with char $ac_func (); below. |
| 19992 | 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] | 19993 | <limits.h> exists even on freestanding compilers. */ |
| 19994 | |
| 19995 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19996 | # include <limits.h> |
| 19997 | #else |
| 19998 | # include <assert.h> |
| 19999 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20000 | |
| 20001 | #undef $ac_func |
| 20002 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20003 | /* Override any GCC internal prototype to avoid an error. |
| 20004 | Use char because int might match the return type of a GCC |
| 20005 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20006 | #ifdef __cplusplus |
| 20007 | extern "C" |
| 20008 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20009 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20010 | /* The GNU C library defines this for functions which it implements |
| 20011 | to always fail with ENOSYS. Some functions are actually named |
| 20012 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20013 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20014 | choke me |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 20015 | #endif |
| 20016 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20017 | int |
| 20018 | main () |
| 20019 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20020 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20021 | ; |
| 20022 | return 0; |
| 20023 | } |
| 20024 | _ACEOF |
| 20025 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20026 | if { (ac_try="$ac_link" |
| 20027 | case "(($ac_try" in |
| 20028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20029 | *) ac_try_echo=$ac_try;; |
| 20030 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20032 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20033 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20035 | rm -f conftest.er1 |
| 20036 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20038 | (exit $ac_status); } && { |
| 20039 | test -z "$ac_c_werror_flag" || |
| 20040 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20041 | } && test -s conftest$ac_exeext && |
| 20042 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20043 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20044 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20045 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20047 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20048 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20049 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20050 | |
| 20051 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20052 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20053 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20054 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20055 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20056 | echo "${ECHO_T}$ac_res" >&6; } |
| 20057 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20058 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20059 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20060 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20061 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20062 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20063 | done |
| 20064 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20066 | |
| 20067 | |
| 20068 | |
Brett Cannon | aa5778d | 2008-03-18 04:09:00 +0000 | [diff] [blame] | 20069 | for ac_func in dup2 getcwd strdup |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20070 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20071 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20072 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20073 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20074 | 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] | 20075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20077 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20078 | /* confdefs.h. */ |
| 20079 | _ACEOF |
| 20080 | cat confdefs.h >>conftest.$ac_ext |
| 20081 | cat >>conftest.$ac_ext <<_ACEOF |
| 20082 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20083 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20084 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20085 | #define $ac_func innocuous_$ac_func |
| 20086 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20087 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20088 | which can conflict with char $ac_func (); below. |
| 20089 | 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] | 20090 | <limits.h> exists even on freestanding compilers. */ |
| 20091 | |
| 20092 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20093 | # include <limits.h> |
| 20094 | #else |
| 20095 | # include <assert.h> |
| 20096 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20097 | |
| 20098 | #undef $ac_func |
| 20099 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20100 | /* Override any GCC internal prototype to avoid an error. |
| 20101 | Use char because int might match the return type of a GCC |
| 20102 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20103 | #ifdef __cplusplus |
| 20104 | extern "C" |
| 20105 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20106 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20107 | /* The GNU C library defines this for functions which it implements |
| 20108 | to always fail with ENOSYS. Some functions are actually named |
| 20109 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20110 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20111 | choke me |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20112 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20113 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20114 | int |
| 20115 | main () |
| 20116 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20117 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20118 | ; |
| 20119 | return 0; |
| 20120 | } |
| 20121 | _ACEOF |
| 20122 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20123 | if { (ac_try="$ac_link" |
| 20124 | case "(($ac_try" in |
| 20125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20126 | *) ac_try_echo=$ac_try;; |
| 20127 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20129 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20130 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20132 | rm -f conftest.er1 |
| 20133 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20135 | (exit $ac_status); } && { |
| 20136 | test -z "$ac_c_werror_flag" || |
| 20137 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20138 | } && test -s conftest$ac_exeext && |
| 20139 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20140 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20141 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20142 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20144 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20145 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20146 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20147 | |
| 20148 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20149 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20150 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20151 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20152 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20153 | echo "${ECHO_T}$ac_res" >&6; } |
| 20154 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20155 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20156 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20157 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20158 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20159 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20160 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20161 | *" $ac_func.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20162 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
| 20163 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20164 | esac |
| 20165 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20166 | fi |
| 20167 | done |
| 20168 | |
| 20169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20170 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20171 | for ac_func in getpgrp |
| 20172 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20173 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20174 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20175 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20176 | 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] | 20177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20178 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20179 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20180 | /* confdefs.h. */ |
| 20181 | _ACEOF |
| 20182 | cat confdefs.h >>conftest.$ac_ext |
| 20183 | cat >>conftest.$ac_ext <<_ACEOF |
| 20184 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20185 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20186 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20187 | #define $ac_func innocuous_$ac_func |
| 20188 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20189 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20190 | which can conflict with char $ac_func (); below. |
| 20191 | 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] | 20192 | <limits.h> exists even on freestanding compilers. */ |
| 20193 | |
| 20194 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20195 | # include <limits.h> |
| 20196 | #else |
| 20197 | # include <assert.h> |
| 20198 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20199 | |
| 20200 | #undef $ac_func |
| 20201 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20202 | /* Override any GCC internal prototype to avoid an error. |
| 20203 | Use char because int might match the return type of a GCC |
| 20204 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20205 | #ifdef __cplusplus |
| 20206 | extern "C" |
| 20207 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20208 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20209 | /* The GNU C library defines this for functions which it implements |
| 20210 | to always fail with ENOSYS. Some functions are actually named |
| 20211 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20212 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20213 | choke me |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 20214 | #endif |
| 20215 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20216 | int |
| 20217 | main () |
| 20218 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20219 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20220 | ; |
| 20221 | return 0; |
| 20222 | } |
| 20223 | _ACEOF |
| 20224 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20225 | if { (ac_try="$ac_link" |
| 20226 | case "(($ac_try" in |
| 20227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20228 | *) ac_try_echo=$ac_try;; |
| 20229 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20231 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20232 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20234 | rm -f conftest.er1 |
| 20235 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20237 | (exit $ac_status); } && { |
| 20238 | test -z "$ac_c_werror_flag" || |
| 20239 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20240 | } && test -s conftest$ac_exeext && |
| 20241 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20242 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20243 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20244 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20246 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20247 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20248 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20249 | |
| 20250 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20251 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20252 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20253 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20254 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20255 | echo "${ECHO_T}$ac_res" >&6; } |
| 20256 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20257 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20258 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20259 | _ACEOF |
| 20260 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20261 | /* confdefs.h. */ |
| 20262 | _ACEOF |
| 20263 | cat confdefs.h >>conftest.$ac_ext |
| 20264 | cat >>conftest.$ac_ext <<_ACEOF |
| 20265 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20266 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20267 | int |
| 20268 | main () |
| 20269 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20270 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20271 | ; |
| 20272 | return 0; |
| 20273 | } |
| 20274 | _ACEOF |
| 20275 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20276 | if { (ac_try="$ac_compile" |
| 20277 | case "(($ac_try" in |
| 20278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20279 | *) ac_try_echo=$ac_try;; |
| 20280 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20282 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20283 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20285 | rm -f conftest.er1 |
| 20286 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20288 | (exit $ac_status); } && { |
| 20289 | test -z "$ac_c_werror_flag" || |
| 20290 | test ! -s conftest.err |
| 20291 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20292 | |
| 20293 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20294 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20295 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20297 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20298 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20299 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20301 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20302 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20303 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20304 | |
| 20305 | 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] | 20306 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20307 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20308 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20309 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20310 | |
| 20311 | for ac_func in setpgrp |
| 20312 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20313 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20314 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20315 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20316 | 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] | 20317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20318 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20319 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20320 | /* confdefs.h. */ |
| 20321 | _ACEOF |
| 20322 | cat confdefs.h >>conftest.$ac_ext |
| 20323 | cat >>conftest.$ac_ext <<_ACEOF |
| 20324 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20325 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20326 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20327 | #define $ac_func innocuous_$ac_func |
| 20328 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20329 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20330 | which can conflict with char $ac_func (); below. |
| 20331 | 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] | 20332 | <limits.h> exists even on freestanding compilers. */ |
| 20333 | |
| 20334 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20335 | # include <limits.h> |
| 20336 | #else |
| 20337 | # include <assert.h> |
| 20338 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20339 | |
| 20340 | #undef $ac_func |
| 20341 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20342 | /* Override any GCC internal prototype to avoid an error. |
| 20343 | Use char because int might match the return type of a GCC |
| 20344 | builtin and then its argument prototype would still apply. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20345 | #ifdef __cplusplus |
| 20346 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20347 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20348 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20349 | /* The GNU C library defines this for functions which it implements |
| 20350 | to always fail with ENOSYS. Some functions are actually named |
| 20351 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20352 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20353 | choke me |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20354 | #endif |
| 20355 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20356 | int |
| 20357 | main () |
| 20358 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20359 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20360 | ; |
| 20361 | return 0; |
| 20362 | } |
| 20363 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20364 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20365 | if { (ac_try="$ac_link" |
| 20366 | case "(($ac_try" in |
| 20367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20368 | *) ac_try_echo=$ac_try;; |
| 20369 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20371 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20372 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20374 | rm -f conftest.er1 |
| 20375 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20377 | (exit $ac_status); } && { |
| 20378 | test -z "$ac_c_werror_flag" || |
| 20379 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20380 | } && test -s conftest$ac_exeext && |
| 20381 | $as_test_x conftest$ac_exeext; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20382 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20383 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20384 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20386 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20387 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20388 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20389 | |
| 20390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20391 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20392 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20393 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20394 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20395 | echo "${ECHO_T}$ac_res" >&6; } |
| 20396 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20397 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20398 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20399 | _ACEOF |
| 20400 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20401 | /* confdefs.h. */ |
| 20402 | _ACEOF |
| 20403 | cat confdefs.h >>conftest.$ac_ext |
| 20404 | cat >>conftest.$ac_ext <<_ACEOF |
| 20405 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20406 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20407 | int |
| 20408 | main () |
| 20409 | { |
| 20410 | setpgrp(0,0); |
| 20411 | ; |
| 20412 | return 0; |
| 20413 | } |
| 20414 | _ACEOF |
| 20415 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20416 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +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 |
| 20431 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20432 | |
| 20433 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20434 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20435 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20436 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20437 | |
| 20438 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20439 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20441 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20442 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20443 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20444 | |
| 20445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 20446 | |
| 20447 | fi |
| 20448 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 20449 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20450 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20451 | for ac_func in gettimeofday |
| 20452 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20453 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20454 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20455 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20456 | 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] | 20457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20458 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20459 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20460 | /* confdefs.h. */ |
| 20461 | _ACEOF |
| 20462 | cat confdefs.h >>conftest.$ac_ext |
| 20463 | cat >>conftest.$ac_ext <<_ACEOF |
| 20464 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20465 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20466 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20467 | #define $ac_func innocuous_$ac_func |
| 20468 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20469 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20470 | which can conflict with char $ac_func (); below. |
| 20471 | 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] | 20472 | <limits.h> exists even on freestanding compilers. */ |
| 20473 | |
| 20474 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20475 | # include <limits.h> |
| 20476 | #else |
| 20477 | # include <assert.h> |
| 20478 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20479 | |
| 20480 | #undef $ac_func |
| 20481 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20482 | /* Override any GCC internal prototype to avoid an error. |
| 20483 | Use char because int might match the return type of a GCC |
| 20484 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20485 | #ifdef __cplusplus |
| 20486 | extern "C" |
| 20487 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20488 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20489 | /* The GNU C library defines this for functions which it implements |
| 20490 | to always fail with ENOSYS. Some functions are actually named |
| 20491 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20492 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20493 | choke me |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20494 | #endif |
| 20495 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20496 | int |
| 20497 | main () |
| 20498 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20499 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20500 | ; |
| 20501 | return 0; |
| 20502 | } |
| 20503 | _ACEOF |
| 20504 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20505 | if { (ac_try="$ac_link" |
| 20506 | case "(($ac_try" in |
| 20507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20508 | *) ac_try_echo=$ac_try;; |
| 20509 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20511 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20512 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20514 | rm -f conftest.er1 |
| 20515 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20517 | (exit $ac_status); } && { |
| 20518 | test -z "$ac_c_werror_flag" || |
| 20519 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20520 | } && test -s conftest$ac_exeext && |
| 20521 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20522 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20523 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20524 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20526 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20527 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20528 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20529 | |
| 20530 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20531 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20532 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20533 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20534 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20535 | echo "${ECHO_T}$ac_res" >&6; } |
| 20536 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20537 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20538 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20539 | _ACEOF |
| 20540 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20541 | /* confdefs.h. */ |
| 20542 | _ACEOF |
| 20543 | cat confdefs.h >>conftest.$ac_ext |
| 20544 | cat >>conftest.$ac_ext <<_ACEOF |
| 20545 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20546 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20547 | int |
| 20548 | main () |
| 20549 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20550 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20551 | ; |
| 20552 | return 0; |
| 20553 | } |
| 20554 | _ACEOF |
| 20555 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20556 | if { (ac_try="$ac_compile" |
| 20557 | case "(($ac_try" in |
| 20558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20559 | *) ac_try_echo=$ac_try;; |
| 20560 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20562 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20563 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20565 | rm -f conftest.er1 |
| 20566 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20568 | (exit $ac_status); } && { |
| 20569 | test -z "$ac_c_werror_flag" || |
| 20570 | test ! -s conftest.err |
| 20571 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20572 | : |
| 20573 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20574 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20576 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20577 | |
| 20578 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20579 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20580 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20581 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20582 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20583 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20584 | |
| 20585 | 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] | 20586 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20587 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 20588 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20589 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20590 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20591 | { echo "$as_me:$LINENO: checking for major" >&5 |
| 20592 | echo $ECHO_N "checking for major... $ECHO_C" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20593 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20594 | /* confdefs.h. */ |
| 20595 | _ACEOF |
| 20596 | cat confdefs.h >>conftest.$ac_ext |
| 20597 | cat >>conftest.$ac_ext <<_ACEOF |
| 20598 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20599 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 20600 | #if defined(MAJOR_IN_MKDEV) |
| 20601 | #include <sys/mkdev.h> |
| 20602 | #elif defined(MAJOR_IN_SYSMACROS) |
| 20603 | #include <sys/sysmacros.h> |
| 20604 | #else |
| 20605 | #include <sys/types.h> |
| 20606 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20607 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20608 | int |
| 20609 | main () |
| 20610 | { |
| 20611 | |
| 20612 | makedev(major(0),minor(0)); |
| 20613 | |
| 20614 | ; |
| 20615 | return 0; |
| 20616 | } |
| 20617 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 20618 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20619 | if { (ac_try="$ac_link" |
| 20620 | case "(($ac_try" in |
| 20621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20622 | *) ac_try_echo=$ac_try;; |
| 20623 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20625 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20626 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20628 | rm -f conftest.er1 |
| 20629 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20631 | (exit $ac_status); } && { |
| 20632 | test -z "$ac_c_werror_flag" || |
| 20633 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20634 | } && test -s conftest$ac_exeext && |
| 20635 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20636 | |
| 20637 | |
| 20638 | cat >>confdefs.h <<\_ACEOF |
| 20639 | #define HAVE_DEVICE_MACROS 1 |
| 20640 | _ACEOF |
| 20641 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20642 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20643 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20644 | |
| 20645 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20646 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20648 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20649 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20650 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20651 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 20652 | |
| 20653 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20654 | |
| 20655 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20656 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20657 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20658 | # 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] | 20659 | # for [no]getaddrinfo in netdb.h. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20660 | { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 20661 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20662 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20663 | /* confdefs.h. */ |
| 20664 | _ACEOF |
| 20665 | cat confdefs.h >>conftest.$ac_ext |
| 20666 | cat >>conftest.$ac_ext <<_ACEOF |
| 20667 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20668 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 20669 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20670 | #include <sys/socket.h> |
| 20671 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 20672 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20674 | int |
| 20675 | main () |
| 20676 | { |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20677 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20678 | ; |
| 20679 | return 0; |
| 20680 | } |
| 20681 | _ACEOF |
| 20682 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20683 | if { (ac_try="$ac_link" |
| 20684 | case "(($ac_try" in |
| 20685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20686 | *) ac_try_echo=$ac_try;; |
| 20687 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20689 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20690 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20692 | rm -f conftest.er1 |
| 20693 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20695 | (exit $ac_status); } && { |
| 20696 | test -z "$ac_c_werror_flag" || |
| 20697 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20698 | } && test -s conftest$ac_exeext && |
| 20699 | $as_test_x conftest$ac_exeext; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20700 | have_getaddrinfo=yes |
| 20701 | else |
| 20702 | echo "$as_me: failed program was:" >&5 |
| 20703 | sed 's/^/| /' conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20704 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20705 | have_getaddrinfo=no |
| 20706 | fi |
| 20707 | |
| 20708 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20709 | conftest$ac_exeext conftest.$ac_ext |
| 20710 | { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5 |
| 20711 | echo "${ECHO_T}$have_getaddrinfo" >&6; } |
| 20712 | if test $have_getaddrinfo = yes |
| 20713 | then |
| 20714 | { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20715 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20716 | if test "${ac_cv_buggy_getaddrinfo+set}" = set; then |
| 20717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20718 | else |
| 20719 | if test "$cross_compiling" = yes; then |
| 20720 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20721 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20722 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20723 | /* confdefs.h. */ |
| 20724 | _ACEOF |
| 20725 | cat confdefs.h >>conftest.$ac_ext |
| 20726 | cat >>conftest.$ac_ext <<_ACEOF |
| 20727 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20728 | |
| 20729 | #include <sys/types.h> |
| 20730 | #include <netdb.h> |
| 20731 | #include <string.h> |
| 20732 | #include <sys/socket.h> |
| 20733 | #include <netinet/in.h> |
| 20734 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20735 | int main() |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20736 | { |
| 20737 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 20738 | struct addrinfo hints, *ai, *aitop; |
| 20739 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 20740 | |
| 20741 | for (passive = 0; passive <= 1; passive++) { |
| 20742 | memset(&hints, 0, sizeof(hints)); |
| 20743 | hints.ai_family = AF_UNSPEC; |
| 20744 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 20745 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 20746 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20747 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 20748 | (void)gai_strerror(gaierr); |
| 20749 | goto bad; |
| 20750 | } |
| 20751 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 20752 | if (ai->ai_addr == NULL || |
| 20753 | ai->ai_addrlen == 0 || |
| 20754 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 20755 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 20756 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 20757 | goto bad; |
| 20758 | } |
| 20759 | switch (ai->ai_family) { |
| 20760 | case AF_INET: |
| 20761 | if (strcmp(strport, "54321") != 0) { |
| 20762 | goto bad; |
| 20763 | } |
| 20764 | if (passive) { |
| 20765 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 20766 | goto bad; |
| 20767 | } |
| 20768 | } else { |
| 20769 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 20770 | goto bad; |
| 20771 | } |
| 20772 | } |
| 20773 | inet4++; |
| 20774 | break; |
| 20775 | case AF_INET6: |
| 20776 | if (strcmp(strport, "54321") != 0) { |
| 20777 | goto bad; |
| 20778 | } |
| 20779 | if (passive) { |
| 20780 | if (strcmp(straddr, "::") != 0) { |
| 20781 | goto bad; |
| 20782 | } |
| 20783 | } else { |
| 20784 | if (strcmp(straddr, "::1") != 0) { |
| 20785 | goto bad; |
| 20786 | } |
| 20787 | } |
| 20788 | inet6++; |
| 20789 | break; |
| 20790 | case AF_UNSPEC: |
| 20791 | goto bad; |
| 20792 | break; |
| 20793 | default: |
| 20794 | /* another family support? */ |
| 20795 | break; |
| 20796 | } |
| 20797 | } |
| 20798 | } |
| 20799 | |
| 20800 | if (!(inet4 == 0 || inet4 == 2)) |
| 20801 | goto bad; |
| 20802 | if (!(inet6 == 0 || inet6 == 2)) |
| 20803 | goto bad; |
| 20804 | |
| 20805 | if (aitop) |
| 20806 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20807 | return 0; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20808 | |
| 20809 | bad: |
| 20810 | if (aitop) |
| 20811 | freeaddrinfo(aitop); |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20812 | return 1; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20813 | } |
| 20814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20815 | _ACEOF |
| 20816 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20817 | if { (ac_try="$ac_link" |
| 20818 | case "(($ac_try" in |
| 20819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20820 | *) ac_try_echo=$ac_try;; |
| 20821 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20823 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20824 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20826 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20827 | { (case "(($ac_try" in |
| 20828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20829 | *) ac_try_echo=$ac_try;; |
| 20830 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20832 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20833 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20835 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20836 | ac_cv_buggy_getaddrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20837 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20838 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20839 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20842 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20843 | ac_cv_buggy_getaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20844 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20845 | 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] | 20846 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20847 | |
| 20848 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20849 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20850 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20851 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20852 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 20853 | if test $have_getaddrinfo = no -o $ac_cv_buggy_getaddrinfo = yes |
| 20854 | then |
| 20855 | if test $ipv6 = yes |
| 20856 | then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20857 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 20858 | echo ' or you can specify "--disable-ipv6"'. |
| 20859 | exit 1 |
| 20860 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20861 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20862 | |
| 20863 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20864 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20865 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 20866 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20867 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20868 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 20869 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20870 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20871 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20872 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20873 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20874 | 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] | 20875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20876 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20877 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20878 | /* confdefs.h. */ |
| 20879 | _ACEOF |
| 20880 | cat confdefs.h >>conftest.$ac_ext |
| 20881 | cat >>conftest.$ac_ext <<_ACEOF |
| 20882 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20883 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20884 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20885 | #define $ac_func innocuous_$ac_func |
| 20886 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20887 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20888 | which can conflict with char $ac_func (); below. |
| 20889 | 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] | 20890 | <limits.h> exists even on freestanding compilers. */ |
| 20891 | |
| 20892 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20893 | # include <limits.h> |
| 20894 | #else |
| 20895 | # include <assert.h> |
| 20896 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 20897 | |
| 20898 | #undef $ac_func |
| 20899 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20900 | /* Override any GCC internal prototype to avoid an error. |
| 20901 | Use char because int might match the return type of a GCC |
| 20902 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20903 | #ifdef __cplusplus |
| 20904 | extern "C" |
| 20905 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20906 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20907 | /* The GNU C library defines this for functions which it implements |
| 20908 | to always fail with ENOSYS. Some functions are actually named |
| 20909 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20910 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20911 | choke me |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20912 | #endif |
| 20913 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20914 | int |
| 20915 | main () |
| 20916 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20917 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20918 | ; |
| 20919 | return 0; |
| 20920 | } |
| 20921 | _ACEOF |
| 20922 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20923 | if { (ac_try="$ac_link" |
| 20924 | case "(($ac_try" in |
| 20925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20926 | *) ac_try_echo=$ac_try;; |
| 20927 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20929 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20930 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20932 | rm -f conftest.er1 |
| 20933 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20935 | (exit $ac_status); } && { |
| 20936 | test -z "$ac_c_werror_flag" || |
| 20937 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20938 | } && test -s conftest$ac_exeext && |
| 20939 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20940 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20941 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20942 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20944 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20945 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20946 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20947 | |
| 20948 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20949 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20950 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20951 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20952 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20953 | echo "${ECHO_T}$ac_res" >&6; } |
| 20954 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20955 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20956 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20957 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20958 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 20959 | fi |
| 20960 | done |
| 20961 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20962 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20963 | # checks for structures |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20964 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 20965 | 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] | 20966 | if test "${ac_cv_header_time+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20968 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20969 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20970 | /* confdefs.h. */ |
| 20971 | _ACEOF |
| 20972 | cat confdefs.h >>conftest.$ac_ext |
| 20973 | cat >>conftest.$ac_ext <<_ACEOF |
| 20974 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20975 | #include <sys/types.h> |
| 20976 | #include <sys/time.h> |
| 20977 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20979 | int |
| 20980 | main () |
| 20981 | { |
| 20982 | if ((struct tm *) 0) |
| 20983 | return 0; |
| 20984 | ; |
| 20985 | return 0; |
| 20986 | } |
| 20987 | _ACEOF |
| 20988 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20989 | if { (ac_try="$ac_compile" |
| 20990 | case "(($ac_try" in |
| 20991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20992 | *) ac_try_echo=$ac_try;; |
| 20993 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 20994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 20995 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20996 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20998 | rm -f conftest.er1 |
| 20999 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21001 | (exit $ac_status); } && { |
| 21002 | test -z "$ac_c_werror_flag" || |
| 21003 | test ! -s conftest.err |
| 21004 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21005 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21006 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21007 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21009 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21010 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21011 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21012 | |
| 21013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21014 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21015 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 21016 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21017 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21018 | |
| 21019 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21020 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21021 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21022 | |
| 21023 | fi |
| 21024 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21025 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 21026 | 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] | 21027 | if test "${ac_cv_struct_tm+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21029 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21030 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21031 | /* confdefs.h. */ |
| 21032 | _ACEOF |
| 21033 | cat confdefs.h >>conftest.$ac_ext |
| 21034 | cat >>conftest.$ac_ext <<_ACEOF |
| 21035 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21036 | #include <sys/types.h> |
| 21037 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21039 | int |
| 21040 | main () |
| 21041 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21042 | struct tm tm; |
| 21043 | int *p = &tm.tm_sec; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21044 | return !p; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21045 | ; |
| 21046 | return 0; |
| 21047 | } |
| 21048 | _ACEOF |
| 21049 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21050 | if { (ac_try="$ac_compile" |
| 21051 | case "(($ac_try" in |
| 21052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21053 | *) ac_try_echo=$ac_try;; |
| 21054 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21056 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21057 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21059 | rm -f conftest.er1 |
| 21060 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21062 | (exit $ac_status); } && { |
| 21063 | test -z "$ac_c_werror_flag" || |
| 21064 | test ! -s conftest.err |
| 21065 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21066 | ac_cv_struct_tm=time.h |
| 21067 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21068 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21070 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21071 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21072 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21073 | |
| 21074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21075 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21076 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 21077 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21078 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21079 | |
| 21080 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21081 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21082 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21083 | |
| 21084 | fi |
| 21085 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21086 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 21087 | 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] | 21088 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21091 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21092 | /* confdefs.h. */ |
| 21093 | _ACEOF |
| 21094 | cat confdefs.h >>conftest.$ac_ext |
| 21095 | cat >>conftest.$ac_ext <<_ACEOF |
| 21096 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21097 | #include <sys/types.h> |
| 21098 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21099 | |
| 21100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21101 | int |
| 21102 | main () |
| 21103 | { |
| 21104 | static struct tm ac_aggr; |
| 21105 | if (ac_aggr.tm_zone) |
| 21106 | return 0; |
| 21107 | ; |
| 21108 | return 0; |
| 21109 | } |
| 21110 | _ACEOF |
| 21111 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21112 | if { (ac_try="$ac_compile" |
| 21113 | case "(($ac_try" in |
| 21114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21115 | *) ac_try_echo=$ac_try;; |
| 21116 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21118 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21119 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21121 | rm -f conftest.er1 |
| 21122 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21124 | (exit $ac_status); } && { |
| 21125 | test -z "$ac_c_werror_flag" || |
| 21126 | test ! -s conftest.err |
| 21127 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21128 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21129 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21130 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21132 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21133 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21134 | /* confdefs.h. */ |
| 21135 | _ACEOF |
| 21136 | cat confdefs.h >>conftest.$ac_ext |
| 21137 | cat >>conftest.$ac_ext <<_ACEOF |
| 21138 | /* end confdefs.h. */ |
| 21139 | #include <sys/types.h> |
| 21140 | #include <$ac_cv_struct_tm> |
| 21141 | |
| 21142 | |
| 21143 | int |
| 21144 | main () |
| 21145 | { |
| 21146 | static struct tm ac_aggr; |
| 21147 | if (sizeof ac_aggr.tm_zone) |
| 21148 | return 0; |
| 21149 | ; |
| 21150 | return 0; |
| 21151 | } |
| 21152 | _ACEOF |
| 21153 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21154 | if { (ac_try="$ac_compile" |
| 21155 | case "(($ac_try" in |
| 21156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21157 | *) ac_try_echo=$ac_try;; |
| 21158 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21160 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21161 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21163 | rm -f conftest.er1 |
| 21164 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21166 | (exit $ac_status); } && { |
| 21167 | test -z "$ac_c_werror_flag" || |
| 21168 | test ! -s conftest.err |
| 21169 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21170 | ac_cv_member_struct_tm_tm_zone=yes |
| 21171 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21172 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21174 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21175 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21176 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21177 | |
| 21178 | 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] | 21179 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21180 | |
| 21181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21182 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21183 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 21184 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 21185 | 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] | 21186 | |
| 21187 | cat >>confdefs.h <<_ACEOF |
| 21188 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21189 | _ACEOF |
| 21190 | |
| 21191 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21192 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 21193 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21194 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21195 | |
| 21196 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21197 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21198 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21199 | |
| 21200 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21201 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 21202 | 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] | 21203 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21205 | else |
| 21206 | cat >conftest.$ac_ext <<_ACEOF |
| 21207 | /* confdefs.h. */ |
| 21208 | _ACEOF |
| 21209 | cat confdefs.h >>conftest.$ac_ext |
| 21210 | cat >>conftest.$ac_ext <<_ACEOF |
| 21211 | /* end confdefs.h. */ |
| 21212 | #include <time.h> |
| 21213 | |
| 21214 | int |
| 21215 | main () |
| 21216 | { |
| 21217 | #ifndef tzname |
| 21218 | (void) tzname; |
| 21219 | #endif |
| 21220 | |
| 21221 | ; |
| 21222 | return 0; |
| 21223 | } |
| 21224 | _ACEOF |
| 21225 | rm -f conftest.$ac_objext |
| 21226 | if { (ac_try="$ac_compile" |
| 21227 | case "(($ac_try" in |
| 21228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21229 | *) ac_try_echo=$ac_try;; |
| 21230 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21232 | (eval "$ac_compile") 2>conftest.er1 |
| 21233 | ac_status=$? |
| 21234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21235 | rm -f conftest.er1 |
| 21236 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21238 | (exit $ac_status); } && { |
| 21239 | test -z "$ac_c_werror_flag" || |
| 21240 | test ! -s conftest.err |
| 21241 | } && test -s conftest.$ac_objext; then |
| 21242 | ac_cv_have_decl_tzname=yes |
| 21243 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21244 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21246 | |
| 21247 | ac_cv_have_decl_tzname=no |
| 21248 | fi |
| 21249 | |
| 21250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21251 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21252 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 21253 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 21254 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21255 | |
| 21256 | cat >>confdefs.h <<_ACEOF |
| 21257 | #define HAVE_DECL_TZNAME 1 |
| 21258 | _ACEOF |
| 21259 | |
| 21260 | |
| 21261 | else |
| 21262 | cat >>confdefs.h <<_ACEOF |
| 21263 | #define HAVE_DECL_TZNAME 0 |
| 21264 | _ACEOF |
| 21265 | |
| 21266 | |
| 21267 | fi |
| 21268 | |
| 21269 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21270 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 21271 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21272 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21274 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21275 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21276 | /* confdefs.h. */ |
| 21277 | _ACEOF |
| 21278 | cat confdefs.h >>conftest.$ac_ext |
| 21279 | cat >>conftest.$ac_ext <<_ACEOF |
| 21280 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21281 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21282 | #if !HAVE_DECL_TZNAME |
| 21283 | extern char *tzname[]; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21284 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21286 | int |
| 21287 | main () |
| 21288 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21289 | return tzname[0][0]; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21290 | ; |
| 21291 | return 0; |
| 21292 | } |
| 21293 | _ACEOF |
| 21294 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21295 | if { (ac_try="$ac_link" |
| 21296 | case "(($ac_try" in |
| 21297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21298 | *) ac_try_echo=$ac_try;; |
| 21299 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21301 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21302 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21304 | rm -f conftest.er1 |
| 21305 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21307 | (exit $ac_status); } && { |
| 21308 | test -z "$ac_c_werror_flag" || |
| 21309 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21310 | } && test -s conftest$ac_exeext && |
| 21311 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21312 | ac_cv_var_tzname=yes |
| 21313 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21314 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21316 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21317 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21318 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21319 | |
| 21320 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21321 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21322 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21323 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 21324 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21325 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21326 | |
| 21327 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21328 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21329 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21330 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21331 | fi |
| 21332 | fi |
| 21333 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21334 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 21335 | 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] | 21336 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21338 | else |
| 21339 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21340 | /* confdefs.h. */ |
| 21341 | _ACEOF |
| 21342 | cat confdefs.h >>conftest.$ac_ext |
| 21343 | cat >>conftest.$ac_ext <<_ACEOF |
| 21344 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21345 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21346 | int |
| 21347 | main () |
| 21348 | { |
| 21349 | static struct stat ac_aggr; |
| 21350 | if (ac_aggr.st_rdev) |
| 21351 | return 0; |
| 21352 | ; |
| 21353 | return 0; |
| 21354 | } |
| 21355 | _ACEOF |
| 21356 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21357 | if { (ac_try="$ac_compile" |
| 21358 | case "(($ac_try" in |
| 21359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21360 | *) ac_try_echo=$ac_try;; |
| 21361 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21363 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21364 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21366 | rm -f conftest.er1 |
| 21367 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21369 | (exit $ac_status); } && { |
| 21370 | test -z "$ac_c_werror_flag" || |
| 21371 | test ! -s conftest.err |
| 21372 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21373 | ac_cv_member_struct_stat_st_rdev=yes |
| 21374 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21375 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21377 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21378 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21379 | /* confdefs.h. */ |
| 21380 | _ACEOF |
| 21381 | cat confdefs.h >>conftest.$ac_ext |
| 21382 | cat >>conftest.$ac_ext <<_ACEOF |
| 21383 | /* end confdefs.h. */ |
| 21384 | $ac_includes_default |
| 21385 | int |
| 21386 | main () |
| 21387 | { |
| 21388 | static struct stat ac_aggr; |
| 21389 | if (sizeof ac_aggr.st_rdev) |
| 21390 | return 0; |
| 21391 | ; |
| 21392 | return 0; |
| 21393 | } |
| 21394 | _ACEOF |
| 21395 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21396 | if { (ac_try="$ac_compile" |
| 21397 | case "(($ac_try" in |
| 21398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21399 | *) ac_try_echo=$ac_try;; |
| 21400 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21402 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21403 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21405 | rm -f conftest.er1 |
| 21406 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21408 | (exit $ac_status); } && { |
| 21409 | test -z "$ac_c_werror_flag" || |
| 21410 | test ! -s conftest.err |
| 21411 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21412 | ac_cv_member_struct_stat_st_rdev=yes |
| 21413 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21414 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21416 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21417 | ac_cv_member_struct_stat_st_rdev=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21418 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21419 | |
| 21420 | 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] | 21421 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21422 | |
| 21423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21424 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21425 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 21426 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
| 21427 | 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] | 21428 | |
| 21429 | cat >>confdefs.h <<_ACEOF |
| 21430 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 21431 | _ACEOF |
| 21432 | |
| 21433 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21434 | fi |
| 21435 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21436 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 21437 | 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] | 21438 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21440 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21441 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21442 | /* confdefs.h. */ |
| 21443 | _ACEOF |
| 21444 | cat confdefs.h >>conftest.$ac_ext |
| 21445 | cat >>conftest.$ac_ext <<_ACEOF |
| 21446 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21447 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21448 | int |
| 21449 | main () |
| 21450 | { |
| 21451 | static struct stat ac_aggr; |
| 21452 | if (ac_aggr.st_blksize) |
| 21453 | return 0; |
| 21454 | ; |
| 21455 | return 0; |
| 21456 | } |
| 21457 | _ACEOF |
| 21458 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21459 | if { (ac_try="$ac_compile" |
| 21460 | case "(($ac_try" in |
| 21461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21462 | *) ac_try_echo=$ac_try;; |
| 21463 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21465 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21466 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21468 | rm -f conftest.er1 |
| 21469 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21471 | (exit $ac_status); } && { |
| 21472 | test -z "$ac_c_werror_flag" || |
| 21473 | test ! -s conftest.err |
| 21474 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21475 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21476 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21477 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21479 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21480 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21481 | /* confdefs.h. */ |
| 21482 | _ACEOF |
| 21483 | cat confdefs.h >>conftest.$ac_ext |
| 21484 | cat >>conftest.$ac_ext <<_ACEOF |
| 21485 | /* end confdefs.h. */ |
| 21486 | $ac_includes_default |
| 21487 | int |
| 21488 | main () |
| 21489 | { |
| 21490 | static struct stat ac_aggr; |
| 21491 | if (sizeof ac_aggr.st_blksize) |
| 21492 | return 0; |
| 21493 | ; |
| 21494 | return 0; |
| 21495 | } |
| 21496 | _ACEOF |
| 21497 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21498 | if { (ac_try="$ac_compile" |
| 21499 | case "(($ac_try" in |
| 21500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21501 | *) ac_try_echo=$ac_try;; |
| 21502 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21504 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21505 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21507 | rm -f conftest.er1 |
| 21508 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21510 | (exit $ac_status); } && { |
| 21511 | test -z "$ac_c_werror_flag" || |
| 21512 | test ! -s conftest.err |
| 21513 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21514 | ac_cv_member_struct_stat_st_blksize=yes |
| 21515 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21516 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21518 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21519 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21520 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21521 | |
| 21522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21523 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21524 | |
| 21525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21526 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21527 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 21528 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } |
| 21529 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21530 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21531 | cat >>confdefs.h <<_ACEOF |
| 21532 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 21533 | _ACEOF |
| 21534 | |
| 21535 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21536 | fi |
| 21537 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21538 | { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 21539 | 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] | 21540 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21542 | else |
| 21543 | cat >conftest.$ac_ext <<_ACEOF |
| 21544 | /* confdefs.h. */ |
| 21545 | _ACEOF |
| 21546 | cat confdefs.h >>conftest.$ac_ext |
| 21547 | cat >>conftest.$ac_ext <<_ACEOF |
| 21548 | /* end confdefs.h. */ |
| 21549 | $ac_includes_default |
| 21550 | int |
| 21551 | main () |
| 21552 | { |
| 21553 | static struct stat ac_aggr; |
| 21554 | if (ac_aggr.st_flags) |
| 21555 | return 0; |
| 21556 | ; |
| 21557 | return 0; |
| 21558 | } |
| 21559 | _ACEOF |
| 21560 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21561 | if { (ac_try="$ac_compile" |
| 21562 | case "(($ac_try" in |
| 21563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21564 | *) ac_try_echo=$ac_try;; |
| 21565 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21567 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21568 | ac_status=$? |
| 21569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21570 | rm -f conftest.er1 |
| 21571 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21573 | (exit $ac_status); } && { |
| 21574 | test -z "$ac_c_werror_flag" || |
| 21575 | test ! -s conftest.err |
| 21576 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21577 | ac_cv_member_struct_stat_st_flags=yes |
| 21578 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21579 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21581 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21582 | cat >conftest.$ac_ext <<_ACEOF |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21583 | /* confdefs.h. */ |
| 21584 | _ACEOF |
| 21585 | cat confdefs.h >>conftest.$ac_ext |
| 21586 | cat >>conftest.$ac_ext <<_ACEOF |
| 21587 | /* end confdefs.h. */ |
| 21588 | $ac_includes_default |
| 21589 | int |
| 21590 | main () |
| 21591 | { |
| 21592 | static struct stat ac_aggr; |
| 21593 | if (sizeof ac_aggr.st_flags) |
| 21594 | return 0; |
| 21595 | ; |
| 21596 | return 0; |
| 21597 | } |
| 21598 | _ACEOF |
| 21599 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21600 | if { (ac_try="$ac_compile" |
| 21601 | case "(($ac_try" in |
| 21602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21603 | *) ac_try_echo=$ac_try;; |
| 21604 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21606 | (eval "$ac_compile") 2>conftest.er1 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21607 | ac_status=$? |
| 21608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21609 | rm -f conftest.er1 |
| 21610 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21612 | (exit $ac_status); } && { |
| 21613 | test -z "$ac_c_werror_flag" || |
| 21614 | test ! -s conftest.err |
| 21615 | } && test -s conftest.$ac_objext; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21616 | ac_cv_member_struct_stat_st_flags=yes |
| 21617 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21618 | echo "$as_me: failed program was:" >&5 |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21620 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21621 | ac_cv_member_struct_stat_st_flags=no |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21622 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21623 | |
| 21624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21625 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21626 | |
| 21627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21628 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21629 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 21630 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } |
| 21631 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 21632 | |
| 21633 | cat >>confdefs.h <<_ACEOF |
| 21634 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 21635 | _ACEOF |
| 21636 | |
| 21637 | |
| 21638 | fi |
| 21639 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21640 | { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 21641 | 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] | 21642 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21644 | else |
| 21645 | cat >conftest.$ac_ext <<_ACEOF |
| 21646 | /* confdefs.h. */ |
| 21647 | _ACEOF |
| 21648 | cat confdefs.h >>conftest.$ac_ext |
| 21649 | cat >>conftest.$ac_ext <<_ACEOF |
| 21650 | /* end confdefs.h. */ |
| 21651 | $ac_includes_default |
| 21652 | int |
| 21653 | main () |
| 21654 | { |
| 21655 | static struct stat ac_aggr; |
| 21656 | if (ac_aggr.st_gen) |
| 21657 | return 0; |
| 21658 | ; |
| 21659 | return 0; |
| 21660 | } |
| 21661 | _ACEOF |
| 21662 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21663 | if { (ac_try="$ac_compile" |
| 21664 | case "(($ac_try" in |
| 21665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21666 | *) ac_try_echo=$ac_try;; |
| 21667 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21669 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21670 | ac_status=$? |
| 21671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21672 | rm -f conftest.er1 |
| 21673 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21675 | (exit $ac_status); } && { |
| 21676 | test -z "$ac_c_werror_flag" || |
| 21677 | test ! -s conftest.err |
| 21678 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21679 | ac_cv_member_struct_stat_st_gen=yes |
| 21680 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21681 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21683 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21684 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21685 | /* confdefs.h. */ |
| 21686 | _ACEOF |
| 21687 | cat confdefs.h >>conftest.$ac_ext |
| 21688 | cat >>conftest.$ac_ext <<_ACEOF |
| 21689 | /* end confdefs.h. */ |
| 21690 | $ac_includes_default |
| 21691 | int |
| 21692 | main () |
| 21693 | { |
| 21694 | static struct stat ac_aggr; |
| 21695 | if (sizeof ac_aggr.st_gen) |
| 21696 | return 0; |
| 21697 | ; |
| 21698 | return 0; |
| 21699 | } |
| 21700 | _ACEOF |
| 21701 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21702 | if { (ac_try="$ac_compile" |
| 21703 | case "(($ac_try" in |
| 21704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21705 | *) ac_try_echo=$ac_try;; |
| 21706 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21708 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21709 | ac_status=$? |
| 21710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21711 | rm -f conftest.er1 |
| 21712 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21714 | (exit $ac_status); } && { |
| 21715 | test -z "$ac_c_werror_flag" || |
| 21716 | test ! -s conftest.err |
| 21717 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21718 | ac_cv_member_struct_stat_st_gen=yes |
| 21719 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21720 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21722 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21723 | ac_cv_member_struct_stat_st_gen=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21724 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21725 | |
| 21726 | 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] | 21727 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21728 | |
| 21729 | 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] | 21730 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21731 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 21732 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } |
| 21733 | 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] | 21734 | |
| 21735 | cat >>confdefs.h <<_ACEOF |
| 21736 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 21737 | _ACEOF |
| 21738 | |
| 21739 | |
| 21740 | fi |
| 21741 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21742 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 21743 | 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] | 21744 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21746 | else |
| 21747 | cat >conftest.$ac_ext <<_ACEOF |
| 21748 | /* confdefs.h. */ |
| 21749 | _ACEOF |
| 21750 | cat confdefs.h >>conftest.$ac_ext |
| 21751 | cat >>conftest.$ac_ext <<_ACEOF |
| 21752 | /* end confdefs.h. */ |
| 21753 | $ac_includes_default |
| 21754 | int |
| 21755 | main () |
| 21756 | { |
| 21757 | static struct stat ac_aggr; |
| 21758 | if (ac_aggr.st_birthtime) |
| 21759 | return 0; |
| 21760 | ; |
| 21761 | return 0; |
| 21762 | } |
| 21763 | _ACEOF |
| 21764 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21765 | if { (ac_try="$ac_compile" |
| 21766 | case "(($ac_try" in |
| 21767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21768 | *) ac_try_echo=$ac_try;; |
| 21769 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21771 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21772 | ac_status=$? |
| 21773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21774 | rm -f conftest.er1 |
| 21775 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21777 | (exit $ac_status); } && { |
| 21778 | test -z "$ac_c_werror_flag" || |
| 21779 | test ! -s conftest.err |
| 21780 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21781 | ac_cv_member_struct_stat_st_birthtime=yes |
| 21782 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21783 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21785 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21786 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21787 | /* confdefs.h. */ |
| 21788 | _ACEOF |
| 21789 | cat confdefs.h >>conftest.$ac_ext |
| 21790 | cat >>conftest.$ac_ext <<_ACEOF |
| 21791 | /* end confdefs.h. */ |
| 21792 | $ac_includes_default |
| 21793 | int |
| 21794 | main () |
| 21795 | { |
| 21796 | static struct stat ac_aggr; |
| 21797 | if (sizeof ac_aggr.st_birthtime) |
| 21798 | return 0; |
| 21799 | ; |
| 21800 | return 0; |
| 21801 | } |
| 21802 | _ACEOF |
| 21803 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21804 | if { (ac_try="$ac_compile" |
| 21805 | case "(($ac_try" in |
| 21806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21807 | *) ac_try_echo=$ac_try;; |
| 21808 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21810 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21811 | ac_status=$? |
| 21812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21813 | rm -f conftest.er1 |
| 21814 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21816 | (exit $ac_status); } && { |
| 21817 | test -z "$ac_c_werror_flag" || |
| 21818 | test ! -s conftest.err |
| 21819 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21820 | ac_cv_member_struct_stat_st_birthtime=yes |
| 21821 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21822 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21824 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21825 | ac_cv_member_struct_stat_st_birthtime=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21826 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21827 | |
| 21828 | 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] | 21829 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21830 | |
| 21831 | 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] | 21832 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21833 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 21834 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
| 21835 | 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] | 21836 | |
| 21837 | cat >>confdefs.h <<_ACEOF |
| 21838 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 21839 | _ACEOF |
| 21840 | |
| 21841 | |
| 21842 | fi |
| 21843 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21844 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 21845 | 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] | 21846 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21848 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21849 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21850 | /* confdefs.h. */ |
| 21851 | _ACEOF |
| 21852 | cat confdefs.h >>conftest.$ac_ext |
| 21853 | cat >>conftest.$ac_ext <<_ACEOF |
| 21854 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21855 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21856 | int |
| 21857 | main () |
| 21858 | { |
| 21859 | static struct stat ac_aggr; |
| 21860 | if (ac_aggr.st_blocks) |
| 21861 | return 0; |
| 21862 | ; |
| 21863 | return 0; |
| 21864 | } |
| 21865 | _ACEOF |
| 21866 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21867 | if { (ac_try="$ac_compile" |
| 21868 | case "(($ac_try" in |
| 21869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21870 | *) ac_try_echo=$ac_try;; |
| 21871 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21873 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21874 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21876 | rm -f conftest.er1 |
| 21877 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21879 | (exit $ac_status); } && { |
| 21880 | test -z "$ac_c_werror_flag" || |
| 21881 | test ! -s conftest.err |
| 21882 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21883 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21884 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21885 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21887 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21888 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21889 | /* confdefs.h. */ |
| 21890 | _ACEOF |
| 21891 | cat confdefs.h >>conftest.$ac_ext |
| 21892 | cat >>conftest.$ac_ext <<_ACEOF |
| 21893 | /* end confdefs.h. */ |
| 21894 | $ac_includes_default |
| 21895 | int |
| 21896 | main () |
| 21897 | { |
| 21898 | static struct stat ac_aggr; |
| 21899 | if (sizeof ac_aggr.st_blocks) |
| 21900 | return 0; |
| 21901 | ; |
| 21902 | return 0; |
| 21903 | } |
| 21904 | _ACEOF |
| 21905 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21906 | if { (ac_try="$ac_compile" |
| 21907 | case "(($ac_try" in |
| 21908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21909 | *) ac_try_echo=$ac_try;; |
| 21910 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21912 | (eval "$ac_compile") 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21913 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21915 | rm -f conftest.er1 |
| 21916 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21918 | (exit $ac_status); } && { |
| 21919 | test -z "$ac_c_werror_flag" || |
| 21920 | test ! -s conftest.err |
| 21921 | } && test -s conftest.$ac_objext; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21922 | ac_cv_member_struct_stat_st_blocks=yes |
| 21923 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21924 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21926 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21927 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21928 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21929 | |
| 21930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21931 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21932 | |
| 21933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21934 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21935 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 21936 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
| 21937 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21939 | cat >>confdefs.h <<_ACEOF |
| 21940 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 21941 | _ACEOF |
| 21942 | |
| 21943 | |
| 21944 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21945 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21946 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21947 | |
| 21948 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21949 | case " $LIBOBJS " in |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21950 | *" fileblocks.$ac_objext "* ) ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21951 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
| 21952 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21953 | esac |
| 21954 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 21955 | fi |
| 21956 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21958 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21959 | { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 21960 | 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] | 21961 | if test "${ac_cv_header_time_altzone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21963 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21964 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21965 | /* confdefs.h. */ |
| 21966 | _ACEOF |
| 21967 | cat confdefs.h >>conftest.$ac_ext |
| 21968 | cat >>conftest.$ac_ext <<_ACEOF |
| 21969 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21970 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21971 | int |
| 21972 | main () |
| 21973 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21974 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21975 | ; |
| 21976 | return 0; |
| 21977 | } |
| 21978 | _ACEOF |
| 21979 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21980 | if { (ac_try="$ac_compile" |
| 21981 | case "(($ac_try" in |
| 21982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21983 | *) ac_try_echo=$ac_try;; |
| 21984 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21986 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21987 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21989 | rm -f conftest.er1 |
| 21990 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 21992 | (exit $ac_status); } && { |
| 21993 | test -z "$ac_c_werror_flag" || |
| 21994 | test ! -s conftest.err |
| 21995 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21996 | ac_cv_header_time_altzone=yes |
| 21997 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 21998 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22000 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22001 | ac_cv_header_time_altzone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22002 | fi |
| 22003 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22005 | fi |
| 22006 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22007 | { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 22008 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22009 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22010 | |
| 22011 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22012 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22013 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22014 | |
| 22015 | fi |
| 22016 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22017 | was_it_defined=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22018 | { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 22019 | 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] | 22020 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22021 | /* confdefs.h. */ |
| 22022 | _ACEOF |
| 22023 | cat confdefs.h >>conftest.$ac_ext |
| 22024 | cat >>conftest.$ac_ext <<_ACEOF |
| 22025 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22026 | |
| 22027 | #include <sys/types.h> |
| 22028 | #include <sys/select.h> |
| 22029 | #include <sys/time.h> |
| 22030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22031 | int |
| 22032 | main () |
| 22033 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22034 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22035 | ; |
| 22036 | return 0; |
| 22037 | } |
| 22038 | _ACEOF |
| 22039 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22040 | if { (ac_try="$ac_compile" |
| 22041 | case "(($ac_try" in |
| 22042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22043 | *) ac_try_echo=$ac_try;; |
| 22044 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22046 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22047 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22049 | rm -f conftest.er1 |
| 22050 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22052 | (exit $ac_status); } && { |
| 22053 | test -z "$ac_c_werror_flag" || |
| 22054 | test ! -s conftest.err |
| 22055 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22056 | |
| 22057 | |
| 22058 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22059 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22060 | _ACEOF |
| 22061 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22062 | was_it_defined=yes |
| 22063 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22064 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22065 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22067 | |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 22068 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22069 | fi |
| 22070 | |
| 22071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22072 | { echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 22073 | echo "${ECHO_T}$was_it_defined" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22074 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22075 | { echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 22076 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22077 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22080 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22081 | /* confdefs.h. */ |
| 22082 | _ACEOF |
| 22083 | cat confdefs.h >>conftest.$ac_ext |
| 22084 | cat >>conftest.$ac_ext <<_ACEOF |
| 22085 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22086 | |
| 22087 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22088 | int |
| 22089 | main () |
| 22090 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22091 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22092 | ; |
| 22093 | return 0; |
| 22094 | } |
| 22095 | _ACEOF |
| 22096 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22097 | if { (ac_try="$ac_compile" |
| 22098 | case "(($ac_try" in |
| 22099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22100 | *) ac_try_echo=$ac_try;; |
| 22101 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22103 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22104 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22106 | rm -f conftest.er1 |
| 22107 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22109 | (exit $ac_status); } && { |
| 22110 | test -z "$ac_c_werror_flag" || |
| 22111 | test ! -s conftest.err |
| 22112 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22113 | ac_cv_struct_addrinfo=yes |
| 22114 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22115 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22117 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22118 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22119 | fi |
| 22120 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22122 | fi |
| 22123 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22124 | { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 22125 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22126 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22127 | |
| 22128 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22129 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22130 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22131 | |
| 22132 | fi |
| 22133 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22134 | { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 22135 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22136 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22138 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22139 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22140 | /* confdefs.h. */ |
| 22141 | _ACEOF |
| 22142 | cat confdefs.h >>conftest.$ac_ext |
| 22143 | cat >>conftest.$ac_ext <<_ACEOF |
| 22144 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22145 | |
| 22146 | # include <sys/types.h> |
| 22147 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22148 | int |
| 22149 | main () |
| 22150 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22151 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22152 | ; |
| 22153 | return 0; |
| 22154 | } |
| 22155 | _ACEOF |
| 22156 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22157 | if { (ac_try="$ac_compile" |
| 22158 | case "(($ac_try" in |
| 22159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22160 | *) ac_try_echo=$ac_try;; |
| 22161 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22163 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22164 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22166 | rm -f conftest.er1 |
| 22167 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22169 | (exit $ac_status); } && { |
| 22170 | test -z "$ac_c_werror_flag" || |
| 22171 | test ! -s conftest.err |
| 22172 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22173 | ac_cv_struct_sockaddr_storage=yes |
| 22174 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22177 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22178 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22179 | fi |
| 22180 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22182 | fi |
| 22183 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22184 | { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 22185 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22186 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22187 | |
| 22188 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22189 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22190 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22191 | |
| 22192 | fi |
| 22193 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22194 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22195 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22196 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22197 | { echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 22198 | 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] | 22199 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22201 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22202 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22203 | /* confdefs.h. */ |
| 22204 | _ACEOF |
| 22205 | cat confdefs.h >>conftest.$ac_ext |
| 22206 | cat >>conftest.$ac_ext <<_ACEOF |
| 22207 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22208 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22209 | int |
| 22210 | main () |
| 22211 | { |
| 22212 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 22213 | test_array [0] = 0 |
| 22214 | |
| 22215 | ; |
| 22216 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22217 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22218 | _ACEOF |
| 22219 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22220 | if { (ac_try="$ac_compile" |
| 22221 | case "(($ac_try" in |
| 22222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22223 | *) ac_try_echo=$ac_try;; |
| 22224 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22226 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22227 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22229 | rm -f conftest.er1 |
| 22230 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22232 | (exit $ac_status); } && { |
| 22233 | test -z "$ac_c_werror_flag" || |
| 22234 | test ! -s conftest.err |
| 22235 | } && test -s conftest.$ac_objext; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22236 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22237 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22238 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22240 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22241 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22242 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22243 | |
| 22244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22245 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22246 | { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 22247 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22248 | 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] | 22249 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22250 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22251 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22252 | |
| 22253 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22254 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22255 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 22256 | 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] | 22257 | if test "${ac_cv_c_const+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22259 | else |
| 22260 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22261 | /* confdefs.h. */ |
| 22262 | _ACEOF |
| 22263 | cat confdefs.h >>conftest.$ac_ext |
| 22264 | cat >>conftest.$ac_ext <<_ACEOF |
| 22265 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22267 | int |
| 22268 | main () |
| 22269 | { |
| 22270 | /* FIXME: Include the comments suggested by Paul. */ |
| 22271 | #ifndef __cplusplus |
| 22272 | /* Ultrix mips cc rejects this. */ |
| 22273 | typedef int charset[2]; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22274 | const charset cs; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22275 | /* SunOS 4.1.1 cc rejects this. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22276 | char const *const *pcpcc; |
| 22277 | char **ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22278 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 22279 | struct point {int x, y;}; |
| 22280 | static struct point const zero = {0,0}; |
| 22281 | /* AIX XL C 1.02.0.0 rejects this. |
| 22282 | It does not let you subtract one const X* pointer from another in |
| 22283 | an arm of an if-expression whose if-part is not a constant |
| 22284 | expression */ |
| 22285 | const char *g = "string"; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22286 | pcpcc = &g + (g ? g-g : 0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22287 | /* HPUX 7.0 cc rejects these. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22288 | ++pcpcc; |
| 22289 | ppc = (char**) pcpcc; |
| 22290 | pcpcc = (char const *const *) ppc; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22291 | { /* SCO 3.2v4 cc rejects this. */ |
| 22292 | char *t; |
| 22293 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22295 | *t++ = 0; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22296 | if (s) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22297 | } |
| 22298 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 22299 | int x[] = {25, 17}; |
| 22300 | const int *foo = &x[0]; |
| 22301 | ++foo; |
| 22302 | } |
| 22303 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 22304 | typedef const int *iptr; |
| 22305 | iptr p = 0; |
| 22306 | ++p; |
| 22307 | } |
| 22308 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 22309 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 22310 | struct s { int j; const int *ap[3]; }; |
| 22311 | struct s *b; b->j = 5; |
| 22312 | } |
| 22313 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 22314 | const int foo = 10; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22315 | if (!foo) return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22316 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22317 | return !cs[0] && !zero.x; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22318 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22319 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22320 | ; |
| 22321 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22322 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22323 | _ACEOF |
| 22324 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22325 | if { (ac_try="$ac_compile" |
| 22326 | case "(($ac_try" in |
| 22327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22328 | *) ac_try_echo=$ac_try;; |
| 22329 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22331 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22332 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22334 | rm -f conftest.er1 |
| 22335 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22337 | (exit $ac_status); } && { |
| 22338 | test -z "$ac_c_werror_flag" || |
| 22339 | test ! -s conftest.err |
| 22340 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22341 | ac_cv_c_const=yes |
| 22342 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22343 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22345 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22346 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22347 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22348 | |
| 22349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22350 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22351 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 22352 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22353 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22354 | |
| 22355 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22356 | #define const |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22357 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22358 | |
| 22359 | fi |
| 22360 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22361 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22362 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22363 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 22364 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22365 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22366 | /* confdefs.h. */ |
| 22367 | _ACEOF |
| 22368 | cat confdefs.h >>conftest.$ac_ext |
| 22369 | cat >>conftest.$ac_ext <<_ACEOF |
| 22370 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22371 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22372 | int |
| 22373 | main () |
| 22374 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22375 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22376 | ; |
| 22377 | return 0; |
| 22378 | } |
| 22379 | _ACEOF |
| 22380 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22381 | if { (ac_try="$ac_compile" |
| 22382 | case "(($ac_try" in |
| 22383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22384 | *) ac_try_echo=$ac_try;; |
| 22385 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22387 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22388 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22390 | rm -f conftest.er1 |
| 22391 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22393 | (exit $ac_status); } && { |
| 22394 | test -z "$ac_c_werror_flag" || |
| 22395 | test ! -s conftest.err |
| 22396 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22397 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22398 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22399 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22402 | |
| 22403 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22404 | #define volatile |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22405 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22406 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22407 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22408 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22409 | |
| 22410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22411 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22412 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22413 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22414 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22415 | { echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 22416 | 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] | 22417 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22418 | /* confdefs.h. */ |
| 22419 | _ACEOF |
| 22420 | cat confdefs.h >>conftest.$ac_ext |
| 22421 | cat >>conftest.$ac_ext <<_ACEOF |
| 22422 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22424 | int |
| 22425 | main () |
| 22426 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22427 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22428 | ; |
| 22429 | return 0; |
| 22430 | } |
| 22431 | _ACEOF |
| 22432 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22433 | if { (ac_try="$ac_compile" |
| 22434 | case "(($ac_try" in |
| 22435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22436 | *) ac_try_echo=$ac_try;; |
| 22437 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22439 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22440 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22442 | rm -f conftest.er1 |
| 22443 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22445 | (exit $ac_status); } && { |
| 22446 | test -z "$ac_c_werror_flag" || |
| 22447 | test ! -s conftest.err |
| 22448 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22449 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 22450 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22451 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22454 | |
| 22455 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22456 | #define signed |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22457 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22458 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22459 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22460 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22461 | |
| 22462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22463 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22464 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22465 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22466 | have_prototypes=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22467 | { echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 22468 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22469 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22470 | /* confdefs.h. */ |
| 22471 | _ACEOF |
| 22472 | cat confdefs.h >>conftest.$ac_ext |
| 22473 | cat >>conftest.$ac_ext <<_ACEOF |
| 22474 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22475 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22476 | int |
| 22477 | main () |
| 22478 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22479 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22480 | ; |
| 22481 | return 0; |
| 22482 | } |
| 22483 | _ACEOF |
| 22484 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22485 | if { (ac_try="$ac_compile" |
| 22486 | case "(($ac_try" in |
| 22487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22488 | *) ac_try_echo=$ac_try;; |
| 22489 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22491 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22492 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22494 | rm -f conftest.er1 |
| 22495 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22497 | (exit $ac_status); } && { |
| 22498 | test -z "$ac_c_werror_flag" || |
| 22499 | test ! -s conftest.err |
| 22500 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22501 | |
| 22502 | |
| 22503 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22504 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22505 | _ACEOF |
| 22506 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22507 | have_prototypes=yes |
| 22508 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22509 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22510 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22512 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22513 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22514 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22515 | |
| 22516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22517 | { echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 22518 | echo "${ECHO_T}$have_prototypes" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22519 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22520 | works=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22521 | { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 22522 | 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] | 22523 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22524 | /* confdefs.h. */ |
| 22525 | _ACEOF |
| 22526 | cat confdefs.h >>conftest.$ac_ext |
| 22527 | cat >>conftest.$ac_ext <<_ACEOF |
| 22528 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22529 | |
| 22530 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22531 | int foo(int x, ...) { |
| 22532 | va_list va; |
| 22533 | va_start(va, x); |
| 22534 | va_arg(va, int); |
| 22535 | va_arg(va, char *); |
| 22536 | va_arg(va, double); |
| 22537 | return 0; |
| 22538 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22540 | int |
| 22541 | main () |
| 22542 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 22543 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22544 | ; |
| 22545 | return 0; |
| 22546 | } |
| 22547 | _ACEOF |
| 22548 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22549 | if { (ac_try="$ac_compile" |
| 22550 | case "(($ac_try" in |
| 22551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22552 | *) ac_try_echo=$ac_try;; |
| 22553 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22555 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22556 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22558 | rm -f conftest.er1 |
| 22559 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22561 | (exit $ac_status); } && { |
| 22562 | test -z "$ac_c_werror_flag" || |
| 22563 | test ! -s conftest.err |
| 22564 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22565 | |
| 22566 | |
| 22567 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22568 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22569 | _ACEOF |
| 22570 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22571 | works=yes |
| 22572 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 22573 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22574 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22576 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22577 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22578 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22579 | |
| 22580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22581 | { echo "$as_me:$LINENO: result: $works" >&5 |
| 22582 | echo "${ECHO_T}$works" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22583 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22584 | # check for socketpair |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22585 | { echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 22586 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22587 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22588 | /* confdefs.h. */ |
| 22589 | _ACEOF |
| 22590 | cat confdefs.h >>conftest.$ac_ext |
| 22591 | cat >>conftest.$ac_ext <<_ACEOF |
| 22592 | /* end confdefs.h. */ |
| 22593 | |
| 22594 | #include <sys/types.h> |
| 22595 | #include <sys/socket.h> |
| 22596 | |
| 22597 | int |
| 22598 | main () |
| 22599 | { |
| 22600 | void *x=socketpair |
| 22601 | ; |
| 22602 | return 0; |
| 22603 | } |
| 22604 | _ACEOF |
| 22605 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22606 | if { (ac_try="$ac_compile" |
| 22607 | case "(($ac_try" in |
| 22608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22609 | *) ac_try_echo=$ac_try;; |
| 22610 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22612 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22613 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22614 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22615 | rm -f conftest.er1 |
| 22616 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22618 | (exit $ac_status); } && { |
| 22619 | test -z "$ac_c_werror_flag" || |
| 22620 | test ! -s conftest.err |
| 22621 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22622 | |
| 22623 | cat >>confdefs.h <<\_ACEOF |
| 22624 | #define HAVE_SOCKETPAIR 1 |
| 22625 | _ACEOF |
| 22626 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22627 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22628 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22629 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22630 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22632 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22633 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22634 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 22635 | |
| 22636 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22637 | |
| 22638 | 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] | 22639 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22640 | # check if sockaddr has sa_len member |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22641 | { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 22642 | 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] | 22643 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22644 | /* confdefs.h. */ |
| 22645 | _ACEOF |
| 22646 | cat confdefs.h >>conftest.$ac_ext |
| 22647 | cat >>conftest.$ac_ext <<_ACEOF |
| 22648 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22649 | #include <sys/types.h> |
| 22650 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22651 | int |
| 22652 | main () |
| 22653 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22654 | struct sockaddr x; |
| 22655 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22656 | ; |
| 22657 | return 0; |
| 22658 | } |
| 22659 | _ACEOF |
| 22660 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22661 | if { (ac_try="$ac_compile" |
| 22662 | case "(($ac_try" in |
| 22663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22664 | *) ac_try_echo=$ac_try;; |
| 22665 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22667 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22668 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22670 | rm -f conftest.er1 |
| 22671 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22673 | (exit $ac_status); } && { |
| 22674 | test -z "$ac_c_werror_flag" || |
| 22675 | test ! -s conftest.err |
| 22676 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22677 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22678 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22679 | |
| 22680 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22681 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22682 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22683 | |
| 22684 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22685 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22687 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22688 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22689 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 22690 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22691 | |
| 22692 | 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] | 22693 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22694 | va_list_is_array=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22695 | { echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 22696 | 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] | 22697 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22698 | /* confdefs.h. */ |
| 22699 | _ACEOF |
| 22700 | cat confdefs.h >>conftest.$ac_ext |
| 22701 | cat >>conftest.$ac_ext <<_ACEOF |
| 22702 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22703 | |
| 22704 | #ifdef HAVE_STDARG_PROTOTYPES |
| 22705 | #include <stdarg.h> |
| 22706 | #else |
| 22707 | #include <varargs.h> |
| 22708 | #endif |
| 22709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22710 | int |
| 22711 | main () |
| 22712 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22713 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22714 | ; |
| 22715 | return 0; |
| 22716 | } |
| 22717 | _ACEOF |
| 22718 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22719 | if { (ac_try="$ac_compile" |
| 22720 | case "(($ac_try" in |
| 22721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22722 | *) ac_try_echo=$ac_try;; |
| 22723 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22725 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22726 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22728 | rm -f conftest.er1 |
| 22729 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22731 | (exit $ac_status); } && { |
| 22732 | test -z "$ac_c_werror_flag" || |
| 22733 | test ! -s conftest.err |
| 22734 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22735 | : |
| 22736 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22737 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22740 | |
| 22741 | |
| 22742 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22743 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22744 | _ACEOF |
| 22745 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 22746 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 22747 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22748 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22749 | |
| 22750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22751 | { echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 22752 | echo "${ECHO_T}$va_list_is_array" >&6; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22753 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22754 | # 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] | 22755 | |
| 22756 | |
| 22757 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22758 | { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 22759 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22760 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22763 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22764 | /* confdefs.h. */ |
| 22765 | _ACEOF |
| 22766 | cat confdefs.h >>conftest.$ac_ext |
| 22767 | cat >>conftest.$ac_ext <<_ACEOF |
| 22768 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22769 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 22770 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22771 | #define gethostbyname_r innocuous_gethostbyname_r |
| 22772 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22773 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22774 | which can conflict with char gethostbyname_r (); below. |
| 22775 | 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] | 22776 | <limits.h> exists even on freestanding compilers. */ |
| 22777 | |
| 22778 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22779 | # include <limits.h> |
| 22780 | #else |
| 22781 | # include <assert.h> |
| 22782 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 22783 | |
| 22784 | #undef gethostbyname_r |
| 22785 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22786 | /* Override any GCC internal prototype to avoid an error. |
| 22787 | Use char because int might match the return type of a GCC |
| 22788 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22789 | #ifdef __cplusplus |
| 22790 | extern "C" |
| 22791 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22792 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22793 | /* The GNU C library defines this for functions which it implements |
| 22794 | to always fail with ENOSYS. Some functions are actually named |
| 22795 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22796 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22797 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22798 | #endif |
| 22799 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22800 | int |
| 22801 | main () |
| 22802 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22803 | return gethostbyname_r (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22804 | ; |
| 22805 | return 0; |
| 22806 | } |
| 22807 | _ACEOF |
| 22808 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22809 | if { (ac_try="$ac_link" |
| 22810 | case "(($ac_try" in |
| 22811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22812 | *) ac_try_echo=$ac_try;; |
| 22813 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22815 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22816 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22818 | rm -f conftest.er1 |
| 22819 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22821 | (exit $ac_status); } && { |
| 22822 | test -z "$ac_c_werror_flag" || |
| 22823 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22824 | } && test -s conftest$ac_exeext && |
| 22825 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22826 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22827 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22828 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22830 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22831 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22832 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 22833 | |
| 22834 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22835 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22836 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22837 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 22838 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } |
| 22839 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22840 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22841 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22842 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22843 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22844 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22845 | { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 22846 | 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] | 22847 | OLD_CFLAGS=$CFLAGS |
| 22848 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22849 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22850 | /* confdefs.h. */ |
| 22851 | _ACEOF |
| 22852 | cat confdefs.h >>conftest.$ac_ext |
| 22853 | cat >>conftest.$ac_ext <<_ACEOF |
| 22854 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22855 | |
| 22856 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22858 | int |
| 22859 | main () |
| 22860 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22861 | |
| 22862 | char *name; |
| 22863 | struct hostent *he, *res; |
| 22864 | char buffer[2048]; |
| 22865 | int buflen = 2048; |
| 22866 | int h_errnop; |
| 22867 | |
| 22868 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22869 | |
| 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 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22893 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22894 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22896 | |
| 22897 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22898 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22899 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22900 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22901 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22902 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22903 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22904 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22905 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22908 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22909 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22910 | echo "${ECHO_T}no" >&6; } |
| 22911 | { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 22912 | 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] | 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 | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22919 | |
| 22920 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22921 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22922 | int |
| 22923 | main () |
| 22924 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22925 | |
| 22926 | char *name; |
| 22927 | struct hostent *he; |
| 22928 | char buffer[2048]; |
| 22929 | int buflen = 2048; |
| 22930 | int h_errnop; |
| 22931 | |
| 22932 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22933 | |
| 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 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22957 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22958 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 22959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22960 | |
| 22961 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22962 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22963 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22964 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22965 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 22966 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22967 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22968 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22969 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22971 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22972 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 22973 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22974 | echo "${ECHO_T}no" >&6; } |
| 22975 | { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 22976 | 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] | 22977 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +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. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22983 | |
| 22984 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22986 | int |
| 22987 | main () |
| 22988 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 22989 | |
| 22990 | char *name; |
| 22991 | struct hostent *he; |
| 22992 | struct hostent_data data; |
| 22993 | |
| 22994 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22995 | |
| 22996 | ; |
| 22997 | return 0; |
| 22998 | } |
| 22999 | _ACEOF |
| 23000 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23001 | if { (ac_try="$ac_compile" |
| 23002 | case "(($ac_try" in |
| 23003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23004 | *) ac_try_echo=$ac_try;; |
| 23005 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23007 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23008 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23010 | rm -f conftest.er1 |
| 23011 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23013 | (exit $ac_status); } && { |
| 23014 | test -z "$ac_c_werror_flag" || |
| 23015 | test ! -s conftest.err |
| 23016 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23017 | |
| 23018 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23019 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23020 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 23021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23022 | |
| 23023 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23024 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23025 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23026 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23027 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23028 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23029 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23030 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23031 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23034 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23035 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23036 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23037 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23038 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23039 | |
| 23040 | 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] | 23041 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23042 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23043 | |
| 23044 | 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] | 23045 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23046 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23047 | |
| 23048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23049 | CFLAGS=$OLD_CFLAGS |
| 23050 | |
| 23051 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23052 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23053 | |
| 23054 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23055 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23056 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23057 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23058 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23059 | 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] | 23060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23061 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23062 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23063 | /* confdefs.h. */ |
| 23064 | _ACEOF |
| 23065 | cat confdefs.h >>conftest.$ac_ext |
| 23066 | cat >>conftest.$ac_ext <<_ACEOF |
| 23067 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23068 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23069 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23070 | #define $ac_func innocuous_$ac_func |
| 23071 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23072 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23073 | which can conflict with char $ac_func (); below. |
| 23074 | 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] | 23075 | <limits.h> exists even on freestanding compilers. */ |
| 23076 | |
| 23077 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23078 | # include <limits.h> |
| 23079 | #else |
| 23080 | # include <assert.h> |
| 23081 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23082 | |
| 23083 | #undef $ac_func |
| 23084 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23085 | /* Override any GCC internal prototype to avoid an error. |
| 23086 | Use char because int might match the return type of a GCC |
| 23087 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23088 | #ifdef __cplusplus |
| 23089 | extern "C" |
| 23090 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23091 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23092 | /* The GNU C library defines this for functions which it implements |
| 23093 | to always fail with ENOSYS. Some functions are actually named |
| 23094 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23095 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23096 | choke me |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23097 | #endif |
| 23098 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23099 | int |
| 23100 | main () |
| 23101 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23102 | return $ac_func (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23103 | ; |
| 23104 | return 0; |
| 23105 | } |
| 23106 | _ACEOF |
| 23107 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23108 | if { (ac_try="$ac_link" |
| 23109 | case "(($ac_try" in |
| 23110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23111 | *) ac_try_echo=$ac_try;; |
| 23112 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23114 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23115 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23117 | rm -f conftest.er1 |
| 23118 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23120 | (exit $ac_status); } && { |
| 23121 | test -z "$ac_c_werror_flag" || |
| 23122 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23123 | } && test -s conftest$ac_exeext && |
| 23124 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23125 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 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 | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23130 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23131 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23132 | |
| 23133 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23134 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23135 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23136 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23137 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23138 | echo "${ECHO_T}$ac_res" >&6; } |
| 23139 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23140 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23141 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23142 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23143 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23144 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 23145 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23146 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23147 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 23148 | fi |
| 23149 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23150 | |
| 23151 | |
| 23152 | |
| 23153 | |
| 23154 | |
| 23155 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23156 | # checks for system services |
| 23157 | # (none yet) |
| 23158 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23159 | # Linux requires this for correct f.p. operations |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23160 | { echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 23161 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23162 | if test "${ac_cv_func___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23164 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23165 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23166 | /* confdefs.h. */ |
| 23167 | _ACEOF |
| 23168 | cat confdefs.h >>conftest.$ac_ext |
| 23169 | cat >>conftest.$ac_ext <<_ACEOF |
| 23170 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23171 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 23172 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23173 | #define __fpu_control innocuous___fpu_control |
| 23174 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23175 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23176 | which can conflict with char __fpu_control (); below. |
| 23177 | 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] | 23178 | <limits.h> exists even on freestanding compilers. */ |
| 23179 | |
| 23180 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23181 | # include <limits.h> |
| 23182 | #else |
| 23183 | # include <assert.h> |
| 23184 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 23185 | |
| 23186 | #undef __fpu_control |
| 23187 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23188 | /* Override any GCC internal prototype to avoid an error. |
| 23189 | Use char because int might match the return type of a GCC |
| 23190 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23191 | #ifdef __cplusplus |
| 23192 | extern "C" |
| 23193 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23194 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23195 | /* The GNU C library defines this for functions which it implements |
| 23196 | to always fail with ENOSYS. Some functions are actually named |
| 23197 | something starting with __ and the normal name is an alias. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23198 | #if defined __stub___fpu_control || defined __stub_____fpu_control |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23199 | choke me |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23200 | #endif |
| 23201 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23202 | int |
| 23203 | main () |
| 23204 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23205 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23206 | ; |
| 23207 | return 0; |
| 23208 | } |
| 23209 | _ACEOF |
| 23210 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23211 | if { (ac_try="$ac_link" |
| 23212 | case "(($ac_try" in |
| 23213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23214 | *) ac_try_echo=$ac_try;; |
| 23215 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23217 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23218 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23219 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23220 | rm -f conftest.er1 |
| 23221 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23223 | (exit $ac_status); } && { |
| 23224 | test -z "$ac_c_werror_flag" || |
| 23225 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23226 | } && test -s conftest$ac_exeext && |
| 23227 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23228 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23229 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23230 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23232 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23233 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23234 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23235 | |
| 23236 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23237 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23238 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23239 | { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 23240 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; } |
| 23241 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23242 | : |
| 23243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23244 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23245 | { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 23246 | 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] | 23247 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23249 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23250 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23251 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23252 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23253 | /* confdefs.h. */ |
| 23254 | _ACEOF |
| 23255 | cat confdefs.h >>conftest.$ac_ext |
| 23256 | cat >>conftest.$ac_ext <<_ACEOF |
| 23257 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23258 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23259 | /* Override any GCC internal prototype to avoid an error. |
| 23260 | Use char because int might match the return type of a GCC |
| 23261 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23262 | #ifdef __cplusplus |
| 23263 | extern "C" |
| 23264 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23265 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23266 | int |
| 23267 | main () |
| 23268 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23269 | return __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23270 | ; |
| 23271 | return 0; |
| 23272 | } |
| 23273 | _ACEOF |
| 23274 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23275 | if { (ac_try="$ac_link" |
| 23276 | case "(($ac_try" in |
| 23277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23278 | *) ac_try_echo=$ac_try;; |
| 23279 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23281 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23282 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23284 | rm -f conftest.er1 |
| 23285 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23287 | (exit $ac_status); } && { |
| 23288 | test -z "$ac_c_werror_flag" || |
| 23289 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23290 | } && test -s conftest$ac_exeext && |
| 23291 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23292 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23293 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23294 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23296 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23297 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23298 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23299 | |
| 23300 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23301 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23302 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23303 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23304 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 23305 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; } |
| 23306 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23307 | cat >>confdefs.h <<_ACEOF |
| 23308 | #define HAVE_LIBIEEE 1 |
| 23309 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23310 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 23311 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23312 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23313 | fi |
| 23314 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23315 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 23316 | fi |
| 23317 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23318 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23319 | # Check for --with-fpectl |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23320 | { echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 23321 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23322 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23323 | # Check whether --with-fpectl was given. |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23324 | if test "${with_fpectl+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23325 | withval=$with_fpectl; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23326 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23327 | then |
| 23328 | |
| 23329 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23330 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23331 | _ACEOF |
| 23332 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23333 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 23334 | echo "${ECHO_T}yes" >&6; } |
| 23335 | else { echo "$as_me:$LINENO: result: no" >&5 |
| 23336 | echo "${ECHO_T}no" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23337 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 23338 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23339 | { echo "$as_me:$LINENO: result: no" >&5 |
| 23340 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23341 | fi |
| 23342 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23343 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23344 | # check for --with-libm=... |
| 23345 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23346 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 23347 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 23348 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 23349 | *) LIBM=-lm |
| 23350 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23351 | { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 23352 | 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] | 23353 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23354 | # Check whether --with-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23355 | if test "${with_libm+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23356 | withval=$with_libm; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23357 | if test "$withval" = no |
| 23358 | then LIBM= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23359 | { echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 23360 | echo "${ECHO_T}force LIBM empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23361 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23362 | then LIBM=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23363 | { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 23364 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6; } |
| 23365 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 23366 | 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] | 23367 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23368 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23369 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23370 | { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 23371 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23372 | fi |
| 23373 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23374 | |
| 23375 | # check for --with-libc=... |
| 23376 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23377 | { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 23378 | 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] | 23379 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23380 | # Check whether --with-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 23381 | if test "${with_libc+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23382 | withval=$with_libc; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23383 | if test "$withval" = no |
| 23384 | then LIBC= |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23385 | { echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 23386 | echo "${ECHO_T}force LIBC empty" >&6; } |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23387 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23388 | then LIBC=$withval |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23389 | { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 23390 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6; } |
| 23391 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 23392 | 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] | 23393 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23394 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 23395 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23396 | { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 23397 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 23398 | fi |
| 23399 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 23400 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23401 | # ************************************************** |
| 23402 | # * Check for various properties of floating point * |
| 23403 | # ************************************************** |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23404 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23405 | { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5 |
| 23406 | echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23407 | if test "${ac_cv_little_endian_double+set}" = set; then |
| 23408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23409 | else |
| 23410 | |
| 23411 | if test "$cross_compiling" = yes; then |
| 23412 | ac_cv_little_endian_double=no |
| 23413 | else |
| 23414 | cat >conftest.$ac_ext <<_ACEOF |
| 23415 | /* confdefs.h. */ |
| 23416 | _ACEOF |
| 23417 | cat confdefs.h >>conftest.$ac_ext |
| 23418 | cat >>conftest.$ac_ext <<_ACEOF |
| 23419 | /* end confdefs.h. */ |
| 23420 | |
| 23421 | #include <string.h> |
| 23422 | int main() { |
| 23423 | double x = 9006104071832581.0; |
| 23424 | if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) |
| 23425 | return 0; |
| 23426 | else |
| 23427 | return 1; |
| 23428 | } |
| 23429 | |
| 23430 | _ACEOF |
| 23431 | rm -f conftest$ac_exeext |
| 23432 | if { (ac_try="$ac_link" |
| 23433 | case "(($ac_try" in |
| 23434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23435 | *) ac_try_echo=$ac_try;; |
| 23436 | esac |
| 23437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23438 | (eval "$ac_link") 2>&5 |
| 23439 | ac_status=$? |
| 23440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23441 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23442 | { (case "(($ac_try" in |
| 23443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23444 | *) ac_try_echo=$ac_try;; |
| 23445 | esac |
| 23446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23447 | (eval "$ac_try") 2>&5 |
| 23448 | ac_status=$? |
| 23449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23450 | (exit $ac_status); }; }; then |
| 23451 | ac_cv_little_endian_double=yes |
| 23452 | else |
| 23453 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23454 | echo "$as_me: failed program was:" >&5 |
| 23455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23456 | |
| 23457 | ( exit $ac_status ) |
| 23458 | ac_cv_little_endian_double=no |
| 23459 | fi |
| 23460 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23461 | fi |
| 23462 | |
| 23463 | |
| 23464 | fi |
| 23465 | |
| 23466 | { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5 |
| 23467 | echo "${ECHO_T}$ac_cv_little_endian_double" >&6; } |
| 23468 | if test "$ac_cv_little_endian_double" = yes |
| 23469 | then |
| 23470 | |
| 23471 | cat >>confdefs.h <<\_ACEOF |
| 23472 | #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 |
| 23473 | _ACEOF |
| 23474 | |
| 23475 | fi |
| 23476 | |
| 23477 | { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5 |
| 23478 | echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23479 | if test "${ac_cv_big_endian_double+set}" = set; then |
| 23480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23481 | else |
| 23482 | |
| 23483 | if test "$cross_compiling" = yes; then |
| 23484 | ac_cv_big_endian_double=no |
| 23485 | else |
| 23486 | cat >conftest.$ac_ext <<_ACEOF |
| 23487 | /* confdefs.h. */ |
| 23488 | _ACEOF |
| 23489 | cat confdefs.h >>conftest.$ac_ext |
| 23490 | cat >>conftest.$ac_ext <<_ACEOF |
| 23491 | /* end confdefs.h. */ |
| 23492 | |
| 23493 | #include <string.h> |
| 23494 | int main() { |
| 23495 | double x = 9006104071832581.0; |
| 23496 | if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) |
| 23497 | return 0; |
| 23498 | else |
| 23499 | return 1; |
| 23500 | } |
| 23501 | |
| 23502 | _ACEOF |
| 23503 | rm -f conftest$ac_exeext |
| 23504 | if { (ac_try="$ac_link" |
| 23505 | case "(($ac_try" in |
| 23506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23507 | *) ac_try_echo=$ac_try;; |
| 23508 | esac |
| 23509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23510 | (eval "$ac_link") 2>&5 |
| 23511 | ac_status=$? |
| 23512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23513 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23514 | { (case "(($ac_try" in |
| 23515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23516 | *) ac_try_echo=$ac_try;; |
| 23517 | esac |
| 23518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23519 | (eval "$ac_try") 2>&5 |
| 23520 | ac_status=$? |
| 23521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23522 | (exit $ac_status); }; }; then |
| 23523 | ac_cv_big_endian_double=yes |
| 23524 | else |
| 23525 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23526 | echo "$as_me: failed program was:" >&5 |
| 23527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23528 | |
| 23529 | ( exit $ac_status ) |
| 23530 | ac_cv_big_endian_double=no |
| 23531 | fi |
| 23532 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23533 | fi |
| 23534 | |
| 23535 | |
| 23536 | fi |
| 23537 | |
| 23538 | { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5 |
| 23539 | echo "${ECHO_T}$ac_cv_big_endian_double" >&6; } |
| 23540 | if test "$ac_cv_big_endian_double" = yes |
| 23541 | then |
| 23542 | |
| 23543 | cat >>confdefs.h <<\_ACEOF |
| 23544 | #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1 |
| 23545 | _ACEOF |
| 23546 | |
| 23547 | fi |
| 23548 | |
| 23549 | # Some ARM platforms use a mixed-endian representation for doubles. |
| 23550 | # While Python doesn't currently have full support for these platforms |
| 23551 | # (see e.g., issue 1762561), we can at least make sure that float <-> string |
| 23552 | # conversions work. |
| 23553 | { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 |
| 23554 | echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; } |
| 23555 | if test "${ac_cv_mixed_endian_double+set}" = set; then |
| 23556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23557 | else |
| 23558 | |
| 23559 | if test "$cross_compiling" = yes; then |
| 23560 | ac_cv_mixed_endian_double=no |
| 23561 | else |
| 23562 | cat >conftest.$ac_ext <<_ACEOF |
| 23563 | /* confdefs.h. */ |
| 23564 | _ACEOF |
| 23565 | cat confdefs.h >>conftest.$ac_ext |
| 23566 | cat >>conftest.$ac_ext <<_ACEOF |
| 23567 | /* end confdefs.h. */ |
| 23568 | |
| 23569 | #include <string.h> |
| 23570 | int main() { |
| 23571 | double x = 9006104071832581.0; |
| 23572 | if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) |
| 23573 | return 0; |
| 23574 | else |
| 23575 | return 1; |
| 23576 | } |
| 23577 | |
| 23578 | _ACEOF |
| 23579 | rm -f conftest$ac_exeext |
| 23580 | if { (ac_try="$ac_link" |
| 23581 | case "(($ac_try" in |
| 23582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23583 | *) ac_try_echo=$ac_try;; |
| 23584 | esac |
| 23585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23586 | (eval "$ac_link") 2>&5 |
| 23587 | ac_status=$? |
| 23588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23589 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23590 | { (case "(($ac_try" in |
| 23591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23592 | *) ac_try_echo=$ac_try;; |
| 23593 | esac |
| 23594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23595 | (eval "$ac_try") 2>&5 |
| 23596 | ac_status=$? |
| 23597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23598 | (exit $ac_status); }; }; then |
| 23599 | ac_cv_mixed_endian_double=yes |
| 23600 | else |
| 23601 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23602 | echo "$as_me: failed program was:" >&5 |
| 23603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23604 | |
| 23605 | ( exit $ac_status ) |
| 23606 | ac_cv_mixed_endian_double=no |
| 23607 | fi |
| 23608 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23609 | fi |
| 23610 | |
| 23611 | |
| 23612 | fi |
| 23613 | |
| 23614 | { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5 |
| 23615 | echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; } |
| 23616 | if test "$ac_cv_mixed_endian_double" = yes |
| 23617 | then |
| 23618 | |
| 23619 | cat >>confdefs.h <<\_ACEOF |
| 23620 | #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1 |
| 23621 | _ACEOF |
| 23622 | |
| 23623 | fi |
| 23624 | |
| 23625 | # The short float repr introduced in Python 3.1 requires the |
| 23626 | # correctly-rounded string <-> double conversion functions from |
| 23627 | # Python/dtoa.c, which in turn require that the FPU uses 53-bit |
| 23628 | # rounding; this is a problem on x86, where the x87 FPU has a default |
| 23629 | # rounding precision of 64 bits. For gcc/x86, we try to fix this by |
| 23630 | # using inline assembler to get and set the x87 FPU control word. |
| 23631 | if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`" |
| 23632 | then |
| 23633 | # Check that it's okay to use gcc inline assembler to get and set |
| 23634 | # x87 control word. It should be, but you never know... |
| 23635 | { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 |
| 23636 | echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; } |
| 23637 | cat >conftest.$ac_ext <<_ACEOF |
| 23638 | /* confdefs.h. */ |
| 23639 | _ACEOF |
| 23640 | cat confdefs.h >>conftest.$ac_ext |
| 23641 | cat >>conftest.$ac_ext <<_ACEOF |
| 23642 | /* end confdefs.h. */ |
| 23643 | |
| 23644 | int |
| 23645 | main () |
| 23646 | { |
| 23647 | |
| 23648 | unsigned short cw; |
| 23649 | __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); |
| 23650 | __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); |
| 23651 | |
| 23652 | ; |
| 23653 | return 0; |
| 23654 | } |
| 23655 | _ACEOF |
| 23656 | rm -f conftest.$ac_objext |
| 23657 | if { (ac_try="$ac_compile" |
| 23658 | case "(($ac_try" in |
| 23659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23660 | *) ac_try_echo=$ac_try;; |
| 23661 | esac |
| 23662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23663 | (eval "$ac_compile") 2>conftest.er1 |
| 23664 | ac_status=$? |
| 23665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23666 | rm -f conftest.er1 |
| 23667 | cat conftest.err >&5 |
| 23668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23669 | (exit $ac_status); } && { |
| 23670 | test -z "$ac_c_werror_flag" || |
| 23671 | test ! -s conftest.err |
| 23672 | } && test -s conftest.$ac_objext; then |
| 23673 | have_gcc_asm_for_x87=yes |
| 23674 | else |
| 23675 | echo "$as_me: failed program was:" >&5 |
| 23676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23677 | |
| 23678 | have_gcc_asm_for_x87=no |
| 23679 | fi |
| 23680 | |
| 23681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23682 | { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5 |
| 23683 | echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; } |
| 23684 | if test "$have_gcc_asm_for_x87" = yes |
| 23685 | then |
| 23686 | |
| 23687 | cat >>confdefs.h <<\_ACEOF |
| 23688 | #define HAVE_GCC_ASM_FOR_X87 1 |
| 23689 | _ACEOF |
| 23690 | |
| 23691 | fi |
| 23692 | fi |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 23693 | |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23694 | # Detect whether system arithmetic is subject to x87-style double |
| 23695 | # rounding issues. The result of this test has little meaning on non |
| 23696 | # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
| 23697 | # mode is round-to-nearest and double rounding issues are present, and |
| 23698 | # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23699 | { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5 |
| 23700 | echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; } |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 23701 | # $BASECFLAGS may affect the result |
| 23702 | ac_save_cc="$CC" |
| 23703 | CC="$CC $BASECFLAGS" |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23704 | if test "$cross_compiling" = yes; then |
| 23705 | ac_cv_x87_double_rounding=no |
| 23706 | else |
| 23707 | cat >conftest.$ac_ext <<_ACEOF |
| 23708 | /* confdefs.h. */ |
| 23709 | _ACEOF |
| 23710 | cat confdefs.h >>conftest.$ac_ext |
| 23711 | cat >>conftest.$ac_ext <<_ACEOF |
| 23712 | /* end confdefs.h. */ |
| 23713 | |
| 23714 | #include <stdlib.h> |
| 23715 | #include <math.h> |
| 23716 | int main() { |
| 23717 | volatile double x, y, z; |
| 23718 | /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
| 23719 | x = 0.99999999999999989; /* 1-2**-53 */ |
| 23720 | y = 1./x; |
| 23721 | if (y != 1.) |
| 23722 | exit(0); |
| 23723 | /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
| 23724 | x = 1e16; |
| 23725 | y = 2.99999; |
| 23726 | z = x + y; |
| 23727 | if (z != 1e16+4.) |
| 23728 | exit(0); |
| 23729 | /* both tests show evidence of double rounding */ |
| 23730 | exit(1); |
| 23731 | } |
| 23732 | |
| 23733 | _ACEOF |
| 23734 | rm -f conftest$ac_exeext |
| 23735 | if { (ac_try="$ac_link" |
| 23736 | case "(($ac_try" in |
| 23737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23738 | *) ac_try_echo=$ac_try;; |
| 23739 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23741 | (eval "$ac_link") 2>&5 |
| 23742 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23744 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23745 | { (case "(($ac_try" in |
| 23746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23747 | *) ac_try_echo=$ac_try;; |
| 23748 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23750 | (eval "$ac_try") 2>&5 |
| 23751 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23753 | (exit $ac_status); }; }; then |
| 23754 | ac_cv_x87_double_rounding=no |
| 23755 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23756 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23757 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23759 | |
| 23760 | ( exit $ac_status ) |
| 23761 | ac_cv_x87_double_rounding=yes |
| 23762 | fi |
| 23763 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23764 | fi |
| 23765 | |
| 23766 | |
Mark Dickinson | 99abd14 | 2009-10-24 13:44:16 +0000 | [diff] [blame] | 23767 | CC="$ac_save_cc" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23768 | { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5 |
| 23769 | echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; } |
Mark Dickinson | 04b2723 | 2009-01-04 12:29:36 +0000 | [diff] [blame] | 23770 | if test "$ac_cv_x87_double_rounding" = yes |
| 23771 | then |
| 23772 | |
| 23773 | cat >>confdefs.h <<\_ACEOF |
| 23774 | #define X87_DOUBLE_ROUNDING 1 |
| 23775 | _ACEOF |
| 23776 | |
| 23777 | fi |
| 23778 | |
Mark Dickinson | 1d6e2e1 | 2009-10-24 13:28:38 +0000 | [diff] [blame] | 23779 | # ************************************ |
| 23780 | # * Check for mathematical functions * |
| 23781 | # ************************************ |
| 23782 | |
| 23783 | LIBS_SAVE=$LIBS |
| 23784 | LIBS="$LIBS $LIBM" |
| 23785 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23786 | # Multiprocessing check for broken sem_getvalue |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23787 | { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5 |
| 23788 | echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 23789 | if test "${ac_cv_broken_sem_getvalue+set}" = set; then |
| 23790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23791 | else |
| 23792 | if test "$cross_compiling" = yes; then |
| 23793 | ac_cv_broken_sem_getvalue=yes |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23794 | else |
| 23795 | cat >conftest.$ac_ext <<_ACEOF |
| 23796 | /* confdefs.h. */ |
| 23797 | _ACEOF |
| 23798 | cat confdefs.h >>conftest.$ac_ext |
| 23799 | cat >>conftest.$ac_ext <<_ACEOF |
| 23800 | /* end confdefs.h. */ |
| 23801 | |
| 23802 | #include <unistd.h> |
| 23803 | #include <fcntl.h> |
| 23804 | #include <stdio.h> |
| 23805 | #include <semaphore.h> |
| 23806 | #include <sys/stat.h> |
| 23807 | |
| 23808 | int main(void){ |
| 23809 | sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
| 23810 | int count; |
| 23811 | int res; |
| 23812 | if(a==SEM_FAILED){ |
| 23813 | perror("sem_open"); |
| 23814 | return 1; |
| 23815 | |
| 23816 | } |
| 23817 | res = sem_getvalue(a, &count); |
| 23818 | sem_close(a); |
| 23819 | return res==-1 ? 1 : 0; |
| 23820 | } |
| 23821 | |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23822 | _ACEOF |
| 23823 | rm -f conftest$ac_exeext |
| 23824 | if { (ac_try="$ac_link" |
| 23825 | case "(($ac_try" in |
| 23826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23827 | *) ac_try_echo=$ac_try;; |
| 23828 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23830 | (eval "$ac_link") 2>&5 |
| 23831 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23833 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23834 | { (case "(($ac_try" in |
| 23835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23836 | *) ac_try_echo=$ac_try;; |
| 23837 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23839 | (eval "$ac_try") 2>&5 |
| 23840 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23842 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 23843 | ac_cv_broken_sem_getvalue=no |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23844 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23845 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23846 | echo "$as_me: failed program was:" >&5 |
Jesse Noller | 355b126 | 2009-04-02 00:03:28 +0000 | [diff] [blame] | 23847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23848 | |
| 23849 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 23850 | ac_cv_broken_sem_getvalue=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 23851 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23852 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23853 | fi |
| 23854 | |
| 23855 | |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 23856 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 23857 | fi |
| 23858 | |
| 23859 | { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5 |
| 23860 | echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; } |
| 23861 | if test $ac_cv_broken_sem_getvalue = yes |
| 23862 | then |
| 23863 | |
| 23864 | cat >>confdefs.h <<\_ACEOF |
| 23865 | #define HAVE_BROKEN_SEM_GETVALUE 1 |
| 23866 | _ACEOF |
| 23867 | |
| 23868 | fi |
| 23869 | |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23870 | # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
| 23871 | # -0. on some architectures. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23872 | { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5 |
| 23873 | 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] | 23874 | if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23876 | else |
| 23877 | |
| 23878 | if test "$cross_compiling" = yes; then |
| 23879 | ac_cv_tanh_preserves_zero_sign=no |
| 23880 | else |
| 23881 | cat >conftest.$ac_ext <<_ACEOF |
| 23882 | /* confdefs.h. */ |
| 23883 | _ACEOF |
| 23884 | cat confdefs.h >>conftest.$ac_ext |
| 23885 | cat >>conftest.$ac_ext <<_ACEOF |
| 23886 | /* end confdefs.h. */ |
| 23887 | |
| 23888 | #include <math.h> |
Mark Dickinson | 7a3d864 | 2008-04-22 00:54:27 +0000 | [diff] [blame] | 23889 | #include <stdlib.h> |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23890 | int main() { |
| 23891 | /* return 0 if either negative zeros don't exist |
| 23892 | on this platform or if negative zeros exist |
| 23893 | and tanh(-0.) == -0. */ |
| 23894 | if (atan2(0., -1.) == atan2(-0., -1.) || |
| 23895 | atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
| 23896 | else exit(1); |
| 23897 | } |
| 23898 | |
| 23899 | _ACEOF |
| 23900 | rm -f conftest$ac_exeext |
| 23901 | if { (ac_try="$ac_link" |
| 23902 | case "(($ac_try" in |
| 23903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23904 | *) ac_try_echo=$ac_try;; |
| 23905 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23907 | (eval "$ac_link") 2>&5 |
| 23908 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23910 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23911 | { (case "(($ac_try" in |
| 23912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23913 | *) ac_try_echo=$ac_try;; |
| 23914 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23916 | (eval "$ac_try") 2>&5 |
| 23917 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23919 | (exit $ac_status); }; }; then |
| 23920 | ac_cv_tanh_preserves_zero_sign=yes |
| 23921 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23922 | echo "$as_me: program exited with status $ac_status" >&5 |
| 23923 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23925 | |
| 23926 | ( exit $ac_status ) |
| 23927 | ac_cv_tanh_preserves_zero_sign=no |
| 23928 | fi |
| 23929 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23930 | fi |
| 23931 | |
| 23932 | |
| 23933 | fi |
| 23934 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 23935 | { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5 |
| 23936 | echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; } |
Mark Dickinson | 265d738 | 2008-04-21 22:32:24 +0000 | [diff] [blame] | 23937 | if test "$ac_cv_tanh_preserves_zero_sign" = yes |
| 23938 | then |
| 23939 | |
| 23940 | cat >>confdefs.h <<\_ACEOF |
| 23941 | #define TANH_PRESERVES_ZERO_SIGN 1 |
| 23942 | _ACEOF |
| 23943 | |
| 23944 | fi |
| 23945 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23946 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 23947 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 23948 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 23949 | |
| 23950 | |
| 23951 | |
| 23952 | |
| 23953 | |
Mark Dickinson | 8e5446f | 2009-04-18 14:41:37 +0000 | [diff] [blame] | 23954 | |
Mark Dickinson | 65898e0 | 2009-09-05 10:27:00 +0000 | [diff] [blame] | 23955 | for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma |
| 23956 | do |
| 23957 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23958 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23959 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 23960 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 23961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23962 | else |
| 23963 | cat >conftest.$ac_ext <<_ACEOF |
| 23964 | /* confdefs.h. */ |
| 23965 | _ACEOF |
| 23966 | cat confdefs.h >>conftest.$ac_ext |
| 23967 | cat >>conftest.$ac_ext <<_ACEOF |
| 23968 | /* end confdefs.h. */ |
| 23969 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23970 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23971 | #define $ac_func innocuous_$ac_func |
| 23972 | |
| 23973 | /* System header to define __stub macros and hopefully few prototypes, |
| 23974 | which can conflict with char $ac_func (); below. |
| 23975 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23976 | <limits.h> exists even on freestanding compilers. */ |
| 23977 | |
| 23978 | #ifdef __STDC__ |
| 23979 | # include <limits.h> |
| 23980 | #else |
| 23981 | # include <assert.h> |
| 23982 | #endif |
| 23983 | |
| 23984 | #undef $ac_func |
| 23985 | |
| 23986 | /* Override any GCC internal prototype to avoid an error. |
| 23987 | Use char because int might match the return type of a GCC |
| 23988 | builtin and then its argument prototype would still apply. */ |
| 23989 | #ifdef __cplusplus |
| 23990 | extern "C" |
| 23991 | #endif |
| 23992 | char $ac_func (); |
| 23993 | /* The GNU C library defines this for functions which it implements |
| 23994 | to always fail with ENOSYS. Some functions are actually named |
| 23995 | something starting with __ and the normal name is an alias. */ |
| 23996 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 23997 | choke me |
| 23998 | #endif |
| 23999 | |
| 24000 | int |
| 24001 | main () |
| 24002 | { |
| 24003 | return $ac_func (); |
| 24004 | ; |
| 24005 | return 0; |
| 24006 | } |
| 24007 | _ACEOF |
| 24008 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24009 | if { (ac_try="$ac_link" |
| 24010 | case "(($ac_try" in |
| 24011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24012 | *) ac_try_echo=$ac_try;; |
| 24013 | esac |
| 24014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24015 | (eval "$ac_link") 2>conftest.er1 |
| 24016 | ac_status=$? |
| 24017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24018 | rm -f conftest.er1 |
| 24019 | cat conftest.err >&5 |
| 24020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24021 | (exit $ac_status); } && { |
| 24022 | test -z "$ac_c_werror_flag" || |
| 24023 | test ! -s conftest.err |
| 24024 | } && test -s conftest$ac_exeext && |
| 24025 | $as_test_x conftest$ac_exeext; then |
| 24026 | eval "$as_ac_var=yes" |
| 24027 | else |
| 24028 | echo "$as_me: failed program was:" >&5 |
| 24029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24030 | |
| 24031 | eval "$as_ac_var=no" |
| 24032 | fi |
| 24033 | |
| 24034 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24035 | conftest$ac_exeext conftest.$ac_ext |
| 24036 | fi |
| 24037 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24038 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24039 | echo "${ECHO_T}$ac_res" >&6; } |
| 24040 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 24041 | cat >>confdefs.h <<_ACEOF |
| 24042 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24043 | _ACEOF |
| 24044 | |
| 24045 | fi |
| 24046 | done |
| 24047 | |
| 24048 | |
| 24049 | |
| 24050 | |
| 24051 | |
| 24052 | |
| 24053 | for ac_func in hypot lgamma log1p round tgamma |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24054 | do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24055 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24056 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 24057 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24058 | 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] | 24059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24060 | else |
| 24061 | cat >conftest.$ac_ext <<_ACEOF |
| 24062 | /* confdefs.h. */ |
| 24063 | _ACEOF |
| 24064 | cat confdefs.h >>conftest.$ac_ext |
| 24065 | cat >>conftest.$ac_ext <<_ACEOF |
| 24066 | /* end confdefs.h. */ |
| 24067 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 24068 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 24069 | #define $ac_func innocuous_$ac_func |
| 24070 | |
| 24071 | /* System header to define __stub macros and hopefully few prototypes, |
| 24072 | which can conflict with char $ac_func (); below. |
| 24073 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 24074 | <limits.h> exists even on freestanding compilers. */ |
| 24075 | |
| 24076 | #ifdef __STDC__ |
| 24077 | # include <limits.h> |
| 24078 | #else |
| 24079 | # include <assert.h> |
| 24080 | #endif |
| 24081 | |
| 24082 | #undef $ac_func |
| 24083 | |
| 24084 | /* Override any GCC internal prototype to avoid an error. |
| 24085 | Use char because int might match the return type of a GCC |
| 24086 | builtin and then its argument prototype would still apply. */ |
| 24087 | #ifdef __cplusplus |
| 24088 | extern "C" |
| 24089 | #endif |
| 24090 | char $ac_func (); |
| 24091 | /* The GNU C library defines this for functions which it implements |
| 24092 | to always fail with ENOSYS. Some functions are actually named |
| 24093 | something starting with __ and the normal name is an alias. */ |
| 24094 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 24095 | choke me |
| 24096 | #endif |
| 24097 | |
| 24098 | int |
| 24099 | main () |
| 24100 | { |
| 24101 | return $ac_func (); |
| 24102 | ; |
| 24103 | return 0; |
| 24104 | } |
| 24105 | _ACEOF |
| 24106 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24107 | if { (ac_try="$ac_link" |
| 24108 | case "(($ac_try" in |
| 24109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24110 | *) ac_try_echo=$ac_try;; |
| 24111 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24113 | (eval "$ac_link") 2>conftest.er1 |
| 24114 | ac_status=$? |
| 24115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24116 | rm -f conftest.er1 |
| 24117 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24119 | (exit $ac_status); } && { |
| 24120 | test -z "$ac_c_werror_flag" || |
| 24121 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24122 | } && test -s conftest$ac_exeext && |
| 24123 | $as_test_x conftest$ac_exeext; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24124 | eval "$as_ac_var=yes" |
| 24125 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24126 | echo "$as_me: failed program was:" >&5 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24128 | |
| 24129 | eval "$as_ac_var=no" |
| 24130 | fi |
| 24131 | |
| 24132 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 24133 | conftest$ac_exeext conftest.$ac_ext |
| 24134 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24135 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 24136 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 24137 | echo "${ECHO_T}$ac_res" >&6; } |
| 24138 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24139 | cat >>confdefs.h <<_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24140 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24141 | _ACEOF |
| 24142 | |
| 24143 | fi |
| 24144 | done |
| 24145 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24146 | { echo "$as_me:$LINENO: checking whether isinf is declared" >&5 |
| 24147 | echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24148 | if test "${ac_cv_have_decl_isinf+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24150 | else |
| 24151 | cat >conftest.$ac_ext <<_ACEOF |
| 24152 | /* confdefs.h. */ |
| 24153 | _ACEOF |
| 24154 | cat confdefs.h >>conftest.$ac_ext |
| 24155 | cat >>conftest.$ac_ext <<_ACEOF |
| 24156 | /* end confdefs.h. */ |
| 24157 | #include <math.h> |
| 24158 | |
| 24159 | int |
| 24160 | main () |
| 24161 | { |
| 24162 | #ifndef isinf |
| 24163 | (void) isinf; |
| 24164 | #endif |
| 24165 | |
| 24166 | ; |
| 24167 | return 0; |
| 24168 | } |
| 24169 | _ACEOF |
| 24170 | rm -f conftest.$ac_objext |
| 24171 | if { (ac_try="$ac_compile" |
| 24172 | case "(($ac_try" in |
| 24173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24174 | *) ac_try_echo=$ac_try;; |
| 24175 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24177 | (eval "$ac_compile") 2>conftest.er1 |
| 24178 | ac_status=$? |
| 24179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24180 | rm -f conftest.er1 |
| 24181 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24183 | (exit $ac_status); } && { |
| 24184 | test -z "$ac_c_werror_flag" || |
| 24185 | test ! -s conftest.err |
| 24186 | } && test -s conftest.$ac_objext; then |
| 24187 | ac_cv_have_decl_isinf=yes |
| 24188 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24189 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24191 | |
| 24192 | ac_cv_have_decl_isinf=no |
| 24193 | fi |
| 24194 | |
| 24195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24196 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24197 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5 |
| 24198 | echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; } |
| 24199 | if test $ac_cv_have_decl_isinf = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24200 | |
| 24201 | cat >>confdefs.h <<_ACEOF |
| 24202 | #define HAVE_DECL_ISINF 1 |
| 24203 | _ACEOF |
| 24204 | |
| 24205 | |
| 24206 | else |
| 24207 | cat >>confdefs.h <<_ACEOF |
| 24208 | #define HAVE_DECL_ISINF 0 |
| 24209 | _ACEOF |
| 24210 | |
| 24211 | |
| 24212 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24213 | { echo "$as_me:$LINENO: checking whether isnan is declared" >&5 |
| 24214 | echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24215 | if test "${ac_cv_have_decl_isnan+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24217 | else |
| 24218 | cat >conftest.$ac_ext <<_ACEOF |
| 24219 | /* confdefs.h. */ |
| 24220 | _ACEOF |
| 24221 | cat confdefs.h >>conftest.$ac_ext |
| 24222 | cat >>conftest.$ac_ext <<_ACEOF |
| 24223 | /* end confdefs.h. */ |
| 24224 | #include <math.h> |
| 24225 | |
| 24226 | int |
| 24227 | main () |
| 24228 | { |
| 24229 | #ifndef isnan |
| 24230 | (void) isnan; |
| 24231 | #endif |
| 24232 | |
| 24233 | ; |
| 24234 | return 0; |
| 24235 | } |
| 24236 | _ACEOF |
| 24237 | rm -f conftest.$ac_objext |
| 24238 | if { (ac_try="$ac_compile" |
| 24239 | case "(($ac_try" in |
| 24240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24241 | *) ac_try_echo=$ac_try;; |
| 24242 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24244 | (eval "$ac_compile") 2>conftest.er1 |
| 24245 | ac_status=$? |
| 24246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24247 | rm -f conftest.er1 |
| 24248 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24250 | (exit $ac_status); } && { |
| 24251 | test -z "$ac_c_werror_flag" || |
| 24252 | test ! -s conftest.err |
| 24253 | } && test -s conftest.$ac_objext; then |
| 24254 | ac_cv_have_decl_isnan=yes |
| 24255 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24256 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24258 | |
| 24259 | ac_cv_have_decl_isnan=no |
| 24260 | fi |
| 24261 | |
| 24262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24263 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24264 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5 |
| 24265 | echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; } |
| 24266 | if test $ac_cv_have_decl_isnan = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24267 | |
| 24268 | cat >>confdefs.h <<_ACEOF |
| 24269 | #define HAVE_DECL_ISNAN 1 |
| 24270 | _ACEOF |
| 24271 | |
| 24272 | |
| 24273 | else |
| 24274 | cat >>confdefs.h <<_ACEOF |
| 24275 | #define HAVE_DECL_ISNAN 0 |
| 24276 | _ACEOF |
| 24277 | |
| 24278 | |
| 24279 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24280 | { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5 |
| 24281 | echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; } |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24282 | if test "${ac_cv_have_decl_isfinite+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24284 | else |
| 24285 | cat >conftest.$ac_ext <<_ACEOF |
| 24286 | /* confdefs.h. */ |
| 24287 | _ACEOF |
| 24288 | cat confdefs.h >>conftest.$ac_ext |
| 24289 | cat >>conftest.$ac_ext <<_ACEOF |
| 24290 | /* end confdefs.h. */ |
| 24291 | #include <math.h> |
| 24292 | |
| 24293 | int |
| 24294 | main () |
| 24295 | { |
| 24296 | #ifndef isfinite |
| 24297 | (void) isfinite; |
| 24298 | #endif |
| 24299 | |
| 24300 | ; |
| 24301 | return 0; |
| 24302 | } |
| 24303 | _ACEOF |
| 24304 | rm -f conftest.$ac_objext |
| 24305 | if { (ac_try="$ac_compile" |
| 24306 | case "(($ac_try" in |
| 24307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24308 | *) ac_try_echo=$ac_try;; |
| 24309 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24311 | (eval "$ac_compile") 2>conftest.er1 |
| 24312 | ac_status=$? |
| 24313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24314 | rm -f conftest.er1 |
| 24315 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24317 | (exit $ac_status); } && { |
| 24318 | test -z "$ac_c_werror_flag" || |
| 24319 | test ! -s conftest.err |
| 24320 | } && test -s conftest.$ac_objext; then |
| 24321 | ac_cv_have_decl_isfinite=yes |
| 24322 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24323 | echo "$as_me: failed program was:" >&5 |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24325 | |
| 24326 | ac_cv_have_decl_isfinite=no |
| 24327 | fi |
| 24328 | |
| 24329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24330 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24331 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5 |
| 24332 | echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; } |
| 24333 | if test $ac_cv_have_decl_isfinite = yes; then |
Mark Dickinson | d181e3a | 2009-01-04 13:57:26 +0000 | [diff] [blame] | 24334 | |
| 24335 | cat >>confdefs.h <<_ACEOF |
| 24336 | #define HAVE_DECL_ISFINITE 1 |
| 24337 | _ACEOF |
| 24338 | |
| 24339 | |
| 24340 | else |
| 24341 | cat >>confdefs.h <<_ACEOF |
| 24342 | #define HAVE_DECL_ISFINITE 0 |
| 24343 | _ACEOF |
| 24344 | |
| 24345 | |
| 24346 | fi |
| 24347 | |
| 24348 | |
Christian Heimes | 0a8143f | 2007-12-18 23:22:54 +0000 | [diff] [blame] | 24349 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 24350 | LIBS=$LIBS_SAVE |
| 24351 | |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24352 | # determine what size digit to use for Python's longs |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24353 | { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5 |
| 24354 | 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] | 24355 | # Check whether --enable-big-digits was given. |
| 24356 | if test "${enable_big_digits+set}" = set; then |
| 24357 | enableval=$enable_big_digits; case $enable_big_digits in |
| 24358 | yes) |
| 24359 | enable_big_digits=30 ;; |
| 24360 | no) |
| 24361 | enable_big_digits=15 ;; |
| 24362 | 15|30) |
| 24363 | ;; |
| 24364 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24365 | { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5 |
| 24366 | 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] | 24367 | { (exit 1); exit 1; }; } ;; |
| 24368 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24369 | { echo "$as_me:$LINENO: result: $enable_big_digits" >&5 |
| 24370 | echo "${ECHO_T}$enable_big_digits" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24371 | |
| 24372 | cat >>confdefs.h <<_ACEOF |
| 24373 | #define PYLONG_BITS_IN_DIGIT $enable_big_digits |
| 24374 | _ACEOF |
| 24375 | |
| 24376 | |
| 24377 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24378 | { echo "$as_me:$LINENO: result: no value specified" >&5 |
| 24379 | echo "${ECHO_T}no value specified" >&6; } |
Mark Dickinson | efc82f7 | 2009-03-20 15:51:55 +0000 | [diff] [blame] | 24380 | fi |
| 24381 | |
| 24382 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24383 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24384 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24385 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24386 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24387 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24389 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24390 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24391 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24392 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24393 | # Is the header compilable? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24394 | { echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 24395 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24396 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24397 | /* confdefs.h. */ |
| 24398 | _ACEOF |
| 24399 | cat confdefs.h >>conftest.$ac_ext |
| 24400 | cat >>conftest.$ac_ext <<_ACEOF |
| 24401 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24402 | $ac_includes_default |
| 24403 | #include <wchar.h> |
| 24404 | _ACEOF |
| 24405 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24406 | if { (ac_try="$ac_compile" |
| 24407 | case "(($ac_try" in |
| 24408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24409 | *) ac_try_echo=$ac_try;; |
| 24410 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24412 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24413 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24415 | rm -f conftest.er1 |
| 24416 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24418 | (exit $ac_status); } && { |
| 24419 | test -z "$ac_c_werror_flag" || |
| 24420 | test ! -s conftest.err |
| 24421 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24422 | ac_header_compiler=yes |
| 24423 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24424 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24426 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24427 | ac_header_compiler=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24428 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24429 | |
| 24430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24431 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 24432 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24433 | |
| 24434 | # Is the header present? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24435 | { echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 24436 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24437 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24438 | /* confdefs.h. */ |
| 24439 | _ACEOF |
| 24440 | cat confdefs.h >>conftest.$ac_ext |
| 24441 | cat >>conftest.$ac_ext <<_ACEOF |
| 24442 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24443 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24444 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24445 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 24446 | case "(($ac_try" in |
| 24447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24448 | *) ac_try_echo=$ac_try;; |
| 24449 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24451 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24452 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24453 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24454 | rm -f conftest.er1 |
| 24455 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24457 | (exit $ac_status); } >/dev/null && { |
| 24458 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 24459 | test ! -s conftest.err |
| 24460 | }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24461 | ac_header_preproc=yes |
| 24462 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24463 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24466 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24467 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24469 | rm -f conftest.err conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24470 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 24471 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24472 | |
| 24473 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24474 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 24475 | yes:no: ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24476 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 24477 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 24478 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 24479 | 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] | 24480 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 24481 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24482 | no:yes:* ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24483 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 24484 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 24485 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 24486 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 24487 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 24488 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 24489 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 24490 | echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 24491 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 24492 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} |
| 24493 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 24494 | 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] | 24495 | ( cat <<\_ASBOX |
Georg Brandl | 464432d | 2009-05-20 18:24:08 +0000 | [diff] [blame] | 24496 | ## -------------------------------------- ## |
| 24497 | ## Report this to http://bugs.python.org/ ## |
| 24498 | ## -------------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24499 | _ASBOX |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24500 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24501 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24502 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24503 | { echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 24504 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24505 | if test "${ac_cv_header_wchar_h+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24507 | else |
| 24508 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24509 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24510 | { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 24511 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24512 | |
| 24513 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24514 | if test $ac_cv_header_wchar_h = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24515 | |
| 24516 | |
| 24517 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24518 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24519 | _ACEOF |
| 24520 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 24521 | wchar_h="yes" |
| 24522 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24523 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24524 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24525 | |
| 24526 | fi |
| 24527 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24528 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24529 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24530 | # determine wchar_t size |
| 24531 | if test "$wchar_h" = yes |
| 24532 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24533 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 24534 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
| 24535 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 24536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24537 | else |
| 24538 | cat >conftest.$ac_ext <<_ACEOF |
| 24539 | /* confdefs.h. */ |
| 24540 | _ACEOF |
| 24541 | cat confdefs.h >>conftest.$ac_ext |
| 24542 | cat >>conftest.$ac_ext <<_ACEOF |
| 24543 | /* end confdefs.h. */ |
| 24544 | #include <wchar.h> |
| 24545 | |
| 24546 | typedef wchar_t ac__type_new_; |
| 24547 | int |
| 24548 | main () |
| 24549 | { |
| 24550 | if ((ac__type_new_ *) 0) |
| 24551 | return 0; |
| 24552 | if (sizeof (ac__type_new_)) |
| 24553 | return 0; |
| 24554 | ; |
| 24555 | return 0; |
| 24556 | } |
| 24557 | _ACEOF |
| 24558 | rm -f conftest.$ac_objext |
| 24559 | if { (ac_try="$ac_compile" |
| 24560 | case "(($ac_try" in |
| 24561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24562 | *) ac_try_echo=$ac_try;; |
| 24563 | esac |
| 24564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24565 | (eval "$ac_compile") 2>conftest.er1 |
| 24566 | ac_status=$? |
| 24567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24568 | rm -f conftest.er1 |
| 24569 | cat conftest.err >&5 |
| 24570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24571 | (exit $ac_status); } && { |
| 24572 | test -z "$ac_c_werror_flag" || |
| 24573 | test ! -s conftest.err |
| 24574 | } && test -s conftest.$ac_objext; then |
| 24575 | ac_cv_type_wchar_t=yes |
| 24576 | else |
| 24577 | echo "$as_me: failed program was:" >&5 |
| 24578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24579 | |
| 24580 | ac_cv_type_wchar_t=no |
| 24581 | fi |
| 24582 | |
| 24583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24584 | fi |
| 24585 | { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 24586 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } |
| 24587 | |
| 24588 | # 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] | 24589 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 24590 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 24591 | # This bug is HP SR number 8606223364. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24592 | { echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 24593 | 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] | 24594 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24596 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24597 | if test "$cross_compiling" = yes; then |
| 24598 | # Depending upon the size, compute the lo and hi bounds. |
| 24599 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24600 | /* confdefs.h. */ |
| 24601 | _ACEOF |
| 24602 | cat confdefs.h >>conftest.$ac_ext |
| 24603 | cat >>conftest.$ac_ext <<_ACEOF |
| 24604 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24605 | #include <wchar.h> |
| 24606 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24607 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24608 | int |
| 24609 | main () |
| 24610 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24611 | 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] | 24612 | test_array [0] = 0 |
| 24613 | |
| 24614 | ; |
| 24615 | return 0; |
| 24616 | } |
| 24617 | _ACEOF |
| 24618 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24619 | if { (ac_try="$ac_compile" |
| 24620 | case "(($ac_try" in |
| 24621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24622 | *) ac_try_echo=$ac_try;; |
| 24623 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24625 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24626 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24628 | rm -f conftest.er1 |
| 24629 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24631 | (exit $ac_status); } && { |
| 24632 | test -z "$ac_c_werror_flag" || |
| 24633 | test ! -s conftest.err |
| 24634 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24635 | ac_lo=0 ac_mid=0 |
| 24636 | while :; do |
| 24637 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24638 | /* confdefs.h. */ |
| 24639 | _ACEOF |
| 24640 | cat confdefs.h >>conftest.$ac_ext |
| 24641 | cat >>conftest.$ac_ext <<_ACEOF |
| 24642 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24643 | #include <wchar.h> |
| 24644 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24645 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24646 | int |
| 24647 | main () |
| 24648 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24649 | 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] | 24650 | test_array [0] = 0 |
| 24651 | |
| 24652 | ; |
| 24653 | return 0; |
| 24654 | } |
| 24655 | _ACEOF |
| 24656 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24657 | if { (ac_try="$ac_compile" |
| 24658 | case "(($ac_try" in |
| 24659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24660 | *) ac_try_echo=$ac_try;; |
| 24661 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24663 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24664 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24666 | rm -f conftest.er1 |
| 24667 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24669 | (exit $ac_status); } && { |
| 24670 | test -z "$ac_c_werror_flag" || |
| 24671 | test ! -s conftest.err |
| 24672 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24673 | ac_hi=$ac_mid; break |
| 24674 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24675 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24677 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24678 | ac_lo=`expr $ac_mid + 1` |
| 24679 | if test $ac_lo -le $ac_mid; then |
| 24680 | ac_lo= ac_hi= |
| 24681 | break |
| 24682 | fi |
| 24683 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24684 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24685 | |
| 24686 | 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] | 24687 | done |
| 24688 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24689 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24691 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24692 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24693 | /* confdefs.h. */ |
| 24694 | _ACEOF |
| 24695 | cat confdefs.h >>conftest.$ac_ext |
| 24696 | cat >>conftest.$ac_ext <<_ACEOF |
| 24697 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24698 | #include <wchar.h> |
| 24699 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24700 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24701 | int |
| 24702 | main () |
| 24703 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24704 | 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] | 24705 | test_array [0] = 0 |
| 24706 | |
| 24707 | ; |
| 24708 | return 0; |
| 24709 | } |
| 24710 | _ACEOF |
| 24711 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24712 | if { (ac_try="$ac_compile" |
| 24713 | case "(($ac_try" in |
| 24714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24715 | *) ac_try_echo=$ac_try;; |
| 24716 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24718 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24719 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24721 | rm -f conftest.er1 |
| 24722 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24724 | (exit $ac_status); } && { |
| 24725 | test -z "$ac_c_werror_flag" || |
| 24726 | test ! -s conftest.err |
| 24727 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24728 | ac_hi=-1 ac_mid=-1 |
| 24729 | while :; do |
| 24730 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24731 | /* confdefs.h. */ |
| 24732 | _ACEOF |
| 24733 | cat confdefs.h >>conftest.$ac_ext |
| 24734 | cat >>conftest.$ac_ext <<_ACEOF |
| 24735 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24736 | #include <wchar.h> |
| 24737 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24738 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24739 | int |
| 24740 | main () |
| 24741 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24742 | 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] | 24743 | test_array [0] = 0 |
| 24744 | |
| 24745 | ; |
| 24746 | return 0; |
| 24747 | } |
| 24748 | _ACEOF |
| 24749 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24750 | if { (ac_try="$ac_compile" |
| 24751 | case "(($ac_try" in |
| 24752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24753 | *) ac_try_echo=$ac_try;; |
| 24754 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24756 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24757 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24759 | rm -f conftest.er1 |
| 24760 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24762 | (exit $ac_status); } && { |
| 24763 | test -z "$ac_c_werror_flag" || |
| 24764 | test ! -s conftest.err |
| 24765 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24766 | ac_lo=$ac_mid; break |
| 24767 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24768 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24770 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24771 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 24772 | if test $ac_mid -le $ac_hi; then |
| 24773 | ac_lo= ac_hi= |
| 24774 | break |
| 24775 | fi |
| 24776 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24777 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24778 | |
| 24779 | 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] | 24780 | done |
| 24781 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24782 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24784 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24785 | ac_lo= ac_hi= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24786 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24787 | |
| 24788 | 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] | 24789 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24790 | |
| 24791 | 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] | 24792 | # Binary search between lo and hi bounds. |
| 24793 | while test "x$ac_lo" != "x$ac_hi"; do |
| 24794 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 24795 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24796 | /* confdefs.h. */ |
| 24797 | _ACEOF |
| 24798 | cat confdefs.h >>conftest.$ac_ext |
| 24799 | cat >>conftest.$ac_ext <<_ACEOF |
| 24800 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24801 | #include <wchar.h> |
| 24802 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24803 | typedef wchar_t ac__type_sizeof_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24804 | int |
| 24805 | main () |
| 24806 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24807 | 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] | 24808 | test_array [0] = 0 |
| 24809 | |
| 24810 | ; |
| 24811 | return 0; |
| 24812 | } |
| 24813 | _ACEOF |
| 24814 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24815 | if { (ac_try="$ac_compile" |
| 24816 | case "(($ac_try" in |
| 24817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24818 | *) ac_try_echo=$ac_try;; |
| 24819 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24821 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24822 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24824 | rm -f conftest.er1 |
| 24825 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24827 | (exit $ac_status); } && { |
| 24828 | test -z "$ac_c_werror_flag" || |
| 24829 | test ! -s conftest.err |
| 24830 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24831 | ac_hi=$ac_mid |
| 24832 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24833 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24835 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24836 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24837 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24838 | |
| 24839 | 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] | 24840 | done |
| 24841 | case $ac_lo in |
| 24842 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24843 | '') if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24844 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24845 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24846 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24847 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24848 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24849 | else |
| 24850 | ac_cv_sizeof_wchar_t=0 |
| 24851 | fi ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24852 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24854 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24855 | /* confdefs.h. */ |
| 24856 | _ACEOF |
| 24857 | cat confdefs.h >>conftest.$ac_ext |
| 24858 | cat >>conftest.$ac_ext <<_ACEOF |
| 24859 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24860 | #include <wchar.h> |
| 24861 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24862 | typedef wchar_t ac__type_sizeof_; |
| 24863 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 24864 | 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] | 24865 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24866 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24867 | int |
| 24868 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24869 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24870 | |
| 24871 | FILE *f = fopen ("conftest.val", "w"); |
| 24872 | if (! f) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24873 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24874 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24875 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24876 | long int i = longval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24877 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24878 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24879 | fprintf (f, "%ld\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24880 | } |
| 24881 | else |
| 24882 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24883 | unsigned long int i = ulongval (); |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24884 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24885 | return 1; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24886 | fprintf (f, "%lu\n", i); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24887 | } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24888 | return ferror (f) || fclose (f) != 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24889 | |
| 24890 | ; |
| 24891 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24892 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24893 | _ACEOF |
| 24894 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24895 | if { (ac_try="$ac_link" |
| 24896 | case "(($ac_try" in |
| 24897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24898 | *) ac_try_echo=$ac_try;; |
| 24899 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24901 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24902 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24904 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24905 | { (case "(($ac_try" in |
| 24906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24907 | *) ac_try_echo=$ac_try;; |
| 24908 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24910 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24911 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24913 | (exit $ac_status); }; }; then |
| 24914 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24915 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24916 | echo "$as_me: program exited with status $ac_status" >&5 |
| 24917 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24920 | ( exit $ac_status ) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24921 | if test "$ac_cv_type_wchar_t" = yes; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24922 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24923 | See \`config.log' for more details." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24924 | echo "$as_me: error: cannot compute sizeof (wchar_t) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24925 | See \`config.log' for more details." >&2;} |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24926 | { (exit 77); exit 77; }; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24927 | else |
| 24928 | ac_cv_sizeof_wchar_t=0 |
| 24929 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24930 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24931 | 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] | 24932 | fi |
| 24933 | rm -f conftest.val |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 24934 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24935 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 24936 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24937 | |
| 24938 | |
| 24939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24940 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24941 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24942 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24943 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 24944 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 24945 | fi |
| 24946 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24947 | { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 24948 | 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] | 24949 | have_ucs4_tcl=no |
| 24950 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24951 | /* confdefs.h. */ |
| 24952 | _ACEOF |
| 24953 | cat confdefs.h >>conftest.$ac_ext |
| 24954 | cat >>conftest.$ac_ext <<_ACEOF |
| 24955 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24956 | |
| 24957 | #include <tcl.h> |
| 24958 | #if TCL_UTF_MAX != 6 |
| 24959 | # error "NOT UCS4_TCL" |
| 24960 | #endif |
| 24961 | int |
| 24962 | main () |
| 24963 | { |
| 24964 | |
| 24965 | ; |
| 24966 | return 0; |
| 24967 | } |
| 24968 | _ACEOF |
| 24969 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24970 | if { (ac_try="$ac_compile" |
| 24971 | case "(($ac_try" in |
| 24972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24973 | *) ac_try_echo=$ac_try;; |
| 24974 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24976 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24977 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 24978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24979 | rm -f conftest.er1 |
| 24980 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24982 | (exit $ac_status); } && { |
| 24983 | test -z "$ac_c_werror_flag" || |
| 24984 | test ! -s conftest.err |
| 24985 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24986 | |
| 24987 | |
| 24988 | cat >>confdefs.h <<\_ACEOF |
| 24989 | #define HAVE_UCS4_TCL 1 |
| 24990 | _ACEOF |
| 24991 | |
| 24992 | have_ucs4_tcl=yes |
| 24993 | |
| 24994 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 24995 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 24996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24997 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 24998 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 24999 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25000 | |
| 25001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25002 | { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 25003 | echo "${ECHO_T}$have_ucs4_tcl" >&6; } |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25004 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25005 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25006 | if test "$wchar_h" = yes |
| 25007 | then |
| 25008 | # check whether wchar_t is signed or not |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25009 | { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 25010 | 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] | 25011 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25013 | else |
| 25014 | |
| 25015 | if test "$cross_compiling" = yes; then |
| 25016 | ac_cv_wchar_t_signed=yes |
| 25017 | else |
| 25018 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25019 | /* confdefs.h. */ |
| 25020 | _ACEOF |
| 25021 | cat confdefs.h >>conftest.$ac_ext |
| 25022 | cat >>conftest.$ac_ext <<_ACEOF |
| 25023 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25024 | |
| 25025 | #include <wchar.h> |
| 25026 | int main() |
| 25027 | { |
Martin v. Löwis | 44fe0e4 | 2006-04-11 07:15:30 +0000 | [diff] [blame] | 25028 | /* Success: exit code 0 */ |
| 25029 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25030 | } |
| 25031 | |
| 25032 | _ACEOF |
| 25033 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25034 | if { (ac_try="$ac_link" |
| 25035 | case "(($ac_try" in |
| 25036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25037 | *) ac_try_echo=$ac_try;; |
| 25038 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25040 | (eval "$ac_link") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25041 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25043 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25044 | { (case "(($ac_try" in |
| 25045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25046 | *) ac_try_echo=$ac_try;; |
| 25047 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25049 | (eval "$ac_try") 2>&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25050 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25052 | (exit $ac_status); }; }; then |
| 25053 | ac_cv_wchar_t_signed=yes |
| 25054 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25055 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25056 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25058 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25059 | ( exit $ac_status ) |
| 25060 | ac_cv_wchar_t_signed=no |
| 25061 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25062 | 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] | 25063 | fi |
| 25064 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25065 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25066 | fi |
| 25067 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25068 | { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 25069 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; } |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25070 | fi |
| 25071 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25072 | { echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 25073 | 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] | 25074 | # Check whether --enable-unicode was given. |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25075 | if test "${enable_unicode+set}" = set; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25076 | enableval=$enable_unicode; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25077 | else |
| 25078 | enable_unicode=yes |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25079 | fi |
| 25080 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25081 | |
| 25082 | if test $enable_unicode = yes |
| 25083 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 25084 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 25085 | case "$have_ucs4_tcl" in |
| 25086 | yes) enable_unicode="ucs4" |
| 25087 | ;; |
| 25088 | *) enable_unicode="ucs2" |
| 25089 | ;; |
| 25090 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25091 | fi |
| 25092 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25093 | |
| 25094 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25095 | case "$enable_unicode" in |
| 25096 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25097 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25098 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25099 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25100 | |
| 25101 | ;; |
| 25102 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25103 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25104 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25105 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25106 | |
| 25107 | ;; |
| 25108 | esac |
| 25109 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25111 | |
| 25112 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 25113 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25114 | if test "$enable_unicode" = "no" |
| 25115 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25116 | UNICODE_OBJS="" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25117 | { echo "$as_me:$LINENO: result: not used" >&5 |
| 25118 | echo "${ECHO_T}not used" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25119 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 25120 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25121 | |
| 25122 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25123 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25124 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25125 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 25126 | |
| 25127 | # wchar_t is only usable if it maps to an unsigned type |
| 25128 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 25129 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25130 | then |
| 25131 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25132 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25133 | cat >>confdefs.h <<\_ACEOF |
| 25134 | #define HAVE_USABLE_WCHAR_T 1 |
| 25135 | _ACEOF |
| 25136 | |
| 25137 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25138 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25139 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25140 | |
| 25141 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 25142 | then |
| 25143 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25144 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25145 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25146 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25147 | |
| 25148 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 25149 | then |
| 25150 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25151 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25152 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25153 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25154 | |
| 25155 | else |
| 25156 | PY_UNICODE_TYPE="no type found" |
| 25157 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25158 | { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 25159 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; } |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 25160 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25161 | |
| 25162 | # check for endianness |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25163 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 25164 | 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] | 25165 | if test "${ac_cv_c_bigendian+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25167 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25168 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 25169 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25170 | /* confdefs.h. */ |
| 25171 | _ACEOF |
| 25172 | cat confdefs.h >>conftest.$ac_ext |
| 25173 | cat >>conftest.$ac_ext <<_ACEOF |
| 25174 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25175 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25176 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25178 | int |
| 25179 | main () |
| 25180 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25181 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 25182 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
| 25183 | bogus endian macros |
| 25184 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25185 | |
| 25186 | ; |
| 25187 | return 0; |
| 25188 | } |
| 25189 | _ACEOF |
| 25190 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25191 | if { (ac_try="$ac_compile" |
| 25192 | case "(($ac_try" in |
| 25193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25194 | *) ac_try_echo=$ac_try;; |
| 25195 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25197 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25198 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25200 | rm -f conftest.er1 |
| 25201 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25203 | (exit $ac_status); } && { |
| 25204 | test -z "$ac_c_werror_flag" || |
| 25205 | test ! -s conftest.err |
| 25206 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25207 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25208 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25209 | /* confdefs.h. */ |
| 25210 | _ACEOF |
| 25211 | cat confdefs.h >>conftest.$ac_ext |
| 25212 | cat >>conftest.$ac_ext <<_ACEOF |
| 25213 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25214 | #include <sys/types.h> |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25215 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25217 | int |
| 25218 | main () |
| 25219 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25220 | #if BYTE_ORDER != BIG_ENDIAN |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25221 | not big endian |
| 25222 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25223 | |
| 25224 | ; |
| 25225 | return 0; |
| 25226 | } |
| 25227 | _ACEOF |
| 25228 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25229 | if { (ac_try="$ac_compile" |
| 25230 | case "(($ac_try" in |
| 25231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25232 | *) ac_try_echo=$ac_try;; |
| 25233 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25235 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25236 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25238 | rm -f conftest.er1 |
| 25239 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25241 | (exit $ac_status); } && { |
| 25242 | test -z "$ac_c_werror_flag" || |
| 25243 | test ! -s conftest.err |
| 25244 | } && test -s conftest.$ac_objext; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25245 | ac_cv_c_bigendian=yes |
| 25246 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25247 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25249 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25250 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25251 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25252 | |
| 25253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25254 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25255 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25257 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25258 | # It does not; compile a test program. |
| 25259 | if test "$cross_compiling" = yes; then |
| 25260 | # try to guess the endianness by grepping values into an object file |
| 25261 | ac_cv_c_bigendian=unknown |
| 25262 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25263 | /* confdefs.h. */ |
| 25264 | _ACEOF |
| 25265 | cat confdefs.h >>conftest.$ac_ext |
| 25266 | cat >>conftest.$ac_ext <<_ACEOF |
| 25267 | /* end confdefs.h. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25268 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 25269 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 25270 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 25271 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 25272 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 25273 | 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] | 25274 | int |
| 25275 | main () |
| 25276 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25277 | _ascii (); _ebcdic (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25278 | ; |
| 25279 | return 0; |
| 25280 | } |
| 25281 | _ACEOF |
| 25282 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25283 | if { (ac_try="$ac_compile" |
| 25284 | case "(($ac_try" in |
| 25285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25286 | *) ac_try_echo=$ac_try;; |
| 25287 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25289 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25290 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25292 | rm -f conftest.er1 |
| 25293 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25295 | (exit $ac_status); } && { |
| 25296 | test -z "$ac_c_werror_flag" || |
| 25297 | test ! -s conftest.err |
| 25298 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25299 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25300 | ac_cv_c_bigendian=yes |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25301 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25302 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 25303 | if test "$ac_cv_c_bigendian" = unknown; then |
| 25304 | ac_cv_c_bigendian=no |
| 25305 | else |
| 25306 | # finding both strings is unlikely to happen, but who knows? |
| 25307 | ac_cv_c_bigendian=unknown |
| 25308 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25309 | fi |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25310 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25311 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25313 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25314 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25315 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25316 | |
| 25317 | 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] | 25318 | else |
| 25319 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25320 | /* confdefs.h. */ |
| 25321 | _ACEOF |
| 25322 | cat confdefs.h >>conftest.$ac_ext |
| 25323 | cat >>conftest.$ac_ext <<_ACEOF |
| 25324 | /* end confdefs.h. */ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25325 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25326 | int |
| 25327 | main () |
| 25328 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25329 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25330 | /* Are we little or big endian? From Harbison&Steele. */ |
| 25331 | union |
| 25332 | { |
| 25333 | long int l; |
| 25334 | char c[sizeof (long int)]; |
| 25335 | } u; |
| 25336 | u.l = 1; |
| 25337 | return u.c[sizeof (long int) - 1] == 1; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25338 | |
| 25339 | ; |
| 25340 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25341 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25342 | _ACEOF |
| 25343 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25344 | if { (ac_try="$ac_link" |
| 25345 | case "(($ac_try" in |
| 25346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25347 | *) ac_try_echo=$ac_try;; |
| 25348 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25350 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25351 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25353 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25354 | { (case "(($ac_try" in |
| 25355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25356 | *) ac_try_echo=$ac_try;; |
| 25357 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25359 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25360 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25362 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25363 | ac_cv_c_bigendian=no |
| 25364 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25365 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25366 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25369 | ( exit $ac_status ) |
| 25370 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25371 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25372 | 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] | 25373 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25374 | |
| 25375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25376 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25377 | |
| 25378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25379 | fi |
| 25380 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 25381 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 25382 | case $ac_cv_c_bigendian in |
| 25383 | yes) |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25384 | |
| 25385 | cat >>confdefs.h <<\_ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25386 | #define WORDS_BIGENDIAN 1 |
Alexandre Vassalotti | a2db687 | 2009-07-17 07:46:46 +0000 | [diff] [blame] | 25387 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25388 | ;; |
| 25389 | no) |
| 25390 | ;; |
| 25391 | *) |
| 25392 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 25393 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 25394 | echo "$as_me: error: unknown endianness |
| 25395 | 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] | 25396 | { (exit 1); exit 1; }; } ;; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25397 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 25398 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25399 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25400 | # Check whether right shifting a negative integer extends the sign bit |
| 25401 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25402 | { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 25403 | 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] | 25404 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25407 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25408 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 25409 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25411 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25412 | /* confdefs.h. */ |
| 25413 | _ACEOF |
| 25414 | cat confdefs.h >>conftest.$ac_ext |
| 25415 | cat >>conftest.$ac_ext <<_ACEOF |
| 25416 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25417 | |
| 25418 | int main() |
| 25419 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25420 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25421 | } |
| 25422 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25423 | _ACEOF |
| 25424 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25425 | if { (ac_try="$ac_link" |
| 25426 | case "(($ac_try" in |
| 25427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25428 | *) ac_try_echo=$ac_try;; |
| 25429 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25431 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25432 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25434 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25435 | { (case "(($ac_try" in |
| 25436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25437 | *) ac_try_echo=$ac_try;; |
| 25438 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25440 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25441 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25443 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25444 | ac_cv_rshift_extends_sign=yes |
| 25445 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25446 | echo "$as_me: program exited with status $ac_status" >&5 |
| 25447 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25449 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25450 | ( exit $ac_status ) |
| 25451 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25452 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25453 | 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] | 25454 | fi |
| 25455 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25456 | |
| 25457 | fi |
| 25458 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25459 | { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 25460 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; } |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 25461 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25462 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25463 | |
| 25464 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25465 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25466 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25467 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25468 | fi |
| 25469 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25470 | # check for getc_unlocked and related locking functions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25471 | { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 25472 | 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] | 25473 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25476 | |
| 25477 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25478 | /* confdefs.h. */ |
| 25479 | _ACEOF |
| 25480 | cat confdefs.h >>conftest.$ac_ext |
| 25481 | cat >>conftest.$ac_ext <<_ACEOF |
| 25482 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25483 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25484 | int |
| 25485 | main () |
| 25486 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25487 | |
| 25488 | FILE *f = fopen("/dev/null", "r"); |
| 25489 | flockfile(f); |
| 25490 | getc_unlocked(f); |
| 25491 | funlockfile(f); |
| 25492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25493 | ; |
| 25494 | return 0; |
| 25495 | } |
| 25496 | _ACEOF |
| 25497 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25498 | if { (ac_try="$ac_link" |
| 25499 | case "(($ac_try" in |
| 25500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25501 | *) ac_try_echo=$ac_try;; |
| 25502 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25504 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25505 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25507 | rm -f conftest.er1 |
| 25508 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25510 | (exit $ac_status); } && { |
| 25511 | test -z "$ac_c_werror_flag" || |
| 25512 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25513 | } && test -s conftest$ac_exeext && |
| 25514 | $as_test_x conftest$ac_exeext; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25515 | ac_cv_have_getc_unlocked=yes |
| 25516 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25517 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25519 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25520 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25521 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25522 | |
| 25523 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25524 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25525 | fi |
| 25526 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25527 | { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 25528 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; } |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25529 | if test "$ac_cv_have_getc_unlocked" = yes |
| 25530 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25531 | |
| 25532 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25533 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25534 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 25535 | |
| 25536 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 25537 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25538 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 25539 | # save the value of LIBS so we don't actually link Python with readline |
| 25540 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25541 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25542 | # On some systems we need to link readline to a termcap compatible |
| 25543 | # library. NOTE: Keep the precedence of listed libraries synchronised |
| 25544 | # with setup.py. |
| 25545 | py_cv_lib_readline=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25546 | { echo "$as_me:$LINENO: checking how to link readline libs" >&5 |
| 25547 | 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] | 25548 | for py_libtermcap in "" ncursesw ncurses curses termcap; do |
| 25549 | if test -z "$py_libtermcap"; then |
| 25550 | READLINE_LIBS="-lreadline" |
| 25551 | else |
| 25552 | READLINE_LIBS="-lreadline -l$py_libtermcap" |
| 25553 | fi |
| 25554 | LIBS="$READLINE_LIBS $LIBS_no_readline" |
| 25555 | cat >conftest.$ac_ext <<_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25556 | /* confdefs.h. */ |
| 25557 | _ACEOF |
| 25558 | cat confdefs.h >>conftest.$ac_ext |
| 25559 | cat >>conftest.$ac_ext <<_ACEOF |
| 25560 | /* end confdefs.h. */ |
| 25561 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25562 | /* Override any GCC internal prototype to avoid an error. |
| 25563 | Use char because int might match the return type of a GCC |
| 25564 | builtin and then its argument prototype would still apply. */ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25565 | #ifdef __cplusplus |
| 25566 | extern "C" |
| 25567 | #endif |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25568 | char readline (); |
| 25569 | int |
| 25570 | main () |
| 25571 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25572 | return readline (); |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25573 | ; |
| 25574 | return 0; |
| 25575 | } |
| 25576 | _ACEOF |
| 25577 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25578 | if { (ac_try="$ac_link" |
| 25579 | case "(($ac_try" in |
| 25580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25581 | *) ac_try_echo=$ac_try;; |
| 25582 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25584 | (eval "$ac_link") 2>conftest.er1 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25585 | ac_status=$? |
| 25586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25587 | rm -f conftest.er1 |
| 25588 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25590 | (exit $ac_status); } && { |
| 25591 | test -z "$ac_c_werror_flag" || |
| 25592 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25593 | } && test -s conftest$ac_exeext && |
| 25594 | $as_test_x conftest$ac_exeext; then |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25595 | py_cv_lib_readline=yes |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25596 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25597 | echo "$as_me: failed program was:" >&5 |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25599 | |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25600 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25601 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25602 | |
| 25603 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25604 | conftest$ac_exeext conftest.$ac_ext |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25605 | if test $py_cv_lib_readline = yes; then |
| 25606 | break |
| 25607 | fi |
| 25608 | done |
| 25609 | # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
| 25610 | #AC_SUBST([READLINE_LIBS]) |
Gregory P. Smith | e080cdf | 2008-09-07 19:19:04 +0000 | [diff] [blame] | 25611 | if test $py_cv_lib_readline = no; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25612 | { echo "$as_me:$LINENO: result: none" >&5 |
| 25613 | echo "${ECHO_T}none" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25614 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25615 | { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5 |
| 25616 | echo "${ECHO_T}$READLINE_LIBS" >&6; } |
Gregory P. Smith | cc023f1 | 2008-09-07 05:15:58 +0000 | [diff] [blame] | 25617 | |
| 25618 | cat >>confdefs.h <<\_ACEOF |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25619 | #define HAVE_LIBREADLINE 1 |
| 25620 | _ACEOF |
| 25621 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 25622 | fi |
| 25623 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25624 | # check for readline 2.1 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25625 | { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 25626 | 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] | 25627 | 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] | 25628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25629 | else |
| 25630 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25631 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25632 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25633 | /* confdefs.h. */ |
| 25634 | _ACEOF |
| 25635 | cat confdefs.h >>conftest.$ac_ext |
| 25636 | cat >>conftest.$ac_ext <<_ACEOF |
| 25637 | /* end confdefs.h. */ |
| 25638 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25639 | /* Override any GCC internal prototype to avoid an error. |
| 25640 | Use char because int might match the return type of a GCC |
| 25641 | builtin and then its argument prototype would still apply. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25642 | #ifdef __cplusplus |
| 25643 | extern "C" |
| 25644 | #endif |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25645 | char rl_callback_handler_install (); |
| 25646 | int |
| 25647 | main () |
| 25648 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25649 | return rl_callback_handler_install (); |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25650 | ; |
| 25651 | return 0; |
| 25652 | } |
| 25653 | _ACEOF |
| 25654 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25655 | if { (ac_try="$ac_link" |
| 25656 | case "(($ac_try" in |
| 25657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25658 | *) ac_try_echo=$ac_try;; |
| 25659 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25661 | (eval "$ac_link") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25662 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25664 | rm -f conftest.er1 |
| 25665 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25667 | (exit $ac_status); } && { |
| 25668 | test -z "$ac_c_werror_flag" || |
| 25669 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25670 | } && test -s conftest$ac_exeext && |
| 25671 | $as_test_x conftest$ac_exeext; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25672 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 25673 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25674 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25676 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25677 | ac_cv_lib_readline_rl_callback_handler_install=no |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25678 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25679 | |
| 25680 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25681 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25682 | LIBS=$ac_check_lib_save_LIBS |
| 25683 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25684 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 25685 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; } |
| 25686 | 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] | 25687 | |
| 25688 | cat >>confdefs.h <<\_ACEOF |
| 25689 | #define HAVE_RL_CALLBACK 1 |
| 25690 | _ACEOF |
| 25691 | |
| 25692 | fi |
| 25693 | |
| 25694 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25695 | # check for readline 2.2 |
| 25696 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25697 | /* confdefs.h. */ |
| 25698 | _ACEOF |
| 25699 | cat confdefs.h >>conftest.$ac_ext |
| 25700 | cat >>conftest.$ac_ext <<_ACEOF |
| 25701 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25702 | #include <readline/readline.h> |
| 25703 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25704 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 2>conftest.er1 |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25711 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25712 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 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); } >/dev/null && { |
| 25717 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 25718 | test ! -s conftest.err |
| 25719 | }; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25720 | have_readline=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 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25725 | have_readline=no |
| 25726 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25727 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25728 | rm -f conftest.err conftest.$ac_ext |
| 25729 | if test $have_readline = yes |
| 25730 | then |
| 25731 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25732 | /* confdefs.h. */ |
| 25733 | _ACEOF |
| 25734 | cat confdefs.h >>conftest.$ac_ext |
| 25735 | cat >>conftest.$ac_ext <<_ACEOF |
| 25736 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25737 | #include <readline/readline.h> |
| 25738 | |
| 25739 | _ACEOF |
| 25740 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25741 | $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] | 25742 | |
| 25743 | cat >>confdefs.h <<\_ACEOF |
| 25744 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 25745 | _ACEOF |
| 25746 | |
| 25747 | fi |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 25748 | rm -f conftest* |
| 25749 | |
| 25750 | cat >conftest.$ac_ext <<_ACEOF |
| 25751 | /* confdefs.h. */ |
| 25752 | _ACEOF |
| 25753 | cat confdefs.h >>conftest.$ac_ext |
| 25754 | cat >>conftest.$ac_ext <<_ACEOF |
| 25755 | /* end confdefs.h. */ |
| 25756 | #include <readline/readline.h> |
| 25757 | |
| 25758 | _ACEOF |
| 25759 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 25760 | $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then |
| 25761 | |
| 25762 | cat >>confdefs.h <<\_ACEOF |
| 25763 | #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1 |
| 25764 | _ACEOF |
| 25765 | |
| 25766 | fi |
| 25767 | rm -f conftest* |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 25768 | |
| 25769 | fi |
| 25770 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25771 | # check for readline 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25772 | { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 25773 | 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] | 25774 | 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] | 25775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25776 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25777 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25778 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25779 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25780 | /* confdefs.h. */ |
| 25781 | _ACEOF |
| 25782 | cat confdefs.h >>conftest.$ac_ext |
| 25783 | cat >>conftest.$ac_ext <<_ACEOF |
| 25784 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25785 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25786 | /* Override any GCC internal prototype to avoid an error. |
| 25787 | Use char because int might match the return type of a GCC |
| 25788 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25789 | #ifdef __cplusplus |
| 25790 | extern "C" |
| 25791 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25792 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25793 | int |
| 25794 | main () |
| 25795 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25796 | return rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25797 | ; |
| 25798 | return 0; |
| 25799 | } |
| 25800 | _ACEOF |
| 25801 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25802 | if { (ac_try="$ac_link" |
| 25803 | case "(($ac_try" in |
| 25804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25805 | *) ac_try_echo=$ac_try;; |
| 25806 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25808 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25809 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25811 | rm -f conftest.er1 |
| 25812 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25814 | (exit $ac_status); } && { |
| 25815 | test -z "$ac_c_werror_flag" || |
| 25816 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25817 | } && test -s conftest$ac_exeext && |
| 25818 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25819 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25820 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25821 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25823 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25824 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25825 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25826 | |
| 25827 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25828 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25829 | LIBS=$ac_check_lib_save_LIBS |
| 25830 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25831 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 25832 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; } |
| 25833 | 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] | 25834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25835 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25836 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25837 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25838 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25839 | fi |
| 25840 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25841 | |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25842 | # also in 4.0 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25843 | { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5 |
| 25844 | 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] | 25845 | 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] | 25846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25847 | else |
| 25848 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25849 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25850 | cat >conftest.$ac_ext <<_ACEOF |
| 25851 | /* confdefs.h. */ |
| 25852 | _ACEOF |
| 25853 | cat confdefs.h >>conftest.$ac_ext |
| 25854 | cat >>conftest.$ac_ext <<_ACEOF |
| 25855 | /* end confdefs.h. */ |
| 25856 | |
| 25857 | /* Override any GCC internal prototype to avoid an error. |
| 25858 | Use char because int might match the return type of a GCC |
| 25859 | builtin and then its argument prototype would still apply. */ |
| 25860 | #ifdef __cplusplus |
| 25861 | extern "C" |
| 25862 | #endif |
| 25863 | char rl_completion_display_matches_hook (); |
| 25864 | int |
| 25865 | main () |
| 25866 | { |
| 25867 | return rl_completion_display_matches_hook (); |
| 25868 | ; |
| 25869 | return 0; |
| 25870 | } |
| 25871 | _ACEOF |
| 25872 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 25873 | if { (ac_try="$ac_link" |
| 25874 | case "(($ac_try" in |
| 25875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25876 | *) ac_try_echo=$ac_try;; |
| 25877 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25879 | (eval "$ac_link") 2>conftest.er1 |
| 25880 | ac_status=$? |
| 25881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25882 | rm -f conftest.er1 |
| 25883 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25885 | (exit $ac_status); } && { |
| 25886 | test -z "$ac_c_werror_flag" || |
| 25887 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25888 | } && test -s conftest$ac_exeext && |
| 25889 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25890 | ac_cv_lib_readline_rl_completion_display_matches_hook=yes |
| 25891 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25892 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 58bd49f | 2007-09-04 13:13:14 +0000 | [diff] [blame] | 25893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25894 | |
| 25895 | ac_cv_lib_readline_rl_completion_display_matches_hook=no |
| 25896 | fi |
| 25897 | |
| 25898 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 25899 | conftest$ac_exeext conftest.$ac_ext |
| 25900 | LIBS=$ac_check_lib_save_LIBS |
| 25901 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25902 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 |
| 25903 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } |
| 25904 | 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] | 25905 | |
| 25906 | cat >>confdefs.h <<\_ACEOF |
| 25907 | #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 |
| 25908 | _ACEOF |
| 25909 | |
| 25910 | fi |
| 25911 | |
| 25912 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25913 | # check for readline 4.2 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25914 | { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 25915 | 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] | 25916 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 25918 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25919 | ac_check_lib_save_LIBS=$LIBS |
Gregory P. Smith | ff7b2d5 | 2008-09-03 05:57:48 +0000 | [diff] [blame] | 25920 | LIBS="-lreadline $READLINE_LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25921 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25922 | /* confdefs.h. */ |
| 25923 | _ACEOF |
| 25924 | cat confdefs.h >>conftest.$ac_ext |
| 25925 | cat >>conftest.$ac_ext <<_ACEOF |
| 25926 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25927 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25928 | /* Override any GCC internal prototype to avoid an error. |
| 25929 | Use char because int might match the return type of a GCC |
| 25930 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25931 | #ifdef __cplusplus |
| 25932 | extern "C" |
| 25933 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25934 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25935 | int |
| 25936 | main () |
| 25937 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25938 | return rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25939 | ; |
| 25940 | return 0; |
| 25941 | } |
| 25942 | _ACEOF |
| 25943 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25944 | if { (ac_try="$ac_link" |
| 25945 | case "(($ac_try" in |
| 25946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25947 | *) ac_try_echo=$ac_try;; |
| 25948 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25950 | (eval "$ac_link") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25951 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25953 | rm -f conftest.er1 |
| 25954 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25956 | (exit $ac_status); } && { |
| 25957 | test -z "$ac_c_werror_flag" || |
| 25958 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25959 | } && test -s conftest$ac_exeext && |
| 25960 | $as_test_x conftest$ac_exeext; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25961 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25962 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25963 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 25964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25965 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25966 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25967 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25968 | |
| 25969 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25970 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25971 | LIBS=$ac_check_lib_save_LIBS |
| 25972 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25973 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 25974 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; } |
| 25975 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 25976 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25977 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25978 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25979 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25980 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 25981 | fi |
| 25982 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 25983 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25984 | # also in readline 4.2 |
| 25985 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 25986 | /* confdefs.h. */ |
| 25987 | _ACEOF |
| 25988 | cat confdefs.h >>conftest.$ac_ext |
| 25989 | cat >>conftest.$ac_ext <<_ACEOF |
| 25990 | /* end confdefs.h. */ |
| 25991 | #include <readline/readline.h> |
| 25992 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25993 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 25994 | case "(($ac_try" in |
| 25995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25996 | *) ac_try_echo=$ac_try;; |
| 25997 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 25998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 25999 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26000 | ac_status=$? |
| 26001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26002 | rm -f conftest.er1 |
| 26003 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26005 | (exit $ac_status); } >/dev/null && { |
| 26006 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 26007 | test ! -s conftest.err |
| 26008 | }; then |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26009 | have_readline=yes |
| 26010 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26011 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26013 | |
| 26014 | have_readline=no |
| 26015 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26016 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26017 | rm -f conftest.err conftest.$ac_ext |
| 26018 | if test $have_readline = yes |
| 26019 | then |
| 26020 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26021 | /* confdefs.h. */ |
| 26022 | _ACEOF |
| 26023 | cat confdefs.h >>conftest.$ac_ext |
| 26024 | cat >>conftest.$ac_ext <<_ACEOF |
| 26025 | /* end confdefs.h. */ |
| 26026 | #include <readline/readline.h> |
| 26027 | |
| 26028 | _ACEOF |
| 26029 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26030 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 26031 | |
| 26032 | cat >>confdefs.h <<\_ACEOF |
| 26033 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 26034 | _ACEOF |
| 26035 | |
| 26036 | fi |
Antoine Pitrou | d9ff74e | 2009-10-26 19:16:46 +0000 | [diff] [blame] | 26037 | rm -f conftest* |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 26038 | |
| 26039 | fi |
| 26040 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 26041 | # End of readline checks: restore LIBS |
| 26042 | LIBS=$LIBS_no_readline |
| 26043 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26044 | { echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 26045 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26046 | if test "${ac_cv_broken_nice+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26049 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26050 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 26051 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26052 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26053 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26054 | /* confdefs.h. */ |
| 26055 | _ACEOF |
| 26056 | cat confdefs.h >>conftest.$ac_ext |
| 26057 | cat >>conftest.$ac_ext <<_ACEOF |
| 26058 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26059 | |
| 26060 | int main() |
| 26061 | { |
| 26062 | int val1 = nice(1); |
| 26063 | if (val1 != -1 && val1 == nice(2)) |
| 26064 | exit(0); |
| 26065 | exit(1); |
| 26066 | } |
| 26067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26068 | _ACEOF |
| 26069 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26070 | if { (ac_try="$ac_link" |
| 26071 | case "(($ac_try" in |
| 26072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26073 | *) ac_try_echo=$ac_try;; |
| 26074 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26076 | (eval "$ac_link") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26077 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26079 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26080 | { (case "(($ac_try" in |
| 26081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26082 | *) ac_try_echo=$ac_try;; |
| 26083 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26085 | (eval "$ac_try") 2>&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26086 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26088 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26089 | ac_cv_broken_nice=yes |
| 26090 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26091 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26092 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26094 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26095 | ( exit $ac_status ) |
| 26096 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26097 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26098 | 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] | 26099 | fi |
| 26100 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26101 | |
| 26102 | fi |
| 26103 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26104 | { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 26105 | echo "${ECHO_T}$ac_cv_broken_nice" >&6; } |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26106 | if test "$ac_cv_broken_nice" = yes |
| 26107 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26108 | |
| 26109 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26110 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26111 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 26112 | |
| 26113 | fi |
| 26114 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26115 | { echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 26116 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26117 | if test "${ac_cv_broken_poll+set}" = set; then |
| 26118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26119 | else |
| 26120 | if test "$cross_compiling" = yes; then |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26121 | ac_cv_broken_poll=no |
| 26122 | else |
| 26123 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26124 | /* confdefs.h. */ |
| 26125 | _ACEOF |
| 26126 | cat confdefs.h >>conftest.$ac_ext |
| 26127 | cat >>conftest.$ac_ext <<_ACEOF |
| 26128 | /* end confdefs.h. */ |
| 26129 | |
| 26130 | #include <poll.h> |
| 26131 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26132 | int main() |
| 26133 | { |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26134 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26135 | int poll_test; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26136 | |
| 26137 | close (42); |
| 26138 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26139 | poll_test = poll(&poll_struct, 1, 0); |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26140 | if (poll_test < 0) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26141 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26142 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26143 | return 0; |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26144 | else |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26145 | return 1; |
| 26146 | } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26147 | |
| 26148 | _ACEOF |
| 26149 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26150 | if { (ac_try="$ac_link" |
| 26151 | case "(($ac_try" in |
| 26152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26153 | *) ac_try_echo=$ac_try;; |
| 26154 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26156 | (eval "$ac_link") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26157 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26159 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26160 | { (case "(($ac_try" in |
| 26161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26162 | *) ac_try_echo=$ac_try;; |
| 26163 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26165 | (eval "$ac_try") 2>&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26166 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26168 | (exit $ac_status); }; }; then |
| 26169 | ac_cv_broken_poll=yes |
| 26170 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26171 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26172 | echo "$as_me: failed program was:" >&5 |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26174 | |
| 26175 | ( exit $ac_status ) |
| 26176 | ac_cv_broken_poll=no |
| 26177 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26178 | 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] | 26179 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26180 | |
| 26181 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 26182 | fi |
| 26183 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26184 | { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 26185 | echo "${ECHO_T}$ac_cv_broken_poll" >&6; } |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26186 | if test "$ac_cv_broken_poll" = yes |
| 26187 | then |
| 26188 | |
| 26189 | cat >>confdefs.h <<\_ACEOF |
| 26190 | #define HAVE_BROKEN_POLL 1 |
| 26191 | _ACEOF |
| 26192 | |
| 26193 | fi |
| 26194 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26195 | # 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] | 26196 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 26197 | # tzname[] |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26198 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 26199 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26200 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26202 | else |
| 26203 | cat >conftest.$ac_ext <<_ACEOF |
| 26204 | /* confdefs.h. */ |
| 26205 | _ACEOF |
| 26206 | cat confdefs.h >>conftest.$ac_ext |
| 26207 | cat >>conftest.$ac_ext <<_ACEOF |
| 26208 | /* end confdefs.h. */ |
| 26209 | #include <sys/types.h> |
| 26210 | #include <$ac_cv_struct_tm> |
| 26211 | |
| 26212 | |
| 26213 | int |
| 26214 | main () |
| 26215 | { |
| 26216 | static struct tm ac_aggr; |
| 26217 | if (ac_aggr.tm_zone) |
| 26218 | return 0; |
| 26219 | ; |
| 26220 | return 0; |
| 26221 | } |
| 26222 | _ACEOF |
| 26223 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26224 | if { (ac_try="$ac_compile" |
| 26225 | case "(($ac_try" in |
| 26226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26227 | *) ac_try_echo=$ac_try;; |
| 26228 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26230 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26231 | ac_status=$? |
| 26232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26233 | rm -f conftest.er1 |
| 26234 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26236 | (exit $ac_status); } && { |
| 26237 | test -z "$ac_c_werror_flag" || |
| 26238 | test ! -s conftest.err |
| 26239 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26240 | ac_cv_member_struct_tm_tm_zone=yes |
| 26241 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26242 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26244 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26245 | cat >conftest.$ac_ext <<_ACEOF |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26246 | /* confdefs.h. */ |
| 26247 | _ACEOF |
| 26248 | cat confdefs.h >>conftest.$ac_ext |
| 26249 | cat >>conftest.$ac_ext <<_ACEOF |
| 26250 | /* end confdefs.h. */ |
| 26251 | #include <sys/types.h> |
| 26252 | #include <$ac_cv_struct_tm> |
| 26253 | |
| 26254 | |
| 26255 | int |
| 26256 | main () |
| 26257 | { |
| 26258 | static struct tm ac_aggr; |
| 26259 | if (sizeof ac_aggr.tm_zone) |
| 26260 | return 0; |
| 26261 | ; |
| 26262 | return 0; |
| 26263 | } |
| 26264 | _ACEOF |
| 26265 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26266 | if { (ac_try="$ac_compile" |
| 26267 | case "(($ac_try" in |
| 26268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26269 | *) ac_try_echo=$ac_try;; |
| 26270 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26272 | (eval "$ac_compile") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26273 | ac_status=$? |
| 26274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26275 | rm -f conftest.er1 |
| 26276 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26278 | (exit $ac_status); } && { |
| 26279 | test -z "$ac_c_werror_flag" || |
| 26280 | test ! -s conftest.err |
| 26281 | } && test -s conftest.$ac_objext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26282 | ac_cv_member_struct_tm_tm_zone=yes |
| 26283 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26284 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26286 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26287 | ac_cv_member_struct_tm_tm_zone=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26288 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26289 | |
| 26290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26291 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26292 | |
| 26293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26294 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26295 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 26296 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } |
| 26297 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26298 | |
| 26299 | cat >>confdefs.h <<_ACEOF |
| 26300 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 26301 | _ACEOF |
| 26302 | |
| 26303 | |
| 26304 | fi |
| 26305 | |
| 26306 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 26307 | |
| 26308 | cat >>confdefs.h <<\_ACEOF |
| 26309 | #define HAVE_TM_ZONE 1 |
| 26310 | _ACEOF |
| 26311 | |
| 26312 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26313 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
| 26314 | 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] | 26315 | if test "${ac_cv_have_decl_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26317 | else |
| 26318 | cat >conftest.$ac_ext <<_ACEOF |
| 26319 | /* confdefs.h. */ |
| 26320 | _ACEOF |
| 26321 | cat confdefs.h >>conftest.$ac_ext |
| 26322 | cat >>conftest.$ac_ext <<_ACEOF |
| 26323 | /* end confdefs.h. */ |
| 26324 | #include <time.h> |
| 26325 | |
| 26326 | int |
| 26327 | main () |
| 26328 | { |
| 26329 | #ifndef tzname |
| 26330 | (void) tzname; |
| 26331 | #endif |
| 26332 | |
| 26333 | ; |
| 26334 | return 0; |
| 26335 | } |
| 26336 | _ACEOF |
| 26337 | rm -f conftest.$ac_objext |
| 26338 | if { (ac_try="$ac_compile" |
| 26339 | case "(($ac_try" in |
| 26340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26341 | *) ac_try_echo=$ac_try;; |
| 26342 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26344 | (eval "$ac_compile") 2>conftest.er1 |
| 26345 | ac_status=$? |
| 26346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26347 | rm -f conftest.er1 |
| 26348 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26350 | (exit $ac_status); } && { |
| 26351 | test -z "$ac_c_werror_flag" || |
| 26352 | test ! -s conftest.err |
| 26353 | } && test -s conftest.$ac_objext; then |
| 26354 | ac_cv_have_decl_tzname=yes |
| 26355 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26356 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26358 | |
| 26359 | ac_cv_have_decl_tzname=no |
| 26360 | fi |
| 26361 | |
| 26362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26363 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26364 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
| 26365 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } |
| 26366 | if test $ac_cv_have_decl_tzname = yes; then |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26367 | |
| 26368 | cat >>confdefs.h <<_ACEOF |
| 26369 | #define HAVE_DECL_TZNAME 1 |
| 26370 | _ACEOF |
| 26371 | |
| 26372 | |
| 26373 | else |
| 26374 | cat >>confdefs.h <<_ACEOF |
| 26375 | #define HAVE_DECL_TZNAME 0 |
| 26376 | _ACEOF |
| 26377 | |
| 26378 | |
| 26379 | fi |
| 26380 | |
| 26381 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26382 | { echo "$as_me:$LINENO: checking for tzname" >&5 |
| 26383 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26384 | if test "${ac_cv_var_tzname+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26386 | else |
| 26387 | cat >conftest.$ac_ext <<_ACEOF |
| 26388 | /* confdefs.h. */ |
| 26389 | _ACEOF |
| 26390 | cat confdefs.h >>conftest.$ac_ext |
| 26391 | cat >>conftest.$ac_ext <<_ACEOF |
| 26392 | /* end confdefs.h. */ |
| 26393 | #include <time.h> |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26394 | #if !HAVE_DECL_TZNAME |
| 26395 | extern char *tzname[]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26396 | #endif |
| 26397 | |
| 26398 | int |
| 26399 | main () |
| 26400 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26401 | return tzname[0][0]; |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26402 | ; |
| 26403 | return 0; |
| 26404 | } |
| 26405 | _ACEOF |
| 26406 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26407 | if { (ac_try="$ac_link" |
| 26408 | case "(($ac_try" in |
| 26409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26410 | *) ac_try_echo=$ac_try;; |
| 26411 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26413 | (eval "$ac_link") 2>conftest.er1 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26414 | ac_status=$? |
| 26415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26416 | rm -f conftest.er1 |
| 26417 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26419 | (exit $ac_status); } && { |
| 26420 | test -z "$ac_c_werror_flag" || |
| 26421 | test ! -s conftest.err |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26422 | } && test -s conftest$ac_exeext && |
| 26423 | $as_test_x conftest$ac_exeext; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26424 | ac_cv_var_tzname=yes |
| 26425 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26426 | echo "$as_me: failed program was:" >&5 |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26428 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26429 | ac_cv_var_tzname=no |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26430 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26431 | |
| 26432 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26433 | conftest$ac_exeext conftest.$ac_ext |
| 26434 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26435 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 26436 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26437 | if test $ac_cv_var_tzname = yes; then |
| 26438 | |
| 26439 | cat >>confdefs.h <<\_ACEOF |
| 26440 | #define HAVE_TZNAME 1 |
| 26441 | _ACEOF |
| 26442 | |
| 26443 | fi |
| 26444 | fi |
| 26445 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 26446 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26447 | # check tzset(3) exists and works like we expect it to |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26448 | { echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 26449 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26450 | if test "${ac_cv_working_tzset+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26452 | else |
| 26453 | |
| 26454 | if test "$cross_compiling" = yes; then |
| 26455 | ac_cv_working_tzset=no |
| 26456 | else |
| 26457 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26458 | /* confdefs.h. */ |
| 26459 | _ACEOF |
| 26460 | cat confdefs.h >>conftest.$ac_ext |
| 26461 | cat >>conftest.$ac_ext <<_ACEOF |
| 26462 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26463 | |
| 26464 | #include <stdlib.h> |
| 26465 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26466 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26467 | |
| 26468 | #if HAVE_TZNAME |
| 26469 | extern char *tzname[]; |
| 26470 | #endif |
| 26471 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26472 | int main() |
| 26473 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26474 | /* Note that we need to ensure that not only does tzset(3) |
| 26475 | do 'something' with localtime, but it works as documented |
| 26476 | 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] | 26477 | This includes making sure that tzname is set properly if |
| 26478 | tm->tm_zone does not exist since it is the alternative way |
| 26479 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26480 | |
| 26481 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26482 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26483 | */ |
| 26484 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 26485 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26486 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 26487 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26488 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26489 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26490 | if (localtime(&groundhogday)->tm_hour != 0) |
| 26491 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26492 | #if HAVE_TZNAME |
| 26493 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 26494 | if (strcmp(tzname[0], "UTC") || |
| 26495 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 26496 | exit(1); |
| 26497 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26498 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 26499 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26500 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26501 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26502 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26503 | #if HAVE_TZNAME |
| 26504 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 26505 | exit(1); |
| 26506 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26507 | |
| 26508 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 26509 | tzset(); |
| 26510 | if (localtime(&groundhogday)->tm_hour != 11) |
| 26511 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26512 | #if HAVE_TZNAME |
| 26513 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 26514 | exit(1); |
| 26515 | #endif |
| 26516 | |
| 26517 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26518 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 26519 | exit(1); |
| 26520 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 26521 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 26522 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 26523 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26524 | exit(0); |
| 26525 | } |
| 26526 | |
| 26527 | _ACEOF |
| 26528 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26529 | if { (ac_try="$ac_link" |
| 26530 | case "(($ac_try" in |
| 26531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26532 | *) ac_try_echo=$ac_try;; |
| 26533 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26535 | (eval "$ac_link") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26536 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26538 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26539 | { (case "(($ac_try" in |
| 26540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26541 | *) ac_try_echo=$ac_try;; |
| 26542 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26544 | (eval "$ac_try") 2>&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26545 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26547 | (exit $ac_status); }; }; then |
| 26548 | ac_cv_working_tzset=yes |
| 26549 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26550 | echo "$as_me: program exited with status $ac_status" >&5 |
| 26551 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26553 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26554 | ( exit $ac_status ) |
| 26555 | ac_cv_working_tzset=no |
| 26556 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26557 | 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] | 26558 | fi |
| 26559 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26560 | |
| 26561 | fi |
| 26562 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26563 | { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 26564 | echo "${ECHO_T}$ac_cv_working_tzset" >&6; } |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 26565 | if test "$ac_cv_working_tzset" = yes |
| 26566 | then |
| 26567 | |
| 26568 | cat >>confdefs.h <<\_ACEOF |
| 26569 | #define HAVE_WORKING_TZSET 1 |
| 26570 | _ACEOF |
| 26571 | |
| 26572 | fi |
| 26573 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26574 | # Look for subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26575 | { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 26576 | 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] | 26577 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26579 | else |
| 26580 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26581 | /* confdefs.h. */ |
| 26582 | _ACEOF |
| 26583 | cat confdefs.h >>conftest.$ac_ext |
| 26584 | cat >>conftest.$ac_ext <<_ACEOF |
| 26585 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26586 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26587 | int |
| 26588 | main () |
| 26589 | { |
| 26590 | |
| 26591 | struct stat st; |
| 26592 | st.st_mtim.tv_nsec = 1; |
| 26593 | |
| 26594 | ; |
| 26595 | return 0; |
| 26596 | } |
| 26597 | _ACEOF |
| 26598 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26599 | if { (ac_try="$ac_compile" |
| 26600 | case "(($ac_try" in |
| 26601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26602 | *) ac_try_echo=$ac_try;; |
| 26603 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26605 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26606 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26608 | rm -f conftest.er1 |
| 26609 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26611 | (exit $ac_status); } && { |
| 26612 | test -z "$ac_c_werror_flag" || |
| 26613 | test ! -s conftest.err |
| 26614 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 26615 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26616 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26617 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26619 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26620 | ac_cv_stat_tv_nsec=no |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26621 | fi |
| 26622 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26624 | fi |
| 26625 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26626 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 26627 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; } |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 26628 | if test "$ac_cv_stat_tv_nsec" = yes |
| 26629 | then |
| 26630 | |
| 26631 | cat >>confdefs.h <<\_ACEOF |
| 26632 | #define HAVE_STAT_TV_NSEC 1 |
| 26633 | _ACEOF |
| 26634 | |
| 26635 | fi |
| 26636 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26637 | # Look for BSD style subsecond timestamps in struct stat |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26638 | { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 26639 | 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] | 26640 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26642 | else |
| 26643 | cat >conftest.$ac_ext <<_ACEOF |
| 26644 | /* confdefs.h. */ |
| 26645 | _ACEOF |
| 26646 | cat confdefs.h >>conftest.$ac_ext |
| 26647 | cat >>conftest.$ac_ext <<_ACEOF |
| 26648 | /* end confdefs.h. */ |
| 26649 | #include <sys/stat.h> |
| 26650 | int |
| 26651 | main () |
| 26652 | { |
| 26653 | |
| 26654 | struct stat st; |
| 26655 | st.st_mtimespec.tv_nsec = 1; |
| 26656 | |
| 26657 | ; |
| 26658 | return 0; |
| 26659 | } |
| 26660 | _ACEOF |
| 26661 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26662 | if { (ac_try="$ac_compile" |
| 26663 | case "(($ac_try" in |
| 26664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26665 | *) ac_try_echo=$ac_try;; |
| 26666 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26668 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26669 | ac_status=$? |
| 26670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26671 | rm -f conftest.er1 |
| 26672 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26674 | (exit $ac_status); } && { |
| 26675 | test -z "$ac_c_werror_flag" || |
| 26676 | test ! -s conftest.err |
| 26677 | } && test -s conftest.$ac_objext; then |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26678 | ac_cv_stat_tv_nsec2=yes |
| 26679 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26680 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26682 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26683 | ac_cv_stat_tv_nsec2=no |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26684 | fi |
| 26685 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26687 | fi |
| 26688 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26689 | { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 26690 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; } |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 26691 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 26692 | then |
| 26693 | |
| 26694 | cat >>confdefs.h <<\_ACEOF |
| 26695 | #define HAVE_STAT_TV_NSEC2 1 |
| 26696 | _ACEOF |
| 26697 | |
| 26698 | fi |
| 26699 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26700 | # 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] | 26701 | { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 26702 | 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] | 26703 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26705 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26706 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26707 | /* confdefs.h. */ |
| 26708 | _ACEOF |
| 26709 | cat confdefs.h >>conftest.$ac_ext |
| 26710 | cat >>conftest.$ac_ext <<_ACEOF |
| 26711 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26712 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26713 | int |
| 26714 | main () |
| 26715 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26716 | |
| 26717 | int rtn; |
| 26718 | rtn = mvwdelch(0,0,0); |
| 26719 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26720 | ; |
| 26721 | return 0; |
| 26722 | } |
| 26723 | _ACEOF |
| 26724 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26725 | if { (ac_try="$ac_compile" |
| 26726 | case "(($ac_try" in |
| 26727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26728 | *) ac_try_echo=$ac_try;; |
| 26729 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26731 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26732 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26734 | rm -f conftest.er1 |
| 26735 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26737 | (exit $ac_status); } && { |
| 26738 | test -z "$ac_c_werror_flag" || |
| 26739 | test ! -s conftest.err |
| 26740 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26741 | ac_cv_mvwdelch_is_expression=yes |
| 26742 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26743 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26745 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26746 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26747 | fi |
| 26748 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26750 | fi |
| 26751 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26752 | { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 26753 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; } |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26754 | |
| 26755 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 26756 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26757 | |
| 26758 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26759 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26760 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26761 | |
| 26762 | fi |
| 26763 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26764 | { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 26765 | 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] | 26766 | if test "${ac_cv_window_has_flags+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26768 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26769 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26770 | /* confdefs.h. */ |
| 26771 | _ACEOF |
| 26772 | cat confdefs.h >>conftest.$ac_ext |
| 26773 | cat >>conftest.$ac_ext <<_ACEOF |
| 26774 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26775 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26776 | int |
| 26777 | main () |
| 26778 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26779 | |
| 26780 | WINDOW *w; |
| 26781 | w->_flags = 0; |
| 26782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26783 | ; |
| 26784 | return 0; |
| 26785 | } |
| 26786 | _ACEOF |
| 26787 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26788 | if { (ac_try="$ac_compile" |
| 26789 | case "(($ac_try" in |
| 26790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26791 | *) ac_try_echo=$ac_try;; |
| 26792 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26794 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26795 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26797 | rm -f conftest.er1 |
| 26798 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26800 | (exit $ac_status); } && { |
| 26801 | test -z "$ac_c_werror_flag" || |
| 26802 | test ! -s conftest.err |
| 26803 | } && test -s conftest.$ac_objext; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26804 | ac_cv_window_has_flags=yes |
| 26805 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26806 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 26807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26808 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26809 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26810 | fi |
| 26811 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26813 | fi |
| 26814 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26815 | { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 26816 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 26817 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26818 | |
| 26819 | if test "$ac_cv_window_has_flags" = yes |
| 26820 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26821 | |
| 26822 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26823 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26824 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 26825 | |
| 26826 | fi |
| 26827 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26828 | { echo "$as_me:$LINENO: checking for is_term_resized" >&5 |
| 26829 | echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26830 | cat >conftest.$ac_ext <<_ACEOF |
| 26831 | /* confdefs.h. */ |
| 26832 | _ACEOF |
| 26833 | cat confdefs.h >>conftest.$ac_ext |
| 26834 | cat >>conftest.$ac_ext <<_ACEOF |
| 26835 | /* end confdefs.h. */ |
| 26836 | #include <curses.h> |
| 26837 | int |
| 26838 | main () |
| 26839 | { |
| 26840 | void *x=is_term_resized |
| 26841 | ; |
| 26842 | return 0; |
| 26843 | } |
| 26844 | _ACEOF |
| 26845 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26846 | if { (ac_try="$ac_compile" |
| 26847 | case "(($ac_try" in |
| 26848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26849 | *) ac_try_echo=$ac_try;; |
| 26850 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26852 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26853 | ac_status=$? |
| 26854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26855 | rm -f conftest.er1 |
| 26856 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26858 | (exit $ac_status); } && { |
| 26859 | test -z "$ac_c_werror_flag" || |
| 26860 | test ! -s conftest.err |
| 26861 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26862 | |
| 26863 | cat >>confdefs.h <<\_ACEOF |
| 26864 | #define HAVE_CURSES_IS_TERM_RESIZED 1 |
| 26865 | _ACEOF |
| 26866 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26867 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26868 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26869 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26870 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26872 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26873 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26874 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26875 | |
| 26876 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26877 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26879 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26880 | { echo "$as_me:$LINENO: checking for resize_term" >&5 |
| 26881 | echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26882 | cat >conftest.$ac_ext <<_ACEOF |
| 26883 | /* confdefs.h. */ |
| 26884 | _ACEOF |
| 26885 | cat confdefs.h >>conftest.$ac_ext |
| 26886 | cat >>conftest.$ac_ext <<_ACEOF |
| 26887 | /* end confdefs.h. */ |
| 26888 | #include <curses.h> |
| 26889 | int |
| 26890 | main () |
| 26891 | { |
| 26892 | void *x=resize_term |
| 26893 | ; |
| 26894 | return 0; |
| 26895 | } |
| 26896 | _ACEOF |
| 26897 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26898 | if { (ac_try="$ac_compile" |
| 26899 | case "(($ac_try" in |
| 26900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26901 | *) ac_try_echo=$ac_try;; |
| 26902 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26904 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26905 | ac_status=$? |
| 26906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26907 | rm -f conftest.er1 |
| 26908 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26910 | (exit $ac_status); } && { |
| 26911 | test -z "$ac_c_werror_flag" || |
| 26912 | test ! -s conftest.err |
| 26913 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26914 | |
| 26915 | cat >>confdefs.h <<\_ACEOF |
| 26916 | #define HAVE_CURSES_RESIZE_TERM 1 |
| 26917 | _ACEOF |
| 26918 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26919 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26920 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26921 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26922 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26924 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26925 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26926 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26927 | |
| 26928 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26929 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26931 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26932 | { echo "$as_me:$LINENO: checking for resizeterm" >&5 |
| 26933 | echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26934 | cat >conftest.$ac_ext <<_ACEOF |
| 26935 | /* confdefs.h. */ |
| 26936 | _ACEOF |
| 26937 | cat confdefs.h >>conftest.$ac_ext |
| 26938 | cat >>conftest.$ac_ext <<_ACEOF |
| 26939 | /* end confdefs.h. */ |
| 26940 | #include <curses.h> |
| 26941 | int |
| 26942 | main () |
| 26943 | { |
| 26944 | void *x=resizeterm |
| 26945 | ; |
| 26946 | return 0; |
| 26947 | } |
| 26948 | _ACEOF |
| 26949 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26950 | if { (ac_try="$ac_compile" |
| 26951 | case "(($ac_try" in |
| 26952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26953 | *) ac_try_echo=$ac_try;; |
| 26954 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26956 | (eval "$ac_compile") 2>conftest.er1 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26957 | ac_status=$? |
| 26958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26959 | rm -f conftest.er1 |
| 26960 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26962 | (exit $ac_status); } && { |
| 26963 | test -z "$ac_c_werror_flag" || |
| 26964 | test ! -s conftest.err |
| 26965 | } && test -s conftest.$ac_objext; then |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26966 | |
| 26967 | cat >>confdefs.h <<\_ACEOF |
| 26968 | #define HAVE_CURSES_RESIZETERM 1 |
| 26969 | _ACEOF |
| 26970 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26971 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26972 | echo "${ECHO_T}yes" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26973 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26974 | echo "$as_me: failed program was:" >&5 |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26976 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26977 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26978 | echo "${ECHO_T}no" >&6; } |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26979 | |
| 26980 | fi |
Walter Dörwald | 4994d95 | 2006-06-19 08:07:50 +0000 | [diff] [blame] | 26981 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 26982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26983 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26984 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 26985 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 26986 | |
| 26987 | if test -r /dev/ptmx |
| 26988 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26989 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 26990 | echo "${ECHO_T}yes" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 26991 | |
| 26992 | cat >>confdefs.h <<\_ACEOF |
| 26993 | #define HAVE_DEV_PTMX 1 |
| 26994 | _ACEOF |
| 26995 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 26996 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 26997 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26998 | echo "${ECHO_T}no" >&6; } |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 26999 | fi |
| 27000 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27001 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 27002 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27003 | |
| 27004 | if test -r /dev/ptc |
| 27005 | then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27006 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 27007 | echo "${ECHO_T}yes" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27008 | |
| 27009 | cat >>confdefs.h <<\_ACEOF |
| 27010 | #define HAVE_DEV_PTC 1 |
| 27011 | _ACEOF |
| 27012 | |
Martin v. Löwis | fefbc20 | 2006-10-17 18:59:23 +0000 | [diff] [blame] | 27013 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27014 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27015 | echo "${ECHO_T}no" >&6; } |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 27016 | fi |
| 27017 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27018 | { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5 |
| 27019 | echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27020 | if test "${ac_cv_have_size_t_format+set}" = set; then |
| 27021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27022 | else |
| 27023 | if test "$cross_compiling" = yes; then |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27024 | ac_cv_have_size_t_format="cross -- assuming yes" |
| 27025 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27026 | else |
| 27027 | cat >conftest.$ac_ext <<_ACEOF |
| 27028 | /* confdefs.h. */ |
| 27029 | _ACEOF |
| 27030 | cat confdefs.h >>conftest.$ac_ext |
| 27031 | cat >>conftest.$ac_ext <<_ACEOF |
| 27032 | /* end confdefs.h. */ |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27033 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27034 | #include <stdio.h> |
| 27035 | #include <stddef.h> |
| 27036 | #include <string.h> |
| 27037 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27038 | #ifdef HAVE_SYS_TYPES_H |
| 27039 | #include <sys/types.h> |
| 27040 | #endif |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27041 | |
| 27042 | #ifdef HAVE_SSIZE_T |
| 27043 | typedef ssize_t Py_ssize_t; |
| 27044 | #elif SIZEOF_VOID_P == SIZEOF_LONG |
| 27045 | typedef long Py_ssize_t; |
| 27046 | #else |
| 27047 | typedef int Py_ssize_t; |
| 27048 | #endif |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27049 | |
Christian Heimes | db3d6cb | 2007-12-16 21:39:43 +0000 | [diff] [blame] | 27050 | int main() |
| 27051 | { |
| 27052 | char buffer[256]; |
| 27053 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27054 | if(sprintf(buffer, "%zd", (size_t)123) < 0) |
| 27055 | return 1; |
| 27056 | |
Neal Norwitz | 4a8fbdb | 2006-09-22 08:16:26 +0000 | [diff] [blame] | 27057 | if (strcmp(buffer, "123")) |
| 27058 | return 1; |
| 27059 | |
| 27060 | if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
| 27061 | return 1; |
| 27062 | |
| 27063 | if (strcmp(buffer, "-123")) |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27064 | return 1; |
| 27065 | |
| 27066 | return 0; |
| 27067 | } |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27068 | |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27069 | _ACEOF |
| 27070 | rm -f conftest$ac_exeext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27071 | if { (ac_try="$ac_link" |
| 27072 | case "(($ac_try" in |
| 27073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27074 | *) ac_try_echo=$ac_try;; |
| 27075 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27077 | (eval "$ac_link") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27078 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27080 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27081 | { (case "(($ac_try" in |
| 27082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27083 | *) ac_try_echo=$ac_try;; |
| 27084 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27086 | (eval "$ac_try") 2>&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27087 | ac_status=$? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Brett Cannon | 09d1236 | 2006-05-11 05:11:33 +0000 | [diff] [blame] | 27089 | (exit $ac_status); }; }; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27090 | ac_cv_have_size_t_format=yes |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27091 | else |
| 27092 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27093 | echo "$as_me: failed program was:" >&5 |
| 27094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27095 | |
| 27096 | ( exit $ac_status ) |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27097 | ac_cv_have_size_t_format=no |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27098 | fi |
| 27099 | 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] | 27100 | fi |
| 27101 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27102 | |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27103 | fi |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27104 | { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5 |
| 27105 | echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; } |
Gregory P. Smith | c9ff3a7 | 2009-11-02 02:03:16 +0000 | [diff] [blame] | 27106 | if test "$ac_cv_have_size_t_format" != no ; then |
Alexandre Vassalotti | 2ccefe1 | 2009-07-17 23:17:48 +0000 | [diff] [blame] | 27107 | |
| 27108 | cat >>confdefs.h <<\_ACEOF |
| 27109 | #define PY_FORMAT_SIZE_T "z" |
| 27110 | _ACEOF |
| 27111 | |
| 27112 | fi |
| 27113 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27114 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 27115 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27116 | if test "${ac_cv_type_socklen_t+set}" = set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27119 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27120 | /* confdefs.h. */ |
| 27121 | _ACEOF |
| 27122 | cat confdefs.h >>conftest.$ac_ext |
| 27123 | cat >>conftest.$ac_ext <<_ACEOF |
| 27124 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27125 | |
| 27126 | #ifdef HAVE_SYS_TYPES_H |
| 27127 | #include <sys/types.h> |
| 27128 | #endif |
| 27129 | #ifdef HAVE_SYS_SOCKET_H |
| 27130 | #include <sys/socket.h> |
| 27131 | #endif |
| 27132 | |
| 27133 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27134 | typedef socklen_t ac__type_new_; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27135 | int |
| 27136 | main () |
| 27137 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27138 | if ((ac__type_new_ *) 0) |
| 27139 | return 0; |
| 27140 | if (sizeof (ac__type_new_)) |
| 27141 | return 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27142 | ; |
| 27143 | return 0; |
| 27144 | } |
| 27145 | _ACEOF |
| 27146 | rm -f conftest.$ac_objext |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27147 | if { (ac_try="$ac_compile" |
| 27148 | case "(($ac_try" in |
| 27149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27150 | *) ac_try_echo=$ac_try;; |
| 27151 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27153 | (eval "$ac_compile") 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27154 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27156 | rm -f conftest.er1 |
| 27157 | cat conftest.err >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27159 | (exit $ac_status); } && { |
| 27160 | test -z "$ac_c_werror_flag" || |
| 27161 | test ! -s conftest.err |
| 27162 | } && test -s conftest.$ac_objext; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27163 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27164 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27165 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27167 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27168 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27169 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27170 | |
| 27171 | 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] | 27172 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27173 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 27174 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
| 27175 | if test $ac_cv_type_socklen_t = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27176 | : |
| 27177 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27178 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 27179 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27180 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27181 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 27182 | |
| 27183 | fi |
| 27184 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27185 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27186 | |
| 27187 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 27188 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 27189 | do |
| 27190 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 27191 | done |
| 27192 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27193 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 27194 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27195 | { echo "$as_me:$LINENO: checking for build directories" >&5 |
| 27196 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6; } |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27197 | for dir in $SRCDIRS; do |
| 27198 | if test ! -d $dir; then |
| 27199 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 27200 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 27201 | done |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27202 | { echo "$as_me:$LINENO: result: done" >&5 |
| 27203 | echo "${ECHO_T}done" >&6; } |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 27204 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27205 | # generate output files |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 27206 | 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] | 27207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27208 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27209 | # This file is a shell script that caches the results of configure |
| 27210 | # 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] | 27211 | # scripts and configure runs, see configure's option --config-cache. |
| 27212 | # It is not useful on other systems. If it contains results you don't |
| 27213 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27214 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27215 | # config.status only pays attention to the cache file if you give it |
| 27216 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27217 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27218 | # `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] | 27219 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 27220 | # following values. |
| 27221 | |
| 27222 | _ACEOF |
| 27223 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 27224 | # The following way of writing the cache mishandles newlines in values, |
| 27225 | # 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] | 27226 | # So, we kill variables containing newlines. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27227 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 27228 | # 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] | 27229 | ( |
| 27230 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 27231 | eval ac_val=\$$ac_var |
| 27232 | case $ac_val in #( |
| 27233 | *${as_nl}*) |
| 27234 | case $ac_var in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27235 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 27236 | 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] | 27237 | esac |
| 27238 | case $ac_var in #( |
| 27239 | _ | IFS | as_nl) ;; #( |
| 27240 | *) $as_unset $ac_var ;; |
| 27241 | esac ;; |
| 27242 | esac |
| 27243 | done |
| 27244 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27245 | (set) 2>&1 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27246 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 27247 | *${as_nl}ac_space=\ *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27248 | # `set' does not quote correctly, so add quotes (double-quote |
| 27249 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 27250 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27251 | "s/'/'\\\\''/g; |
| 27252 | 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] | 27253 | ;; #( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27254 | *) |
| 27255 | # `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] | 27256 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27257 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27258 | esac | |
| 27259 | sort |
| 27260 | ) | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27261 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27262 | /^ac_cv_env_/b end |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27263 | t clear |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27264 | :clear |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27265 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 27266 | t end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27267 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 27268 | :end' >>confcache |
| 27269 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 27270 | if test -w "$cache_file"; then |
| 27271 | test "x$cache_file" != "x/dev/null" && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27272 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 27273 | echo "$as_me: updating cache $cache_file" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27274 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27275 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27276 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 27277 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27278 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27279 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 27280 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27281 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27282 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 27283 | # Let make expand exec_prefix. |
| 27284 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 27285 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27286 | DEFS=-DHAVE_CONFIG_H |
| 27287 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27288 | ac_libobjs= |
| 27289 | ac_ltlibobjs= |
| 27290 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 27291 | # 1. Remove the extension, and $U if already installed. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27292 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27293 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27294 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 27295 | # will be set to the directory where LIBOBJS objects are built. |
| 27296 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 27297 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27298 | done |
| 27299 | LIBOBJS=$ac_libobjs |
| 27300 | |
| 27301 | LTLIBOBJS=$ac_ltlibobjs |
| 27302 | |
| 27303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27304 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27305 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27306 | ac_clean_files_save=$ac_clean_files |
| 27307 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27308 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 27309 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 27310 | cat >$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27311 | #! $SHELL |
| 27312 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27313 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 27314 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27315 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 27316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27317 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27318 | ac_cs_recheck=false |
| 27319 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27320 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 27321 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27322 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27323 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27324 | ## --------------------- ## |
| 27325 | ## M4sh Initialization. ## |
| 27326 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27327 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27328 | # Be more Bourne compatible |
| 27329 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27330 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 27331 | emulate sh |
| 27332 | NULLCMD=: |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27333 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27334 | # is contrary to our usage. Disable this feature. |
| 27335 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27336 | setopt NO_GLOB_SUBST |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27337 | else |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27338 | case `(set -o) 2>/dev/null` in |
| 27339 | *posix*) set -o posix ;; |
| 27340 | esac |
| 27341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27342 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27343 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27344 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27345 | |
| 27346 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27347 | # PATH needs CR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27348 | # Avoid depending upon Character Ranges. |
| 27349 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 27350 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 27351 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 27352 | as_cr_digits='0123456789' |
| 27353 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 27354 | |
| 27355 | # The user is always right. |
| 27356 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27357 | echo "#! /bin/sh" >conf$$.sh |
| 27358 | echo "exit 0" >>conf$$.sh |
| 27359 | chmod +x conf$$.sh |
| 27360 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 27361 | PATH_SEPARATOR=';' |
| 27362 | else |
| 27363 | PATH_SEPARATOR=: |
| 27364 | fi |
| 27365 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27366 | fi |
| 27367 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27368 | # Support unset when possible. |
| 27369 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 27370 | as_unset=unset |
| 27371 | else |
| 27372 | as_unset=false |
| 27373 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27374 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27375 | |
| 27376 | # IFS |
| 27377 | # We need space, tab and new line, in precisely that order. Quoting is |
| 27378 | # there to prevent editors from complaining about space-tab. |
| 27379 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 27380 | # splitting by setting IFS to empty value.) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27381 | as_nl=' |
| 27382 | ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27383 | IFS=" "" $as_nl" |
| 27384 | |
| 27385 | # Find who we are. Look in the path if we contain no directory separator. |
| 27386 | case $0 in |
| 27387 | *[\\/]* ) as_myself=$0 ;; |
| 27388 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27389 | for as_dir in $PATH |
| 27390 | do |
| 27391 | IFS=$as_save_IFS |
| 27392 | test -z "$as_dir" && as_dir=. |
| 27393 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 27394 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27395 | IFS=$as_save_IFS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27396 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27397 | ;; |
| 27398 | esac |
| 27399 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 27400 | # in which case we are not to be found in the path. |
| 27401 | if test "x$as_myself" = x; then |
| 27402 | as_myself=$0 |
| 27403 | fi |
| 27404 | if test ! -f "$as_myself"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27405 | 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] | 27406 | { (exit 1); exit 1; } |
| 27407 | fi |
| 27408 | |
| 27409 | # Work around bugs in pre-3.0 UWIN ksh. |
| 27410 | for as_var in ENV MAIL MAILPATH |
| 27411 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 27412 | done |
| 27413 | PS1='$ ' |
| 27414 | PS2='> ' |
| 27415 | PS4='+ ' |
| 27416 | |
| 27417 | # NLS nuisances. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27418 | for as_var in \ |
| 27419 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 27420 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 27421 | LC_TELEPHONE LC_TIME |
| 27422 | do |
| 27423 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 27424 | eval $as_var=C; export $as_var |
| 27425 | else |
| 27426 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 27427 | fi |
| 27428 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27429 | |
| 27430 | # Required to use basename. |
| 27431 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 27432 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 27433 | as_expr=expr |
| 27434 | else |
| 27435 | as_expr=false |
| 27436 | fi |
| 27437 | |
| 27438 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 27439 | as_basename=basename |
| 27440 | else |
| 27441 | as_basename=false |
| 27442 | fi |
| 27443 | |
| 27444 | |
| 27445 | # Name of the executable. |
| 27446 | as_me=`$as_basename -- "$0" || |
| 27447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 27448 | X"$0" : 'X\(//\)$' \| \ |
| 27449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27450 | echo X/"$0" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 27452 | s//\1/ |
| 27453 | q |
| 27454 | } |
| 27455 | /^X\/\(\/\/\)$/{ |
| 27456 | s//\1/ |
| 27457 | q |
| 27458 | } |
| 27459 | /^X\/\(\/\).*/{ |
| 27460 | s//\1/ |
| 27461 | q |
| 27462 | } |
| 27463 | s/.*/./; q'` |
| 27464 | |
| 27465 | # CDPATH. |
| 27466 | $as_unset CDPATH |
| 27467 | |
| 27468 | |
| 27469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27470 | as_lineno_1=$LINENO |
| 27471 | as_lineno_2=$LINENO |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27472 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27473 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 27474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27475 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 27476 | # 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] | 27477 | # line-number line after each line using $LINENO; the second 'sed' |
| 27478 | # does the real work. The second script uses 'N' to pair each |
| 27479 | # line-number line with the line containing $LINENO, and appends |
| 27480 | # trailing '-' during substitution so that $LINENO is not a special |
| 27481 | # case at line end. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27482 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27483 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 27484 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 27485 | sed -n ' |
| 27486 | p |
| 27487 | /[$]LINENO/= |
| 27488 | ' <$as_myself | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27489 | sed ' |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27490 | s/[$]LINENO.*/&-/ |
| 27491 | t lineno |
| 27492 | b |
| 27493 | :lineno |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27494 | N |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27495 | :loop |
| 27496 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27497 | t loop |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27498 | s/-\n.*// |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27499 | ' >$as_me.lineno && |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27500 | chmod +x "$as_me.lineno" || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27501 | { 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] | 27502 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 27503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27504 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 27505 | # (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] | 27506 | # original and so on. Autoconf is especially sensitive to this). |
| 27507 | . "./$as_me.lineno" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27508 | # Exit status is that of the last command. |
| 27509 | exit |
| 27510 | } |
| 27511 | |
| 27512 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27513 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 27514 | as_dirname=dirname |
| 27515 | else |
| 27516 | as_dirname=false |
| 27517 | fi |
| 27518 | |
| 27519 | ECHO_C= ECHO_N= ECHO_T= |
| 27520 | case `echo -n x` in |
| 27521 | -n*) |
| 27522 | case `echo 'x\c'` in |
| 27523 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 27524 | *) ECHO_C='\c';; |
| 27525 | esac;; |
| 27526 | *) |
| 27527 | ECHO_N='-n';; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27528 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27529 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27530 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 27531 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27532 | as_expr=expr |
| 27533 | else |
| 27534 | as_expr=false |
| 27535 | fi |
| 27536 | |
| 27537 | rm -f conf$$ conf$$.exe conf$$.file |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27538 | if test -d conf$$.dir; then |
| 27539 | rm -f conf$$.dir/conf$$.file |
| 27540 | else |
| 27541 | rm -f conf$$.dir |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27542 | mkdir conf$$.dir |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27543 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27544 | echo >conf$$.file |
| 27545 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 27546 | as_ln_s='ln -s' |
| 27547 | # ... but there are two gotchas: |
| 27548 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 27549 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 27550 | # In both cases, we have to default to `cp -p'. |
| 27551 | 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] | 27552 | as_ln_s='cp -p' |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27553 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 27554 | as_ln_s=ln |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27555 | else |
| 27556 | as_ln_s='cp -p' |
| 27557 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27558 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 27559 | rmdir conf$$.dir 2>/dev/null |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27560 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27561 | if mkdir -p . 2>/dev/null; then |
| 27562 | as_mkdir_p=: |
| 27563 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27564 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27565 | as_mkdir_p=false |
| 27566 | fi |
| 27567 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27568 | if test -x / >/dev/null 2>&1; then |
| 27569 | as_test_x='test -x' |
| 27570 | else |
| 27571 | if ls -dL / >/dev/null 2>&1; then |
| 27572 | as_ls_L_option=L |
| 27573 | else |
| 27574 | as_ls_L_option= |
| 27575 | fi |
| 27576 | as_test_x=' |
| 27577 | eval sh -c '\'' |
| 27578 | if test -d "$1"; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27579 | test -d "$1/."; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27580 | else |
| 27581 | case $1 in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27582 | -*)set "./$1";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27583 | esac; |
| 27584 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 27585 | ???[sx]*):;;*)false;;esac;fi |
| 27586 | '\'' sh |
| 27587 | ' |
| 27588 | fi |
| 27589 | as_executable_p=$as_test_x |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27590 | |
| 27591 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27592 | 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] | 27593 | |
| 27594 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 27595 | 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] | 27596 | |
| 27597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27598 | exec 6>&1 |
| 27599 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27600 | # 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] | 27601 | # 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] | 27602 | # values after options handling. |
| 27603 | ac_log=" |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 27604 | This file was extended by python $as_me 2.7, which was |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27605 | generated by GNU Autoconf 2.61. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27606 | |
| 27607 | CONFIG_FILES = $CONFIG_FILES |
| 27608 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 27609 | CONFIG_LINKS = $CONFIG_LINKS |
| 27610 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 27611 | $ $0 $@ |
| 27612 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27613 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 27614 | " |
| 27615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27616 | _ACEOF |
| 27617 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27618 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27619 | # Files that config.status was made for. |
Ronald Oussoren | 450d561 | 2009-06-08 21:12:41 +0000 | [diff] [blame] | 27620 | config_files="$ac_config_files" |
| 27621 | config_headers="$ac_config_headers" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27622 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27623 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27624 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27625 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27626 | ac_cs_usage="\ |
| 27627 | \`$as_me' instantiates files from templates according to the |
| 27628 | current configuration. |
| 27629 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27630 | Usage: $0 [OPTIONS] [FILE]... |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27631 | |
| 27632 | -h, --help print this help, then exit |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27633 | -V, --version print version number and configuration settings, then exit |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27634 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27635 | -d, --debug don't remove temporary files |
| 27636 | --recheck update $as_me by reconfiguring in the same conditions |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27637 | --file=FILE[:TEMPLATE] |
| 27638 | instantiate the configuration file FILE |
| 27639 | --header=FILE[:TEMPLATE] |
| 27640 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27641 | |
| 27642 | Configuration files: |
| 27643 | $config_files |
| 27644 | |
| 27645 | Configuration headers: |
| 27646 | $config_headers |
| 27647 | |
| 27648 | Report bugs to <bug-autoconf@gnu.org>." |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 27649 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27650 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27651 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27652 | ac_cs_version="\\ |
Martin v. Löwis | 174440b | 2008-10-03 08:59:41 +0000 | [diff] [blame] | 27653 | python config.status 2.7 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27654 | configured by $0, generated by GNU Autoconf 2.61, |
| 27655 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27656 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27657 | Copyright (C) 2006 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27658 | This config.status script is free software; the Free Software Foundation |
| 27659 | gives unlimited permission to copy, distribute and modify it." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27660 | |
| 27661 | ac_pwd='$ac_pwd' |
| 27662 | srcdir='$srcdir' |
| 27663 | INSTALL='$INSTALL' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27664 | _ACEOF |
| 27665 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27666 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 27667 | # If no file are specified by the user, then we need to provide default |
| 27668 | # 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] | 27669 | ac_need_defaults=: |
| 27670 | while test $# != 0 |
| 27671 | do |
| 27672 | case $1 in |
| 27673 | --*=*) |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27674 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 27675 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27676 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27677 | ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27678 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27679 | ac_option=$1 |
| 27680 | ac_optarg=$2 |
| 27681 | ac_shift=shift |
| 27682 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27683 | esac |
| 27684 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27685 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27686 | # Handling of the options. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27687 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 27688 | ac_cs_recheck=: ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27689 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27690 | echo "$ac_cs_version"; exit ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27691 | --debug | --debu | --deb | --de | --d | -d ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27692 | debug=: ;; |
| 27693 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27694 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27695 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27696 | ac_need_defaults=false;; |
| 27697 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27698 | $ac_shift |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27699 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27700 | ac_need_defaults=false;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27701 | --he | --h) |
| 27702 | # Conflict between --help and --header |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27703 | { echo "$as_me: error: ambiguous option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27704 | Try \`$0 --help' for more information." >&2 |
| 27705 | { (exit 1); exit 1; }; };; |
| 27706 | --help | --hel | -h ) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27707 | echo "$ac_cs_usage"; exit ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27708 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 27709 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 27710 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27711 | |
| 27712 | # This is an error. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27713 | -*) { echo "$as_me: error: unrecognized option: $1 |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27714 | Try \`$0 --help' for more information." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27715 | { (exit 1); exit 1; }; } ;; |
| 27716 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27717 | *) ac_config_targets="$ac_config_targets $1" |
| 27718 | ac_need_defaults=false ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27719 | |
| 27720 | esac |
| 27721 | shift |
| 27722 | done |
| 27723 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27724 | ac_configure_extra_args= |
| 27725 | |
| 27726 | if $ac_cs_silent; then |
| 27727 | exec 6>/dev/null |
| 27728 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 27729 | fi |
| 27730 | |
| 27731 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27732 | cat >>$CONFIG_STATUS <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27733 | if \$ac_cs_recheck; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27734 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 27735 | CONFIG_SHELL=$SHELL |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27736 | export CONFIG_SHELL |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27737 | 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] | 27738 | fi |
| 27739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27740 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27741 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27742 | exec 5>>config.log |
| 27743 | { |
| 27744 | echo |
| 27745 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 27746 | ## Running $as_me. ## |
| 27747 | _ASBOX |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27748 | echo "$ac_log" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27749 | } >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27750 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27751 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27752 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27753 | _ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27754 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27755 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27756 | |
| 27757 | # Handling of arguments. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27758 | for ac_config_target in $ac_config_targets |
| 27759 | do |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27760 | case $ac_config_target in |
| 27761 | "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 27762 | "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; |
| 27763 | "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; |
| 27764 | "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; |
Ronald Oussoren | 580c7fe | 2008-05-02 19:45:11 +0000 | [diff] [blame] | 27765 | "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; |
| 27766 | "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] | 27767 | "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 27768 | "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
Antoine Pitrou | f2caeed | 2009-05-24 20:23:57 +0000 | [diff] [blame] | 27769 | "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27770 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27771 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 27772 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27773 | { (exit 1); exit 1; }; };; |
| 27774 | esac |
| 27775 | done |
| 27776 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27777 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27778 | # If the user did not use the arguments to specify the items to instantiate, |
| 27779 | # then the envvar interface is used. Set only those that are not. |
| 27780 | # We use the long form for the default assignment because of an extremely |
| 27781 | # bizarre bug on SunOS 4.1.3. |
| 27782 | if $ac_need_defaults; then |
| 27783 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 27784 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 27785 | fi |
| 27786 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27787 | # 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] | 27788 | # 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] | 27789 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27790 | # Hook for its removal unless debugging. |
| 27791 | # Note that there is a small window in which the directory will not be cleaned: |
| 27792 | # 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] | 27793 | $debug || |
| 27794 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27795 | tmp= |
| 27796 | trap 'exit_status=$? |
| 27797 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 27798 | ' 0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27799 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 27800 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27801 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 27802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27803 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27804 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27805 | test -n "$tmp" && test -d "$tmp" |
| 27806 | } || |
| 27807 | { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27808 | tmp=./conf$$-$RANDOM |
| 27809 | (umask 077 && mkdir "$tmp") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27810 | } || |
| 27811 | { |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27812 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27813 | { (exit 1); exit 1; } |
| 27814 | } |
| 27815 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27816 | # |
| 27817 | # Set up the sed scripts for CONFIG_FILES section. |
| 27818 | # |
| 27819 | |
| 27820 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 27821 | # This happens for instance when ./config.status config.h |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27822 | if test -n "$CONFIG_FILES"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27823 | |
| 27824 | _ACEOF |
| 27825 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27826 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27827 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27828 | ac_delim='%!_!# ' |
| 27829 | for ac_last_try in false false false false false :; do |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27830 | cat >conf$$subs.sed <<_ACEOF |
| 27831 | SHELL!$SHELL$ac_delim |
| 27832 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 27833 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 27834 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 27835 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 27836 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 27837 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 27838 | exec_prefix!$exec_prefix$ac_delim |
| 27839 | prefix!$prefix$ac_delim |
| 27840 | program_transform_name!$program_transform_name$ac_delim |
| 27841 | bindir!$bindir$ac_delim |
| 27842 | sbindir!$sbindir$ac_delim |
| 27843 | libexecdir!$libexecdir$ac_delim |
| 27844 | datarootdir!$datarootdir$ac_delim |
| 27845 | datadir!$datadir$ac_delim |
| 27846 | sysconfdir!$sysconfdir$ac_delim |
| 27847 | sharedstatedir!$sharedstatedir$ac_delim |
| 27848 | localstatedir!$localstatedir$ac_delim |
| 27849 | includedir!$includedir$ac_delim |
| 27850 | oldincludedir!$oldincludedir$ac_delim |
| 27851 | docdir!$docdir$ac_delim |
| 27852 | infodir!$infodir$ac_delim |
| 27853 | htmldir!$htmldir$ac_delim |
| 27854 | dvidir!$dvidir$ac_delim |
| 27855 | pdfdir!$pdfdir$ac_delim |
| 27856 | psdir!$psdir$ac_delim |
| 27857 | libdir!$libdir$ac_delim |
| 27858 | localedir!$localedir$ac_delim |
| 27859 | mandir!$mandir$ac_delim |
| 27860 | DEFS!$DEFS$ac_delim |
| 27861 | ECHO_C!$ECHO_C$ac_delim |
| 27862 | ECHO_N!$ECHO_N$ac_delim |
| 27863 | ECHO_T!$ECHO_T$ac_delim |
| 27864 | LIBS!$LIBS$ac_delim |
| 27865 | build_alias!$build_alias$ac_delim |
| 27866 | host_alias!$host_alias$ac_delim |
| 27867 | target_alias!$target_alias$ac_delim |
| 27868 | VERSION!$VERSION$ac_delim |
| 27869 | SOVERSION!$SOVERSION$ac_delim |
| 27870 | CONFIG_ARGS!$CONFIG_ARGS$ac_delim |
| 27871 | UNIVERSALSDK!$UNIVERSALSDK$ac_delim |
| 27872 | ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim |
| 27873 | PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim |
| 27874 | PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim |
| 27875 | PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim |
| 27876 | PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim |
| 27877 | PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim |
| 27878 | FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim |
| 27879 | FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim |
| 27880 | FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim |
| 27881 | FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim |
| 27882 | FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim |
| 27883 | MACHDEP!$MACHDEP$ac_delim |
| 27884 | SGI_ABI!$SGI_ABI$ac_delim |
| 27885 | EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim |
| 27886 | EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim |
| 27887 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 27888 | EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim |
| 27889 | CC!$CC$ac_delim |
| 27890 | CFLAGS!$CFLAGS$ac_delim |
| 27891 | LDFLAGS!$LDFLAGS$ac_delim |
| 27892 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 27893 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 27894 | EXEEXT!$EXEEXT$ac_delim |
| 27895 | OBJEXT!$OBJEXT$ac_delim |
| 27896 | CXX!$CXX$ac_delim |
| 27897 | MAINCC!$MAINCC$ac_delim |
| 27898 | CPP!$CPP$ac_delim |
| 27899 | GREP!$GREP$ac_delim |
| 27900 | EGREP!$EGREP$ac_delim |
| 27901 | BUILDEXEEXT!$BUILDEXEEXT$ac_delim |
| 27902 | LIBRARY!$LIBRARY$ac_delim |
| 27903 | LDLIBRARY!$LDLIBRARY$ac_delim |
| 27904 | DLLLIBRARY!$DLLLIBRARY$ac_delim |
| 27905 | BLDLIBRARY!$BLDLIBRARY$ac_delim |
| 27906 | LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim |
| 27907 | INSTSONAME!$INSTSONAME$ac_delim |
| 27908 | RUNSHARED!$RUNSHARED$ac_delim |
| 27909 | LINKCC!$LINKCC$ac_delim |
| 27910 | GNULD!$GNULD$ac_delim |
| 27911 | RANLIB!$RANLIB$ac_delim |
| 27912 | AR!$AR$ac_delim |
| 27913 | ARFLAGS!$ARFLAGS$ac_delim |
| 27914 | SVNVERSION!$SVNVERSION$ac_delim |
| 27915 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 27916 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 27917 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 27918 | LN!$LN$ac_delim |
| 27919 | OPT!$OPT$ac_delim |
| 27920 | BASECFLAGS!$BASECFLAGS$ac_delim |
| 27921 | UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim |
| 27922 | OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim |
| 27923 | LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim |
| 27924 | SO!$SO$ac_delim |
| 27925 | LDSHARED!$LDSHARED$ac_delim |
| 27926 | BLDSHARED!$BLDSHARED$ac_delim |
| 27927 | CCSHARED!$CCSHARED$ac_delim |
| 27928 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27929 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27930 | 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] | 27931 | break |
| 27932 | elif $ac_last_try; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27933 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 27934 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27935 | { (exit 1); exit 1; }; } |
| 27936 | else |
| 27937 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27938 | fi |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27939 | done |
| 27940 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27941 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 27942 | if test -n "$ac_eof"; then |
| 27943 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 27944 | ac_eof=`expr $ac_eof + 1` |
| 27945 | fi |
| 27946 | |
| 27947 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27948 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 27949 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27950 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27951 | sed ' |
| 27952 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 27953 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 27954 | :n |
| 27955 | t n |
| 27956 | s/'"$ac_delim"'$/,g/; t |
| 27957 | s/$/\\/; p |
| 27958 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 27959 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 27960 | rm -f conf$$subs.sed |
| 27961 | cat >>$CONFIG_STATUS <<_ACEOF |
| 27962 | CEOF$ac_eof |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 27963 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 27964 | |
| 27965 | |
| 27966 | ac_delim='%!_!# ' |
| 27967 | for ac_last_try in false false false false false :; do |
| 27968 | cat >conf$$subs.sed <<_ACEOF |
| 27969 | LINKFORSHARED!$LINKFORSHARED$ac_delim |
| 27970 | CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim |
| 27971 | SHLIBS!$SHLIBS$ac_delim |
| 27972 | USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim |
| 27973 | SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim |
| 27974 | USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim |
| 27975 | LDLAST!$LDLAST$ac_delim |
| 27976 | THREADOBJ!$THREADOBJ$ac_delim |
| 27977 | DLINCLDIR!$DLINCLDIR$ac_delim |
| 27978 | DYNLOADFILE!$DYNLOADFILE$ac_delim |
| 27979 | MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim |
| 27980 | TRUE!$TRUE$ac_delim |
| 27981 | LIBOBJS!$LIBOBJS$ac_delim |
| 27982 | HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim |
| 27983 | HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim |
| 27984 | HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim |
| 27985 | HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim |
| 27986 | HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim |
| 27987 | LIBM!$LIBM$ac_delim |
| 27988 | LIBC!$LIBC$ac_delim |
| 27989 | UNICODE_OBJS!$UNICODE_OBJS$ac_delim |
| 27990 | THREADHEADERS!$THREADHEADERS$ac_delim |
| 27991 | SRCDIRS!$SRCDIRS$ac_delim |
| 27992 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 27993 | _ACEOF |
| 27994 | |
| 27995 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then |
| 27996 | break |
| 27997 | elif $ac_last_try; then |
| 27998 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 27999 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28000 | { (exit 1); exit 1; }; } |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28001 | else |
| 28002 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 28003 | fi |
| 28004 | done |
| 28005 | |
| 28006 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 28007 | if test -n "$ac_eof"; then |
| 28008 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 28009 | ac_eof=`expr $ac_eof + 1` |
| 28010 | fi |
| 28011 | |
| 28012 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28013 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 28014 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28015 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28016 | sed ' |
| 28017 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 28018 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 28019 | :n |
| 28020 | t n |
| 28021 | s/'"$ac_delim"'$/,g/; t |
| 28022 | s/$/\\/; p |
| 28023 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 28024 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 28025 | rm -f conf$$subs.sed |
| 28026 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28027 | :end |
| 28028 | s/|#_!!_#|//g |
| 28029 | CEOF$ac_eof |
| 28030 | _ACEOF |
| 28031 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28032 | |
| 28033 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 28034 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 28035 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 28036 | # (actually we leave an empty line to preserve line numbers). |
| 28037 | if test "x$srcdir" = x.; then |
| 28038 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 28039 | s/:*\$(srcdir):*/:/ |
| 28040 | s/:*\${srcdir}:*/:/ |
| 28041 | s/:*@srcdir@:*/:/ |
| 28042 | s/^\([^=]*=[ ]*\):*/\1/ |
| 28043 | s/:*$// |
| 28044 | s/^[^=]*=[ ]*$// |
| 28045 | }' |
| 28046 | fi |
| 28047 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28048 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28049 | fi # test -n "$CONFIG_FILES" |
| 28050 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28051 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28052 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28053 | do |
| 28054 | case $ac_tag in |
| 28055 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 28056 | esac |
| 28057 | case $ac_mode$ac_tag in |
| 28058 | :[FHL]*:*);; |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28059 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 28060 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28061 | { (exit 1); exit 1; }; };; |
| 28062 | :[FH]-) ac_tag=-:-;; |
| 28063 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 28064 | esac |
| 28065 | ac_save_IFS=$IFS |
| 28066 | IFS=: |
| 28067 | set x $ac_tag |
| 28068 | IFS=$ac_save_IFS |
| 28069 | shift |
| 28070 | ac_file=$1 |
| 28071 | shift |
| 28072 | |
| 28073 | case $ac_mode in |
| 28074 | :L) ac_source=$1;; |
| 28075 | :[FH]) |
| 28076 | ac_file_inputs= |
| 28077 | for ac_f |
| 28078 | do |
| 28079 | case $ac_f in |
| 28080 | -) ac_f="$tmp/stdin";; |
| 28081 | *) # Look for the file first in the build tree, then in the source tree |
| 28082 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 28083 | # because $ac_f cannot contain `:'. |
| 28084 | test -f "$ac_f" || |
| 28085 | case $ac_f in |
| 28086 | [\\/$]*) false;; |
| 28087 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 28088 | esac || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28089 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 28090 | 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] | 28091 | { (exit 1); exit 1; }; };; |
| 28092 | esac |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28093 | ac_file_inputs="$ac_file_inputs $ac_f" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28094 | done |
| 28095 | |
| 28096 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 28097 | # use $as_me), people would be surprised to read: |
| 28098 | # /* config.h. Generated by config.status. */ |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28099 | configure_input="Generated from "`IFS=: |
| 28100 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28101 | if test x"$ac_file" != x-; then |
| 28102 | configure_input="$ac_file. $configure_input" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28103 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 28104 | echo "$as_me: creating $ac_file" >&6;} |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28105 | fi |
| 28106 | |
| 28107 | case $ac_tag in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28108 | *:-:* | *:-) cat >"$tmp/stdin";; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28109 | esac |
| 28110 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28111 | esac |
| 28112 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28113 | ac_dir=`$as_dirname -- "$ac_file" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28114 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28115 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 28116 | X"$ac_file" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28117 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28118 | echo X"$ac_file" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28119 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28120 | s//\1/ |
| 28121 | q |
| 28122 | } |
| 28123 | /^X\(\/\/\)[^/].*/{ |
| 28124 | s//\1/ |
| 28125 | q |
| 28126 | } |
| 28127 | /^X\(\/\/\)$/{ |
| 28128 | s//\1/ |
| 28129 | q |
| 28130 | } |
| 28131 | /^X\(\/\).*/{ |
| 28132 | s//\1/ |
| 28133 | q |
| 28134 | } |
| 28135 | s/.*/./; q'` |
| 28136 | { as_dir="$ac_dir" |
| 28137 | case $as_dir in #( |
| 28138 | -*) as_dir=./$as_dir;; |
| 28139 | esac |
| 28140 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28141 | as_dirs= |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28142 | while :; do |
| 28143 | case $as_dir in #( |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28144 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28145 | *) as_qdir=$as_dir;; |
| 28146 | esac |
| 28147 | as_dirs="'$as_qdir' $as_dirs" |
| 28148 | as_dir=`$as_dirname -- "$as_dir" || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28149 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28150 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 28151 | X"$as_dir" : 'X\(//\)$' \| \ |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28152 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28153 | echo X"$as_dir" | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28154 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 28155 | s//\1/ |
| 28156 | q |
| 28157 | } |
| 28158 | /^X\(\/\/\)[^/].*/{ |
| 28159 | s//\1/ |
| 28160 | q |
| 28161 | } |
| 28162 | /^X\(\/\/\)$/{ |
| 28163 | s//\1/ |
| 28164 | q |
| 28165 | } |
| 28166 | /^X\(\/\).*/{ |
| 28167 | s//\1/ |
| 28168 | q |
| 28169 | } |
| 28170 | s/.*/./; q'` |
| 28171 | test -d "$as_dir" && break |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28172 | done |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28173 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28174 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 28175 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28176 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28177 | ac_builddir=. |
| 28178 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28179 | case "$ac_dir" in |
| 28180 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28181 | *) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28182 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28183 | # A ".." for each directory in $ac_dir_suffix. |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28184 | 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] | 28185 | case $ac_top_builddir_sub in |
| 28186 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 28187 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 28188 | esac ;; |
| 28189 | esac |
| 28190 | ac_abs_top_builddir=$ac_pwd |
| 28191 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 28192 | # for backward compatibility: |
| 28193 | ac_top_builddir=$ac_top_build_prefix |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28194 | |
| 28195 | case $srcdir in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28196 | .) # We are building in place. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28197 | ac_srcdir=. |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28198 | ac_top_srcdir=$ac_top_builddir_sub |
| 28199 | ac_abs_top_srcdir=$ac_pwd ;; |
| 28200 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28201 | ac_srcdir=$srcdir$ac_dir_suffix; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28202 | ac_top_srcdir=$srcdir |
| 28203 | ac_abs_top_srcdir=$srcdir ;; |
| 28204 | *) # Relative name. |
| 28205 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 28206 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 28207 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28208 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28209 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28211 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28212 | case $ac_mode in |
| 28213 | :F) |
| 28214 | # |
| 28215 | # CONFIG_FILE |
| 28216 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28217 | |
| 28218 | case $INSTALL in |
| 28219 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28220 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28221 | esac |
Brett Cannon | 19fab76 | 2007-06-02 03:02:29 +0000 | [diff] [blame] | 28222 | _ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28223 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28224 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28225 | # If the template does not know about datarootdir, expand it. |
| 28226 | # FIXME: This hack should be removed a few years after 2.60. |
| 28227 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 28228 | |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28229 | case `sed -n '/datarootdir/ { |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28230 | p |
| 28231 | q |
| 28232 | } |
| 28233 | /@datadir@/p |
| 28234 | /@docdir@/p |
| 28235 | /@infodir@/p |
| 28236 | /@localedir@/p |
| 28237 | /@mandir@/p |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28238 | ' $ac_file_inputs` in |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28239 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 28240 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28241 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 28242 | 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] | 28243 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28244 | cat >>$CONFIG_STATUS <<_ACEOF |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28245 | ac_datarootdir_hack=' |
| 28246 | s&@datadir@&$datadir&g |
| 28247 | s&@docdir@&$docdir&g |
| 28248 | s&@infodir@&$infodir&g |
| 28249 | s&@localedir@&$localedir&g |
| 28250 | s&@mandir@&$mandir&g |
| 28251 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 28252 | esac |
| 28253 | _ACEOF |
| 28254 | |
| 28255 | # Neutralize VPATH when `$srcdir' = `.'. |
| 28256 | # Shell code in configure.ac might set extrasub. |
| 28257 | # FIXME: do we really want to maintain this feature? |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28258 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28259 | sed "$ac_vpsub |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28260 | $extrasub |
| 28261 | _ACEOF |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28262 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28263 | :t |
| 28264 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28265 | s&@configure_input@&$configure_input&;t t |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28266 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 28267 | s&@srcdir@&$ac_srcdir&;t t |
| 28268 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 28269 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 28270 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 28271 | s&@builddir@&$ac_builddir&;t t |
| 28272 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 28273 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 28274 | s&@INSTALL@&$ac_INSTALL&;t t |
| 28275 | $ac_datarootdir_hack |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28276 | " $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] | 28277 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28278 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 28279 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 28280 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28281 | { 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] | 28282 | which seems to be undefined. Please make sure it is defined." >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28283 | 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] | 28284 | 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] | 28285 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28286 | rm -f "$tmp/stdin" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28287 | case $ac_file in |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28288 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 28289 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 28290 | esac |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28291 | ;; |
| 28292 | :H) |
| 28293 | # |
| 28294 | # CONFIG_HEADER |
| 28295 | # |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28296 | _ACEOF |
| 28297 | |
| 28298 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 28299 | # substitutes the proper values into config.h.in to produce config.h. |
| 28300 | rm -f conftest.defines conftest.tail |
| 28301 | # First, append a space to every undef/define line, to ease matching. |
| 28302 | echo 's/$/ /' >conftest.defines |
| 28303 | # Then, protect against being on the right side of a sed subst, or in |
| 28304 | # an unquoted here document, in config.status. If some macros were |
| 28305 | # called several times there might be several #defines for the same |
| 28306 | # symbol, which is useless. But do not sort them, since the last |
| 28307 | # AC_DEFINE must be honored. |
| 28308 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 28309 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 28310 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 28311 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 28312 | # just an empty string. |
| 28313 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 28314 | ac_dB='\\)[ (].*,\\1define\\2' |
| 28315 | ac_dC=' ' |
| 28316 | ac_dD=' ,' |
| 28317 | |
| 28318 | uniq confdefs.h | |
| 28319 | sed -n ' |
| 28320 | t rset |
| 28321 | :rset |
| 28322 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 28323 | t ok |
| 28324 | d |
| 28325 | :ok |
| 28326 | s/[\\&,]/\\&/g |
| 28327 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 28328 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 28329 | ' >>conftest.defines |
| 28330 | |
| 28331 | # Remove the space that was appended to ease matching. |
| 28332 | # Then replace #undef with comments. This is necessary, for |
| 28333 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 28334 | # on some systems where configure will not decide to define it. |
| 28335 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 28336 | echo 's/ $// |
| 28337 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 28338 | |
| 28339 | # Break up conftest.defines: |
| 28340 | ac_max_sed_lines=50 |
| 28341 | |
| 28342 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 28343 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 28344 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 28345 | # et cetera. |
| 28346 | ac_in='$ac_file_inputs' |
| 28347 | ac_out='"$tmp/out1"' |
| 28348 | ac_nxt='"$tmp/out2"' |
| 28349 | |
| 28350 | while : |
| 28351 | do |
| 28352 | # Write a here document: |
| 28353 | cat >>$CONFIG_STATUS <<_ACEOF |
| 28354 | # First, check the format of the line: |
| 28355 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 28356 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 28357 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 28358 | b |
| 28359 | :def |
| 28360 | _ACEOF |
| 28361 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 28362 | echo 'CEOF |
| 28363 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 28364 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 28365 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 28366 | grep . conftest.tail >/dev/null || break |
| 28367 | rm -f conftest.defines |
| 28368 | mv conftest.tail conftest.defines |
| 28369 | done |
| 28370 | rm -f conftest.defines conftest.tail |
| 28371 | |
| 28372 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 28373 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28374 | if test x"$ac_file" != x-; then |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28375 | echo "/* $configure_input */" >"$tmp/config.h" |
| 28376 | cat "$ac_result" >>"$tmp/config.h" |
| 28377 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 28378 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 28379 | echo "$as_me: $ac_file is unchanged" >&6;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28380 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28381 | rm -f $ac_file |
| 28382 | mv "$tmp/config.h" $ac_file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28383 | fi |
| 28384 | else |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28385 | echo "/* $configure_input */" |
| 28386 | cat "$ac_result" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28387 | fi |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28388 | rm -f "$tmp/out12" |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28389 | ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 28390 | |
Martin v. Löwis | eba4065 | 2007-08-30 20:10:57 +0000 | [diff] [blame] | 28391 | |
| 28392 | esac |
| 28393 | |
| 28394 | done # for ac_tag |
| 28395 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 28396 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28397 | { (exit 0); exit 0; } |
| 28398 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 28399 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28400 | ac_clean_files=$ac_clean_files_save |
| 28401 | |
| 28402 | |
| 28403 | # configure is writing to config.log, and then calls config.status. |
| 28404 | # config.status does its own redirection, appending to config.log. |
| 28405 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 28406 | # by configure, so config.status won't be able to write to it; its |
| 28407 | # output is simply discarded. So we exec the FD to /dev/null, |
| 28408 | # effectively closing config.log, so it can be properly (re)opened and |
| 28409 | # appended to by config.status. When coming back to configure, we |
| 28410 | # need to make the FD available again. |
| 28411 | if test "$no_create" != yes; then |
| 28412 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28413 | ac_config_status_args= |
| 28414 | test "$silent" = yes && |
| 28415 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 28416 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 28417 | $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] | 28418 | exec 5>>config.log |
| 28419 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 28420 | # would make configure fail if this is the last instruction. |
| 28421 | $ac_cs_success || { (exit 1); exit 1; } |
| 28422 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 28423 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 28424 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 28425 | echo "creating Modules/Setup" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 28426 | if test ! -f Modules/Setup |
| 28427 | then |
| 28428 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 28429 | fi |
| 28430 | |
Martin v. Löwis | f7afe95 | 2006-04-14 15:16:15 +0000 | [diff] [blame] | 28431 | echo "creating Modules/Setup.local" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 28432 | if test ! -f Modules/Setup.local |
| 28433 | then |
| 28434 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 28435 | fi |
| 28436 | |
| 28437 | echo "creating Makefile" |
| 28438 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 28439 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 28440 | Modules/Setup.local Modules/Setup |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28441 | |
| 28442 | case $ac_sys_system in |
| 28443 | BeOS) |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28444 | { echo "$as_me:$LINENO: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28445 | |
| 28446 | Support for BeOS is deprecated as of Python 2.6. |
| 28447 | See PEP 11 for the gory details. |
| 28448 | " >&5 |
Alexandre Vassalotti | bd7569b | 2009-07-17 23:09:02 +0000 | [diff] [blame] | 28449 | echo "$as_me: WARNING: |
Skip Montanaro | 89e975f | 2007-08-22 19:05:21 +0000 | [diff] [blame] | 28450 | |
| 28451 | Support for BeOS is deprecated as of Python 2.6. |
| 28452 | See PEP 11 for the gory details. |
| 28453 | " >&2;} |
| 28454 | ;; |
| 28455 | *) ;; |
| 28456 | esac |
| 28457 | |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 28458 | mv config.c Modules |